diff --git a/S05-modifier/counted-match.t b/S05-modifier/counted-match.t index df98eb19b6..334fd32741 100644 --- a/S05-modifier/counted-match.t +++ b/S05-modifier/counted-match.t @@ -66,7 +66,6 @@ my $data = "f fo foo fooo foooo fooooo foooooo"; is @match, , 'nth(infinite range) matched correctly'; } -#?rakudo todo 'RT #125026' #?niecza skip 'hangs' { my @match = $data.match(/fo+/, :nth(2, 4 ... *)).list; @@ -92,14 +91,13 @@ my $data = "f fo foo fooo foooo fooooo foooooo"; # test that non-monotonic items in :nth lists are ignored #?niecza todo -#?rakudo.jvm skip 'RT #124279' { - is 'abacadaeaf'.match(/a./, :nth(2, 1, 4)).join(', '), - 'ac, ae', 'non-monotonic items in :nth are ignored'; - is 'abacadaeaf'.match(/a./, :nth(2, -1, 4)).join(', '), - 'ac, ae', 'negative non-monotonic items in :nth are ignored'; - is 'abacadaeaf'.match(/a./, :nth(2, 0, 4)).join(', '), - 'ac, ae', 'zero non-monotonic items in :nth are ignored'; + throws-like '"abacadaeaf".match(/a./, :nth(2, 1, 4)).join', Exception, + 'non-monotonic items in :nth throw'; + throws-like '"abacadaeaf".match(/a./, :nth(2, -1, 4)).join', Exception, + 'negative non-monotonic items throw'; + throws-like '"abacadaeaf".match(/a./, :nth(2, 0, 4)).join', Exception, + 'zero non-monotonic items throw'; } # RT #77408