diff options
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 | 6 | ||||
| -rw-r--r-- | pit/test/test7.pit | 1 | ||||
| -rw-r--r-- | pit/test/test8.pit | 2 |
5 files changed, 20 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..cb04f22 --- /dev/null +++ b/pit/test/test6.pit @@ -0,0 +1,6 @@ +(print! + ((case 'baz + (foo (lambda (x) (+ x 1))) + (bar (lambda (x) (+ x 2)))) + 3)) +
\ 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 diff --git a/pit/test/test8.pit b/pit/test/test8.pit new file mode 100644 index 0000000..3b41d7a --- /dev/null +++ b/pit/test/test8.pit @@ -0,0 +1,2 @@ +(defun! foo (x) (+ x 1)) +(foo 2)
\ No newline at end of file |
