From 60f917db3d43b11ea467359a08ce73f6326f8d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Thu, 26 Nov 2020 20:46:42 +0100 Subject: [PATCH] #161: test: test std::vector reconstruction --- tests/unit/test_reconstruct.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unit/test_reconstruct.cc b/tests/unit/test_reconstruct.cc index 50bf3dca..df378196 100644 --- a/tests/unit/test_reconstruct.cc +++ b/tests/unit/test_reconstruct.cc @@ -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 v; + + namespace ser = checkpoint; + + auto ret = ser::serialize>(v); + auto out = ser::deserialize>(std::move(ret)); + +} + }}} // end namespace checkpoint::tests::unit