diff options
| author | LLLL Colonq <llll@colonq> | 2026-09-01 06:26:13 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-09-01 06:26:13 -0400 |
| commit | ff7407c146b8129c2f1cc7ebe3b5771ad2f5dfdd (patch) | |
| tree | bc70d9773ebc0deb25773d3b5c86ec7ea96eef6d /pit/test | |
| parent | 6ebac820c84b218a45368eeaf1c853ff9c9d638f (diff) | |
pit: Fix evaluator
Diffstat (limited to 'pit/test')
| -rw-r--r-- | pit/test/test4.pit | 11 | ||||
| -rw-r--r-- | pit/test/test5.pit | 5 | ||||
| -rw-r--r-- | pit/test/test6.pit | 5 | ||||
| -rw-r--r-- | pit/test/test7.pit | 1 |
4 files changed, 17 insertions, 5 deletions
diff --git a/pit/test/test4.pit b/pit/test/test4.pit index 321a988..ef8e04c 100644 --- a/pit/test/test4.pit +++ b/pit/test/test4.pit @@ -1,5 +1,6 @@ -(or - (case 'foo - ('foo 1) - ('bar 2)) - 3)
\ No newline at end of file +(print! + (or + (case 'baz + (foo 1) + (bar 2)) + 3))
\ No newline at end of file diff --git a/pit/test/test5.pit b/pit/test/test5.pit new file mode 100644 index 0000000..3ea3fc7 --- /dev/null +++ b/pit/test/test5.pit @@ -0,0 +1,5 @@ +(defun! foo (x) + (print! x) + (foo (+ x 1))) + +(foo 0)
\ No newline at end of file diff --git a/pit/test/test6.pit b/pit/test/test6.pit new file mode 100644 index 0000000..93e5860 --- /dev/null +++ b/pit/test/test6.pit @@ -0,0 +1,5 @@ +(print! + (case 'bar + (foo 1) + (bar 2))) +
\ No newline at end of file diff --git a/pit/test/test7.pit b/pit/test/test7.pit new file mode 100644 index 0000000..48d2c2c --- /dev/null +++ b/pit/test/test7.pit @@ -0,0 +1 @@ +(print! (list/map (lambda (x) (+ x 1)) '(1 2 3)))
\ No newline at end of file |
