summaryrefslogtreecommitdiffhomepage
path: root/tests/02_runtime/06_recursion
diff options
context:
space:
mode:
Diffstat (limited to 'tests/02_runtime/06_recursion')
-rw-r--r--tests/02_runtime/06_recursion25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/02_runtime/06_recursion b/tests/02_runtime/06_recursion
index e707c86..028feba 100644
--- a/tests/02_runtime/06_recursion
+++ b/tests/02_runtime/06_recursion
@@ -33,3 +33,28 @@ Testing recursive invocations.
test(1);
%}
-- End --
+
+
+2. Testing infinite recursion.
+
+-- Expect stderr --
+Runtime error: Too much recursion
+In test(), line 3, byte 7:
+ at function test ([stdin]:3:7)
+ at main function ([stdin]:6:6)
+
+ ` test();`
+ Near here --^
+
+
+-- End --
+
+-- Testcase --
+{%
+ function test() {
+ test();
+ }
+
+ test();
+%}
+-- End --