Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / tfn / removeWhitespace.t
1 ### Empty
2 {
3         type => "tfn",
4         name => "removeWhitespace",
5         input => "",
6         output => "",
7         ret => 0,
8 },
9
10 ### Nothing
11 {
12         type => "tfn",
13         name => "removeWhitespace",
14         input => "TestCase",
15         output => "TestCase",
16         ret => 0,
17 },
18 {
19         type => "tfn",
20         name => "removeWhitespace",
21         input => "Test\0Case",
22         output => "Test\0Case",
23         ret => 0,
24 },
25
26
27 ### Remove space/tab
28 {
29         type => "tfn",
30         name => "removeWhitespace",
31         input => "  Test  \t   Case  ",
32         output => "TestCase",
33         ret => 1,
34 },
35
36 ### Pretty much everything in one
37 {
38         type => "tfn",
39         name => "removeWhitespace",
40         input => "This is a   test case with a tab \t, vtab \x0b, newline \x0a, return \x0d, formfeed \f, and a NUL\0 in it with a CRLF at the end.\x0d\x0a",
41         output => "Thisisatestcasewithatab,vtab,newline,return,formfeed,andaNUL\0initwithaCRLFattheend.",
42         ret => 1,
43 },