File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
use v6 ;
2
2
use Test ;
3
3
4
- plan 36 ;
4
+ plan 38 ;
5
5
6
6
= begin description
7
7
@@ -80,15 +80,19 @@ ok 'A4' ~~ /:i a[3|4|5] | b[3|4] /, 'alternation sanity';
80
80
nok " m" ~~ /<[ M ] > /, " ignore case of character classes" ;
81
81
nok " n" ~~ /:i <[ M ] > /, " ignore case of character classes" ;
82
82
}
83
+
83
84
# RT #126793
84
85
{
85
86
# ?rakudo.jvm 1 todo "ligatures don't casefold on JVM"
86
87
ok ' st' ~~ /:i st /, " :i haystack 'st' needle 'st'" ;
87
- # ?rakudo 10 todo "ligatures in the haystack of case insensensitive regex don't work"
88
+ # ?rakudo 1 todo "ligatures in the haystack of case insensensitive regex don't work"
88
89
for 1 .. 10 {
89
90
my $ haystack = (' a' .. ' z' ). pick ($ _ ). join ~ ' st' ;
90
91
ok $ haystack ~~ /:i st /, " :i haystack: '$ haystack ' needle: 'st'" ;
91
92
}
92
93
}
93
94
95
+ nok (88 . chr ~ 875 . chr ~ 8413 . chr ) ~~ /:i x /, ' case insensitive regex works for haystacks which have synthetic graphemes' ;
96
+ ok (88 . chr ~ 875 . chr ~ 8413 . chr ~ ' x' ) ~~ /:i x /, ' case insensitive regex works for haystacks which have synthetic graphemes' ;
97
+
94
98
# vim: syn=perl6 sw=4 ts=4 expandtab
You can’t perform that action at this time.
0 commit comments