test(A1Z26): add decode and empty input tests
This commit is contained in:
parent
cef5aee0cb
commit
06cc1b449e
@ -14,6 +14,7 @@
|
|||||||
import { setLongTestFailure, logTestReport } from "../lib/utils.mjs";
|
import { setLongTestFailure, logTestReport } from "../lib/utils.mjs";
|
||||||
|
|
||||||
import TestRegister from "../lib/TestRegister.mjs";
|
import TestRegister from "../lib/TestRegister.mjs";
|
||||||
|
import "./tests/A1Z26CipherDecode.mjs";
|
||||||
import "./tests/AESKeyWrap.mjs";
|
import "./tests/AESKeyWrap.mjs";
|
||||||
import "./tests/AlternatingCaps.mjs";
|
import "./tests/AlternatingCaps.mjs";
|
||||||
import "./tests/AvroToJSON.mjs";
|
import "./tests/AvroToJSON.mjs";
|
||||||
|
|||||||
33
tests/operations/tests/A1Z26CipherDecode.mjs
Normal file
33
tests/operations/tests/A1Z26CipherDecode.mjs
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/**
|
||||||
|
* A1Z26 Cipher Decode tests
|
||||||
|
*
|
||||||
|
* @author brick-pixel
|
||||||
|
* @copyright Crown Copyright 2026
|
||||||
|
* @license Apache-2.0
|
||||||
|
*/
|
||||||
|
import TestRegister from "../../lib/TestRegister.mjs";
|
||||||
|
|
||||||
|
TestRegister.addTests([
|
||||||
|
{
|
||||||
|
"name": "A1Z26 Cipher Decode: basic decode",
|
||||||
|
"input": "8 5 12 12 15",
|
||||||
|
"expectedOutput": "hello",
|
||||||
|
"recipeConfig": [
|
||||||
|
{
|
||||||
|
"op": "A1Z26 Cipher Decode",
|
||||||
|
"args": ["Space"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "A1Z26 Cipher Decode: empty input returns empty string",
|
||||||
|
"input": "",
|
||||||
|
"expectedOutput": "",
|
||||||
|
"recipeConfig": [
|
||||||
|
{
|
||||||
|
"op": "A1Z26 Cipher Decode",
|
||||||
|
"args": ["Space"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]);
|
||||||
Loading…
x
Reference in New Issue
Block a user