(t *testing.T)
| 477 | } |
| 478 | |
| 479 | func TestXTuck(t *testing.T) { |
| 480 | checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 0}, []Value{3, 2, 1, 0, 0}) |
| 481 | checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 1}, []Value{3, 2, 1, 0, 0}) |
| 482 | checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 2}, []Value{3, 2, 0, 1, 0}) |
| 483 | checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 3}, []Value{3, 0, 2, 1, 0}) |
| 484 | checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 4}, []Value{0, 3, 2, 1, 0}) |
| 485 | } |
| 486 | |
| 487 | func TestThrow(t *testing.T) { |
| 488 | checkStackOpCode(t, THROW, []Value{}, []Value{}) |
nothing calls this directly
no test coverage detected