onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 1 | [doctest] run with "--help" for options |
| 2 | == TEST CASE ================================================================== |
| 3 | stringification.cpp(0) |
onqtam | 7cc0e96 | 2017-04-17 23:30:36 +0300 | [diff] [blame] | 4 | 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 | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 30 | == TEST CASE ================================================================== |
| 31 | stringification.cpp(0) |
| 32 | a test case that registers an exception translator for int and then throws one |
| 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 | 119cfb6 | 2017-04-17 10:46:55 +0300 | [diff] [blame] | 39 | [doctest] test cases: 2 | 0 passed | 2 failed | |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 40 | [doctest] assertions: 4 | 0 passed | 4 failed | |
| 41 | Program code. |