Skip to content

Commit

Permalink
fix: pass test under linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Sep 13, 2024
1 parent b499fc6 commit 6ec1197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ mod tests {
.unwrap()
.read_to_string(&mut expected_model)
.unwrap();
let expected_model_str = expected_model.replace("\n\n", "\n");
let expected_model_str =
expected_model.replace("\r\n", "\n").replace("\n\n", "\n");

assert_eq!(
received["m"].as_str().unwrap().trim(),
Expand Down

0 comments on commit 6ec1197

Please sign in to comment.