mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
I changed the definition of the REQUIRE macro to use for loops and
some comma operator shenanigans to allow things like:
REQUIRE
{
CHECK(...);
CHECK_EQUAL(..., ...);
}
or
REQUIRE CHECK(...);
I updated the tests and they all passed on my machine. My only
concern is that some compilers might complain about the unreachable
code in the (throw UnitTest::AssertException(), true) expression.
|
||
|---|---|---|
| .. | ||
| Main.cpp | ||
| Makefile.am | ||
| RecordingReporter.h | ||
| ScopedCurrentTest.h | ||
| TestAssertHandler.cpp | ||
| TestCheckMacros.cpp | ||
| TestChecks.cpp | ||
| TestCompositeTestReporter.cpp | ||
| TestCurrentTest.cpp | ||
| TestDeferredTestReporter.cpp | ||
| TestExceptions.cpp | ||
| TestMemoryOutStream.cpp | ||
| TestRequireMacros.cpp | ||
| TestTest.cpp | ||
| TestTestList.cpp | ||
| TestTestMacros.cpp | ||
| TestTestResults.cpp | ||
| TestTestRunner.cpp | ||
| TestTestSuite.cpp | ||
| TestTimeConstraint.cpp | ||
| TestTimeConstraintMacro.cpp | ||
| TestUnitTestPP.cpp | ||
| TestXmlTestReporter.cpp | ||