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,40 @@
### Empty
{
type => "tfns",
name => "base64Encode",
input => "",
output => "",
ret => 0,
},
### Test values with varying lengths to check padding
{
type => "tfns",
name => "base64Encode",
input => "TestCase",
output => "VGVzdENhc2U=",
ret => 1,
},
{
type => "tfns",
name => "base64Encode",
input => "TestCase1",
output => "VGVzdENhc2Ux",
ret => 1,
},
{
type => "tfns",
name => "base64Encode",
input => "TestCase12",
output => "VGVzdENhc2UxMg==",
ret => 1,
},
### Check with a NUL
{
type => "tfns",
name => "base64Encode",
input => "Test\0Case",
output => "VGVzdABDYXNl",
ret => 1,
},