summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/vars3.bth6
-rw-r--r--tests/vars3.out1
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/vars3.bth b/tests/vars3.bth
new file mode 100644
index 0000000..19e82fa
--- /dev/null
+++ b/tests/vars3.bth
@@ -0,0 +1,6 @@
+(do
+ (set x 1)
+ (set y 10)
+ (let (x 2)
+ (let (y 20)
+ (+ x y))))
diff --git a/tests/vars3.out b/tests/vars3.out
new file mode 100644
index 0000000..2bd5a0a
--- /dev/null
+++ b/tests/vars3.out
@@ -0,0 +1 @@
+22