summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 11:50:21 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 11:50:21 +0100
commit22f530cf7cbde11cce5c32f304b7de027a43afcf (patch)
tree8697d8e2ae7e148a929824fa235468844be61030
parenta14bf1188c4cee23db44a590ada52aa8778a2a3f (diff)
vars4 test
-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