Skip to content

Commit

Permalink
[tests] update demangle, remove win specific cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyr committed Jul 9, 2024
1 parent bbe3b72 commit 7e1fa2d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/unittest/Core/demangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ TEST_CASE( "Core/Utils/TypesUtils", "[Core][Core/Utils][TypesUtils]" ) {
REQUIRE( std::string( demangleType<int>() ) == "int" );
REQUIRE( std::string( demangleType<float>() ) == "float" );
REQUIRE( std::string( demangleType<uint>() ) == "unsigned int" );
// TODO, verify type demangling on windows
#ifndef _WIN32
REQUIRE( std::string( demangleType<size_t>() ) == "unsigned long" );
#else
REQUIRE( std::string( demangleType<size_t>() ) == "unsigned __int64" );
#endif
auto demangledName = std::string( demangleType<std::vector<int>>() );
REQUIRE( demangledName == "std::vector<int, std::allocator<int>>" );

Expand All @@ -40,12 +35,7 @@ TEST_CASE( "Core/Utils/TypesUtils", "[Core][Core/Utils][TypesUtils]" ) {
REQUIRE( std::string( demangleType( i ) ) == "int" );
REQUIRE( std::string( demangleType( f ) ) == "float" );
REQUIRE( std::string( demangleType( u ) ) == "unsigned int" );
// TODO, verify type demangling on windows
#ifndef _WIN32
REQUIRE( std::string( demangleType( s ) ) == "unsigned long" );
#else
REQUIRE( std::string( demangleType( s ) ) == "unsigned __int64" );
#endif
std::vector<int> v;
auto demangledName = std::string( demangleType( v ) );
REQUIRE( demangledName == "std::vector<int, std::allocator<int>>" );
Expand Down

0 comments on commit 7e1fa2d

Please sign in to comment.