diff options
Diffstat (limited to 'progs/tests/auto/factorial.sy')
| -rw-r--r-- | progs/tests/auto/factorial.sy | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/progs/tests/auto/factorial.sy b/progs/tests/auto/factorial.sy deleted file mode 100644 index 770bc33..0000000 --- a/progs/tests/auto/factorial.sy +++ /dev/null @@ -1,12 +0,0 @@ -factorial :: fn n: int -> int { - if n <= 1 { - ret 1 - } - ret n * factorial(n - 1) -} - -start :: fn { - factorial(5) <=> 120 - factorial(6) <=> 720 - factorial(12) <=> 479001600 -} |
