summaryrefslogtreecommitdiff
path: root/tests/lvm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-13 07:17:05 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-13 08:57:25 +0200
commitd251efeb37778e2ab57a3d2c80b9df621a691796 (patch)
treefe6db792a0e9a018d10983a142724fda6e17071b /tests/lvm.js
parenta6dc1dbf5a439a854581927fb36fdad05d0dff4b (diff)
downloadfengari-d251efeb37778e2ab57a3d2c80b9df621a691796.tar.gz
fengari-d251efeb37778e2ab57a3d2c80b9df621a691796.tar.bz2
fengari-d251efeb37778e2ab57a3d2c80b9df621a691796.zip
Table indexes are also starting at 1 internally
Since we use a Map we don't have to care about indexes starting at 0
Diffstat (limited to 'tests/lvm.js')
-rw-r--r--tests/lvm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lvm.js b/tests/lvm.js
index bda4c4f..0f91d81 100644
--- a/tests/lvm.js
+++ b/tests/lvm.js
@@ -496,7 +496,7 @@ test('SETTABLE, GETTABLE', function (t) {
console.log(L.stack[L.top - 1]);
t.deepEqual(
- L.stack[L.top - 1].value.get(0).jsstring(),
+ L.stack[L.top - 1].value.get(1).jsstring(),
"hello",
"Program output is correct"
);
@@ -559,7 +559,7 @@ test('SETTABUP, GETTABUP', function (t) {
}, "Program executed without errors");
t.deepEqual(
- L.stack[L.top - 1].value.get(0).jsstring(),
+ L.stack[L.top - 1].value.get(1).jsstring(),
"hello", // "hello"
"Program output is correct"
);