Skip to content

Commit

Permalink
#143: tests: strengthen the virtual serialize test
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Oct 19, 2020
1 parent c3ffe4f commit bea62f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/unit/test_virtual_serialize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,11 @@ struct HolderBasic final : HolderObjBase<ObjT> {
};

TEST_F(TestVirtualSerializeTemplated, test_virtual_serialize_templated) {
std::unique_ptr<HolderBase> ptr = std::make_unique<HolderBasic<int>>();
checkpoint::getSize(ptr);
using TestType = std::unique_ptr<HolderBase>;
TestType ptr = std::make_unique<HolderBasic<int>>(10);

auto ret = checkpoint::serialize(ptr);
checkpoint::deserialize<TestType>(std::move(ret));
}

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

0 comments on commit bea62f8

Please sign in to comment.