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,106 +17,106 @@ TestRegister.addTests([
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "String to CSV",
|
op: "String to CSV",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing hello world parsed to CSV",
|
name: "Testing hello world parsed to CSV",
|
||||||
input: "['hello', 'world']",
|
input: "['hello', 'world']",
|
||||||
expectedOutput: "hello;world",
|
expectedOutput: "hello;world",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "String to CSV",
|
op: "String to CSV",
|
||||||
args: [';'],
|
args: [";"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing false parsed to CSV",
|
name: "Testing false parsed to CSV",
|
||||||
input: false,
|
input: false,
|
||||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "String to CSV",
|
op: "String to CSV",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing ||| parsed to CSV",
|
name: "Testing ||| parsed to CSV",
|
||||||
input: "|||",
|
input: "|||",
|
||||||
expectedOutput: "|||||",
|
expectedOutput: "|||||",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "String to CSV",
|
op: "String to CSV",
|
||||||
args: ['|'],
|
args: ["|"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing 0 parsed to CSV",
|
name: "Testing 0 parsed to CSV",
|
||||||
input: 0,
|
input: 0,
|
||||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "String to CSV",
|
op: "String to CSV",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing 1,2,3,\n1,2, parsed to String",
|
name: "Testing 1,2,3,\n1,2, parsed to String",
|
||||||
input: "1,2,3,\n,1,2,",
|
input: "1,2,3,\n,1,2,",
|
||||||
expectedOutput: "[[1,2,3],[1,2]]",
|
expectedOutput: "[[1,2,3],[1,2]]",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "CSV to String",
|
op: "CSV to String",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing \n\n\n parsed to String",
|
name: "Testing \n\n\n parsed to String",
|
||||||
input: "\n\n\n",
|
input: "\n\n\n",
|
||||||
expectedOutput: "[[],[],[]]",
|
expectedOutput: "[[],[],[]]",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "CSV to String",
|
op: "CSV to String",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing 1,2,3,4,5 parsed to String",
|
name: "Testing 1,2,3,4,5 parsed to String",
|
||||||
input: "1,2,3,4,5",
|
input: "1,2,3,4,5",
|
||||||
expectedOutput: "[[1,2,3,4,5]]",
|
expectedOutput: "[[1,2,3,4,5]]",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "CSV to String",
|
op: "CSV to String",
|
||||||
args: ['|'],
|
args: ["|"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing 0 parsed to CSV",
|
name: "Testing 0 parsed to CSV",
|
||||||
input: 0,
|
input: 0,
|
||||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "CSV to String",
|
op: "CSV to String",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Testing false parsed to CSV",
|
name: "Testing false parsed to CSV",
|
||||||
input: false,
|
input: false,
|
||||||
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
op: "CSV to String",
|
op: "CSV to String",
|
||||||
args: [','],
|
args: [","],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue