Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unicode property test updates for NFG.
This updates/eliminates a small number of tests that don't make sense
under NFG.
  • Loading branch information
jnthn committed Apr 24, 2015
1 parent 8ebb19c commit ad5ec82
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions S05-mass/properties-block.t
Expand Up @@ -265,7 +265,7 @@ ok(!( "\c[COMBINING GRAVE ACCENT]" ~~ m/^<-:InCombiningDiacriticalMarks>$/ ), q{
ok(!( "\x[76DA]" ~~ m/^<:InCombiningDiacriticalMarks>$/ ), q{Don't match unrelated <InCombiningDiacriticalMarks>} );
ok("\x[76DA]" ~~ m/^<:!InCombiningDiacriticalMarks>$/, q{Match unrelated negated <InCombiningDiacriticalMarks>} );
ok("\x[76DA]" ~~ m/^<-:InCombiningDiacriticalMarks>$/, q{Match unrelated inverted <InCombiningDiacriticalMarks>} );
ok("\x[76DA]\c[COMBINING GRAVE ACCENT]" ~~ m/<:InCombiningDiacriticalMarks>/, q{Match unanchored <InCombiningDiacriticalMarks>} );
ok("\c[COMBINING GRAVE ACCENT]" ~~ m/<:InCombiningDiacriticalMarks>/, q{Match solitary <InCombiningDiacriticalMarks>} );

# InCombiningDiacriticalMarksforSymbols

Expand All @@ -276,7 +276,7 @@ ok(!( "\c[COMBINING LEFT HARPOON ABOVE]" ~~ m/^<-:InCombiningDiacriticalMarksfor
ok(!( "\x[7345]" ~~ m/^<:InCombiningDiacriticalMarksforSymbols>$/ ), q{Don't match unrelated <InCombiningDiacriticalMarksforSymbols>} );
ok("\x[7345]" ~~ m/^<:!InCombiningDiacriticalMarksforSymbols>$/, q{Match unrelated negated <InCombiningDiacriticalMarksforSymbols>} );
ok("\x[7345]" ~~ m/^<-:InCombiningDiacriticalMarksforSymbols>$/, q{Match unrelated inverted <InCombiningDiacriticalMarksforSymbols>} );
ok("\x[7345]\c[COMBINING LEFT HARPOON ABOVE]" ~~ m/<:InCombiningDiacriticalMarksforSymbols>/, q{Match unanchored <InCombiningDiacriticalMarksforSymbols>} );
ok("\c[COMBINING LEFT HARPOON ABOVE]" ~~ m/<:InCombiningDiacriticalMarksforSymbols>/, q{Match solitary <InCombiningDiacriticalMarksforSymbols>} );

# InCombiningHalfMarks

Expand Down
4 changes: 1 addition & 3 deletions S05-mass/properties-derived.t
Expand Up @@ -16,7 +16,7 @@ Some notes regarding specific unicode codepoints chosen below
=end pod

plan 256;
plan 254;

# ASCIIHexDigit

Expand Down Expand Up @@ -71,7 +71,6 @@ ok(!( "\c[HANUNOO SIGN PAMUDPOD]" ~~ m/^<-:GraphemeLink>$/ ), q{Don't match inve
ok(!( "\x[4989]" ~~ m/^<:GraphemeLink>$/ ), q{Don't match unrelated <GraphemeLink>} );
ok("\x[4989]" ~~ m/^<:!GraphemeLink>$/, q{Match unrelated negated <GraphemeLink>} );
ok("\x[4989]" ~~ m/^<-:GraphemeLink>$/, q{Match unrelated inverted <GraphemeLink>} );
ok("\x[4989]\c[HANUNOO SIGN PAMUDPOD]" ~~ m/<:GraphemeLink>/, q{Match unanchored <GraphemeLink>} );

# HexDigit

Expand Down Expand Up @@ -173,7 +172,6 @@ ok(!( "\c[COMBINING GREEK YPOGEGRAMMENI]" ~~ m/^<-:OtherAlphabetic>$/ ), q{Don't
ok(!( "\x[413C]" ~~ m/^<:OtherAlphabetic>$/ ), q{Don't match unrelated <OtherAlphabetic>} );
ok("\x[413C]" ~~ m/^<:!OtherAlphabetic>$/, q{Match unrelated negated <OtherAlphabetic>} );
ok("\x[413C]" ~~ m/^<-:OtherAlphabetic>$/, q{Match unrelated inverted <OtherAlphabetic>} );
ok("\x[413C]\c[COMBINING GREEK YPOGEGRAMMENI]" ~~ m/<:OtherAlphabetic>/, q{Match unanchored <OtherAlphabetic>} );

# OtherDefaultIgnorableCodePoint

Expand Down
5 changes: 1 addition & 4 deletions S05-mass/properties-general.t
Expand Up @@ -15,7 +15,7 @@ Unicode 5.2.
=end pod

plan 602;
plan 599;

# L Letter

Expand Down Expand Up @@ -183,15 +183,13 @@ ok(!( "\c[COMBINING GRAVE ACCENT]" ~~ m/^<-:M>$/ ), q{Don't match inverted <M> (
ok(!( "\x[D0AA]" ~~ m/^<:M>$/ ), q{Don't match unrelated <M> (Mark)} );
ok("\x[D0AA]" ~~ m/^<:!M>$/, q{Match unrelated negated <M> (Mark)} );
ok("\x[D0AA]" ~~ m/^<-:M>$/, q{Match unrelated inverted <M> (Mark)} );
ok("\x[D0AA]\c[COMBINING GRAVE ACCENT]" ~~ m/<:M>/, q{Match unanchored <M> (Mark)} );

ok("\c[COMBINING GRAVE ACCENT]" ~~ m/^<:Mark>$/, q{Match <:Mark>} );
ok(!( "\c[COMBINING GRAVE ACCENT]" ~~ m/^<:!Mark>$/ ), q{Don't match negated <Mark>} );
ok(!( "\c[COMBINING GRAVE ACCENT]" ~~ m/^<-:Mark>$/ ), q{Don't match inverted <Mark>} );
ok(!( "\x[BE64]" ~~ m/^<:Mark>$/ ), q{Don't match unrelated <Mark>} );
ok("\x[BE64]" ~~ m/^<:!Mark>$/, q{Match unrelated negated <Mark>} );
ok("\x[BE64]" ~~ m/^<-:Mark>$/, q{Match unrelated inverted <Mark>} );
ok("\x[BE64]\c[COMBINING GRAVE ACCENT]" ~~ m/<:Mark>/, q{Match unanchored <Mark>} );

# Mn NonspacingMark

Expand All @@ -205,7 +203,6 @@ ok("\x[47A5]" ~~ m/^<-:Mn>$/, q{Match unrelated inverted <Mn> (NonspacingMark)}
ok(!( "\c[COMBINING CYRILLIC HUNDRED THOUSANDS SIGN]" ~~ m/^<:Mn>$/ ), q{Don't match related <Mn> (NonspacingMark)} );
ok("\c[COMBINING CYRILLIC HUNDRED THOUSANDS SIGN]" ~~ m/^<:!Mn>$/, q{Match related negated <Mn> (NonspacingMark)} );
ok("\c[COMBINING CYRILLIC HUNDRED THOUSANDS SIGN]" ~~ m/^<-:Mn>$/, q{Match related inverted <Mn> (NonspacingMark)} );
ok("\x[47A5]\c[COMBINING CYRILLIC HUNDRED THOUSANDS SIGN]\c[COMBINING GRAVE ACCENT]" ~~ m/<:Mn>/, q{Match unanchored <Mn> (NonspacingMark)} );

ok("\c[TAGALOG VOWEL SIGN I]" ~~ m/^<:NonspacingMark>$/, q{Match <:NonspacingMark>} );
ok(!( "\c[TAGALOG VOWEL SIGN I]" ~~ m/^<:!NonspacingMark>$/ ), q{Don't match negated <NonspacingMark>} );
Expand Down
3 changes: 1 addition & 2 deletions S05-mass/properties-script.t
Expand Up @@ -11,7 +11,7 @@ ie letter vs. Letter vs isLetter
=end pod

plan 361;
plan 360;

# BidiL # Left-to-Right

Expand Down Expand Up @@ -310,7 +310,6 @@ ok(!( "\c[COMBINING GRAVE ACCENT]" ~~ m/^<-:Inherited>$/ ), q{Don't match invert
ok(!( "\x[75FA]" ~~ m/^<:Inherited>$/ ), q{Don't match unrelated <Inherited>} );
ok("\x[75FA]" ~~ m/^<!:Inherited>.$/, q{Match unrelated negated <Inherited>} );
ok("\x[75FA]" ~~ m/^<-:Inherited>$/, q{Match unrelated inverted <Inherited>} );
ok("\x[75FA]\c[COMBINING GRAVE ACCENT]" ~~ m/<:Inherited>/, q{Match unanchored <Inherited>} );

# Kannada

Expand Down

0 comments on commit ad5ec82

Please sign in to comment.