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