(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestCheckInt(t *testing.T) { |
| 9 | L := NewState() |
| 10 | defer L.Close() |
| 11 | errorIfGFuncNotFail(t, L, func(L *LState) int { |
| 12 | L.Push(LNumber(10)) |
| 13 | errorIfNotEqual(t, 10, L.CheckInt(2)) |
| 14 | L.Push(LString("aaa")) |
| 15 | L.CheckInt(3) |
| 16 | return 0 |
| 17 | }, "number expected, got string") |
| 18 | } |
| 19 | |
| 20 | func TestCheckInt64(t *testing.T) { |
| 21 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…