diff --git a/tests/27_boom.test b/tests/27_boom.test new file mode 100644 index 0000000..10a4ef9 --- /dev/null +++ b/tests/27_boom.test @@ -0,0 +1,17 @@ +void countdown (int n) { + if (n != 0) { + puti(n); + puts("\n"); + countdown(n - 1); + } + else { + puts("BOUM!\n"); + } +} + +int main () { + puts("Count from? "); + countdown(geti()); + + return 0; +}