diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-01-08 00:18:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-01-08 00:19:38 +0900 |
| commit | 41d24c967eb5fce3f811fc567f60204c77dada15 (patch) | |
| tree | 3290da5a5f8d04f9745cbd7809a8b31abeb84fba /tests/recursive_functions.sh | |
| parent | 1082a32431dcd8f58432a6ce610d35cf37c553ad (diff) | |
| download | ducc-41d24c967eb5fce3f811fc567f60204c77dada15.tar.gz ducc-41d24c967eb5fce3f811fc567f60204c77dada15.tar.zst ducc-41d24c967eb5fce3f811fc567f60204c77dada15.zip | |
refactor: rewrite some tests in C
Diffstat (limited to 'tests/recursive_functions.sh')
| -rw-r--r-- | tests/recursive_functions.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/recursive_functions.sh b/tests/recursive_functions.sh deleted file mode 100644 index 709cfbe..0000000 --- a/tests/recursive_functions.sh +++ /dev/null @@ -1,15 +0,0 @@ -test_exit_code 0 <<'EOF' -#include "../../helpers.h" - -int fib(int n) { - if (n <= 1) { - return 1; - } else { - return fib(n - 1) + fib(n - 2); - } -} - -int main() { - ASSERT_EQ(89, fib(10)); -} -EOF |
