onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 1 | [doctest] run with "--help" for options |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 2 | =============================================================================== |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 3 | stringification.cpp(0): |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 4 | TEST CASE: all asserts should fail and show how the objects get stringified |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 5 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 6 | stringification.cpp(0): ERROR: CHECK( f1 == f2 ) is NOT correct! |
| 7 | values: CHECK( Foo{} == Foo{} ) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 8 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 9 | stringification.cpp(0): ERROR: CHECK( dummy1 == dummy2 ) is NOT correct! |
| 10 | values: CHECK( omg == tralala ) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 11 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 12 | stringification.cpp(0): ERROR: CHECK( vec1 == vec2 ) is NOT correct! |
| 13 | values: CHECK( [1, 2, 3] == [1, 2, 4] ) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 14 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 15 | stringification.cpp(0): ERROR: CHECK( lst_1 == lst_2 ) is NOT correct! |
| 16 | values: CHECK( [1, 42, 3, ] == [1, 2, 666, ] ) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 17 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 18 | stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 19 | |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 20 | =============================================================================== |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 21 | stringification.cpp(0): |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 22 | TEST CASE: a test case that registers an exception translator for int and then throws one |
onqtam | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 23 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame^] | 24 | stringification.cpp(0): ERROR: test case THREW exception: 5 |
onqtam | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 25 | |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 26 | =============================================================================== |
onqtam | 68d0f1d | 2017-05-07 20:45:09 +0300 | [diff] [blame] | 27 | [doctest] test cases: 2 | 0 passed | 2 failed | |
| 28 | [doctest] assertions: 4 | 0 passed | 4 failed | |
onqtam | 754f402 | 2017-05-06 20:07:49 +0300 | [diff] [blame] | 29 | [doctest] Status: FAILURE! |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 30 | Program code. |