summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-07-01 20:49:14 +0100
committerubq323 <ubq323@ubq323.website>2024-07-01 21:17:44 +0100
commit629416ffb6e30836f4de4a0f2401ccd66b4ce4a6 (patch)
treecf7c27e0322338abd3291f3a7ac8d2a0e2bbba54 /tests
parent4571c3cb409808942ecbe353b1ffa6794cabc557 (diff)
add numeric for form
Diffstat (limited to 'tests')
-rw-r--r--tests/for.bth2
-rw-r--r--tests/for.out10
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/for.bth b/tests/for.bth
new file mode 100644
index 0000000..4d5f5b1
--- /dev/null
+++ b/tests/for.bth
@@ -0,0 +1,2 @@
+(for (x 10)
+ (say (* x x)))
diff --git a/tests/for.out b/tests/for.out
new file mode 100644
index 0000000..9b81ce7
--- /dev/null
+++ b/tests/for.out
@@ -0,0 +1,10 @@
+0
+1
+4
+9
+16
+25
+36
+49
+64
+81