diff options
| author | ruki <[email protected]> | 2019-11-01 00:59:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-10-31 23:58:28 +0800 |
| commit | 45d6dd4771920464406c71267a71096056836ff2 (patch) | |
| tree | 4a2dffcfbc094e5bcc5c179e11371cd739ce60d3 /tests/modules/bytes/test.lua | |
| parent | af6fdbab0210beddd18a787ebb5eae7da4136609 (diff) | |
update bytes test
Diffstat (limited to 'tests/modules/bytes/test.lua')
| -rw-r--r-- | tests/modules/bytes/test.lua | 4 |
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 |
