mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
46 lines
993 B
JavaScript
46 lines
993 B
JavaScript
/**
|
|
* Caesar Box Cipher tests.
|
|
*
|
|
* @author n1073645 [n1073645@gmail.com]
|
|
*
|
|
* @copyright Crown Copyright 2020
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "Caesar Box Cipher: nothing",
|
|
input: "",
|
|
expectedOutput: "",
|
|
recipeConfig: [
|
|
{
|
|
op: "Caesar Box Cipher",
|
|
args: ["1"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Caesar Box Cipher: Hello World!",
|
|
input: "Hello World!",
|
|
expectedOutput: "Hlodeor!lWl",
|
|
recipeConfig: [
|
|
{
|
|
op: "Caesar Box Cipher",
|
|
args: ["3"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Caesar Box Cipher: Hello World!",
|
|
input: "Hlodeor!lWl",
|
|
expectedOutput: "HelloWorld!",
|
|
recipeConfig: [
|
|
{
|
|
op: "Caesar Box Cipher",
|
|
args: ["4"],
|
|
},
|
|
],
|
|
}
|
|
]);
|