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