mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Added important tests that need to pass before merge.
This commit is contained in:
parent
bfec582aee
commit
0c01c6a7c3
1 changed files with 33 additions and 0 deletions
|
@ -19,6 +19,28 @@ TestRegister.addTests([
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "ExtractIPAddress All 10s",
|
||||
input: "10.10.10.10",
|
||||
expectedOutput: "10.10.10.10",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Extract IP addresses",
|
||||
"args": [true, true, false, false, false, false]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "ExtractIPAddress All 10s",
|
||||
input: "100.100.100.100",
|
||||
expectedOutput: "100.100.100.100",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Extract IP addresses",
|
||||
"args": [true, true, false, false, false, false]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "ExtractIPAddress 255s",
|
||||
input: "255.255.255.255",
|
||||
|
@ -52,6 +74,17 @@ TestRegister.addTests([
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "ExtractIPAddress 256 at each end",
|
||||
input: "256.255.255.255 255.255.255.256",
|
||||
expectedOutput: "",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Extract IP addresses",
|
||||
"args": [true, true, false, false, false, false]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "ExtractIPAddress octal valid",
|
||||
input: "01.01.01.01 0123.0123.0123.0123 0377.0377.0377.0377",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue