(t *testing.T)
| 210 | } |
| 211 | |
| 212 | func TestCanRemoveNilObjectFromStack(t *testing.T) { |
| 213 | defer func() { |
| 214 | if r := recover(); r != nil { |
| 215 | t.Fatalf("failed to remove `nil`, %v", r) |
| 216 | } |
| 217 | }() |
| 218 | |
| 219 | l := NewState() |
| 220 | l.PushString("hello") |
| 221 | l.Remove(-1) |
| 222 | l.PushNil() |
| 223 | l.Remove(-1) |
| 224 | } |
| 225 | |
| 226 | func TestTableUserdataEquality(t *testing.T) { |
| 227 | const s = `return function(x) |
nothing calls this directly
no test coverage detected