mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 07:45:00 -04:00
Better test coverage
This commit is contained in:
parent
e3ff47000a
commit
6b6ae83c81
2 changed files with 23 additions and 2 deletions
|
@ -29,7 +29,7 @@ class EscapeSmartCharacters extends Operation {
|
||||||
this.args = [
|
this.args = [
|
||||||
/* Arguments. See the project wiki for full details.*/
|
/* Arguments. See the project wiki for full details.*/
|
||||||
{
|
{
|
||||||
name: "Second arg",
|
name: "Output action",
|
||||||
type: "option",
|
type: "option",
|
||||||
value: ["Escape", "Remove", "Replace with '.'"]
|
value: ["Escape", "Remove", "Replace with '.'"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,5 +18,26 @@
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Escape Smart Characters - Remove",
|
||||||
|
input: "“”—‘’ →©…",
|
||||||
|
expectedOutput: " ",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
op: "Escape Smart Characters",
|
||||||
|
args: ["Remove"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Escape Smart Characters - Replace",
|
||||||
|
input: "“”—‘’ →©…",
|
||||||
|
expectedOutput: "..... ...",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
op: "Escape Smart Characters",
|
||||||
|
args: ["Replace with '.'"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
g
|
|
Loading…
Add table
Add a link
Reference in a new issue