summaryrefslogtreecommitdiff
path: root/tests/modules/compress/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-08 19:28:54 +0800
committerruki <[email protected]>2022-05-08 19:28:54 +0800
commit67eed0e682e8b151de940f782d22e494f7f98612 (patch)
treeb433fc3b04f12a48fcaa898660b818ce1366790f /tests/modules/compress/test.lua
parent8f1991ad6622e0f559492927585d67cc8d80572f (diff)
add compress test
Diffstat (limited to 'tests/modules/compress/test.lua')
-rw-r--r--tests/modules/compress/test.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/modules/compress/test.lua b/tests/modules/compress/test.lua
new file mode 100644
index 000000000..ac89b28e7
--- /dev/null
+++ b/tests/modules/compress/test.lua
@@ -0,0 +1,6 @@
+import("core.compress.lz4")
+
+function test_lz4_frame_compress(t)
+ t:are_equal(lz4.decompress(lz4.compress("hello world")), "hello world")
+end
+