summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-20 21:11:05 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-20 21:11:05 -0800
commitc399836c51bf8a284c9dda642aceb12fc8351496 (patch)
tree98f91507ed48cc5781eddd159dfd002d7f206ac6 /tests
parentb375fdbbbb9c18cc0da0ce9c15d9985e89a50d8f (diff)
downloadtxr-c399836c51bf8a284c9dda642aceb12fc8351496.tar.gz
txr-c399836c51bf8a284c9dda642aceb12fc8351496.tar.bz2
txr-c399836c51bf8a284c9dda642aceb12fc8351496.zip
Test case for bug #35137
* tests/007/except-2.expected: New file. * tests/007/except-2.txr: New file.
Diffstat (limited to 'tests')
-rw-r--r--tests/007/except-2.expected3
-rw-r--r--tests/007/except-2.txr19
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/007/except-2.expected b/tests/007/except-2.expected
new file mode 100644
index 00000000..08377edd
--- /dev/null
+++ b/tests/007/except-2.expected
@@ -0,0 +1,3 @@
+caught a
+cleanup
+caught b
diff --git a/tests/007/except-2.txr b/tests/007/except-2.txr
new file mode 100644
index 00000000..b18f6c1c
--- /dev/null
+++ b/tests/007/except-2.txr
@@ -0,0 +1,19 @@
+@(try)
+@(try)
+@(bind a "b")
+@(throw e "a")
+@(catch e (x))
+@(output)
+caught @x
+@(end)
+@(throw e "b")
+@(finally)
+@(output)
+cleanup
+@(end)
+@(end)
+@(catch e (x))
+@(output)
+caught @x
+@(end)
+@(end)