Added tests for compression level boundaries (1 and 22).

This commit is contained in:
Leon Zandman 2026-05-10 02:10:02 +02:00
parent 08722589f2
commit 8982904eb3

View File

@ -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", name: "Zstd compress: empty input error",
input: "", input: "",