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