mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-01 15:15:32 +02:00

these fixes enhance the support for C++11 nullptr/std::nullptr_t; now you can write something like this: std::exception_ptr ex; CATCH_REQUIRE(ex == nullptr); and std::unique_ptr<int> ptr; CATCH_REQUIRE(ptr.get() == nullptr); The issue with the const_cast<T&> is that you cannot cast a std::nullptr_t to a non-const-ref.
CATCH is an automated test framework for C, C++ and Objective-C. The latest stable version can be found as a single header in the Downloads section. (The Downloads section is now deprecated on GitHub. Until I move this somewhere else for CATCH it can still be reached here: https://github.com/philsquared/Catch/downloads) For documentation see the wiki at: https://github.com/philsquared/Catch/wiki Maintainers: Please now work off the Integration branch and target any pull requests there.
Description
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Readme
65 MiB
Languages
C++
90.2%
CMake
5.4%
Python
3.2%
Meson
0.7%
Starlark
0.3%