aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-16 23:57:50 -0500
committerJoel Martin <github@martintribe.org>2014-04-16 23:57:50 -0500
commit8cb5cda46cf3aef847ae3926dc53a5e5f87fe261 (patch)
tree13e5b2878f19ee24272ead8a92a9cb84b33ad0e5 /tests
parenta05f7822b10ed4cdd61ed8384299a003baf1c1c6 (diff)
downloadmal-8cb5cda46cf3aef847ae3926dc53a5e5f87fe261.tar.gz
mal-8cb5cda46cf3aef847ae3926dc53a5e5f87fe261.zip
All: move some fns to core. Major cleanup.
- Don't import/require core until step4. - Define cond/or macros from step8
Diffstat (limited to 'tests')
-rw-r--r--tests/step8_macros.mal2
-rw-r--r--tests/stepA_more.mal18
2 files changed, 1 insertions, 19 deletions
diff --git a/tests/step8_macros.mal b/tests/step8_macros.mal
index 03128ca..023c3d5 100644
--- a/tests/step8_macros.mal
+++ b/tests/step8_macros.mal
@@ -146,7 +146,7 @@
(cond false 7 false 8 false 9)
;=>nil
-;Testing all EVAL of non-default locations
+;; Testing all EVAL of non-default locations
(let* [x (or nil "yes")] x)
;=>"yes"
diff --git a/tests/stepA_more.mal b/tests/stepA_more.mal
index f2cc7eb..764c47f 100644
--- a/tests/stepA_more.mal
+++ b/tests/stepA_more.mal
@@ -313,21 +313,3 @@
(readline "mal-user> ")
"hello"
;=>"\"hello\""
-
-;;
-;; Testing macros cond and or
-(cond 1 2 3 4)
-;=>2
-(cond false 2 3 4)
-;=>4
-(cond false 2 false 4)
-;=>nil
-
-(or)
-;=>nil
-(or 1)
-;=>1
-(or 1 2)
-;=>1
-(or nil 2)
-;=>2