Skip to content

Commit 02ab716

Browse files
committed
[v6.d REVIEW] Expand IO::Spec::Unix.basename
Include a test with backslash, which isn't a path separator on *nix
1 parent 322694e commit 02ab716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S32-io/io-spec-unix.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ else {
197197

198198
subtest '.basename' => {
199199
my @tests = '' => '', '.' => '.', '/' => '', 'foo/' => '', '/.' => '.',
200-
'foo/.' => '.', 'foo/..' => '..', 'foo/...' => '...',
200+
'foo/.' => '.', 'foo/..' => '..', 'foo/...' => '...', y/\z => \z,
201201
'bar/♥foo' => '♥foo', '♥foo' => '♥foo', '♥foo/..' => '..';
202202

203203
plan +@tests;

0 commit comments

Comments
 (0)