diff options
author | ubq323 <ubq323@ubq323.website> | 2024-08-17 19:11:17 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-08-17 19:11:17 +0100 |
commit | f0f04d875ec1db53371331774c0db9a11b072f19 (patch) | |
tree | 5f9d78f1f04eb585ebadb158a84f2a8dfc032320 /tests | |
parent | 9b75f546b3a171a4e5afc7ed9d4969f73113c2c9 (diff) |
clos5 test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clos5.bth | 8 | ||||
-rw-r--r-- | tests/clos5.out | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/clos5.bth b/tests/clos5.bth new file mode 100644 index 0000000..f4202b9 --- /dev/null +++ b/tests/clos5.bth @@ -0,0 +1,8 @@ +(defn (f) + (def x 0) + (defn (i) x) + (set! x 100) + i) + +(say ((f))) + diff --git a/tests/clos5.out b/tests/clos5.out new file mode 100644 index 0000000..29d6383 --- /dev/null +++ b/tests/clos5.out @@ -0,0 +1 @@ +100 |