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:
155
tests/tfn/replaceComments.t
Normal file
155
tests/tfn/replaceComments.t
Normal file
@@ -0,0 +1,155 @@
|
||||
### Empty
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "",
|
||||
output => "",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Nothing
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "TestCase",
|
||||
output => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Test\0Case",
|
||||
output => "Test\0Case",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
|
||||
### Basics
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/* TestCase */",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/*TestCase*/",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/* TestCase*/",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/*TestCase */",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Before/* TestCase */After",
|
||||
output => "Before After",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Before /* TestCase */ After",
|
||||
output => "Before After",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/* Test\nCase */",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/* Test\x0d\x0aCase */",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/* Test\x0aCase */",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "/* Test\x0dCase */",
|
||||
output => " ",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### Broken Comments
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Before/* Test\x0d\x0aCase ",
|
||||
output => "Before ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Before /* Test\x0aCase ",
|
||||
output => "Before ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Before/* Test\x0d\x0aCase ",
|
||||
output => "Before ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Before /* Test\x0aCase ",
|
||||
output => "Before ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Test\x0d\x0aCase */After",
|
||||
output => "Test\x0d\x0aCase */After",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Test\x0aCase */ After",
|
||||
output => "Test\x0aCase */ After",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Test\x0d\x0aCase */After",
|
||||
output => "Test\x0d\x0aCase */After",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "replaceComments",
|
||||
input => "Test\x0aCase */ After",
|
||||
output => "Test\x0aCase */ After",
|
||||
ret => 0,
|
||||
},
|
Reference in New Issue
Block a user