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 | 2c100d6 | 2017-04-16 22:47:28 +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 | |
| 6 | stringification.cpp(0) ERROR! |
| 7 | CHECK( f1 == f2 ) |
| 8 | with expansion: |
| 9 | CHECK( Foo{} == Foo{} ) |
| 10 | |
| 11 | stringification.cpp(0) ERROR! |
| 12 | CHECK( dummy1 == dummy2 ) |
| 13 | with expansion: |
| 14 | CHECK( omg == tralala ) |
| 15 | |
| 16 | stringification.cpp(0) ERROR! |
| 17 | CHECK( vec1 == vec2 ) |
| 18 | with expansion: |
| 19 | CHECK( [1, 2, 3] == [1, 2, 4] ) |
| 20 | |
| 21 | stringification.cpp(0) ERROR! |
| 22 | CHECK( lst_1 == lst_2 ) |
| 23 | with expansion: |
| 24 | CHECK( [1, 42, 3, ] == [1, 2, 666, ] ) |
| 25 | |
| 26 | TEST CASE FAILED! |
| 27 | threw exception: |
| 28 | MyTypeInherited<int>(5, 4.0f) |
| 29 | |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 30 | =============================================================================== |
onqtam | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 31 | stringification.cpp(0) |
onqtam | 35c14cd | 2017-04-24 12:54:03 +0300 | [diff] [blame] | 32 | 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] | 33 | |
| 34 | TEST CASE FAILED! |
| 35 | threw exception: |
onqtam | 7cc0e96 | 2017-04-17 23:30:36 +0300 | [diff] [blame] | 36 | 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 | =============================================================================== |
onqtam | 68d0f1d | 2017-05-07 20:45:09 +0300 | [diff] [blame^] | 39 | [doctest] test cases: 2 | 0 passed | 2 failed | |
| 40 | [doctest] assertions: 4 | 0 passed | 4 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. |