- incorporation of pull request #154 to allow comparison with nullptr_t
- some compiler capability tweaks
This commit is contained in:
Phil Nash
2013-04-22 18:55:12 +01:00
parent 4dd3f68dd9
commit 471eba2c32
8 changed files with 157 additions and 111 deletions

View File

@@ -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