From f6a4ddf758e610ce65b7506edb51a4335b142327 Mon Sep 17 00:00:00 2001 From: Chouser Date: Mon, 16 Feb 2015 18:43:51 -0500 Subject: test step1: Add input for existing output case --- tests/step1_read_print.mal | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/step1_read_print.mal b/tests/step1_read_print.mal index 8172479..985b5fb 100644 --- a/tests/step1_read_print.mal +++ b/tests/step1_read_print.mal @@ -116,6 +116,7 @@ abc-def ;=>{"a" {"b" {"c" 3}}} { "a" {"b" { "cde" 3 } }} ;=>{"a" {"b" {"cde" 3}}} +{ :a {:b { :cde 3 } }} ;=>{:a {:b {:cde 3}}} ;; Testing read of comments -- cgit v1.2.3 From db11c7402768391a803cf83a4c55cac5e8202eb4 Mon Sep 17 00:00:00 2001 From: Chouser Date: Thu, 19 Feb 2015 18:37:21 -0500 Subject: Add tests for problems uncovered during forth self-hosted tests --- tests/step4_if_fn_do.mal | 2 ++ tests/step9_try.mal | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/tests/step4_if_fn_do.mal b/tests/step4_if_fn_do.mal index 4adb4c8..34966f5 100644 --- a/tests/step4_if_fn_do.mal +++ b/tests/step4_if_fn_do.mal @@ -43,6 +43,8 @@ ;=>7 (if (list 1 2 3) 7 8) ;=>7 +(= (list) nil) +;=>false ;; Testing 1-way if form diff --git a/tests/step9_try.mal b/tests/step9_try.mal index 0ac0bf2..c7483ba 100644 --- a/tests/step9_try.mal +++ b/tests/step9_try.mal @@ -21,6 +21,10 @@ ; "exc:" "my exception" ;=>7 +;;; Test that throw is a function: +(try* (map throw [7]) (catch* exc exc)) +;=>7 + ;; ;; Testing builtin functions -- cgit v1.2.3