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

View File

@@ -0,0 +1,50 @@
### Empty
{
type => "tfns",
name => "hexDecode",
input => "",
output => "",
ret => 1,
},
### Basic
{
type => "tfns",
name => "hexDecode",
input => "5465737443617365",
output => "TestCase",
ret => 1,
},
### Basic w/NULL
{
type => "tfns",
name => "hexDecode",
input => "546573740043617365",
output => "Test\0Case",
ret => 1,
},
### Invalid
# What should happen here? Probably just fail and leave alone.
{
type => "tfns",
name => "hexDecode",
input => "01234567890a0z01234567890a",
output => "01234567890a0z01234567890a",
ret => 0,
},
{
type => "tfns",
name => "hexDecode",
input => "01234567890az",
output => "01234567890az",
ret => 0,
},
{
type => "tfns",
name => "hexDecode",
input => "01234567890a0",
output => "01234567890a0",
ret => 0,
},