Skip to content

Commit

Permalink
csv_encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Jan 23, 2025
1 parent 0d12854 commit cc2b5dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/csv/src/encode_decode_csv_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ TEMPLATE_TEST_CASE("test_csv_encoder_reset", "",
// Missing column and array end
f.encoder.flush();

CHECK("h1,h2\n1" == f.string1());
CHECK("h1,h2\n" == f.string1());
f.encoder.reset();
f.encoder.begin_array();
f.encoder.begin_array();
Expand All @@ -217,7 +217,7 @@ TEMPLATE_TEST_CASE("test_csv_encoder_reset", "",
f.encoder.end_array();
f.encoder.end_array();
f.encoder.flush();
CHECK("h1,h2\n1h3,h4\n3,4\n" == f.string1());
CHECK("h1,h2\nh3,h4\n3,4\n" == f.string1());

// Reset and encode to different sink
f.encoder.reset(f.output2);
Expand Down

0 comments on commit cc2b5dd

Please sign in to comment.