olm/lib/doctest/examples/all_features/test_output/stringification.cpp.txt
Hubert Chathi 8475061136 switch to doctest for unit testing
thanks to Nico Werner, who did most of the porting work
2021-12-22 13:45:33 -05:00

39 lines
1.6 KiB
Text

[doctest] run with "--help" for options
===============================================================================
stringification.cpp(0):
TEST CASE: all asserts should fail and show how the objects get stringified
stringification.cpp(0): ERROR: CHECK( f1 == f2 ) is NOT correct!
values: CHECK( Foo{} == Foo{} )
stringification.cpp(0): ERROR: CHECK( dummy1 == dummy2 ) is NOT correct!
values: CHECK( omg == tralala )
stringification.cpp(0): ERROR: CHECK( vec1 == vec2 ) is NOT correct!
values: CHECK( [1, 2, 3] == [1, 2, 4] )
stringification.cpp(0): ERROR: CHECK( lst_1 == lst_2 ) is NOT correct!
values: CHECK( [1, 42, 3, ] == [1, 2, 666, ] )
stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct!
values: CHECK( MyOtherType: 42 == MyOtherType: 666 )
logged: s1=MyOtherType: 42 s2=MyOtherType: 666
stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct!
values: CHECK( MyOtherType: 42 == MyOtherType: 666 )
logged: s1=MyOtherType: 42 s2=MyOtherType: 666
MyOtherType: 42 is not really MyOtherType: 666
stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4)
===============================================================================
stringification.cpp(0):
TEST CASE: a test case that registers an exception translator for int and then throws one
stringification.cpp(0): ERROR: test case THREW exception: 5
===============================================================================
[doctest] test cases: 2 | 0 passed | 2 failed |
[doctest] assertions: 6 | 0 passed | 6 failed |
[doctest] Status: FAILURE!
Program code.