mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-12 01:01:32 -04:00
issue#419
This commit is contained in:
parent
ae1b12c120
commit
46d40e961d
5 changed files with 171 additions and 1 deletions
|
@ -107,6 +107,7 @@ import "./tests/CBORDecode.mjs";
|
|||
import "./tests/JA3Fingerprint.mjs";
|
||||
import "./tests/JA3SFingerprint.mjs";
|
||||
import "./tests/HASSH.mjs";
|
||||
import "./tests/EscapeSmartCharacters.mjs";
|
||||
|
||||
|
||||
// Cannot test operations that use the File type yet
|
||||
|
|
22
tests/operations/tests/EscapeSmartCharacters.mjs
Normal file
22
tests/operations/tests/EscapeSmartCharacters.mjs
Normal file
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* @author john19696 [john19696@protonmail.com]
|
||||
* @copyright Crown Copyright 2021
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import TestRegister from "../../lib/TestRegister.mjs";
|
||||
|
||||
TestRegister.addTests([
|
||||
{
|
||||
name: "Escape Smart Characters",
|
||||
input: "“”—‘’ →©…",
|
||||
expectedOutput: "\"\"--'' -->(C)...",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Escape Smart Characters",
|
||||
args: ["Escape"],
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
g
|
Loading…
Add table
Add a link
Reference in a new issue