Skip to content

Commit a4f5ff4

Browse files
committed
fix: correct Windows UNC normalize expected value (mixed separator bug)
1 parent d1ec0ca commit a4f5ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/normalize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn windows() {
4040
assert_eq_str!(p!("/foo/../../../bar").normalize(), "\\bar");
4141
assert_eq_str!(p!("a//b//../b").normalize(), "a\\b");
4242
assert_eq_str!(p!("a//b//./c").normalize(), "a\\b\\c");
43-
assert_eq_str!(p!("//server/share/dir/file.ext").normalize(), "\\\\server\\share\\dir\\file.ext");
43+
assert_eq_str!(p!("//server/share/dir/file.ext").normalize(), "//server/share\\dir\\file.ext");
4444
assert_eq_str!(p!("/foo/../../../bar").normalize(), "\\bar");
4545
assert_eq_str!(p!("/a/b/c/../../../x/y/z").normalize(), "\\x\\y\\z");
4646
assert_eq_str!(p!("C:").normalize(), "C:.");

0 commit comments

Comments
 (0)