stringification.cpp.txt (3251B)
1 [doctest] run with "--help" for options 2 =============================================================================== 3 stringification.cpp(0): 4 TEST CASE: operator<< 5 6 stringification.cpp(0): MESSAGE: A 7 8 stringification.cpp(0): MESSAGE: B 9 10 stringification.cpp(0): MESSAGE: C 11 12 =============================================================================== 13 stringification.cpp(0): 14 TEST CASE: no headers 15 16 stringification.cpp(0): MESSAGE: 1as 17 18 stringification.cpp(0): ERROR: CHECK( chs == nullptr ) is NOT correct! 19 values: CHECK( 1as == nullptr ) 20 21 stringification.cpp(0): MESSAGE: 1as 22 23 stringification.cpp(0): ERROR: CHECK( "1as" == nullptr ) is NOT correct! 24 values: CHECK( 1as == nullptr ) 25 26 stringification.cpp(0): MESSAGE: [0, 1, 1, 2, 3, 5, 8, 13] 27 28 stringification.cpp(0): ERROR: CHECK( ints == nullptr ) is NOT correct! 29 values: CHECK( [0, 1, 1, 2, 3, 5, 8, 13] == nullptr ) 30 31 stringification.cpp(0): MESSAGE: [0, 1, 1, 2, 3, 5, 8, 13] 32 33 stringification.cpp(0): MESSAGE: nullptr 34 35 stringification.cpp(0): ERROR: CHECK( cnptr != nullptr ) is NOT correct! 36 values: CHECK( nullptr != nullptr ) 37 38 stringification.cpp(0): MESSAGE: 0 39 40 stringification.cpp(0): ERROR: CHECK( A == C ) is NOT correct! 41 values: CHECK( 0 == 100 ) 42 43 stringification.cpp(0): MESSAGE: int 44 45 =============================================================================== 46 stringification.cpp(0): 47 TEST CASE: all asserts should fail and show how the objects get stringified 48 49 stringification.cpp(0): MESSAGE: Foo{} 50 51 stringification.cpp(0): ERROR: CHECK( f1 == f2 ) is NOT correct! 52 values: CHECK( Foo{} == Foo{} ) 53 54 stringification.cpp(0): MESSAGE: omg 55 56 stringification.cpp(0): ERROR: CHECK( dummy == "tralala" ) is NOT correct! 57 values: CHECK( omg == tralala ) 58 59 stringification.cpp(0): ERROR: CHECK( "tralala" == dummy ) is NOT correct! 60 values: CHECK( tralala == omg ) 61 62 stringification.cpp(0): MESSAGE: [1, 2, 3] 63 64 stringification.cpp(0): ERROR: CHECK( vec1 == vec2 ) is NOT correct! 65 values: CHECK( [1, 2, 3] == [1, 2, 4] ) 66 67 stringification.cpp(0): MESSAGE: [1, 42, 3] 68 69 stringification.cpp(0): ERROR: CHECK( lst_1 == lst_2 ) is NOT correct! 70 values: CHECK( [1, 42, 3] == [1, 2, 666] ) 71 72 stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct! 73 values: CHECK( MyOtherType: 42 == MyOtherType: 666 ) 74 logged: s1=MyOtherType: 42 s2=MyOtherType: 666 75 76 stringification.cpp(0): ERROR: CHECK( s1 == s2 ) is NOT correct! 77 values: CHECK( MyOtherType: 42 == MyOtherType: 666 ) 78 logged: s1=MyOtherType: 42 s2=MyOtherType: 666 79 MyOtherType: 42 is not really MyOtherType: 666 80 81 stringification.cpp(0): ERROR: CHECK( "a" == doctest::Contains("aaa") ) is NOT correct! 82 values: CHECK( a == Contains( aaa ) ) 83 84 stringification.cpp(0): ERROR: test case THREW exception: MyTypeInherited<int>(5, 4) 85 86 =============================================================================== 87 stringification.cpp(0): 88 TEST CASE: a test case that registers an exception translator for int and then throws one 89 90 stringification.cpp(0): ERROR: test case THREW exception: 5 91 92 =============================================================================== 93 [doctest] test cases: 5 | 2 passed | 3 failed | 94 [doctest] assertions: 22 | 9 passed | 13 failed | 95 [doctest] Status: FAILURE! 96 Program code.