1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
### Empty
{
type => "tfn",
name => "hexDecode",
input => "",
output => "",
ret => 1,
},
### Basic
{
type => "tfn",
name => "hexDecode",
input => "5465737443617365",
output => "TestCase",
ret => 1,
},
### Basic w/NULL
{
type => "tfn",
name => "hexDecode",
input => "546573740043617365",
output => "Test\0Case",
ret => 1,
},
### Invalid
# What should happen here? Probably just fail and leave alone.
{
type => "tfn",
name => "hexDecode",
input => "01234567890a0z01234567890a",
output => "\x01#Eg\x89\x0a#\x01#Eg\x89\x0a",
ret => 1,
},
{
type => "tfn",
name => "hexDecode",
input => "01234567890az",
output => "\x01#Eg\x89\x0a",
ret => 1,
},
{
type => "tfn",
name => "hexDecode",
input => "01234567890a0",
output => "\x01#Eg\x89\x0a",
ret => 1,
},
|