mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
69 lines
1008 B
Perl
69 lines
1008 B
Perl
### 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,
|
|
},
|