This commit is contained in:
neargye 2019-03-26 12:37:43 +05:00
parent 601b95ee41
commit af53b6eadb

View file

@ -454,7 +454,7 @@ TEST_CASE("Spaces and Tabs ignored") {
REQUIRE(NAMEOF( struct_var ) == "struct_var"); REQUIRE(NAMEOF( struct_var ) == "struct_var");
REQUIRE(NAMEOF_FULL( struct_var ) == "struct_var"); REQUIRE(NAMEOF_FULL( struct_var ) == "struct_var");
REQUIRE(NAMEOF_RAW( struct_var ) == "struct_var"); REQUIRE(NAMEOF_RAW( struct_var ) == "struct_var");
#if defined(__clang__) || defined(_MSC_VER) #if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER)
REQUIRE(NAMEOF_ENUM( color ) == "RED"); REQUIRE(NAMEOF_ENUM( color ) == "RED");
#elif defined(__GNUC__) #elif defined(__GNUC__)
REQUIRE(NAMEOF_ENUM( color ) == "(Color)-1"); REQUIRE(NAMEOF_ENUM( color ) == "(Color)-1");
@ -467,7 +467,7 @@ TEST_CASE("Spaces and Tabs ignored") {
REQUIRE(NAMEOF( struct_var ) == "struct_var"); REQUIRE(NAMEOF( struct_var ) == "struct_var");
REQUIRE(NAMEOF_FULL( struct_var ) == "struct_var"); REQUIRE(NAMEOF_FULL( struct_var ) == "struct_var");
REQUIRE(NAMEOF_RAW( struct_var ) == "struct_var"); REQUIRE(NAMEOF_RAW( struct_var ) == "struct_var");
#if defined(__clang__) || defined(_MSC_VER) #if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER)
REQUIRE(NAMEOF_ENUM( color ) == "RED"); REQUIRE(NAMEOF_ENUM( color ) == "RED");
#elif defined(__GNUC__) #elif defined(__GNUC__)
REQUIRE(NAMEOF_ENUM( color ) == "(Color)-1"); REQUIRE(NAMEOF_ENUM( color ) == "(Color)-1");