diff options
| author | Joel Martin <github@martintribe.org> | 2014-11-08 16:56:36 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-09 16:16:45 -0600 |
| commit | 891c3f3b478292ad0bfca44b0dc098a2aecc9a5d (patch) | |
| tree | d30c7923ffee7699cfca94af84f3be297448fff2 /tests | |
| parent | 9b3362e86a57ed7f14c5fd018c37713185e0c154 (diff) | |
| download | mal-891c3f3b478292ad0bfca44b0dc098a2aecc9a5d.tar.gz mal-891c3f3b478292ad0bfca44b0dc098a2aecc9a5d.zip | |
CoffeeScript: add all steps. Self-hosting.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/step8_macros.mal | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/step8_macros.mal b/tests/step8_macros.mal index f2f62dc..8773ba8 100644 --- a/tests/step8_macros.mal +++ b/tests/step8_macros.mal @@ -1,4 +1,14 @@ -;; Testing first function +;; Testing nth, first and rest functions + +(nth '() 0) +;=>nil +(nth '(1) 0) +;=>1 +(nth '(1 2) 1) +;=>2 +(nth '(1 2) 2) +;=>nil + (first '()) ;=>nil (first '(6)) @@ -6,7 +16,6 @@ (first '(7 8 9)) ;=>7 -;; Testing rest function (rest '()) ;=>() (rest '(6)) |
