summaryrefslogtreecommitdiff
path: root/tests/modules/bytes/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/bytes/test.lua')
-rw-r--r--tests/modules/bytes/test.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/modules/bytes/test.lua b/tests/modules/bytes/test.lua
index 3756aaeaf..262f9ee65 100644
--- a/tests/modules/bytes/test.lua
+++ b/tests/modules/bytes/test.lua
@@ -30,3 +30,7 @@ function test_index(t)
t:will_raise(function() b[100] = string.byte('2') end)
end
+function test_concat(t)
+ t:are_equal((bytes("123") .. bytes("456")):str(), "123456")
+ t:are_equal(bytes(bytes("123"), bytes("456")):str(), "123456")
+end