summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-07-01 21:32:33 +0100
committerubq323 <ubq323@ubq323.website>2024-07-01 21:32:33 +0100
commit6e8123763241efcb259f68d6e0e6d3ffcbc32795 (patch)
tree5ff973d5bf25fd86e7163c121d4275d256867276 /tests
parent629416ffb6e30836f4de4a0f2401ccd66b4ce4a6 (diff)
add for2 test
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