From 5db1f1f6d5dc1f0e21a0bdf0aae87f3d7aa96fc0 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 12 May 2017 08:44:40 +0200 Subject: Boolean TValue should have a boolean value --- tests/test-suite/events.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test-suite') 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); -- cgit v1.2.3-70-g09d2