mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 07:21:02 -04:00
Fixed formatting
This commit is contained in:
parent
ad47b42a6c
commit
2a2d8e9e67
1 changed files with 20 additions and 20 deletions
|
@ -17,107 +17,107 @@ TestRegister.addTests([
|
|||
recipeConfig: [
|
||||
{
|
||||
op: "String to CSV",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing hello world parsed to CSV",
|
||||
input: "['hello', 'world']",
|
||||
expectedOutput: "hello;world",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "String to CSV",
|
||||
args: [';'],
|
||||
args: [";"],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing false parsed to CSV",
|
||||
input: false,
|
||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "String to CSV",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing ||| parsed to CSV",
|
||||
input: "|||",
|
||||
expectedOutput: "|||||",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "String to CSV",
|
||||
args: ['|'],
|
||||
args: ["|"],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing 0 parsed to CSV",
|
||||
input: 0,
|
||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "String to CSV",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing 1,2,3,\n1,2, parsed to String",
|
||||
input: "1,2,3,\n,1,2,",
|
||||
expectedOutput: "[[1,2,3],[1,2]]",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "CSV to String",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing \n\n\n parsed to String",
|
||||
input: "\n\n\n",
|
||||
expectedOutput: "[[],[],[]]",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "CSV to String",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing 1,2,3,4,5 parsed to String",
|
||||
input: "1,2,3,4,5",
|
||||
expectedOutput: "[[1,2,3,4,5]]",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "CSV to String",
|
||||
args: ['|'],
|
||||
args: ["|"],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing 0 parsed to CSV",
|
||||
input: 0,
|
||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "CSV to String",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Testing false parsed to CSV",
|
||||
input: false,
|
||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||
recipeConfig: [
|
||||
{
|
||||
op: "CSV to String",
|
||||
args: [','],
|
||||
args: [","],
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue