| 1 |
## name basic passes |
| 2 |
## failures 0 |
| 3 |
## cut |
| 4 |
|
| 5 |
m/\w\d\p{Uppercase}/; |
| 6 |
m/[\w\s]/; |
| 7 |
|
| 8 |
#----------------------------------------------------------------------------- |
| 9 |
|
| 10 |
## name allowed classes |
| 11 |
## failures 0 |
| 12 |
## cut |
| 13 |
|
| 14 |
m/[B-Y]/; |
| 15 |
m/[0-8]/; |
| 16 |
m/[\x{ffef}]/; # for code coverage |
| 17 |
|
| 18 |
#----------------------------------------------------------------------------- |
| 19 |
|
| 20 |
## name basic failures |
| 21 |
## failures 8 |
| 22 |
## cut |
| 23 |
|
| 24 |
m/[A-Z]/; # \p{Uppercase} |
| 25 |
m/[a-z]/; # \p{Lowercase} |
| 26 |
m/[0-9]/; # \d |
| 27 |
m/[A-Za-z0-9_]/; # \w |
| 28 |
m/[0-9a-z_A-Z]/; # \w |
| 29 |
m/[a-zA-Z]/; # \p{Alphabetic} |
| 30 |
m/[ \t\r\n\f]/;# \s |
| 31 |
m/[\ \t\r\n]/; # \s |
| 32 |
|
| 33 |
#----------------------------------------------------------------------------- |
| 34 |
|
| 35 |
## name alterate representations of line endings |
| 36 |
## failures 3 |
| 37 |
## cut |
| 38 |
|
| 39 |
m/[\ \t\012\015]/; # \s |
| 40 |
m/[\ \t\x0a\x0d]/; # \s |
| 41 |
m/[\ \t\x{0a}\x{0d}]/; # \s |
| 42 |
|
| 43 |
#----------------------------------------------------------------------------- |
| 44 |
|
| 45 |
## name negative failures |
| 46 |
## failures 8 |
| 47 |
## cut |
| 48 |
|
| 49 |
m/[^\w]/; # \W |
| 50 |
m/[^\s]/; # \S |
| 51 |
m/[^0-9]/; # \D |
| 52 |
m/[^A-Za-z0-9_]/; # \W |
| 53 |
m/[^0-9a-z_A-Z]/; # \W |
| 54 |
m/[^a-zA-Z]/; # \P{Alphabetic} |
| 55 |
m/[^ \t\r\n\f]/;# \S |
| 56 |
m/[^\ \t\r\n]/; # \S |
| 57 |
|
| 58 |
#----------------------------------------------------------------------------- |
| 59 |
|
| 60 |
## name special negative successes |
| 61 |
## failures 0 |
| 62 |
## cut |
| 63 |
|
| 64 |
m/[^\s\w]/; |
| 65 |
|
| 66 |
#----------------------------------------------------------------------------- |
| 67 |
|
| 68 |
## name failing regexp with syntax error |
| 69 |
## failures 0 |
| 70 |
## cut |
| 71 |
|
| 72 |
m/[^\w] (/; |
| 73 |
|
| 74 |
#----------------------------------------------------------------------------- |
| 75 |
# Local Variables: |
| 76 |
# mode: cperl |
| 77 |
# cperl-indent-level: 4 |
| 78 |
# fill-column: 78 |
| 79 |
# indent-tabs-mode: nil |
| 80 |
# c-indentation-style: bsd |
| 81 |
# End: |
| 82 |
# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround : |