blob: bdc5c5a84761ff6d312ccf1146335e7a6581cf64 [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
onqtam367098b2021-12-15 15:15:06 +02009stringification.cpp(0): ERROR: CHECK( dummy == "tralala" ) is NOT correct!
onqtam1655b242018-05-10 15:29:21 +030010 values: CHECK( omg == tralala )
onqtam2c100d62017-04-16 22:47:28 +030011
onqtam367098b2021-12-15 15:15:06 +020012stringification.cpp(0): ERROR: CHECK( "tralala" == dummy ) is NOT correct!
13 values: CHECK( tralala == omg )
14
onqtam1655b242018-05-10 15:29:21 +030015stringification.cpp(0): ERROR: CHECK( vec1 == vec2 ) is NOT correct!
16 values: CHECK( [1, 2, 3] == [1, 2, 4] )
onqtam2c100d62017-04-16 22:47:28 +030017
onqtam1655b242018-05-10 15:29:21 +030018stringification.cpp(0): ERROR: CHECK( lst_1 == lst_2 ) is NOT correct!
19 values: CHECK( [1, 42, 3, ] == [1, 2, 666, ] )
onqtam2c100d62017-04-16 22:47:28 +030020
Viktor Kirilov17d984c2020-12-04 15:13:33 +020021stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct!
Viktor Kirilov81fe2e82020-12-04 18:59:26 +020022 values: CHECK( MyOtherType: 42 == MyOtherType: 666 )
23 logged: s1=MyOtherType: 42 s2=MyOtherType: 666
Viktor Kirilov17d984c2020-12-04 15:13:33 +020024
25stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct!
Viktor Kirilov81fe2e82020-12-04 18:59:26 +020026 values: CHECK( MyOtherType: 42 == MyOtherType: 666 )
27 logged: s1=MyOtherType: 42 s2=MyOtherType: 666
28 MyOtherType: 42 is not really MyOtherType: 666
Viktor Kirilov17d984c2020-12-04 15:13:33 +020029
onqtam1655b242018-05-10 15:29:21 +030030stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4)
onqtam2c100d62017-04-16 22:47:28 +030031
onqtam35c14cd2017-04-24 12:54:03 +030032===============================================================================
onqtam1655b242018-05-10 15:29:21 +030033stringification.cpp(0):
onqtam35c14cd2017-04-24 12:54:03 +030034TEST CASE: a test case that registers an exception translator for int and then throws one
onqtam27079bc2017-04-16 23:21:13 +030035
onqtam1655b242018-05-10 15:29:21 +030036stringification.cpp(0): ERROR: test case THREW exception: 5
onqtam27079bc2017-04-16 23:21:13 +030037
onqtam2c100d62017-04-16 22:47:28 +030038===============================================================================
Nick Black74b8ac42020-09-06 13:01:26 -040039[doctest] test cases: 2 | 0 passed | 2 failed |
onqtam367098b2021-12-15 15:15:06 +020040[doctest] assertions: 7 | 0 passed | 7 failed |
onqtam754f4022017-05-06 20:07:49 +030041[doctest] Status: FAILURE!
onqtam2c100d62017-04-16 22:47:28 +030042Program code.