Some more reorg of tests.

This commit is contained in:
brectanus
2007-12-19 23:43:51 +00:00
parent a04e03b2c7
commit 3a8e0a4dfd
51 changed files with 14 additions and 3 deletions

69
apache2/t/tfn/trimLeft.t Normal file
View 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,
},