aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2015-01-30 13:21:10 -0600
committerJoel Martin <github@martintribe.org>2015-01-30 13:21:10 -0600
commitffd31966ec6a5e362dd16911643a43e2ce098a11 (patch)
tree7316835528b00df469b1351f1a95bf5930864190 /tests
parentcbcf8a6308e4a4984d6827967a67e5c88646b86e (diff)
downloadmal-ffd31966ec6a5e362dd16911643a43e2ce098a11.tar.gz
mal-ffd31966ec6a5e362dd16911643a43e2ce098a11.zip
guide.md: step9,A stubs. TODO. More vector tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/step4_if_fn_do.mal10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/step4_if_fn_do.mal b/tests/step4_if_fn_do.mal
index 46efeae..4adb4c8 100644
--- a/tests/step4_if_fn_do.mal
+++ b/tests/step4_if_fn_do.mal
@@ -351,6 +351,16 @@ a
(if [] 7 8)
;=>7
+;; Testing vector functions
+(count [1 2 3])
+;=>3
+(empty? [1 2 3])
+;=>false
+(empty? [])
+;=>true
+(list? [4 5 6])
+;=>false
+
;; Testing vector equality
(= [] (list))
;=>true