This commit is contained in:
William Bell
2025-11-20 23:54:54 +00:00
3 changed files with 13 additions and 3 deletions

10
tests/factorial.ar Normal file
View File

@@ -0,0 +1,10 @@
let factorial(x) = do
let n = x-1
if (n) return x*factorial(n)
return 1
let loop = 501
let x = 500
while (x) do
factorial(loop-x)
x=x-1

View File

@@ -1,3 +0,0 @@
i = 1000000
while i:
i=i-1

3
tests/iteration.ar Normal file
View File

@@ -0,0 +1,3 @@
let i = 1e7
while (i) do
i=i-1