diff --git a/test/test.cpp b/test/test.cpp index 971faad..b386a27 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -210,9 +210,9 @@ TEST_CASE("NAMEOF_RAW") { } TEST_CASE("NAMEOF_ENUM") { +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) Color color_ = Color::BLUE; Color m[3] = {Color::RED, Color::GREEN, Color::BLUE}; -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(NAMEOF_ENUM(Color::RED) == "RED"); REQUIRE(NAMEOF_ENUM(color) == "RED"); @@ -227,9 +227,9 @@ TEST_CASE("NAMEOF_ENUM") { } TEST_CASE("nameof::nameof_enum(value)") { +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) Color color_ = Color::BLUE; Color m[3] = {Color::RED, Color::GREEN, Color::BLUE}; -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(nameof::nameof_enum(Color::RED) == "RED"); REQUIRE(nameof::nameof_enum(color) == "RED"); @@ -244,9 +244,9 @@ TEST_CASE("nameof::nameof_enum(value)") { } TEST_CASE("nameof::nameof_enum()") { +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) constexpr Color color_ = Color::BLUE; constexpr Color m[3] = {Color::RED, Color::GREEN, Color::BLUE}; -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(nameof::nameof_enum() == "RED"); REQUIRE(nameof::nameof_enum() == "RED");