(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestVarArgMeta(t *testing.T) { |
| 204 | s := `function f(t, ...) return t, {...} end |
| 205 | local a = setmetatable({}, {__call = f}) |
| 206 | local x, y = a(table.unpack{"a", 1}) |
| 207 | assert(#x == 0) |
| 208 | assert(#y == 2 and y[1] == "a" and y[2] == 1)` |
| 209 | testString(t, s) |
| 210 | } |
| 211 | |
| 212 | func TestCanRemoveNilObjectFromStack(t *testing.T) { |
| 213 | defer func() { |
nothing calls this directly
no test coverage detected