diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-29 00:19:00 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-29 00:19:00 +0200 |
commit | 89470d9fcb62851d626e55aff084bfdb48cfae52 (patch) | |
tree | cc4f22a3060fcb76d02ebe95ba2b8be68534e61b | |
parent | 1ba592ce64eed9c941bebb0ec014e7c71c3b4708 (diff) | |
download | fengari-89470d9fcb62851d626e55aff084bfdb48cfae52.tar.gz fengari-89470d9fcb62851d626e55aff084bfdb48cfae52.tar.bz2 fengari-89470d9fcb62851d626e55aff084bfdb48cfae52.zip |
[test-suite] code.js passes
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | tests/test-suite/code.js (renamed from tests/test-suite/inprogress/code.js) | 10 |
2 files changed, 6 insertions, 6 deletions
@@ -57,6 +57,7 @@ - [x] `bitwise.lua` (16/16) - [x] `calls.lua` (32/32) - [x] `closure.lua` (16/16) + - [x] `code.lua` (28/28) - [x] `constructs.lua` (`_soft`) (10/10) - [x] `coroutine.lua` (70/70) - [x] `errors.lua` (64/64) @@ -74,7 +75,6 @@ - [ ] `utf8.lua` (14/20) - [ ] `attrib.lua` - [ ] `big.lua` - - [ ] `code.lua` - [ ] `db.lua` - [ ] `verybig.lua` - [ ] DOM API binding: [https://github.com/fengari-lua/fengari-interop](https://github.com/fengari-lua/fengari-interop) 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) |