From 7ad65be8581da277aed8729a4daf998bace4606e Mon Sep 17 00:00:00 2001 From: Piotr Kosek Date: Fri, 31 Aug 2018 17:36:27 +0200 Subject: [PATCH] Fixed tests --- test/cxxtest/general.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/test/cxxtest/general.h b/test/cxxtest/general.h index 808c73a..f27241e 100644 --- a/test/cxxtest/general.h +++ b/test/cxxtest/general.h @@ -368,20 +368,7 @@ class EnumTests : public CxxTest::TestSuite { TS_ASSERT(maybe_depth); TS_ASSERT_EQUALS(*maybe_depth, +Depth::TrueColor); TS_ASSERT(!Channel::_from_index(45)); - - better_enums::optional maybe_depth = Depth::_from_index(0); - TS_ASSERT(maybe_depth); - TS_ASSERT_EQUALS(*maybe_depth, +Depth::HighColor); - - maybe_depth = Depth::_from_index(1); - TS_ASSERT(maybe_depth); - TS_ASSERT_EQUALS(*maybe_depth, +Depth::TrueColor); - TS_ASSERT(!Channel::_from_index(45)); - - better_enums::optional maybe_depth = Depth::_from_index(0); - TS_ASSERT(maybe_depth); - TS_ASSERT_EQUALS(*maybe_depth, +Depth::HighColor); - + better_enums::optional maybe_compression = Compression::_from_index(0); TS_ASSERT(maybe_compression); TS_ASSERT_EQUALS(*maybe_compression, +Compression::None); @@ -403,7 +390,7 @@ class EnumTests : public CxxTest::TestSuite { TS_ASSERT_EQUALS((+Channel::Green), Channel::_from_index_unchecked(1)); TS_ASSERT_EQUALS((+Channel::Blue), Channel::_from_index_unchecked(2)); - TS_ASSERT_EQUALS((+Depth::HighColor)), Depth::_from_index_unchecked(0)); + TS_ASSERT_EQUALS((+Depth::HighColor), Depth::_from_index_unchecked(0)); TS_ASSERT_EQUALS((+Depth::TrueColor), Depth::_from_index_unchecked(1)); TS_ASSERT_EQUALS((+Compression::None), Compression::_from_index_unchecked(0));