Skip to content

Commit

Permalink
Use forward-slash paths in test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Aug 7, 2022
1 parent 2ec1888 commit 8fd607a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use itertools::Itertools;
// use assert_cmd::prelude::*;
// use assert_cmd::Command;
use lazy_static::lazy_static;
use path_slash::PathBufExt;
use predicate::str::{contains, is_match};
use predicates::prelude::*;
use pretty_assertions::assert_eq;
Expand Down Expand Up @@ -149,7 +150,7 @@ fn list_mutants_in_all_trees_as_json() {
// that makes it harder to review.
let mut buf = String::new();
for dir_path in all_testdata_tree_paths() {
writeln!(buf, "## {}\n", dir_path.display()).unwrap();
writeln!(buf, "## {}\n", dir_path.to_slash_lossy()).unwrap();
let cmd_assert = run()
.arg("mutants")
.arg("--list")
Expand All @@ -167,7 +168,7 @@ fn list_mutants_in_all_trees_as_json() {
fn list_mutants_in_all_trees_as_text() {
let mut buf = String::new();
for dir_path in all_testdata_tree_paths() {
writeln!(buf, "## {}\n\n```", dir_path.display()).unwrap();
writeln!(buf, "## {}\n\n```", dir_path.to_slash_lossy()).unwrap();
let stdout = run()
.arg("mutants")
.arg("--list")
Expand Down

0 comments on commit 8fd607a

Please sign in to comment.