mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -04:00
Restructured tests directory
This commit is contained in:
parent
a1b161493c
commit
c7e9115994
62 changed files with 122 additions and 135 deletions
|
@ -1,67 +0,0 @@
|
|||
/**
|
||||
* Set Union tests.
|
||||
*
|
||||
* @author d98762625
|
||||
*
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import TestRegister from "../../TestRegister";
|
||||
|
||||
TestRegister.addTests([
|
||||
{
|
||||
name: "Set Union: Nothing",
|
||||
input: "\n\n",
|
||||
expectedOutput: "",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Set Union",
|
||||
args: ["\n\n", " "],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Set Union",
|
||||
input: "1 2 3 4 5\n\n3 4 5 6 7",
|
||||
expectedOutput: "1 2 3 4 5 6 7",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Set Union",
|
||||
args: ["\n\n", " "],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Set Union: invalid sample number",
|
||||
input: "1 2 3 4 5\n\n3 4 5 6 7\n\n1",
|
||||
expectedOutput: "Incorrect number of sets, perhaps you need to modify the sample delimiter or add more samples?",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Set Union",
|
||||
args: ["\n\n", " "],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Set Union: item delimiter",
|
||||
input: "1,2,3,4,5\n\n3,4,5,6,7",
|
||||
expectedOutput: "1,2,3,4,5,6,7",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Set Union",
|
||||
args: ["\n\n", ","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Set Union: sample delimiter",
|
||||
input: "1 2 3 4 5whatever3 4 5 6 7",
|
||||
expectedOutput: "1 2 3 4 5 6 7",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "Set Union",
|
||||
args: ["whatever", " "],
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
Loading…
Add table
Add a link
Reference in a new issue