From b6944b7ab6c249c2fe760b285e35aded33a62700 Mon Sep 17 00:00:00 2001 From: Ferdinand Linnenberg Date: Tue, 17 Sep 2024 10:58:58 +0200 Subject: [PATCH] feat: added test --- src/core/config/Categories.json | 3 ++- tests/operations/tests/Compress.mjs | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/core/config/Categories.json b/src/core/config/Categories.json index bebdd6a5..aa3095bb 100644 --- a/src/core/config/Categories.json +++ b/src/core/config/Categories.json @@ -381,7 +381,8 @@ "LZMA Compress", "LZ4 Decompress", "LZ4 Compress", - "LZNT1 Decompress" + "LZNT1 Decompress", + "ZStandard Decompress" ] }, { diff --git a/tests/operations/tests/Compress.mjs b/tests/operations/tests/Compress.mjs index 60117c67..88e17db4 100644 --- a/tests/operations/tests/Compress.mjs +++ b/tests/operations/tests/Compress.mjs @@ -105,4 +105,19 @@ TestRegister.addTests([ } ], }, + { + name: "ZStandard Decompress", + input: "KLUv/QRYwQAAVGhlIGNhdCBzYXQgb24gdGhlIG1hdC4KpvSd8w==", + expectedOutput: "The cat sat on the mat.", + recipeConfig: [ + { + "op": "From Base64", + "args": [] + }, + { + "op": "ZStandard Decompress", + "args": [] + } + ], + } ]);