This commit is contained in:
neargye 2020-06-03 19:49:13 +05:00
parent 7bf624de33
commit 59f176a10f

View file

@ -688,13 +688,10 @@ TEST_CASE("nameof::nameof_type") {
#if defined(NAMEOF_TYPE_RTTI_SUPPORTED) && NAMEOF_TYPE_RTTI_SUPPORTED
TEST_CASE("NAMEOF_TYPE_RTTI") {
#if defined(__clang__)
REQUIRE(NAMEOF_TYPE_RTTI(std::string) == "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >");
REQUIRE(NAMEOF_TYPE_RTTI(Color) == "Color");
#elif defined(_MSC_VER)
REQUIRE(NAMEOF_TYPE_RTTI(std::string) == "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >");
REQUIRE(NAMEOF_TYPE_RTTI(Color) == "enum Color");
#elif defined(__GNUC__)
REQUIRE(NAMEOF_TYPE_RTTI(std::string) == "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >");
REQUIRE(NAMEOF_TYPE_RTTI(Color) == "Color");
#endif
}