Skip to content

Commit f97eede

Browse files
committed
Fix toisto_writer for Windows
1 parent 63fb236 commit f97eede

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/toisto_writer.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ fn run_test_for_files(json_filenames: &[String], verbose: bool, no_errors: bool)
152152
let mut count_fail = 0;
153153
let mut count_ignore = 0;
154154
for json_filename in json_filenames {
155-
if ignored.contains(&json_filename.as_ref()) {
155+
let json_filename_dashed = json_filename.replace('\\', "/"); // for Windows
156+
if ignored.contains(&json_filename_dashed.as_ref()) {
156157
count_ignore += 1;
157158
if verbose {
158159
println!("IGNORE: {}", json_filename);

0 commit comments

Comments
 (0)