Skip to content

Commit

Permalink
Fix toisto_writer for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
karip committed Jul 26, 2024
1 parent 63fb236 commit f97eede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/toisto_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ fn run_test_for_files(json_filenames: &[String], verbose: bool, no_errors: bool)
let mut count_fail = 0;
let mut count_ignore = 0;
for json_filename in json_filenames {
if ignored.contains(&json_filename.as_ref()) {
let json_filename_dashed = json_filename.replace('\\', "/"); // for Windows
if ignored.contains(&json_filename_dashed.as_ref()) {
count_ignore += 1;
if verbose {
println!("IGNORE: {}", json_filename);
Expand Down

0 comments on commit f97eede

Please sign in to comment.