change the tests

This commit is contained in:
2025-11-12 11:29:48 +00:00
parent 0a2aa7369f
commit 94b86fc416
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