summaryrefslogtreecommitdiff
path: root/tests/lexparse.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-03-12 16:48:53 +0100
committerBenoit Giannangeli <giann@users.noreply.github.com>2017-03-13 11:03:24 +0100
commit2a6993bf0e23e2a3759abb9d7127525577dc346c (patch)
tree2b605f78ee91ca242770c1573d1c2138677fd66b /tests/lexparse.js
parent4c404c404c281f1872f0283acbaee97657f3e08b (diff)
downloadfengari-2a6993bf0e23e2a3759abb9d7127525577dc346c.tar.gz
fengari-2a6993bf0e23e2a3759abb9d7127525577dc346c.tar.bz2
fengari-2a6993bf0e23e2a3759abb9d7127525577dc346c.zip
Testing 8-bit strings
Diffstat (limited to 'tests/lexparse.js')
-rw-r--r--tests/lexparse.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lexparse.js b/tests/lexparse.js
index cd80e43..704f875 100644
--- a/tests/lexparse.js
+++ b/tests/lexparse.js
@@ -741,13 +741,13 @@ test('SETTABLE, GETTABLE', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- lapi.lua_topointer(L, -1).get(0).value,
+ lapi.lua_topointer(L, -1).get(0).jsstring(),
"hello",
"Program output is correct"
);
t.strictEqual(
- lapi.lua_topointer(L, -1).get("two").value,
+ lapi.lua_topointer(L, -1).get('116|119|111|').jsstring(),
"world",
"Program output is correct"
);
@@ -834,13 +834,13 @@ test('SETTABUP, GETTABUP', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- lapi.lua_topointer(L, -1).get(0).value,
+ lapi.lua_topointer(L, -1).get(0).jsstring(),
"hello",
"Program output is correct"
);
t.strictEqual(
- lapi.lua_topointer(L, -1).get("two").value,
+ lapi.lua_topointer(L, -1).get('116|119|111|').jsstring(),
"world",
"Program output is correct"
);
@@ -1149,7 +1149,7 @@ test('CONCAT', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- L.stack[L.top - 1].value,
+ lapi.lua_tostring(L, -1),
"hello 2 you",
"Program output is correct"
);