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 | 367098b | 2021-12-15 15:15:06 +0200 | [diff] [blame] | 9 | stringification.cpp(0): ERROR: CHECK( dummy == "tralala" ) is NOT correct! |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame] | 10 | values: CHECK( omg == tralala ) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 11 | |
onqtam | 367098b | 2021-12-15 15:15:06 +0200 | [diff] [blame] | 12 | stringification.cpp(0): ERROR: CHECK( "tralala" == dummy ) is NOT correct! |
| 13 | values: CHECK( tralala == omg ) |
| 14 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame] | 15 | stringification.cpp(0): ERROR: CHECK( vec1 == vec2 ) is NOT correct! |
| 16 | values: CHECK( [1, 2, 3] == [1, 2, 4] ) |
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: CHECK( lst_1 == lst_2 ) is NOT correct! |
| 19 | values: CHECK( [1, 42, 3, ] == [1, 2, 666, ] ) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 20 | |
Viktor Kirilov | 17d984c | 2020-12-04 15:13:33 +0200 | [diff] [blame] | 21 | stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct! |
Viktor Kirilov | 81fe2e8 | 2020-12-04 18:59:26 +0200 | [diff] [blame] | 22 | values: CHECK( MyOtherType: 42 == MyOtherType: 666 ) |
| 23 | logged: s1=MyOtherType: 42 s2=MyOtherType: 666 |
Viktor Kirilov | 17d984c | 2020-12-04 15:13:33 +0200 | [diff] [blame] | 24 | |
| 25 | stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct! |
Viktor Kirilov | 81fe2e8 | 2020-12-04 18:59:26 +0200 | [diff] [blame] | 26 | values: CHECK( MyOtherType: 42 == MyOtherType: 666 ) |
| 27 | logged: s1=MyOtherType: 42 s2=MyOtherType: 666 |
| 28 | MyOtherType: 42 is not really MyOtherType: 666 |
Viktor Kirilov | 17d984c | 2020-12-04 15:13:33 +0200 | [diff] [blame] | 29 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame] | 30 | stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4) |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 31 | |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 32 | =============================================================================== |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame] | 33 | stringification.cpp(0): |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 34 | 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] | 35 | |
onqtam | 1655b24 | 2018-05-10 15:29:21 +0300 | [diff] [blame] | 36 | stringification.cpp(0): ERROR: test case THREW exception: 5 |
onqtam | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 37 | |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 38 | =============================================================================== |
Nick Black | 74b8ac4 | 2020-09-06 13:01:26 -0400 | [diff] [blame] | 39 | [doctest] test cases: 2 | 0 passed | 2 failed | |
onqtam | 367098b | 2021-12-15 15:15:06 +0200 | [diff] [blame] | 40 | [doctest] assertions: 7 | 0 passed | 7 failed | |
onqtam | 754f402 | 2017-05-06 20:07:49 +0300 | [diff] [blame] | 41 | [doctest] Status: FAILURE! |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 42 | Program code. |