summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/vars4.bth8
-rw-r--r--tests/vars4.out4
2 files changed, 12 insertions, 0 deletions
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