Blame tests/tfn/removeWhitespace.t
|
Packit |
284210 |
### Empty
|
|
Packit |
284210 |
{
|
|
Packit |
284210 |
type => "tfn",
|
|
Packit |
284210 |
name => "removeWhitespace",
|
|
Packit |
284210 |
input => "",
|
|
Packit |
284210 |
output => "",
|
|
Packit |
284210 |
ret => 0,
|
|
Packit |
284210 |
},
|
|
Packit |
284210 |
|
|
Packit |
284210 |
### Nothing
|
|
Packit |
284210 |
{
|
|
Packit |
284210 |
type => "tfn",
|
|
Packit |
284210 |
name => "removeWhitespace",
|
|
Packit |
284210 |
input => "TestCase",
|
|
Packit |
284210 |
output => "TestCase",
|
|
Packit |
284210 |
ret => 0,
|
|
Packit |
284210 |
},
|
|
Packit |
284210 |
{
|
|
Packit |
284210 |
type => "tfn",
|
|
Packit |
284210 |
name => "removeWhitespace",
|
|
Packit |
284210 |
input => "Test\0Case",
|
|
Packit |
284210 |
output => "Test\0Case",
|
|
Packit |
284210 |
ret => 0,
|
|
Packit |
284210 |
},
|
|
Packit |
284210 |
|
|
Packit |
284210 |
|
|
Packit |
284210 |
### Remove space/tab
|
|
Packit |
284210 |
{
|
|
Packit |
284210 |
type => "tfn",
|
|
Packit |
284210 |
name => "removeWhitespace",
|
|
Packit |
284210 |
input => " Test \t Case ",
|
|
Packit |
284210 |
output => "TestCase",
|
|
Packit |
284210 |
ret => 1,
|
|
Packit |
284210 |
},
|
|
Packit |
284210 |
|
|
Packit |
284210 |
### Pretty much everything in one
|
|
Packit |
284210 |
{
|
|
Packit |
284210 |
type => "tfn",
|
|
Packit |
284210 |
name => "removeWhitespace",
|
|
Packit |
284210 |
input => "This is a test case with a tab \t, vtab \x0b, newline \x0a, return \x0d, formfeed \f, and a NUL\0 in it with a CRLF at the end.\x0d\x0a",
|
|
Packit |
284210 |
output => "Thisisatestcasewithatab,vtab,newline,return,formfeed,andaNUL\0initwithaCRLFattheend.",
|
|
Packit |
284210 |
ret => 1,
|
|
Packit |
284210 |
},
|