Skip to content

Commit

Permalink
Further simplification of passing the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-mausch committed Jul 3, 2023
1 parent 934797e commit d2d0082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/csv_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use haspa_camt052_to_csv::process;
#[test]
fn test_csv() {
let mut buf = Vec::new();
process(vec!["./tests/camt052.xml".to_string()], Csv, &mut Box::new(&mut buf)).unwrap();
process(vec!["./tests/camt052.xml".to_string()], Csv, &mut buf).unwrap();

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

0 comments on commit d2d0082

Please sign in to comment.