Skip to content

Commit a11fe15

Browse files
committed
Fix assertion message for joining c: to relative
This rewrites the custom message in that assertion so it states the applicable semantics and avoids claiming that `c:relative` and `c:\relative` are equivalent, which is not generally, nor usually, the case. (The message was also written with an unescaped `\r` in a non-raw string literal, but a literal `\r` was intended. The new wording no longer includes an explicit path, but if that is added then the problem can be avoided by writing `\\r` or writing a raw string.) This relates to: - https://github.com/Byron/gitoxide/pull/1374/files/e955770c0b5c06a6c8518a06df4aa0cc3b506f16#r1721045107
1 parent 83c9de0 commit a11fe15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-fs/tests/stack/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn path_join_handling() {
5959
assert_eq!(
6060
p("c:").join("relative"),
6161
p("c:relative"),
62-
"drive + relative = strange joined result with missing backslash, but it's a valid path that works just like `c:\relative`"
62+
"drive + relative = relative to the drive-specific current directory"
6363
);
6464
assert_eq!(
6565
p("c:\\").join("relative"),

0 commit comments

Comments
 (0)