(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestCheckInt64(t *testing.T) { |
| 21 | L := NewState() |
| 22 | defer L.Close() |
| 23 | errorIfGFuncNotFail(t, L, func(L *LState) int { |
| 24 | L.Push(LNumber(10)) |
| 25 | errorIfNotEqual(t, int64(10), L.CheckInt64(2)) |
| 26 | L.Push(LString("aaa")) |
| 27 | L.CheckInt64(3) |
| 28 | return 0 |
| 29 | }, "number expected, got string") |
| 30 | } |
| 31 | |
| 32 | func TestCheckNumber(t *testing.T) { |
| 33 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…