Skip to content

Commit 7e46832

Browse files
committed
replace chars causing os problems
Windows doing its best to be the biggest headache at cross-platform development again ☕️
1 parent 3efc0a8 commit 7e46832

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/combine/combinearchive.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,14 +523,18 @@ mod tests {
523523
let xml_string = master.as_string().unwrap();
524524

525525
let expected_path = Path::new("tests/data/expected_omex_content.xml");
526-
let expected_content = fs::read_to_string(expected_path).unwrap();
526+
let expected_content = fs::read_to_string(expected_path)
527+
.unwrap()
528+
.replace("\r\n", "\n");
527529
assert_eq!(xml_string, expected_content);
528530

529531
// Check the CSV content
530532
let csv_entry = archive.entry("./data.tsv").unwrap();
531533
let csv_string = csv_entry.as_string().unwrap();
532534
let expected_csv_path = Path::new("tests/data/expected_omex_data.tsv");
533-
let expected_csv_content = fs::read_to_string(expected_csv_path).unwrap();
535+
let expected_csv_content = fs::read_to_string(expected_csv_path)
536+
.unwrap()
537+
.replace("\r\n", "\n");
534538
assert_eq!(csv_string, expected_csv_content);
535539
}
536540

0 commit comments

Comments
 (0)