- Timestamp:
- 10/20/08 14:41:46 (3 months ago)
- Files:
-
- 1 modified
-
t/spec/S05-modifier/ignorecase.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S05-modifier/ignorecase.t
r22464 r22668 2 2 use Test; 3 3 4 plan 7;4 plan 13; 5 5 6 6 =begin description … … 10 10 There are still a few things missing, like lower case <-> title case <-> upper 11 11 case tests 12 13 Note that the meaning of C<:i> does B<not> descend into subrules. 12 14 13 15 =end description … … 26 28 # without :i 27 29 28 "Hello" ~~ m/<mixedcase>/;29 is(~$/, "Hello", "match mixed case");30 ok "Hello" ~~ m/<mixedcase>/, "match mixed case (subrule)"; 31 ok 'Hello' ~~ m/Hello/, "match mixed case (direct)"; 30 32 31 "hello" ~~ m/<mixedcase>/;32 is(~$/, "", "do not match lowercase");33 ok "hello" !~~ m/<mixedcase>/, "do not match lowercase (subrule)"; 34 ok "hello" !~~ m/Hello/, "do not match lowercase (direct)"; 33 35 34 36 #?rakudo emit skip_rest('unimplemented m:i parsing'); … … 36 38 #?rakudo emit =begin 37 39 38 "hello" ~~ m:i/<mixedcase>/;39 is(~$/, "hello", "match with :i");40 ok "hello" !~~ m:i/<mixedcase>/, "no match with :i if matched by subrule"; 41 ok "hello" ~~ m:i/Hello/, "match with :i (direct)"; 40 42 41 "hello" ~~ m:ignorecase/<mixedcase>/;42 is(~$/, "hello", "match with :ignorecase");43 ok "hello" !~~ m:ignorecase/<mixedcase>/, "no match with :ignorecase + subrule"; 44 ok "hello" !~~ m:ignorecase/Hello/, "match with :ignorecase (direct)"; 43 45 ok('Δ' ~~ m:i/δ/, ':i with greek chars'); 44 46
