From 22167885d779632f193d0644e0d5c9a2135343c5 Mon Sep 17 00:00:00 2001 From: neargye Date: Sat, 24 Aug 2019 20:09:50 +0500 Subject: [PATCH] update tests --- test/test.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 8867efd..f556090 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -171,13 +171,13 @@ TEST_CASE("enum_values") { constexpr auto s1 = enum_values(); REQUIRE(s1 == std::array{{Color::RED, Color::GREEN, Color::BLUE}}); - constexpr auto s2 = enum_values(); + auto s2 = enum_values(); REQUIRE(s2 == std::array{{Numbers::one, Numbers::two, Numbers::three}}); constexpr auto s3 = enum_values(); REQUIRE(s3 == std::array{{Directions::Left, Directions::Down, Directions::Up, Directions::Right}}); - constexpr auto s4 = enum_values(); + auto s4 = enum_values(); REQUIRE(s4 == std::array{{number::one, number::two, number::three}}); } @@ -185,13 +185,13 @@ TEST_CASE("enum_count") { constexpr auto s1 = enum_count(); REQUIRE(s1 == 3); - constexpr auto s2 = enum_count(); + auto s2 = enum_count(); REQUIRE(s2 == 3); constexpr auto s3 = enum_count(); REQUIRE(s3 == 4); - constexpr auto s4 = enum_count(); + auto s4 = enum_count(); REQUIRE(s4 == 3); } @@ -269,13 +269,13 @@ TEST_CASE("enum_names") { constexpr auto s1 = enum_names(); REQUIRE(s1 == std::array{{"RED", "GREEN", "BLUE"}}); - constexpr auto s2 = enum_names(); + auto s2 = enum_names(); REQUIRE(s2 == std::array{{"one", "two", "three"}}); constexpr auto s3 = enum_names(); REQUIRE(s3 == std::array{{"Left", "Down", "Up", "Right"}}); - constexpr auto s4 = enum_names(); + auto s4 = enum_names(); REQUIRE(s4 == std::array{{"one", "two", "three"}}); } @@ -283,13 +283,13 @@ TEST_CASE("enum_entries") { constexpr auto s1 = enum_entries(); REQUIRE(s1 == std::array, 3>{{{Color::RED, "RED"}, {Color::GREEN, "GREEN"}, {Color::BLUE, "BLUE"}}}); - constexpr auto s2 = enum_entries(); + auto s2 = enum_entries(); REQUIRE(s2 == std::array, 3>{{{Numbers::one, "one"}, {Numbers::two, "two"}, {Numbers::three, "three"}}}); constexpr auto s3 = enum_entries(); REQUIRE(s3 == std::array, 4>{{{Directions::Left, "Left"}, {Directions::Down, "Down"}, {Directions::Up, "Up"}, {Directions::Right, "Right"}}}); - constexpr auto s4 = enum_entries(); + auto s4 = enum_entries(); REQUIRE(s4 == std::array, 3>{{{number::one, "one"}, {number::two, "two"}, {number::three, "three"}}}); }