yeah backslashes are weird

This commit is contained in:
Devyn Cairns 2024-06-24 16:17:32 -07:00
parent 4a01a38341
commit 7c776e5fde

View File

@ -237,7 +237,13 @@ fn external_command_ndots_args() {
assert_eq!(
actual.out,
"foo/. foo/.. foo/../.. foo/./bar foo/../bar foo/../../bar ./bar ../bar ../../bar"
if cfg!(windows) {
// Windows is a bit weird right now, where if ndots has to fix something it's going to
// change everything to backslashes too. Would be good to fix that
r"foo/. foo/.. foo\..\.. foo/./bar foo/../bar foo\..\..\bar ./bar ../bar ..\..\bar"
} else {
r"foo/. foo/.. foo/../.. foo/./bar foo/../bar foo/../../bar ./bar ../bar ../../bar"
}
);
}