(t *testing.T)
| 174 | } |
| 175 | |
| 176 | func TestToInt64(t *testing.T) { |
| 177 | L := NewState() |
| 178 | defer L.Close() |
| 179 | L.Push(LNumber(10)) |
| 180 | L.Push(LString("99.9")) |
| 181 | L.Push(L.NewTable()) |
| 182 | errorIfNotEqual(t, int64(10), L.ToInt64(1)) |
| 183 | errorIfNotEqual(t, int64(99), L.ToInt64(2)) |
| 184 | errorIfNotEqual(t, int64(0), L.ToInt64(3)) |
| 185 | } |
| 186 | |
| 187 | func TestToNumber(t *testing.T) { |
| 188 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…