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:
69
tests/tfn/trimLeft.t
Normal file
69
tests/tfn/trimLeft.t
Normal file
@@ -0,0 +1,69 @@
|
||||
### Empty
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => "",
|
||||
output => "",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Nothing
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => "TestCase",
|
||||
output => "TestCase",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => "Test\0Case",
|
||||
output => "Test\0Case",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => "TestCase ",
|
||||
output => "TestCase ",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
|
||||
### Basics
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => " TestCase",
|
||||
output => "TestCase",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => " TestCase ",
|
||||
output => "TestCase ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => " Test Case ",
|
||||
output => "Test Case ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => " Test \0 Case ",
|
||||
output => "Test \0 Case ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "trimLeft",
|
||||
input => " Test \0 Case \r\n ",
|
||||
output => "Test \0 Case \r\n ",
|
||||
ret => 1,
|
||||
},
|
Reference in New Issue
Block a user