enumerate. Close #28
This commit is contained in:
@@ -135,6 +135,10 @@ class BasicTestCase extends Test {
|
||||
Assert.equals(5, BasicTestCase.myTypeCheck());
|
||||
}
|
||||
|
||||
function testEnumerate() {
|
||||
_testEnumerate();
|
||||
}
|
||||
|
||||
function testGroups() {
|
||||
_testGroups();
|
||||
}
|
||||
|
@@ -130,6 +130,10 @@
|
||||
(Assert.equals (.toString [[1 2]]) (.toString (zipDrop [1 2 3 4] [2])))
|
||||
(Assert.equals (.toString [[1 2] [3 4]]) (.toString (apply zipThrow [[1 3] [2 4]]))))
|
||||
|
||||
(defun _testEnumerate []
|
||||
(Assert.equals "[[0,a],[1,b]]" (.toString (enumerate ["a" "b"])))
|
||||
(Assert.equals "[[1,a],[2,b]]" (.toString (enumerate ["a" "b"] 1))))
|
||||
|
||||
(defun _testLet []
|
||||
(let [a 5
|
||||
b 6
|
||||
|
Reference in New Issue
Block a user