summaryrefslogtreecommitdiff
path: root/tests/modules/compress/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-08 20:00:38 +0800
committerruki <[email protected]>2022-05-08 20:00:38 +0800
commit023ecb9d8f518b4e8b9740cabf9cc1b45d22e6f9 (patch)
tree31e02c90696454b52fad65854fb424f842dcf1ef /tests/modules/compress/test.lua
parent131e16c8a0a3534320e4712aadebeef9764cc4fe (diff)
improve test
Diffstat (limited to 'tests/modules/compress/test.lua')
-rw-r--r--tests/modules/compress/test.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modules/compress/test.lua b/tests/modules/compress/test.lua
index 38a65adf9..b12e2e877 100644
--- a/tests/modules/compress/test.lua
+++ b/tests/modules/compress/test.lua
@@ -1,6 +1,7 @@
import("core.compress.lz4")
-function test_lz4_frame_compress(t)
+function test_lz4(t)
t:are_equal(lz4.decompress(lz4.compress("hello world")):str(), "hello world")
+ t:are_equal(lz4.block_decompress(lz4.block_compress("hello world"), 11):str(), "hello world")
end