aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-29 00:19:00 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-29 00:19:00 +0200
commit89470d9fcb62851d626e55aff084bfdb48cfae52 (patch)
treecc4f22a3060fcb76d02ebe95ba2b8be68534e61b /tests
parent1ba592ce64eed9c941bebb0ec014e7c71c3b4708 (diff)
downloadfengari-89470d9fcb62851d626e55aff084bfdb48cfae52.tar.gz
fengari-89470d9fcb62851d626e55aff084bfdb48cfae52.tar.bz2
fengari-89470d9fcb62851d626e55aff084bfdb48cfae52.zip
[test-suite] code.js passes
Diffstat (limited to 'tests')
-rw-r--r--tests/test-suite/code.js (renamed from tests/test-suite/inprogress/code.js)10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-suite/inprogress/code.js b/tests/test-suite/code.js
index e7ff501..4438cd2 100644
--- a/tests/test-suite/inprogress/code.js
+++ b/tests/test-suite/code.js
@@ -4,11 +4,11 @@ const test = require('tape');
global.WEB = false;
-const lua = require('../../../src/lua.js');
-const lauxlib = require('../../../src/lauxlib.js');
-const lualib = require('../../../src/lualib.js');
+const lua = require('../../src/lua.js');
+const lauxlib = require('../../src/lauxlib.js');
+const lualib = require('../../src/lualib.js');
-const ltests = require('../ltests.js');
+const ltests = require('./ltests.js');
test("[test-suite] code: testing reuse in constant table", function (t) {
@@ -476,7 +476,7 @@ test("[test-suite] code: x == nil , x ~= nil", function (t) {
function () if (a==9) then a=1 end; if a~=9 then a=1 end end)
check(function () if a==nil then a='a' end end,
- 'GETTABUP', 'EQ', 'JMP', 'SETTABUP', 'RETURN')
+ 'GETTABUP', 'EQ', 'JMP', 'SETTABUP', 'RETURN')
checkequal(function () local a; if not (a or b) then b=a end end,
function () local a; if (not a and not b) then b=a end end)