Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-mausch committed Jul 3, 2023
1 parent d2d0082 commit 923b5ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/csv_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use haspa_camt052_to_csv::process;

#[test]
fn test_csv() {
let mut buf = Vec::new();
process(vec!["./tests/camt052.xml".to_string()], Csv, &mut buf).unwrap();
let mut output = Vec::new();
process(vec!["./tests/camt052.xml".to_string()], Csv, &mut output).unwrap();

let expected_output = std::fs::read_to_string("./tests/camt052.csv").unwrap();
assert_eq!(from_utf8(&buf).unwrap(), expected_output, "CSV Output");
assert_eq!(from_utf8(&output).unwrap(), expected_output, "CSV Output");
}

0 comments on commit 923b5ef

Please sign in to comment.