From 8b579e03477a81df35d455bac03737e8d5903fcc Mon Sep 17 00:00:00 2001 From: Empa Date: Sat, 6 Jan 2024 20:03:16 +0100 Subject: [PATCH] Test edge cases for fibonacci --- crates/saft-tests/res/tests/fib_loop.saf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/saft-tests/res/tests/fib_loop.saf b/crates/saft-tests/res/tests/fib_loop.saf index 2a0119a..e2b1f1f 100644 --- a/crates/saft-tests/res/tests/fib_loop.saf +++ b/crates/saft-tests/res/tests/fib_loop.saf @@ -17,7 +17,11 @@ fn fib(n) { } } +print(fib(0)); +print(fib(1)); print(fib(20)); # output: +# 0 +# 1 # 6765