aboutsummaryrefslogtreecommitdiff
path: root/tests/step9_try.mal
diff options
context:
space:
mode:
authorChouser <chouser@n01se.net>2015-02-19 18:37:21 -0500
committerChouser <chouser@n01se.net>2015-02-21 13:16:40 -0500
commitdb11c7402768391a803cf83a4c55cac5e8202eb4 (patch)
treeb9a87ba85eb46fef75a791d45507a9facf1e88ae /tests/step9_try.mal
parentf6a4ddf758e610ce65b7506edb51a4335b142327 (diff)
downloadmal-db11c7402768391a803cf83a4c55cac5e8202eb4.tar.gz
mal-db11c7402768391a803cf83a4c55cac5e8202eb4.zip
Add tests for problems uncovered during forth self-hosted tests
Diffstat (limited to 'tests/step9_try.mal')
-rw-r--r--tests/step9_try.mal4
1 files changed, 4 insertions, 0 deletions
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