Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / op / validateByteRange.t
1 ### Empty
2 {
3         type => "op",
4         name => "validateByteRange",
5         param => "0-255",
6         input => "",
7         ret => 0,
8 },
9 {
10         type => "op",
11         name => "validateByteRange",
12         param => "",
13         input => "TestCase",
14         ret => 1,
15 },
16
17 ### Invalid
18 {
19         type => "op",
20         name => "validateByteRange",
21         param => "xxx",
22         input => "TestCase",
23         ret => 1,
24 },
25 {
26         type => "op",
27         name => "validateByteRange",
28         param => "xxx",
29         input => "\x00",
30         ret => 0,
31 },
32
33 ### General
34 {
35         type => "op",
36         name => "validateByteRange",
37         param => "0-255",
38         input => "abcdefghi",
39         ret => 0,
40 },
41 {
42         type => "op",
43         name => "validateByteRange",
44         param => ord("a")."-".ord("i"),
45         input => "abcdefghi",
46         ret => 0,
47 },
48 {
49         type => "op",
50         name => "validateByteRange",
51         param => ord("a")."-".ord("i"),
52         input => "abcdefghij",
53         ret => 1,
54 },