enhanced support for C++11 style nullptr

with these changes you can now write the following tests:

std::exception_ptr ex;
CATCH_REQUIRE(ex == nullptr);

and

std::unique_ptr<int> ptr;
CATCH_REQUIRE(ptr.get() == nullptr);

The issue was that you cannot cast a std::nullptr_t to a non-const
reference.
This commit is contained in:
Konstantin Baumann
2013-01-31 12:25:57 +01:00
parent d658dea1dd
commit 060ed99f0c
4 changed files with 56 additions and 22 deletions

10
README
View File

@@ -1,4 +1,4 @@
CATCH v0.9 build 16 (integration branch)
CATCH v0.9 build 18 (integration branch)
---------------------------------------------
CATCH is an automated test framework for C, C++ and Objective-C.
@@ -6,9 +6,9 @@ CATCH is an automated test framework for C, C++ and Objective-C.
This branch may contain code that is experimental or not yet fully tested.
The latest stable version can be found on the Master branch.
For documentation see the wiki at:
For documentation see the wiki at:
https://github.com/philsquared/Catch/wiki
Issues and bugs can be raised at:
Issues and bugs can be raised at:
https://github.com/philsquared/Catch/issues
For discussion or questions please use:
https://groups.google.com/forum/?fromgroups#!forum/catch-forum
For discussion or questions please use:
https://groups.google.com/forum/?fromgroups#!forum/catch-forum