diff options
| author | Mistivia <i@mistivia.com> | 2025-06-21 20:20:12 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-21 20:23:24 +0800 |
| commit | 1cf7adef90777698d1f17363a5f82c997d5f1c34 (patch) | |
| tree | ae10b7efd3dc3d20a4f798849b5edaf1a31cc47f /tests/logic.lisp | |
| parent | 249700617406474c5b60df2aa66a2a9951603e3c (diff) | |
fix tco bug
Diffstat (limited to 'tests/logic.lisp')
| -rw-r--r-- | tests/logic.lisp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/logic.lisp b/tests/logic.lisp new file mode 100644 index 0000000..5d086de --- /dev/null +++ b/tests/logic.lisp @@ -0,0 +1,27 @@ +(assert (and #t)) +(assert (and #t #t)) +(assert (and #t #t #t)) +(assert (not (and #t #f #t))) +(assert (not (and #f #t #t))) +(assert (not (and #f #t #t))) +(assert (not (or #f))) +(assert (not (or #f #f))) +(assert (not (or #f #f #f))) +(assert (or #t #f #f)) +(assert (or #f #t #f)) +(assert (or #t #t #f)) + +(let ((t #f)) + (or #t + (setq t #t)) + (assert (not t))) + +(let ((t #f)) + (and #t + (setq t #t)) + (assert t)) + +(let ((t #t)) + (and (setq t #f) + (setq t #t)) + (assert (not t))) |
