Skip to content

Commit

Permalink
Fix tests on windows.
Browse files Browse the repository at this point in the history
Replace LF with CRLF in expected output.
  • Loading branch information
TheVeryDarkness committed Sep 4, 2024
1 parent 3389c65 commit a7e876d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use std::{
};

fn test_example(name: &str, input: &str, out: &str) {
#[cfg(target_os = "windows")]
let out = out.replace("\n", "\r\n");
let mut child = Command::new("cargo")
.arg("run")
.arg("--example")
Expand Down

0 comments on commit a7e876d

Please sign in to comment.