blob: 516cc9dccb8b4bda71e3ba09a4f64c0917c7d014 [file] [log] [blame]
onqtam2c100d62017-04-16 22:47:28 +03001[doctest] run with "--help" for options
onqtam35c14cd2017-04-24 12:54:03 +03002===============================================================================
onqtam2c100d62017-04-16 22:47:28 +03003stringification.cpp(0)
onqtam35c14cd2017-04-24 12:54:03 +03004TEST CASE: all asserts should fail and show how the objects get stringified
onqtam2c100d62017-04-16 22:47:28 +03005
6stringification.cpp(0) ERROR!
7 CHECK( f1 == f2 )
8with expansion:
9 CHECK( Foo{} == Foo{} )
10
11stringification.cpp(0) ERROR!
12 CHECK( dummy1 == dummy2 )
13with expansion:
14 CHECK( omg == tralala )
15
16stringification.cpp(0) ERROR!
17 CHECK( vec1 == vec2 )
18with expansion:
19 CHECK( [1, 2, 3] == [1, 2, 4] )
20
21stringification.cpp(0) ERROR!
22 CHECK( lst_1 == lst_2 )
23with expansion:
24 CHECK( [1, 42, 3, ] == [1, 2, 666, ] )
25
26TEST CASE FAILED!
27threw exception:
28 MyTypeInherited<int>(5, 4.0f)
29
onqtam35c14cd2017-04-24 12:54:03 +030030===============================================================================
onqtam27079bc2017-04-16 23:21:13 +030031stringification.cpp(0)
onqtam35c14cd2017-04-24 12:54:03 +030032TEST CASE: a test case that registers an exception translator for int and then throws one
onqtam27079bc2017-04-16 23:21:13 +030033
34TEST CASE FAILED!
35threw exception:
onqtam7cc0e962017-04-17 23:30:36 +030036 5
onqtam27079bc2017-04-16 23:21:13 +030037
onqtam2c100d62017-04-16 22:47:28 +030038===============================================================================
onqtam68d0f1d2017-05-07 20:45:09 +030039[doctest] test cases: 2 | 0 passed | 2 failed |
40[doctest] assertions: 4 | 0 passed | 4 failed |
onqtam754f4022017-05-06 20:07:49 +030041[doctest] Status: FAILURE!
onqtam2c100d62017-04-16 22:47:28 +030042Program code.