summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/for2.bth3
-rw-r--r--tests/for2.out4
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/for2.bth b/tests/for2.bth
new file mode 100644
index 0000000..66c490f
--- /dev/null
+++ b/tests/for2.bth
@@ -0,0 +1,3 @@
+(let (a [6 7 8 9])
+ (for (i (len a))
+ (say (+ (a i) (* i 10)))))
diff --git a/tests/for2.out b/tests/for2.out
new file mode 100644
index 0000000..8bd19c3
--- /dev/null
+++ b/tests/for2.out
@@ -0,0 +1,4 @@
+6
+17
+28
+39