diff options
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)) |
