| [doctest] doctest version is "1.0.0" |
| [doctest] run with "--help" for options |
| =============================================================================== |
| main.cpp(6) |
| subcases |
| |
| =============================================================================== |
| main.cpp(23) |
| doctest internals |
| |
| main.cpp(29) PASSED! |
| CHECK( a.size() == const_str.size() ) |
| with expansion: |
| CHECK( 9 == 9 ) |
| |
| main.cpp(30) PASSED! |
| CHECK( a.length() == const_str.length() ) |
| with expansion: |
| CHECK( 9 == 9 ) |
| |
| main.cpp(31) PASSED! |
| CHECK( a.compare(const_str, true) == 0 ) |
| with expansion: |
| CHECK( 0 == 0 ) |
| |
| main.cpp(32) PASSED! |
| CHECK( a.compare("omgomgomg", false) == 0 ) |
| with expansion: |
| CHECK( 0 == 0 ) |
| |
| "aaa"0.5f99true0.11d1111aaa=============================================================================== |
| test.cpp(6) |
| subcases |
| |
| =============================================================================== |
| test.cpp(6) |
| subcases |
| 2 |
| |
| test.cpp(11) FAILED! |
| CHECK( 0 ) |
| with expansion: |
| CHECK( 0 ) |
| |
| =============================================================================== |
| test.cpp(35) |
| assertions |
| |
| test.cpp(36) FAILED! |
| CHECK( 1 == 0 ) |
| with expansion: |
| CHECK( 1 == 0 ) |
| |
| test.cpp(37) FAILED! |
| CHECK_FALSE( 1 ) |
| with expansion: |
| CHECK_FALSE( 1 ) |
| |
| test.cpp(38) FAILED! |
| CHECK( myType() == myType() ) |
| with expansion: |
| CHECK( myType! == myType! ) |
| |
| test.cpp(39) FAILED! |
| CHECK( Approx(0.1) == 0.2 ) |
| with expansion: |
| CHECK( Approx( 0.1 ) == 0.2 ) |
| |
| test.cpp(41) PASSED! |
| CHECK_THROWS( throws(true) ) |
| |
| test.cpp(42) FAILED! |
| CHECK_THROWS( throws(false) ) |
| |
| test.cpp(43) PASSED! |
| CHECK_NOTHROW( throws(false) ) |
| |
| test.cpp(44) FAILED! |
| CHECK_NOTHROW( throws(true) ) |
| |
| test.cpp(45) PASSED! |
| CHECK_THROWS_AS( throws(true), bool ) |
| |
| test.cpp(46) FAILED! (didn't throw at all) |
| REQUIRE_THROWS_AS( throws(false), bool ) |
| |
| =============================================================================== |
| test.cpp(49) |
| throws |
| |
| TEST CASE FAILED! (threw exception) |
| |
| =============================================================================== |
| [doctest] test cases: 5 | 2 passed | 3 failed | 0 skipped |
| [doctest] assertions: 15 | 7 passed | 8 failed | |