blob: f592dce8112d9c4bb6da66c84a4f021f994abf1a [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
Viktor Kirilov17d984c2020-12-04 15:13:33 +020018stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct!
Viktor Kirilov81fe2e82020-12-04 18:59:26 +020019 values: CHECK( MyOtherType: 42 == MyOtherType: 666 )
20 logged: s1=MyOtherType: 42 s2=MyOtherType: 666
Viktor Kirilov17d984c2020-12-04 15:13:33 +020021
22stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct!
Viktor Kirilov81fe2e82020-12-04 18:59:26 +020023 values: CHECK( MyOtherType: 42 == MyOtherType: 666 )
24 logged: s1=MyOtherType: 42 s2=MyOtherType: 666
25 MyOtherType: 42 is not really MyOtherType: 666
Viktor Kirilov17d984c2020-12-04 15:13:33 +020026
onqtam1655b242018-05-10 15:29:21 +030027stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4)
onqtam2c100d62017-04-16 22:47:28 +030028
onqtam35c14cd2017-04-24 12:54:03 +030029===============================================================================
onqtam1655b242018-05-10 15:29:21 +030030stringification.cpp(0):
onqtam35c14cd2017-04-24 12:54:03 +030031TEST CASE: a test case that registers an exception translator for int and then throws one
onqtam27079bc2017-04-16 23:21:13 +030032
onqtam1655b242018-05-10 15:29:21 +030033stringification.cpp(0): ERROR: test case THREW exception: 5
onqtam27079bc2017-04-16 23:21:13 +030034
onqtam2c100d62017-04-16 22:47:28 +030035===============================================================================
Nick Black74b8ac42020-09-06 13:01:26 -040036[doctest] test cases: 2 | 0 passed | 2 failed |
Viktor Kirilov17d984c2020-12-04 15:13:33 +020037[doctest] assertions: 6 | 0 passed | 6 failed |
onqtam754f4022017-05-06 20:07:49 +030038[doctest] Status: FAILURE!
onqtam2c100d62017-04-16 22:47:28 +030039Program code.