Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / op / containsWord.t
1 ### Empty
2 {
3         type => "op",
4         name => "containsWord",
5         param => "",
6         input => "",
7         ret => 1,
8 },
9 {
10         type => "op",
11         name => "containsWord",
12         param => "TestCase",
13         input => "",
14         ret => 0,
15 },
16 {
17         type => "op",
18         name => "containsWord",
19         param => "",
20         input => "TestCase",
21         ret => 1,
22 },
23
24 ### General
25 {
26         type => "op",
27         name => "containsWord",
28         param => "abc",
29         input => "abcdefghi",
30         ret => 0,
31 },
32 {
33         type => "op",
34         name => "containsWord",
35         param => "def",
36         input => "abcdefghi",
37         ret => 0,
38 },
39 {
40         type => "op",
41         name => "containsWord",
42         param => "ghi",
43         input => "abcdefghi",
44         ret => 0,
45 },
46 {
47         type => "op",
48         name => "containsWord",
49         param => "abc",
50         input => "abc def ghi",
51         ret => 1,
52 },
53 {
54         type => "op",
55         name => "containsWord",
56         param => "def",
57         input => "abc def ghi",
58         ret => 1,
59 },
60 {
61         type => "op",
62         name => "containsWord",
63         param => "ghi",
64         input => "abc def ghi",
65         ret => 1,
66 },
67 {
68         type => "op",
69         name => "containsWord",
70         param => "abc",
71         input => "abc\0def ghi",
72         ret => 1,
73 },
74 {
75         type => "op",
76         name => "containsWord",
77         param => "def",
78         input => "abc\0def ghi",
79         ret => 1,
80 },
81 {
82         type => "op",
83         name => "containsWord",
84         param => "x",
85         input => "x",
86         ret => 1,
87 },
88 {
89         type => "op",
90         name => "containsWord",
91         param => "x",
92         input => " x ",
93         ret => 1,
94 },
95 {
96         type => "op",
97         name => "containsWord",
98         param => "y",
99         input => "xyz",
100         ret => 0,
101 },
102 {
103         type => "op",
104         name => "containsWord",
105         param => "hiding",
106         input => "hidingX<-not on word boundary, but is later on->hiding",
107         ret => 1,
108 },