Skip to content

Commit b8e2b22

Browse files
committed
test: windows path join absolute
1 parent fdea369 commit b8e2b22

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/cli_errors.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ use std::{
2424
};
2525
use text_block_macros::text_block;
2626

27+
#[cfg(windows)]
28+
fn test_path_join_absolute() {
29+
let path = std::path::PathBuf::from(".").join("C:\\");
30+
dbg!(path);
31+
assert_eq!(path, std::path::PathBuf::from("C:\\"));
32+
}
33+
2734
fn stdio(command: Command) -> Command {
2835
command
2936
.with_stdin(Stdio::null())

0 commit comments

Comments
 (0)