summaryrefslogtreecommitdiff
path: root/tests/test-suite/events.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann@users.noreply.github.com>2017-05-22 20:06:57 +0200
committerGitHub <noreply@github.com>2017-05-22 20:06:57 +0200
commite3bdd1fea3665df28de25ed76f6399faf957179d (patch)
tree6884757b43064fa7163b54b86aa4561d185b5ca2 /tests/test-suite/events.js
parent25e2110a5eac0a2e6c7b4d502ffbd53fc61af301 (diff)
parent8a439e5563f12335e3d35dd63b4f8cbcc25a9bd8 (diff)
downloadfengari-e3bdd1fea3665df28de25ed76f6399faf957179d.tar.gz
fengari-e3bdd1fea3665df28de25ed76f6399faf957179d.tar.bz2
fengari-e3bdd1fea3665df28de25ed76f6399faf957179d.zip
Merge pull request #63 from daurnimator/fix-skipped-tests
Investigated + fixed some skipped tests
Diffstat (limited to 'tests/test-suite/events.js')
-rw-r--r--tests/test-suite/events.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test-suite/events.js b/tests/test-suite/events.js
index d5ed5ae..0f94f36 100644
--- a/tests/test-suite/events.js
+++ b/tests/test-suite/events.js
@@ -301,7 +301,6 @@ test("[test-suite] events: test comparison", function (t) {
});
-// TODO: uncomment asserts when next is fixed for cleared table entries
test("[test-suite] events: test 'partial order'", function (t) {
let luaCode = `
t = {}
@@ -327,9 +326,9 @@ test("[test-suite] events: test 'partial order'", function (t) {
t.__le = nil
assert(Set{1,2,3} < Set{1,2,3,4})
- -- assert(not(Set{1,2,3,4} < Set{1,2,3,4}))
- -- assert((Set{1,2,3,4} <= Set{1,2,3,4}))
- -- assert((Set{1,2,3,4} >= Set{1,2,3,4}))
+ assert(not(Set{1,2,3,4} < Set{1,2,3,4}))
+ assert((Set{1,2,3,4} <= Set{1,2,3,4}))
+ assert((Set{1,2,3,4} >= Set{1,2,3,4}))
assert((Set{1,3} <= Set{3,5})) -- wrong!! model needs a 'le' method ;-)
t.__le = function (a,b)
@@ -352,11 +351,11 @@ test("[test-suite] events: test 'partial order'", function (t) {
end
local s = Set{1,3,5}
- -- assert(s == Set{3,5,1})
+ assert(s == Set{3,5,1})
assert(not rawequal(s, Set{3,5,1}))
assert(rawequal(s, s))
- -- assert(Set{1,3,5,1} == rawSet{3,5,1})
- -- assert(rawSet{1,3,5,1} == Set{3,5,1})
+ assert(Set{1,3,5,1} == rawSet{3,5,1})
+ assert(rawSet{1,3,5,1} == Set{3,5,1})
assert(Set{1,3,5} ~= Set{3,5,1,6})
-- '__eq' is not used for table accesses