Skip to content

Commit 6b554a8

Browse files
committed
fix windows tests: Debug form has backslash paths
1 parent ec77772 commit 6b554a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mutant.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ mod test {
369369
assert!(debug_format.contains("span: Span(2, 5, 4, 6)"));
370370
assert!(debug_format.contains("short_replaced: None"));
371371
assert!(debug_format.contains(r#"name: "cargo-mutants-testdata-factorial""#));
372-
assert!(debug_format.contains(r#""src/bin/factorial.rs""#));
372+
assert!(
373+
debug_format.contains(r#""src/bin/factorial.rs""#)
374+
|| debug_format.contains(r#""src\bin\factorial.rs""#)
375+
);
373376
assert!(
374377
!debug_format.contains("fn main()"),
375378
"Debug form seems to contain source code"

0 commit comments

Comments
 (0)