From f0f04d875ec1db53371331774c0db9a11b072f19 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 17 Aug 2024 19:11:17 +0100 Subject: clos5 test --- tests/clos5.bth | 8 ++++++++ tests/clos5.out | 1 + 2 files changed, 9 insertions(+) create mode 100644 tests/clos5.bth create mode 100644 tests/clos5.out 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 -- cgit v1.2.3