blob: b5b74f6a831b2776916544afd7dcf9a506cac10f [file] [log] [blame]
onqtam2c100d62017-04-16 22:47:28 +03001[doctest] run with "--help" for options
onqtam35c14cd2017-04-24 12:54:03 +03002===============================================================================
onqtam1655b242018-05-10 15:29:21 +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
onqtam1655b242018-05-10 15:29:21 +03006stringification.cpp(0): ERROR: CHECK( f1 == f2 ) is NOT correct!
7 values: CHECK( Foo{} == Foo{} )
onqtam2c100d62017-04-16 22:47:28 +03008
onqtam1655b242018-05-10 15:29:21 +03009stringification.cpp(0): ERROR: CHECK( dummy1 == dummy2 ) is NOT correct!
10 values: CHECK( omg == tralala )
onqtam2c100d62017-04-16 22:47:28 +030011
onqtam1655b242018-05-10 15:29:21 +030012stringification.cpp(0): ERROR: CHECK( vec1 == vec2 ) is NOT correct!
13 values: CHECK( [1, 2, 3] == [1, 2, 4] )
onqtam2c100d62017-04-16 22:47:28 +030014
onqtam1655b242018-05-10 15:29:21 +030015stringification.cpp(0): ERROR: CHECK( lst_1 == lst_2 ) is NOT correct!
16 values: CHECK( [1, 42, 3, ] == [1, 2, 666, ] )
onqtam2c100d62017-04-16 22:47:28 +030017
onqtam1655b242018-05-10 15:29:21 +030018stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4)
onqtam2c100d62017-04-16 22:47:28 +030019
onqtam35c14cd2017-04-24 12:54:03 +030020===============================================================================
onqtam1655b242018-05-10 15:29:21 +030021stringification.cpp(0):
onqtam35c14cd2017-04-24 12:54:03 +030022TEST CASE: a test case that registers an exception translator for int and then throws one
onqtam27079bc2017-04-16 23:21:13 +030023
onqtam1655b242018-05-10 15:29:21 +030024stringification.cpp(0): ERROR: test case THREW exception: 5
onqtam27079bc2017-04-16 23:21:13 +030025
onqtam2c100d62017-04-16 22:47:28 +030026===============================================================================
onqtam68d0f1d2017-05-07 20:45:09 +030027[doctest] test cases: 2 | 0 passed | 2 failed |
28[doctest] assertions: 4 | 0 passed | 4 failed |
onqtam754f4022017-05-06 20:07:49 +030029[doctest] Status: FAILURE!
onqtam2c100d62017-04-16 22:47:28 +030030Program code.