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