From 2b59097c3f61fa901e91ac4cea48940760439578 Mon Sep 17 00:00:00 2001 From: Petr Štetiar Date: Fri, 19 Mar 2021 16:54:55 +0100 Subject: tests: create custom tests from current tests cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Štetiar --- tests/02_runtime/06_recursion | 59 ------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 tests/02_runtime/06_recursion (limited to 'tests/02_runtime/06_recursion') diff --git a/tests/02_runtime/06_recursion b/tests/02_runtime/06_recursion deleted file mode 100644 index 470fc3a..0000000 --- a/tests/02_runtime/06_recursion +++ /dev/null @@ -1,59 +0,0 @@ -Testing recursive invocations. - - -1. Testing recursive invocation. - --- Expect stdout -- -1 -2 -4 -8 -16 -32 -64 -128 -256 -512 -1024 -2048 -4096 -8192 -16384 --- End -- - --- Testcase -- -{% - function test(x) { - print(x, "\n"); - - if (x < 10000) - test(x * 2); - } - - test(1); -%} --- End -- - - -2. Testing infinite recursion. - --- Expect stderr -- -Runtime error: Too much recursion -In test(), line 3, byte 8: - called from anonymous function ([stdin]:6:7) - - ` test();` - Near here ---^ - - --- End -- - --- Testcase -- -{% - function test() { - test(); - } - - test(); -%} --- End -- -- cgit v1.2.3