Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
De-fragile <:Ideographic> tests.
Unicode sometimes adds more to the range, so picking one off the end
to test "not an ideograph" puts the test at risk of failing for no
good reason in future versions of Unicode. This is the case when going
from Unicode 7 to Unicode 8, which does all more ideographs.
  • Loading branch information
jnthn committed Jun 23, 2015
1 parent af92bda commit 4cabf2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S05-mass/properties-derived.t
Expand Up @@ -99,10 +99,10 @@ ok("\c[BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE]\c[KATAKANA MIDDLE DOT]" ~~ m/<:
ok("\x[8AB0]" ~~ m/^<:Ideographic>$/, q{Match <:Ideographic>} );
ok(!( "\x[8AB0]" ~~ m/^<:!Ideographic>$/ ), q{Don't match negated <Ideographic>} );
ok(!( "\x[8AB0]" ~~ m/^<-:Ideographic>$/ ), q{Don't match inverted <Ideographic>} );
ok(!( "\x[9FCD]" ~~ m/^<:Ideographic>$/ ), q{Don't match unrelated <Ideographic>} );
ok("\x[9FCD]" ~~ m/^<:!Ideographic>$/, q{Match unrelated negated <Ideographic>} );
ok("\x[9FCD]" ~~ m/^<-:Ideographic>$/, q{Match unrelated inverted <Ideographic>} );
ok("\x[9FCD]\x[8AB0]" ~~ m/<:Ideographic>/, q{Match unanchored <Ideographic>} );
ok(!( "A" ~~ m/^<:Ideographic>$/ ), q{Don't match unrelated <Ideographic>} );
ok("A" ~~ m/^<:!Ideographic>$/, q{Match unrelated negated <Ideographic>} );
ok("A" ~~ m/^<-:Ideographic>$/, q{Match unrelated inverted <Ideographic>} );
ok("A\x[8AB0]" ~~ m/<:Ideographic>/, q{Match unanchored <Ideographic>} );

# IDSBinaryOperator

Expand Down

0 comments on commit 4cabf2d

Please sign in to comment.