Skip to content

Commit

Permalink
Changes related to RT #129945
Browse files Browse the repository at this point in the history
Fixes RT #125026 and bypasses issues mentioned in RT #124279 as
gather/take is no longer used internally.  Still need to look at the
behaviour tested for RT #77408
  • Loading branch information
lizmat committed Oct 23, 2016
1 parent 163d683 commit 9a26611
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions S05-modifier/counted-match.t
Expand Up @@ -66,7 +66,6 @@ my $data = "f fo foo fooo foooo fooooo foooooo";
is @match, <foo fooo foooo fooooo foooooo>, 'nth(infinite range) matched correctly';
}

#?rakudo todo 'RT #125026'
#?niecza skip 'hangs'
{
my @match = $data.match(/fo+/, :nth(2, 4 ... *)).list;
Expand All @@ -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
Expand Down

0 comments on commit 9a26611

Please sign in to comment.