Skip to content

Commit b4e1a78

Browse files
committed
Fix non-Windows tests with \\localhost paths
So they test what they strongly appear to be intending to test: the behavior of a UNC-style path `\\localhost`. They were instead testing `\localhost` because `\\` in a non-raw string becomes a single backslash. Although the symbolic representations in the assertion messages were clear enough to identify what the tests intended to test, this also adjusts those slightly so they remain comparable to the corresponding Windows tests whose assertion messages were recently changed.
1 parent 4d74033 commit b4e1a78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gix-fs/tests/stack/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ fn path_join_handling() {
165165
);
166166

167167
assert_eq!(
168-
p("/").join("\\localhost"),
169-
p("/\\localhost"),
170-
"absolute + win-absolute-unc = joined result"
168+
p("/").join("\\\\localhost"),
169+
p("/\\\\localhost"),
170+
"absolute + win-absolute-unc-host = joined result"
171171
);
172172
assert_eq!(
173-
p("relative").join("\\localhost"),
174-
p("relative/\\localhost"),
175-
"relative + win-absolute-unc = joined result"
173+
p("relative").join("\\\\localhost"),
174+
p("relative/\\\\localhost"),
175+
"relative + win-absolute-unc-host = joined result"
176176
);
177177
}
178178

0 commit comments

Comments
 (0)