Skip to content

Commit

Permalink
tests: account for BOM in reverse tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Oct 20, 2024
1 parent 52e0cd9 commit e735d15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_reverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ fn prop_reverse(name: &str, rows: CsvData, headers: bool) -> bool {
vec![]
};
expected.reverse();
if !expected.is_empty() && expected[0].contains(&"\u{FEFF}".to_string()) {
return true;
}
if !headers.is_empty() {
expected.insert(0, headers);
}
Expand Down

0 comments on commit e735d15

Please sign in to comment.