summaryrefslogtreecommitdiff
path: root/tests/lexparse.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-02 16:37:50 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-03 12:20:43 +1000
commitcb0295e52870f22c5dd1a1726342b8d4b147b1c5 (patch)
tree3655d4d6f4873ed246c00c0eb6680a06124f3046 /tests/lexparse.js
parent50820e54d065bffbb504e6b20b6c27802e102c25 (diff)
downloadfengari-cb0295e52870f22c5dd1a1726342b8d4b147b1c5.tar.gz
fengari-cb0295e52870f22c5dd1a1726342b8d4b147b1c5.tar.bz2
fengari-cb0295e52870f22c5dd1a1726342b8d4b147b1c5.zip
Refactor table implementation
Diffstat (limited to 'tests/lexparse.js')
-rw-r--r--tests/lexparse.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lexparse.js b/tests/lexparse.js
index 6c66df2..89ccc1f 100644
--- a/tests/lexparse.js
+++ b/tests/lexparse.js
@@ -740,13 +740,13 @@ test('SETTABLE, GETTABLE', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- lua.lua_topointer(L, -1).get(1).jsstring(),
+ lua.lua_topointer(L, -1).strong.get(1).value.jsstring(),
"hello",
"Program output is correct"
);
t.strictEqual(
- lua.lua_topointer(L, -1).get('116|119|111|').jsstring(),
+ lua.lua_topointer(L, -1).strong.get('116|119|111|').value.jsstring(),
"world",
"Program output is correct"
);
@@ -833,13 +833,13 @@ test('SETTABUP, GETTABUP', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- lua.lua_topointer(L, -1).get(1).jsstring(),
+ lua.lua_topointer(L, -1).strong.get(1).value.jsstring(),
"hello",
"Program output is correct"
);
t.strictEqual(
- lua.lua_topointer(L, -1).get('116|119|111|').jsstring(),
+ lua.lua_topointer(L, -1).strong.get('116|119|111|').value.jsstring(),
"world",
"Program output is correct"
);
@@ -922,7 +922,7 @@ test('SETLIST', function (t) {
}, "Lua program ran without error");
t.deepEqual(
- [...lua.lua_topointer(L, -1).entries()].map(e => e[1].value).sort(),
+ [...lua.lua_topointer(L, -1).strong.entries()].map(e => e[1].value.value).sort(),
[1, 2, 3, 4, 5, 6, 7, 8, 9],
"Program output is correct"
);
@@ -965,7 +965,7 @@ test('Variable SETLIST', function (t) {
}, "Lua program ran without error");
t.deepEqual(
- [...lua.lua_topointer(L, -1).entries()].map(e => e[1].value).sort(),
+ [...lua.lua_topointer(L, -1).strong.entries()].map(e => e[1].value.value).sort(),
[1, 2, 3, 4, 5, 6, 7, 8, 9],
"Program output is correct"
);
@@ -1003,7 +1003,7 @@ test('Long SETLIST', function (t) {
}, "Lua program ran without error");
t.deepEqual(
- [...lua.lua_topointer(L, -1).entries()].map(e => e[1].value).reverse(),
+ [...lua.lua_topointer(L, -1).strong.entries()].map(e => e[1].value.value).reverse(),
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5],
"Program output is correct"
);