mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
45 lines
998 B
JavaScript
45 lines
998 B
JavaScript
/**
|
|
* GetAllCasings tests.
|
|
*
|
|
* @author n1073645 [n1073645@gmail.com]
|
|
* @copyright Crown Copyright 2020
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "All casings of test",
|
|
input: "test",
|
|
expectedOutput: "test\nTest\ntEst\nTEst\nteSt\nTeSt\ntESt\nTESt\ntesT\nTesT\ntEsT\nTEsT\nteST\nTeST\ntEST\nTEST",
|
|
recipeConfig: [
|
|
{
|
|
"op": "Get All Casings",
|
|
"args": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: "All casings of t",
|
|
input: "t",
|
|
expectedOutput: "t\nT",
|
|
recipeConfig: [
|
|
{
|
|
"op": "Get All Casings",
|
|
"args": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: "All casings of null",
|
|
input: "",
|
|
expectedOutput: "",
|
|
recipeConfig: [
|
|
{
|
|
"op": "Get All Casings",
|
|
"args": []
|
|
}
|
|
]
|
|
}
|
|
]);
|