mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Redo build system to properly use autotools and avoid compilation with apxs util.
This commit is contained in:
108
tests/op/containsWord.t
Normal file
108
tests/op/containsWord.t
Normal file
@@ -0,0 +1,108 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "",
|
||||
input => "",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "TestCase",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "abc",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "def",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "ghi",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "abc",
|
||||
input => "abc def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "def",
|
||||
input => "abc def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "ghi",
|
||||
input => "abc def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "abc",
|
||||
input => "abc\0def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "def",
|
||||
input => "abc\0def ghi",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "x",
|
||||
input => "x",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "x",
|
||||
input => " x ",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "y",
|
||||
input => "xyz",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "containsWord",
|
||||
param => "hiding",
|
||||
input => "hidingX<-not on word boundary, but is later on->hiding",
|
||||
ret => 1,
|
||||
},
|
Reference in New Issue
Block a user