mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Redo build system to properly use autotools and avoid compilation with apxs util.
This commit is contained in:
55
tests/tfn/replaceNulls.t
Normal file
55
tests/tfn/replaceNulls.t
Normal file
@@ -0,0 +1,55 @@
|
||||
### Empty
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "",
|
||||
output => "",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Nothing
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "TestCase",
|
||||
output => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
|
||||
### Basics
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "\0TestCase",
|
||||
output => " TestCase",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "Test\0Case",
|
||||
output => "Test Case",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "Test\0\0Case",
|
||||
output => "Test Case",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "TestCase\0",
|
||||
output => "TestCase ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceNulls",
|
||||
input => "\0Test\0Case\0",
|
||||
output => " Test Case ",
|
||||
ret => 1,
|
||||
},
|
Reference in New Issue
Block a user