Added tests for compression level boundaries (1 and 22).
This commit is contained in:
parent
08722589f2
commit
8982904eb3
@ -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: "",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user