diff options
| author | Mistivia <i@mistivia.com> | 2025-06-23 20:29:57 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-23 20:29:57 +0800 |
| commit | 15821fd796d3f1e1b14bbb4aa32715aab4f49c56 (patch) | |
| tree | 996f215d25d5897c3b666df4fdb48d198072b1d2 /tests/tailcall-big.lisp | |
| parent | 69e9065635b1c20fe0f973bdebeb2745171bace1 (diff) | |
add string functions
Diffstat (limited to 'tests/tailcall-big.lisp')
| -rw-r--r-- | tests/tailcall-big.lisp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/tailcall-big.lisp b/tests/tailcall-big.lisp deleted file mode 100644 index ebf64c6..0000000 --- a/tests/tailcall-big.lisp +++ /dev/null @@ -1,24 +0,0 @@ -(assert (is-even 10000)) -(assert (cnt-down 10000)) - -;; can pass without stack overflow, -;; but comment out for too time-consuming -;; (assert (is-even 1000000)) -;; (assert (cnt-down 1000000)) - -(let ((my-evenp - (lambda (x) - (if (= x 0) - #t - (funcall my-oddp (- x 1))))) - (my-oddp - (lambda (x) - (if (= x 0) - #f - (funcall my-evenp (- x 1)))))) - (assert (funcall my-evenp 10000)) - (assert (funcall my-oddp 10009)) - (assert (not (funcall my-evenp 10009))) - (assert (not (funcall my-oddp 10000)))) - - |
