Rationale: | this simple introductory example demonstrate several basic concepts of the unit test framework:
|
Input: | This example does not require any input |
Output: | Running 1 test case... .../unit_test_example1.cpp(17): error in "free_test_function": test 2 == 1 failed *** No errors detected |
Source: | unit_test_example1.cpp |