summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-08-30 08:08:27 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-08-30 08:08:27 -0700
commitee2ed19740ba6d8b5e61427a33f11c98584a5120 (patch)
tree2d09249dfacab2321407813277536144ce7a474a
parent5fb7962b3b54cbd140104b254c6c2e3019fb9d8d (diff)
downloadtxr-ee2ed19740ba6d8b5e61427a33f11c98584a5120.tar.gz
txr-ee2ed19740ba6d8b5e61427a33f11c98584a5120.tar.bz2
txr-ee2ed19740ba6d8b5e61427a33f11c98584a5120.zip
txr: test for new @(next) behaviors.
* tests/018/noclose.txr: New file. * tests/018.noclose.expected: New file.
-rw-r--r--tests/018/noclose.expected1
-rw-r--r--tests/018/noclose.txr16
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/018/noclose.expected b/tests/018/noclose.expected
new file mode 100644
index 00000000..cad99e12
--- /dev/null
+++ b/tests/018/noclose.expected
@@ -0,0 +1 @@
+caught
diff --git a/tests/018/noclose.txr b/tests/018/noclose.txr
new file mode 100644
index 00000000..cf39b702
--- /dev/null
+++ b/tests/018/noclose.txr
@@ -0,0 +1,16 @@
+@(next :list [mapcar tostring (range 1 20000)])
+@(collect)
+@num
+@(next self-path)
+@line
+@(end)
+@(try)
+@(next :list [mapcar tostring (range 1 20000)])
+@(collect)
+@num
+@(next "data")
+@line
+@(end)
+@(catch)
+@(do (put-line "caught"))
+@(end)