Skip to content

Commit

Permalink
✅ Always use LF instead of CRLF whatever OS we are running on
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlm committed Jan 10, 2024
1 parent 50cb66c commit 3e182c5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions quickfix-spec-parser/tests/test_valid_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ fn check(expected: &[u8]) {
let spec = parse_spec(expected).unwrap();

let out = write_spec(&spec).unwrap();
let txt = String::from_utf8(out.to_vec())
let out_txt = String::from_utf8(out.to_vec())
.unwrap()
.replace('\"', "'")
.replace("/>", " />");
.replace("/>", " />")
.replace("\r\n", "\n");

assert_eq!(txt.as_bytes(), expected);
let expected_txt = String::from_utf8(expected.to_vec())
.unwrap()
.replace("\r\n", "\n");

assert_eq!(out_txt, expected_txt);
}

#[test]
Expand Down

0 comments on commit 3e182c5

Please sign in to comment.