Skip to content

Commit f9c0d67

Browse files
committed
test+refactor: Use raw string to avoid escape character
1 parent 67462f0 commit f9c0d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/test_path_name.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ fn root_dir() {
2828
#[cfg(windows)]
2929
#[test]
3030
fn root_dir() {
31-
let actual = path_name(&PathBuf::from("C:\\"));
32-
let expected = OsStringDisplay::os_string_from("C:\\");
31+
let actual = path_name(&PathBuf::from(r"C:\"));
32+
let expected = OsStringDisplay::os_string_from(r"C:\");
3333
assert_eq!(actual, expected);
3434
}
3535

0 commit comments

Comments
 (0)