Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / tfn / trim.t
1 ### Empty
2 {
3         type => "tfn",
4         name => "trim",
5         input => "",
6         output => "",
7         ret => 0,
8 },
9
10 ### Nothing
11 {
12         type => "tfn",
13         name => "trim",
14         input => "TestCase",
15         output => "TestCase",
16         ret => 0,
17 },
18 {
19         type => "tfn",
20         name => "trim",
21         input => "Test\0Case",
22         output => "Test\0Case",
23         ret => 0,
24 },
25
26 ### Basics
27 {
28         type => "tfn",
29         name => "trim",
30         input => "    TestCase",
31         output => "TestCase",
32         ret => 1,
33 },
34 {
35         type => "tfn",
36         name => "trim",
37         input => "TestCase    ",
38         output => "TestCase",
39         ret => 1,
40 },
41 {
42         type => "tfn",
43         name => "trim",
44         input => "    TestCase    ",
45         output => "TestCase",
46         ret => 1,
47 },
48 {
49         type => "tfn",
50         name => "trim",
51         input => "    Test   Case    ",
52         output => "Test   Case",
53         ret => 1,
54 },
55 {
56         type => "tfn",
57         name => "trim",
58         input => "    Test \0 Case    ",
59         output => "Test \0 Case",
60         ret => 1,
61 },
62 {
63         type => "tfn",
64         name => "trim",
65         input => "         Test \0 Case                    \r\n  ",
66         output => "Test \0 Case",
67         ret => 1,
68 },