Skip to content

Commit 7e04ed5

Browse files
committed
test: fix windows
1 parent 614f945 commit 7e04ed5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests/data_tree_reflection.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,14 @@ fn display_excessive_children() {
136136
.par_try_into_tree()
137137
.expect_err("create error")
138138
.to_string();
139-
let expected = r#"ExcessiveChildren: "root/b/0" (Bytes(321)) is less than a child named "def" (Bytes(456))"#;
139+
let expected = if cfg!(unix) {
140+
r#"ExcessiveChildren: "root/b/0" (Bytes(321)) is less than a child named "def" (Bytes(456))"#
141+
} else if cfg!(windows) {
142+
r#"ExcessiveChildren: "root\b\0" (Bytes(321)) is less than a child named "def" (Bytes(456))"#
143+
} else {
144+
eprintln!("ACTUAL: {actual}");
145+
panic!("This platform isn't supported!");
146+
};
140147
assert_eq!(actual, expected);
141148
}
142149

0 commit comments

Comments
 (0)