summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-19 15:33:06 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-19 15:33:06 +0200
commit705574bf31fc57cc3513e441fb83cae09b2d0bae (patch)
tree5c9da206b465964f3ad0a7a57772dc8f14d00009
parentb894a194ac468e9da1613d4161094ea4dc902e34 (diff)
downloadfengari-705574bf31fc57cc3513e441fb83cae09b2d0bae.tar.gz
fengari-705574bf31fc57cc3513e441fb83cae09b2d0bae.tar.bz2
fengari-705574bf31fc57cc3513e441fb83cae09b2d0bae.zip
Updated README to reflect progress
-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