mirror of
https://github.com/gchq/CyberChef
synced 2026-01-08 03:23:34 +00:00
Added alternating caps functionality
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
|
||||
import TestRegister from "../lib/TestRegister.mjs";
|
||||
import "./tests/AESKeyWrap.mjs";
|
||||
import "./tests/AlternatingCaps.mjs";
|
||||
import "./tests/AvroToJSON.mjs";
|
||||
import "./tests/BaconCipher.mjs";
|
||||
import "./tests/Base45.mjs";
|
||||
|
||||
19
tests/operations/tests/AlternatingCaps.mjs
Normal file
19
tests/operations/tests/AlternatingCaps.mjs
Normal file
@@ -0,0 +1,19 @@
|
||||
/* @author sw5678
|
||||
* @copyright Crown Copyright 2024
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import TestRegister from "../../lib/TestRegister.mjs";
|
||||
|
||||
TestRegister.addTests([
|
||||
{
|
||||
"name": "AlternatingCaps: Basic Example",
|
||||
"input": "Hello, world!",
|
||||
"expectedOutput": "hElLo, WoRlD!",
|
||||
"recipeConfig": [
|
||||
{
|
||||
"op": "Alternating Caps",
|
||||
"args": []
|
||||
},
|
||||
],
|
||||
}
|
||||
]);
|
||||
Reference in New Issue
Block a user