Changeset 22668 for t

Show
Ignore:
Timestamp:
10/20/08 14:41:46 (3 months ago)
Author:
moritz
Message:

[t/spec] correct ignorecase.t

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S05-modifier/ignorecase.t

    r22464 r22668  
    22use Test; 
    33 
    4 plan 7; 
     4plan 13; 
    55 
    66=begin description 
     
    1010There are still a few things missing, like lower case <-> title case <-> upper 
    1111case tests 
     12 
     13Note that the meaning of C<:i> does B<not> descend into subrules. 
    1214 
    1315=end description 
     
    2628# without :i 
    2729 
    28 "Hello" ~~ m/<mixedcase>/; 
    29 is(~$/, "Hello", "match mixed case"); 
     30ok "Hello" ~~ m/<mixedcase>/, "match mixed case (subrule)"; 
     31ok 'Hello' ~~ m/Hello/,       "match mixed case (direct)"; 
    3032 
    31 "hello" ~~ m/<mixedcase>/; 
    32 is(~$/, "", "do not match lowercase"); 
     33ok "hello" !~~ m/<mixedcase>/, "do not match lowercase (subrule)"; 
     34ok "hello" !~~ m/Hello/,       "do not match lowercase (direct)"; 
    3335 
    3436#?rakudo emit skip_rest('unimplemented m:i parsing'); 
     
    3638#?rakudo emit =begin 
    3739 
    38 "hello" ~~ m:i/<mixedcase>/; 
    39 is(~$/, "hello", "match with :i"); 
     40ok "hello" !~~ m:i/<mixedcase>/, "no match with :i if matched by subrule"; 
     41ok "hello"  ~~ m:i/Hello/,       "match with :i (direct)"; 
    4042 
    41 "hello" ~~ m:ignorecase/<mixedcase>/; 
    42 is(~$/, "hello", "match with :ignorecase"); 
     43ok "hello" !~~ m:ignorecase/<mixedcase>/,  "no match with :ignorecase + subrule"; 
     44ok "hello" !~~ m:ignorecase/Hello/,        "match with :ignorecase (direct)"; 
    4345ok('Δ' ~~ m:i/δ/, ':i with greek chars'); 
    4446