From 22f530cf7cbde11cce5c32f304b7de027a43afcf Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 26 Jun 2024 11:50:21 +0100 Subject: vars4 test --- tests/vars4.bth | 8 ++++++++ tests/vars4.out | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 tests/vars4.bth create mode 100644 tests/vars4.out (limited to 'tests') diff --git a/tests/vars4.bth b/tests/vars4.bth new file mode 100644 index 0000000..20820e3 --- /dev/null +++ b/tests/vars4.bth @@ -0,0 +1,8 @@ +(do + (set x 100) + (puts x) + (let (x 20) + (puts x) + (set x 30) + (puts x)) + x) diff --git a/tests/vars4.out b/tests/vars4.out new file mode 100644 index 0000000..75fe049 --- /dev/null +++ b/tests/vars4.out @@ -0,0 +1,4 @@ +100 +20 +30 +100 -- cgit v1.2.3