(t *testing.T)
| 163 | } |
| 164 | |
| 165 | func TestToInt(t *testing.T) { |
| 166 | L := NewState() |
| 167 | defer L.Close() |
| 168 | L.Push(LNumber(10)) |
| 169 | L.Push(LString("99.9")) |
| 170 | L.Push(L.NewTable()) |
| 171 | errorIfNotEqual(t, 10, L.ToInt(1)) |
| 172 | errorIfNotEqual(t, 99, L.ToInt(2)) |
| 173 | errorIfNotEqual(t, 0, L.ToInt(3)) |
| 174 | } |
| 175 | |
| 176 | func TestToInt64(t *testing.T) { |
| 177 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…