Skip to content

Commit a5d933f

Browse files
committed
Test IO::Path.extension with excluded Range as parts
Rakudo fix: rakudo/rakudo@8efffb1d13
1 parent 4e5c102 commit a5d933f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

S32-io/io-path-extension.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ my @tests = gather {
2020
\( :parts(0..3) ) => 'txt.tar.gz',
2121
\( :parts(0..9) ) => 'txt.tar.gz',
2222
\( :parts(0..∞) ) => 'txt.tar.gz',
23+
\( :parts( ^∞) ) => 'txt.tar.gz',
24+
\( :parts(1^..^3) ) => 'tar.gz',
25+
\( :parts(1^..*) ) => 'txt.tar.gz',
2326
\( :parts(0..*) ) => 'txt.tar.gz',
2427
\( :4parts ) => '',
2528
\( :parts(4..4) ) => '',
29+
\( :parts(3^..4) ) => '',
30+
\( :parts(2^..4) ) => 'txt.tar.gz',
2631
\( :parts(0..4) ) => 'txt.tar.gz',
2732
\( :0parts ) => '',
2833
\( :parts(0..0) ) => '',

0 commit comments

Comments
 (0)