diff options
author | onqtam <vik.kirilov@gmail.com> | 2018-05-10 15:29:21 +0300 |
---|---|---|
committer | onqtam <vik.kirilov@gmail.com> | 2018-05-10 16:18:44 +0300 |
commit | 1655b24afc67a68c8d6a1513fa5dc1de09db7ccc (patch) | |
tree | e1a9cf606b4edf15d67b241adf8b3e9065716621 /examples/all_features/test_output/logging.cpp.txt | |
parent | 7907692b27ee4fc8a735d7604ced6fd71dad8f78 (diff) |
regenerated test output - relates #123
Diffstat (limited to 'examples/all_features/test_output/logging.cpp.txt')
-rw-r--r-- | examples/all_features/test_output/logging.cpp.txt | 129 |
1 files changed, 51 insertions, 78 deletions
diff --git a/examples/all_features/test_output/logging.cpp.txt b/examples/all_features/test_output/logging.cpp.txt index ac09c63..4e61073 100644 --- a/examples/all_features/test_output/logging.cpp.txt +++ b/examples/all_features/test_output/logging.cpp.txt @@ -1,107 +1,80 @@ [doctest] run with "--help" for options =============================================================================== -logging.cpp(0) +logging.cpp(0): TEST CASE: logging the counter of a loop -logging.cpp(0) ERROR! - CHECK( vec[i] != (1 << i) ) -with expansion: - CHECK( 1 != 1 ) -with context: - current iteration of loop: - i := 0 - -logging.cpp(0) ERROR! - CHECK( vec[i] != (1 << i) ) -with expansion: - CHECK( 2 != 2 ) -with context: - current iteration of loop: - i := 1 - -logging.cpp(0) ERROR! - CHECK( vec[i] != (1 << i) ) -with expansion: - CHECK( 4 != 4 ) -with context: - current iteration of loop: - i := 2 - -logging.cpp(0) ERROR! - CHECK( vec[i] != (1 << i) ) -with expansion: - CHECK( 8 != 8 ) -with context: - current iteration of loop: - i := 3 - -logging.cpp(0) ERROR! - CHECK( vec[i] != (1 << i) ) -with expansion: - CHECK( 16 != 16 ) -with context: - current iteration of loop: - i := 4 +logging.cpp(0): ERROR: CHECK( vec[i] != (1 << i) ) is NOT correct! + values: CHECK( 1 != 1 ) + logged: current iteration of loop: + i := 0 + +logging.cpp(0): ERROR: CHECK( vec[i] != (1 << i) ) is NOT correct! + values: CHECK( 2 != 2 ) + logged: current iteration of loop: + i := 1 + +logging.cpp(0): ERROR: CHECK( vec[i] != (1 << i) ) is NOT correct! + values: CHECK( 4 != 4 ) + logged: current iteration of loop: + i := 2 + +logging.cpp(0): ERROR: CHECK( vec[i] != (1 << i) ) is NOT correct! + values: CHECK( 8 != 8 ) + logged: current iteration of loop: + i := 3 + +logging.cpp(0): ERROR: CHECK( vec[i] != (1 << i) ) is NOT correct! + values: CHECK( 16 != 16 ) + logged: current iteration of loop: + i := 4 =============================================================================== -logging.cpp(0) +logging.cpp(0): TEST CASE: a test case that will end from an exception -logging.cpp(0) ERROR! - forcing the many captures (including those on the heap) to be stringified -with context: - lots of captures - some on heap: 42 42 42; - -logging.cpp(0) ERROR! - CHECK( some_var == 666 ) -with expansion: - CHECK( 42 == 666 ) -with context: - someTests() returned: 42 - this should be printed if an exception is thrown even if no assert has failed: 42 - in a nested scope this should be printed as well: 42 - why is this not 666 ?! - -TEST CASE FAILED! -threw exception: - 0 +logging.cpp(0): ERROR: forcing the many captures (including those on the heap) to be stringified + logged: lots of captures - some on heap: 42 42 42; + +logging.cpp(0): ERROR: CHECK( some_var == 666 ) is NOT correct! + values: CHECK( 42 == 666 ) + logged: someTests() returned: 42 + this should be printed if an exception is thrown even if no assert has failed: 42 + in a nested scope this should be printed as well: 42 + why is this not 666 ?! + +logging.cpp(0): ERROR: test case THREW exception: 0 + logged: someTests() returned: 42 + this should be printed if an exception is thrown even if no assert has failed: 42 + in a nested scope this should be printed as well: 42 =============================================================================== -logging.cpp(0) +logging.cpp(0): TEST CASE: a test case that will end from an exception and should print the unprinted context -TEST CASE FAILED! -threw exception: - 0 -with context: - should be printed even if an exception is thrown and no assert fails before that +logging.cpp(0): ERROR: test case THREW exception: 0 + logged: should be printed even if an exception is thrown and no assert fails before that =============================================================================== -logging.cpp(0) +logging.cpp(0): TEST CASE: third party asserts can report failures to doctest -logging.cpp(0) ERROR! - MY_ASSERT(false) +logging.cpp(0): ERROR: MY_ASSERT(false) -logging.cpp(0) FATAL ERROR! - MY_ASSERT_FATAL(false) +logging.cpp(0): FATAL ERROR: MY_ASSERT_FATAL(false) =============================================================================== -logging.cpp(0) +logging.cpp(0): TEST CASE: explicit failures 1 -logging.cpp(0) ERROR! - this should not end the test case, but mark it as failing +logging.cpp(0): ERROR: this should not end the test case, but mark it as failing -logging.cpp(0) MESSAGE! - reached! +logging.cpp(0): MESSAGE: reached! =============================================================================== -logging.cpp(0) +logging.cpp(0): TEST CASE: explicit failures 2 -logging.cpp(0) FATAL ERROR! - fail the test case and also end it +logging.cpp(0): FATAL ERROR: fail the test case and also end it =============================================================================== [doctest] test cases: 6 | 0 passed | 6 failed | |