Skip to content

Commit

Permalink
update one test to cover parameter pack for std::array
Browse files Browse the repository at this point in the history
  • Loading branch information
farukeryilmaz committed Jan 6, 2024
1 parent fa8076a commit 9da46b6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/std_containers_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ TEST_CASE("Std containers - array test (big-endian)")
bytepack::binary_stream bstream(1024);

bstream.write(arr);
bstream.write(arr2);
bstream.write(arr3);
bstream.write(arr2, arr3);
bstream.write(arr4);

// std::array to deserialize
Expand All @@ -74,9 +73,7 @@ TEST_CASE("Std containers - array test (big-endian)")
bytepack::binary_stream bstream_(buffer);

bstream_.read(arr_);
bstream_.read(arr2_);
bstream_.read(arr3_);
bstream_.read(arr4_);
bstream_.read(arr2_, arr3_, arr4_);

REQUIRE(arr == arr_);
REQUIRE(arr2 == arr2_);
Expand Down

0 comments on commit 9da46b6

Please sign in to comment.