Skip to content

Commit 8fd607a

Browse files
committed
Use forward-slash paths in test snapshots
1 parent 2ec1888 commit 8fd607a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/cli.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use itertools::Itertools;
1212
// use assert_cmd::prelude::*;
1313
// use assert_cmd::Command;
1414
use lazy_static::lazy_static;
15+
use path_slash::PathBufExt;
1516
use predicate::str::{contains, is_match};
1617
use predicates::prelude::*;
1718
use pretty_assertions::assert_eq;
@@ -149,7 +150,7 @@ fn list_mutants_in_all_trees_as_json() {
149150
// that makes it harder to review.
150151
let mut buf = String::new();
151152
for dir_path in all_testdata_tree_paths() {
152-
writeln!(buf, "## {}\n", dir_path.display()).unwrap();
153+
writeln!(buf, "## {}\n", dir_path.to_slash_lossy()).unwrap();
153154
let cmd_assert = run()
154155
.arg("mutants")
155156
.arg("--list")
@@ -167,7 +168,7 @@ fn list_mutants_in_all_trees_as_json() {
167168
fn list_mutants_in_all_trees_as_text() {
168169
let mut buf = String::new();
169170
for dir_path in all_testdata_tree_paths() {
170-
writeln!(buf, "## {}\n\n```", dir_path.display()).unwrap();
171+
writeln!(buf, "## {}\n\n```", dir_path.to_slash_lossy()).unwrap();
171172
let stdout = run()
172173
.arg("mutants")
173174
.arg("--list")

0 commit comments

Comments
 (0)