From 8cb5cda46cf3aef847ae3926dc53a5e5f87fe261 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 16 Apr 2014 23:57:50 -0500 Subject: All: move some fns to core. Major cleanup. - Don't import/require core until step4. - Define cond/or macros from step8 --- tests/step8_macros.mal | 2 +- tests/stepA_more.mal | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3