diff options
Diffstat (limited to 'tests/test_recursive_functions.sh')
| -rw-r--r-- | tests/test_recursive_functions.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_recursive_functions.sh b/tests/test_recursive_functions.sh index f9f0ee5..709cfbe 100644 --- a/tests/test_recursive_functions.sh +++ b/tests/test_recursive_functions.sh @@ -1,4 +1,6 @@ -test_exit_code 89 <<'EOF' +test_exit_code 0 <<'EOF' +#include "../../helpers.h" + int fib(int n) { if (n <= 1) { return 1; @@ -8,7 +10,6 @@ int fib(int n) { } int main() { - return fib(10); + ASSERT_EQ(89, fib(10)); } EOF - |
