summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md34
-rw-r--r--tests/test-suite/closure.js6
2 files changed, 21 insertions, 19 deletions
diff --git a/README.md b/README.md
index 565850f..5812774 100644
--- a/README.md
+++ b/README.md
@@ -53,29 +53,29 @@ IRC: #fengari on freenode
- [x] C API
- [x] Auxiliary library
- [ ] Run [Lua test suite](https://github.com/lua/tests)
- - [x] `calls.lua`
- - [x] `constructs.lua` (`_soft`)
- - [x] `events.lua`
- - [x] `literals.lua`
- - [x] `locals.lua`
- - [x] `strings.lua`
- - [x] `vararg.lua`
+ - [x] `calls.lua` (32/32)
+ - [x] `constructs.lua` (`_soft`) (10/10)
+ - [x] `events.lua` (26/26)
+ - [x] `literals.lua` (30/30)
+ - [x] `locals.lua` (10/10)
+ - [x] `strings.lua` (34/34)
+ - [x] `vararg.lua` (8/8)
+ - [ ] `bitwise.lua` (9/16)
+ - [ ] `closure.lua` (14/16)
+ - [ ] `coroutine.lua` (32/40)
+ - [ ] `goto.lua` (16/18)
+ - [ ] `math.lua` (44/68)
+ - [ ] `nextvar.lua` (42/44)
+ - [ ] `pm.lua` (27/38)
+ - [ ] `sort.lua` (21/24)
+ - [ ] `tpack.lua` (20/32)
+ - [ ] `utf8.lua` (14/20)
- [ ] `api.lua`
- [ ] `attrib.lua`
- [ ] `big.lua`
- - [ ] `bitwise.lua`
- - [ ] `closure.lua`
- [ ] `code.lua`
- - [ ] `coroutine.lua`
- [ ] `db.lua`
- [ ] `errors.lua`
- - [ ] `goto.lua`
- - [ ] `math.lua`
- - [ ] `nextvar.lua`
- - [ ] `pm.lua`
- - [ ] `sort.lua`
- - [ ] `tpack.lua`
- - [ ] `utf8.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/closure.js b/tests/test-suite/closure.js
index 99bdbe5..3f63f17 100644
--- a/tests/test-suite/closure.js
+++ b/tests/test-suite/closure.js
@@ -8,8 +8,8 @@ const lua = require('../../src/lua.js');
const lauxlib = require('../../src/lauxlib.js');
const lualib = require('../../src/lualib.js');
-
-test("[test-suite] closure: testing equality", function (t) {
+// TODO: fengari doesn't cache closures yet/ever
+test("[test-suite] closure: testing equality", { skip: true }, function (t) {
let luaCode = `
a = {}
for i = 1, 5 do a[i] = function (x) return x + a + _ENV end end
@@ -100,6 +100,8 @@ test("[test-suite] closure: testing closures with 'for' control variable", funct
test("[test-suite] closure: testing closures with 'for' control variable x break", function (t) {
let luaCode = `
+ local t = {"a", "b"}
+
for i=1,3 do
f = function () return i end
break