(t *testing.T)
| 119 | } |
| 120 | |
| 121 | func TestTableRemove(t *testing.T) { |
| 122 | tbl := newLTable(0, 0) |
| 123 | errorIfNotEqual(t, LNil, tbl.Remove(10)) |
| 124 | tbl.Append(LTrue) |
| 125 | errorIfNotEqual(t, LNil, tbl.Remove(10)) |
| 126 | |
| 127 | tbl.Append(LFalse) |
| 128 | tbl.Append(LTrue) |
| 129 | errorIfNotEqual(t, LFalse, tbl.Remove(2)) |
| 130 | errorIfNotEqual(t, 2, tbl.MaxN()) |
| 131 | tbl.Append(LFalse) |
| 132 | errorIfNotEqual(t, LFalse, tbl.Remove(-1)) |
| 133 | errorIfNotEqual(t, 2, tbl.MaxN()) |
| 134 | |
| 135 | } |
| 136 | |
| 137 | func TestTableRawSetInt(t *testing.T) { |
| 138 | tbl := newLTable(0, 0) |
nothing calls this directly
no test coverage detected
searching dependent graphs…