Boost Test Library: test_exec_monitor example

Boost.Test > Examples > test case based on function template

# The test case based on function template example

Rationale: | to demonstrate how to define test cases using BOOST_FUNC_TEMPLATE_TEST_CASE facility and how to register them
Input: | This example does not require any input

Output:

Running 10 test cases...
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 0]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 1]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 3]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 4]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 5]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 6]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 7]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 8]
../../../libs/test/example/test_case_template_example.cpp(18): error in "free_test_function": test 2 == (int const)Number::value failed [2 != 9]

*** 9 failures detected in test suite "Test case template example"

Source: | test_case_template_example.cpp