Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[split.t] tests for RT #63066
  • Loading branch information
moritz committed Jan 31, 2011
1 parent 2d2be1c commit 2be4bce
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S32-str/split.t
Expand Up @@ -8,7 +8,7 @@ use Test;
# this test really wants is_deeply()
# and got it, except for a couple of cases that fail because of Match objects
# being returned -- Aankhen
plan 36;
plan 39;

# split on an empty string

Expand Down Expand Up @@ -169,6 +169,16 @@ is "a.b".split(/\./).join(','), <a b>.join(','),
is @a[3][1], " ", "Fourth capture worked";
}

# RT #63066
{
is 'hello-world'.split(/<.ws>/).join('|'), '|hello|-|world|',
'zero-width delimiter (<.ws>)';
is 'hello-world'.split(/<.ws>/).join('|'), '|hello|-|world|',
'zero-width delimiter (<.wb>)';
is 'a-b-c'.split(/<.ws>/).join('|'), '|a|-|b|-|c|',
'zero-width delimiter (<.wb>) (2)';
}

done;

# vim: ft=perl6

0 comments on commit 2be4bce

Please sign in to comment.