Skip to content

Commit bad1a99

Browse files
committed
io-path no longer magically changes paths on you
1 parent 73878e8 commit bad1a99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

S32-io/io-path-cygwin.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ my $uncpath = IO::Path::Cygwin.new("\\\\server\\share\\");
2323
is $uncpath.volume, "//server/share", 'volume "//server/share/" -> ""/server/share"';
2424
is $uncpath.directory, "/", 'directory "\\\\server\\share\\" -> "\\"';
2525
is $uncpath.basename, "/", 'basename "\\\\server\\share\\" -> "\\"';
26-
is $uncpath.Str, "//server/share", '"\\\\server\\share" restringifies "//server/share"';
26+
is $uncpath.Str, "\\\\server\\share\\", '"\\\\server\\share" restringifies to itself';
2727

2828
my $uncpath2 = IO::Path::Cygwin.new("//server/share/a");
2929
is $uncpath2.volume, "//server/share", 'volume "//server/share/a" -> ""//server/share"';
@@ -50,7 +50,7 @@ ok IO::Path::Cygwin.new("A:b").is-relative, '"A:b" is relative';
5050

5151

5252
is $relpath.absolute, IO::Spec::Cygwin.canonpath("$*CWD/foo/bar"), "absolute path from \$*CWD";
53-
is $relpath.absolute("\\usr"), "/usr/foo/bar", "absolute path specified";
53+
is $relpath.absolute("/usr"), "/usr/foo/bar", "absolute path specified";
5454
is IO::Path::Cygwin.new("/usr/bin").relative("/usr"), "bin", "relative path specified";
5555
is $relpath.absolute.relative, "foo/bar", "relative inverts absolute";
5656
is $relpath.absolute("/foo").relative("\\foo"), "foo/bar", "absolute inverts relative";

S32-io/io-path-win.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ my $uncpath = IO::Path::Win32.new("\\\\server\\share\\");
2323
is $uncpath.volume, "\\\\server\\share", 'volume "\\\\server\\share\\" -> ""\\\\server\\share"';
2424
is $uncpath.directory, "\\", 'directory "\\\\server\\share\\" -> "\\"';
2525
is $uncpath.basename, "\\", 'basename "\\\\server\\share\\" -> "\\"';
26-
is $uncpath.Str, "\\\\server\\share", '"\\\\server\\share" restringifies to itself';
26+
is $uncpath.Str, "\\\\server\\share\\", '"\\\\server\\share\\" restringifies to itself';
2727

2828
my $uncpath2 = IO::Path::Win32.new("//server/share/a");
2929
is $uncpath2.volume, "//server/share", 'volume "//server/share/a" -> ""//server/share"';

0 commit comments

Comments
 (0)