File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -523,14 +523,18 @@ mod tests {
523
523
let xml_string = master. as_string ( ) . unwrap ( ) ;
524
524
525
525
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 " ) ;
527
529
assert_eq ! ( xml_string, expected_content) ;
528
530
529
531
// Check the CSV content
530
532
let csv_entry = archive. entry ( "./data.tsv" ) . unwrap ( ) ;
531
533
let csv_string = csv_entry. as_string ( ) . unwrap ( ) ;
532
534
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 " ) ;
534
538
assert_eq ! ( csv_string, expected_csv_content) ;
535
539
}
536
540
You can’t perform that action at this time.
0 commit comments