mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Some more reorg of tests.
This commit is contained in:
50
apache2/t/tfn/hexDecode.t
Normal file
50
apache2/t/tfn/hexDecode.t
Normal file
@@ -0,0 +1,50 @@
|
||||
### Empty
|
||||
{
|
||||
type => "tfn",
|
||||
name => "hexDecode",
|
||||
input => "",
|
||||
output => "",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### Basic
|
||||
{
|
||||
type => "tfn",
|
||||
name => "hexDecode",
|
||||
input => "5465737443617365",
|
||||
output => "TestCase",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### Basic w/NULL
|
||||
{
|
||||
type => "tfn",
|
||||
name => "hexDecode",
|
||||
input => "546573740043617365",
|
||||
output => "Test\0Case",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### Invalid
|
||||
# What should happen here? Probably just fail and leave alone.
|
||||
{
|
||||
type => "tfn",
|
||||
name => "hexDecode",
|
||||
input => "01234567890a0z01234567890a",
|
||||
output => "01234567890a0z01234567890a",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "hexDecode",
|
||||
input => "01234567890az",
|
||||
output => "01234567890az",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "hexDecode",
|
||||
input => "01234567890a0",
|
||||
output => "01234567890a0",
|
||||
ret => 0,
|
||||
},
|
Reference in New Issue
Block a user