TestTailCallSameFn tests for failures where only the callee is making a tailcall.
(t *testing.T)
| 185 | |
| 186 | // TestTailCallSameFn tests for failures where only the callee is making a tailcall. |
| 187 | func TestTailCallSameFn(t *testing.T) { |
| 188 | s := `function tailcall(n, m) |
| 189 | if n > m then return n end |
| 190 | return tailcall(n + 1, m) |
| 191 | end |
| 192 | return (tailcall(0, 5))` |
| 193 | testNoPanicString(t, s) |
| 194 | } |
| 195 | |
| 196 | // TestNoTailCall tests for failures when neither callee nor caller make a tailcall. |
| 197 | func TestNormalCall(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…