diff options
| author | Joel Martin <github@martintribe.org> | 2015-01-30 13:21:10 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-30 13:21:10 -0600 |
| commit | ffd31966ec6a5e362dd16911643a43e2ce098a11 (patch) | |
| tree | 7316835528b00df469b1351f1a95bf5930864190 /tests | |
| parent | cbcf8a6308e4a4984d6827967a67e5c88646b86e (diff) | |
| download | mal-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.mal | 10 |
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 |
