From 50d6472d56091d0fece3fb87837a3931215603e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 7 Mar 2021 17:47:31 +0100 Subject: move the tests --- progs/tests/auto/factorial.sy | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 progs/tests/auto/factorial.sy (limited to 'progs/tests/auto/factorial.sy') 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 -} -- cgit v1.2.1