diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-suite/events.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-suite/events.js b/tests/test-suite/events.js index 04b4b1a..090b104 100644 --- a/tests/test-suite/events.js +++ b/tests/test-suite/events.js @@ -450,6 +450,13 @@ test("[test-suite] events: concat", function (t) { A = true assert(c..d == 'cd') assert(0 .."a".."b"..c..d.."e".."f"..(5+3).."g" == "0abcdef8g") + + A = false + assert((c..d..c..d).val == 'cdcd') + x = c..d + assert(getmetatable(x) == t and x.val == 'cd') + x = 0 .."a".."b"..c..d.."e".."f".."g" + assert(x.val == "0abcdefg") `, L; t.plan(2); |