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