mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Some more reorg of tests.
This commit is contained in:
35
apache2/t/op/verifyCC.t
Normal file
35
apache2/t/op/verifyCC.t
Normal file
@@ -0,0 +1,35 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
### Non-matching
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "TestCase",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
### Bad CC#
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "01234567890123456",
|
||||
rc => 0,
|
||||
},
|
||||
|
||||
### Good CC#
|
||||
{
|
||||
type => "op",
|
||||
name => "verifyCC",
|
||||
param => "\\d{15,16}",
|
||||
input => "372802490654059",
|
||||
rc => 0,
|
||||
},
|
Reference in New Issue
Block a user