summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-11 15:37:05 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-11 15:37:10 +1000
commit63b6b09a6cbab4446f42b5b7a8c85e6109cac9f6 (patch)
tree3c4b092284d583fd6d59bc96045f1c19a987fc08 /tests
parentfb1de39c6b9a5812e229aa8ad4f87e594f8ea179 (diff)
downloadfengari-63b6b09a6cbab4446f42b5b7a8c85e6109cac9f6.tar.gz
fengari-63b6b09a6cbab4446f42b5b7a8c85e6109cac9f6.tar.bz2
fengari-63b6b09a6cbab4446f42b5b7a8c85e6109cac9f6.zip
src/lvm.js: Setting nil should delete from table
Closes #37
Diffstat (limited to 'tests')
-rw-r--r--tests/ltablib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ltablib.js b/tests/ltablib.js
index 8789f9e..e209db3 100644
--- a/tests/ltablib.js
+++ b/tests/ltablib.js
@@ -184,7 +184,7 @@ test('table.remove', function (t) {
[...lua.lua_topointer(L, -1).strong.entries()]
.filter(e => typeof e[0] === 'number')
.map(e => e[1].value.value).sort(),
- [1, 2, 3, 4, null, null],
+ [1, 2, 3, 4],
"Correct element(s) on the stack"
);
});