Skip to content

Commit a34c0db

Browse files
committed
Update assertion messages to reflect status of / and \ paths
1 parent f0d3e7c commit a34c0db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gix-fs/tests/stack/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn path_join_handling() {
3838
let looks_absolute = p("/absolute");
3939
assert!(
4040
looks_absolute.is_relative(),
41-
"on Windows, absolute Linux paths are considered relative (and relative to the current drive)"
41+
"on Windows, 'absolute' Linux paths are relative (and relative to the current drive)"
4242
);
4343
let bs_looks_absolute = p("\\absolute");
4444
assert!(
@@ -48,12 +48,12 @@ fn path_join_handling() {
4848
assert_eq!(
4949
p("relative").join(looks_absolute),
5050
looks_absolute,
51-
"relative + absolute = absolute - however, they kind of act like they are absolute in conjunction with relative base paths"
51+
"relative + unix-absolute = unix-absolute - the relative path without a drive is replaced"
5252
);
5353
assert_eq!(
5454
p("relative").join(bs_looks_absolute),
5555
bs_looks_absolute,
56-
"relative + absolute = absolute - backslashes aren't special here, and it just acts like it's absolute"
56+
"relative + unix-absolute = unix-absolute - the relative path without a drive is replaced - backslashes aren't special here"
5757
);
5858

5959
assert_eq!(

0 commit comments

Comments
 (0)