make
g++ to_test.cpp pass_tests.cpp -o pass_tests && ./pass_tests && rm pass_tests
===============================================================================
All tests passed (2 assertions in 1 test case)
g++ to_test.cpp fail_tests.cpp -o fail_tests && ./fail_tests && rm fail_tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fail_tests is a Catch v1.5.7 host application.
Run with -? for options
-------------------------------------------------------------------------------
Factorials are computed
-------------------------------------------------------------------------------
fail_tests.cpp:6
...............................................................................
fail_tests.cpp:8: FAILED:
REQUIRE( Factorial(3) == 10 )
with expansion:
6 == 10
===============================================================================
test cases: 1 | 1 failed
assertions: 2 | 1 passed | 1 failed