diff options
| author | Joel Martin <github@martintribe.org> | 2014-11-03 20:32:46 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-09 16:16:44 -0600 |
| commit | 8128c69a1da03d3b8d62defb4533c3e3ae706682 (patch) | |
| tree | c005e9b22c1a851dbea727a127173011b94ec04a /tests/step9_try.mal | |
| parent | c30efef469e22c8ba345a72c058c28362e57b746 (diff) | |
| download | mal-8128c69a1da03d3b8d62defb4533c3e3ae706682.tar.gz mal-8128c69a1da03d3b8d62defb4533c3e3ae706682.zip | |
R: add step8_macros and step9_try.
Diffstat (limited to 'tests/step9_try.mal')
| -rw-r--r-- | tests/step9_try.mal | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/step9_try.mal b/tests/step9_try.mal index 3905274..f5bcb58 100644 --- a/tests/step9_try.mal +++ b/tests/step9_try.mal @@ -6,12 +6,12 @@ ;=>nil ;;;TODO: fix so long lines don't trigger ANSI escape codes ;;;(try* -;;;(try* (throw {"data" "foo"}) (catch* exc (do (prn "exc is:" exc) 7))) ;;;; -;;;; "exc is:" {"data" "foo"} ;;;;=>7 +;;;(try* (throw ["data" "foo"]) (catch* exc (do (prn "exc is:" exc) 7))) ;;;; +;;;; "exc is:" ["data" "foo"] ;;;;=>7 ;;;;=>7 -(try* (throw {"data" "foo"}) (catch* exc (do (prn "err:" exc) 7))) -; "err:" {"data" "foo"} +(try* (throw ["data" "foo"]) (catch* exc (do (prn "err:" exc) 7))) +; "err:" ["data" "foo"] ;=>7 (try* (throw "my exception") (catch* exc (do (prn "exc:" exc) 7))) |
