diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-23 00:27:09 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-23 00:53:15 +1000 |
commit | 8a439e5563f12335e3d35dd63b4f8cbcc25a9bd8 (patch) | |
tree | 6884757b43064fa7163b54b86aa4561d185b5ca2 /tests/test-suite | |
parent | 275c497e20df141160b92db6503da0b98f611bc0 (diff) | |
download | fengari-8a439e5563f12335e3d35dd63b4f8cbcc25a9bd8.tar.gz fengari-8a439e5563f12335e3d35dd63b4f8cbcc25a9bd8.tar.bz2 fengari-8a439e5563f12335e3d35dd63b4f8cbcc25a9bd8.zip |
tests/test-suite/events.js: un-skip fixed tests
Diffstat (limited to 'tests/test-suite')
-rw-r--r-- | tests/test-suite/events.js | 13 |
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 |