Skip to content

Commit

Permalink
Correct unicode regex test which didn't specify property name
Browse files Browse the repository at this point in the history
We should only test Script and General Category if we don't specify the
property we are testing for. Even though it works on MoarVM with just
<:Digit>, it shouldn't be in roast since it isn't specced.
  • Loading branch information
samcv committed Nov 30, 2017
1 parent 98d3743 commit 994f5fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions S05-mass/properties-general.t
Expand Up @@ -830,8 +830,9 @@ is ' ' ~~ m/<:White_Space>+/, ' ', '<:White_Space> matches space in regex';
is '' ~~ m/<alpha>/, '', '<alpha> matches alphabetics which are not Letters';

#?rakudo.jvm todo 'got (Nil)'
is 0x00B2.chr ~~ /<:Digit>/, 0x00B2.chr, "Digit matches Numeric_Type=Digit";
nok "a" ~~ /<:Digit>/, "Digit doesn't match normal letters";
is 0x00B2.chr ~~ /<:Numeric_Type<Digit>>/, 0x00B2.chr, "Digit matches Numeric_Type=Digit";
nok "a" ~~ /<:Numeric_Type<Digit>>/, "Digit doesn't match normal letters";
#?rakudo.jvm todo 'Digit matches things with property value Decimal'
nok "9" ~~ /<:Digit>/, "Digit doesn't match things with property value Decimal";
nok "9" ~~ /<:Numeric_Type<Digit>>/, "Digit doesn't match things with property value Decimal";

# vim: ft=perl6

0 comments on commit 994f5fe

Please sign in to comment.