diff --git a/tests/unit/test_polymorphic.cc b/tests/unit/test_polymorphic.cc index 84b24104..215e3ce9 100644 --- a/tests/unit/test_polymorphic.cc +++ b/tests/unit/test_polymorphic.cc @@ -112,6 +112,8 @@ void testPolymorphicTypes(int val) { auto out = checkpoint::deserialize(std::move(ret)); EXPECT_TRUE(nullptr != out); + EXPECT_EQ(typeid(*task), typeid(*out)); + EXPECT_TRUE(nullptr != dynamic_cast(out.get())); EXPECT_EQ(val, out->getVal()); }