aboutsummaryrefslogtreecommitdiff
path: root/tests/error.lisp
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-06-21 20:20:12 +0800
committerMistivia <i@mistivia.com>2025-06-21 20:23:24 +0800
commit1cf7adef90777698d1f17363a5f82c997d5f1c34 (patch)
treeae10b7efd3dc3d20a4f798849b5edaf1a31cc47f /tests/error.lisp
parent249700617406474c5b60df2aa66a2a9951603e3c (diff)
fix tco bug
Diffstat (limited to 'tests/error.lisp')
-rw-r--r--tests/error.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/error.lisp b/tests/error.lisp
new file mode 100644
index 0000000..e0e0c4a
--- /dev/null
+++ b/tests/error.lisp
@@ -0,0 +1,10 @@
+(assert-error (error ""))
+(assert-error (let () (error "") #t))
+(assert-error (if (error "") #t #t))
+(assert-error (and (error "")))
+(assert-error (or (error "")))
+(assert-error (funcall (lambda () (error ""))))
+(assert-error (while #t (error "")))
+(assert-error (cond (#t (error ""))))
+(assert-error (cond ((error "") #t)))
+