summaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-12 08:44:40 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-12 08:46:17 +0200
commit5db1f1f6d5dc1f0e21a0bdf0aae87f3d7aa96fc0 (patch)
treea62ee0e494a5c3850c818490b768fa22489b7ba1 /tests/test-suite
parent4cccf8c6b2c2b1af0afafef52bc87477ba7f817a (diff)
downloadfengari-5db1f1f6d5dc1f0e21a0bdf0aae87f3d7aa96fc0.tar.gz
fengari-5db1f1f6d5dc1f0e21a0bdf0aae87f3d7aa96fc0.tar.bz2
fengari-5db1f1f6d5dc1f0e21a0bdf0aae87f3d7aa96fc0.zip
Boolean TValue should have a boolean value
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/events.js7
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);