Add initial unit testing framework. See #438.

This commit is contained in:
brectanus
2007-12-19 00:09:30 +00:00
parent 2657154eaa
commit 499c3f3167
54 changed files with 2249 additions and 3 deletions

68
apache2/t/tfns/trim.t Normal file
View File

@@ -0,0 +1,68 @@
### Empty
{
type => "tfns",
name => "trim",
input => "",
output => "",
ret => 0,
},
### Nothing
{
type => "tfns",
name => "trim",
input => "TestCase",
output => "TestCase",
ret => 0,
},
{
type => "tfns",
name => "trim",
input => "Test\0Case",
output => "Test\0Case",
ret => 0,
},
### Basics
{
type => "tfns",
name => "trim",
input => " TestCase",
output => "TestCase",
ret => 1,
},
{
type => "tfns",
name => "trim",
input => "TestCase ",
output => "TestCase",
ret => 1,
},
{
type => "tfns",
name => "trim",
input => " TestCase ",
output => "TestCase",
ret => 1,
},
{
type => "tfns",
name => "trim",
input => " Test Case ",
output => "Test Case",
ret => 1,
},
{
type => "tfns",
name => "trim",
input => " Test \0 Case ",
output => "Test \0 Case",
ret => 1,
},
{
type => "tfns",
name => "trim",
input => " Test \0 Case \r\n ",
output => "Test \0 Case",
ret => 1,
},