Skip to content

Commit ea55ffe

Browse files
committed
Fix faulty Str.comb(Regex,$limit) tests
1 parent 437a6cf commit ea55ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S32-str/comb.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ is( "a\c[COMBINING DOT ABOVE, COMBINING DOT BELOW]b".comb,
2727
{
2828
my Str $hair = "Th3r3 4r3 s0m3 numb3rs 1n th1s str1ng";
2929
is $hair.comb(/\d+/), <3 3 4 3 0 3 3 1 1 1>, 'no limit returns all matches';
30-
is $hair.comb(/\d+/, -10), (), 'negative limit returns no matches';
31-
is $hair.comb(/\d+/, 0), (), 'limit of 0 returns no matches';
30+
is $hair.comb(/\d+/, -10).elems, 0, 'negative limit returns no matches';
31+
is $hair.comb(/\d+/, 0).elems, 0, 'limit of 0 returns no matches';
3232
#?rakudo.jvm 2 skip "RT #124279 - UnwindException"
3333
is $hair.comb(/\d+/, 1), <3>, 'limit of 1 returns 1 match';
3434
is $hair.comb(/\d+/, 3), <3 3 4>, 'limit of 3 returns 3 matches';

0 commit comments

Comments
 (0)