Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / tfn / length.t
1 ### Empty
2 {
3         type => "tfn",
4         name => "length",
5         input => "",
6         output => "0",
7         ret => 1,
8 },
9
10
11 ### Basic normal and large
12 {
13         type => "tfn",
14         name => "length",
15         input => "0123456789abcdef",
16         output => "16",
17         ret => 1,
18 },
19 # ENH: This sometimes fails w/4096 length
20 #{
21 #       type => "tfn",
22 #       name => "length",
23 #       input => ('x' x 8192),
24 #       output => "8192",
25 #       ret => 1,
26 #},
27
28 ### With TAB
29 {
30         type => "tfn",
31         name => "length",
32         input => "0123456789\tabcdef",
33         output => "17",
34         ret => 1,
35 },
36
37 ### With NUL
38 {
39         type => "tfn",
40         name => "length",
41         input => "Test\0Case",
42         output => "9",
43         ret => 1,
44 },