Skip to content

Commit

Permalink
tests: reverse also ignore BOM when its in the last row of a proper…
Browse files Browse the repository at this point in the history
…ty test
  • Loading branch information
jqnatividad committed Dec 16, 2024
1 parent 1a3909a commit b4240b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_reverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ fn prop_reverse(name: &str, rows: CsvData, headers: bool) -> bool {
if rows.is_empty()
|| rows[0].contains(&"\u{FEFF}".to_string())
|| rows[0].contains(&"\u{feff}".to_string())
|| rows.last().unwrap().contains(&"\u{FEFF}".to_string())
|| rows.last().unwrap().contains(&"\u{feff}".to_string())
{
return true;
}
Expand All @@ -28,6 +30,8 @@ fn prop_reverse(name: &str, rows: CsvData, headers: bool) -> bool {
if expected.is_empty()
|| expected[0].contains(&"\u{FEFF}".to_string())
|| expected[0].contains(&"\u{feff}".to_string())
|| expected.last().unwrap().contains(&"\u{FEFF}".to_string())
|| expected.last().unwrap().contains(&"\u{feff}".to_string())
{
return true;
}
Expand Down

0 comments on commit b4240b6

Please sign in to comment.