Skip to content

Commit

Permalink
#161: test: test std::vector reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 26, 2020
1 parent b17c31a commit ad5c8d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/test_reconstruct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,16 @@ using ConstructTypes = ::testing::Types<
REGISTER_TYPED_TEST_CASE_P(TestReconstruct, test_reconstruct_multi_type);
INSTANTIATE_TYPED_TEST_CASE_P(Test_reconstruct, TestReconstruct, ConstructTypes, );

struct TestReconstructVector : TestHarness { };

TEST_F(TestReconstructVector, test_vector) {
std::vector<UserObjectB> v;

namespace ser = checkpoint;

auto ret = ser::serialize<std::vector<UserObjectB>>(v);
auto out = ser::deserialize<std::vector<UserObjectB>>(std::move(ret));

}

}}} // end namespace checkpoint::tests::unit

0 comments on commit ad5c8d3

Please sign in to comment.