@@ -12,6 +12,7 @@ use itertools::Itertools;
1212// use assert_cmd::prelude::*;
1313// use assert_cmd::Command;
1414use lazy_static:: lazy_static;
15+ use path_slash:: PathBufExt ;
1516use predicate:: str:: { contains, is_match} ;
1617use predicates:: prelude:: * ;
1718use 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() {
167168fn 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