feat: add new tests

This commit is contained in:
samsonium
2026-10-21 04:00:03 +03:00
parent 80f07dc7c6
commit e49ebba346
13 changed files with 145 additions and 99 deletions
+21
View File
@@ -0,0 +1,21 @@
fn fib(int n) int
{
if (n <= 1)
return n;
return fib(n - 1) + fib(n - 2);
}
fn sum(uint a, uint b) uint
{
return a + b;
}
if (fib(7) == 13 && sum(2, 2) == 4)
printline("functions passed");
else
{
printline("functions failed");
exit(1);
}