Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / tfn / base64Encode.t
1 ### Empty
2 {
3         type => "tfn",
4         name => "base64Encode",
5         input => "",
6         output => "",
7         ret => 0,
8 },
9
10 ### Test values with varying lengths to check padding
11 {
12         type => "tfn",
13         name => "base64Encode",
14         input => "TestCase",
15         output => "VGVzdENhc2U=",
16         ret => 1,
17 },
18 {
19         type => "tfn",
20         name => "base64Encode",
21         input => "TestCase1",
22         output => "VGVzdENhc2Ux",
23         ret => 1,
24 },
25 {
26         type => "tfn",
27         name => "base64Encode",
28         input => "TestCase12",
29         output => "VGVzdENhc2UxMg==",
30         ret => 1,
31 },
32
33 ### Check with a NUL
34 {
35         type => "tfn",
36         name => "base64Encode",
37         input => "Test\0Case",
38         output => "VGVzdABDYXNl",
39         ret => 1,
40 },