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

43
apache2/t/tfns/length.t Normal file
View File

@@ -0,0 +1,43 @@
### Empty
{
type => "tfns",
name => "length",
input => "",
output => "0",
ret => 1,
},
### Basic normal and large
{
type => "tfns",
name => "length",
input => "0123456789abcdef",
output => "16",
ret => 1,
},
{
type => "tfns",
name => "length",
input => ('x' x 8192),
output => "8192",
ret => 1,
},
### With TAB
{
type => "tfns",
name => "length",
input => "0123456789\tabcdef",
output => "17",
ret => 1,
},
### With NUL
{
type => "tfns",
name => "length",
input => "Test\0Case",
output => "9",
ret => 1,
},