summaryrefslogtreecommitdiff
path: root/tests/whilelet.bth
diff options
context:
space:
mode:
Diffstat (limited to 'tests/whilelet.bth')
-rw-r--r--tests/whilelet.bth11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/whilelet.bth b/tests/whilelet.bth
new file mode 100644
index 0000000..ce8a482
--- /dev/null
+++ b/tests/whilelet.bth
@@ -0,0 +1,11 @@
+(do
+ (let (i 0
+ a [])
+ (while (< i 10)
+ (append a i)
+ (set i (+ i 1)))
+ (let (x 100
+ y 200
+ z 300)
+ (say y))
+ (say a)))