(t *testing.T)
| 58 | } |
| 59 | |
| 60 | func TestCheckBool(t *testing.T) { |
| 61 | L := NewState() |
| 62 | defer L.Close() |
| 63 | errorIfGFuncNotFail(t, L, func(L *LState) int { |
| 64 | L.Push(LTrue) |
| 65 | errorIfNotEqual(t, true, L.CheckBool(2)) |
| 66 | L.Push(LNumber(10)) |
| 67 | L.CheckBool(3) |
| 68 | return 0 |
| 69 | }, "boolean expected, got number") |
| 70 | } |
| 71 | |
| 72 | func TestCheckTable(t *testing.T) { |
| 73 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…