Commit eca75a5
committed
tests/lapi: fix debug_torture_test
Since commit 8e35f0c ("cmake: bump luzer version")
`fdp:oneof()` in luzer API returns two values: a table's item and
it's index. This breaks test `debug_torture_test.lua` with
a message below
> bad argument #2 to 'insert' (number expected, got string)
because `fdp:one()` passed to `table.insert()` makes a call with
three arguments: table, hook mask ("string") and index ("number"),
while `table.insert()` with three arguments expects table, `pos`
("number"), and a value (any type).
Follows up #1441 parent 59b87f6 commit eca75a5
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
0 commit comments