TestTailCallRecursive tests for failures where both the callee and caller are making a tailcall.
(t *testing.T)
| 168 | |
| 169 | // TestTailCallRecursive tests for failures where both the callee and caller are making a tailcall. |
| 170 | func TestTailCallRecursive(t *testing.T) { |
| 171 | s := `function tailcall(n, m) |
| 172 | if n > m then return n end |
| 173 | return tailcall(n + 1, m) |
| 174 | end |
| 175 | return tailcall(0, 5)` |
| 176 | testNoPanicString(t, s) |
| 177 | } |
| 178 | |
| 179 | // TestTailCallRecursiveDiffFn tests for failures where only the caller is making a tailcall. |
| 180 | func TestTailCallRecursiveDiffFn(t *testing.T) { |
nothing calls this directly
no test coverage detected