From 3069874066eb2ffb4ac47edd00f8b2e99a6cc997 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Wed, 17 Jun 2015 00:38:02 +0200 Subject: [PATCH] Fix test cases --- test/data/FixedSizeDataTest.cpp | 4 ++-- test/pointer_test.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/data/FixedSizeDataTest.cpp b/test/data/FixedSizeDataTest.cpp index 065b7425..96149d10 100644 --- a/test/data/FixedSizeDataTest.cpp +++ b/test/data/FixedSizeDataTest.cpp @@ -34,11 +34,11 @@ public: constexpr unsigned int FixedSizeDataTest::SIZE; TEST_F(FixedSizeDataTest, CanGenerateRandomDataWithoutCrashing) { - FixedSizeData result = FixedSizeData::CreateRandom(); + FixedSizeData result = FixedSizeData::CreatePseudoRandom(); } TEST_F(FixedSizeDataTest, CreatedRandomDatasHaveCorrectLength) { - FixedSizeData data = FixedSizeData::CreateRandom(); + FixedSizeData data = FixedSizeData::CreatePseudoRandom(); EXPECT_EQ(FixedSizeData::STRING_LENGTH, data.ToString().size()); } diff --git a/test/pointer_test.cpp b/test/pointer_test.cpp index 6206ec0d..b8ed110c 100644 --- a/test/pointer_test.cpp +++ b/test/pointer_test.cpp @@ -13,6 +13,8 @@ public: class Child: public Parent {}; class Child2: public Parent {}; +//TODO Add test cases that the correct (virtual) destructor is called + TEST(DynamicPointerMoveTest, NullPtrParentToChildCast) { unique_ptr source(nullptr); unique_ptr casted = dynamic_pointer_move(source);