mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 18:35:40 +02:00
Build 36
- incorporation of pull request #154 to allow comparison with nullptr_t - some compiler capability tweaks
This commit is contained in:
@@ -348,3 +348,15 @@ TEST_CASE( "non streamable - with conv. op", "" )
|
||||
std::string s = Catch::toString( awkward );
|
||||
REQUIRE( s == "7" );
|
||||
}
|
||||
|
||||
#ifdef CATCH_CONFIG_CPP11_NULLPTR
|
||||
|
||||
#include <memory>
|
||||
|
||||
TEST_CASE( "null_ptr", "" )
|
||||
{
|
||||
std::unique_ptr<int> ptr;
|
||||
REQUIRE(ptr.get() == nullptr);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user