From 8982904eb3500bdc963cc04930e188f122bd4a71 Mon Sep 17 00:00:00 2001 From: Leon Zandman Date: Sun, 10 May 2026 02:10:02 +0200 Subject: [PATCH] Added tests for compression level boundaries (1 and 22). --- tests/operations/tests/Zstd.mjs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/operations/tests/Zstd.mjs b/tests/operations/tests/Zstd.mjs index d6583232..eb3abed5 100644 --- a/tests/operations/tests/Zstd.mjs +++ b/tests/operations/tests/Zstd.mjs @@ -55,6 +55,36 @@ TestRegister.addTests([ } ] }, + { + name: "Zstd compress & decompress: level 1", + input: "The cat sat on the mat.", + expectedOutput: "The cat sat on the mat.", + recipeConfig: [ + { + op: "Zstd Compress", + args: ["1"] + }, + { + op: "Zstd Decompress", + args: [] + } + ] + }, + { + name: "Zstd compress & decompress: level 22", + input: "The cat sat on the mat.", + expectedOutput: "The cat sat on the mat.", + recipeConfig: [ + { + op: "Zstd Compress", + args: ["22"] + }, + { + op: "Zstd Decompress", + args: [] + } + ] + }, { name: "Zstd compress: empty input error", input: "",