blob: 2983ec794373792604a3c59c8ba2ef447aa5bb40 [file] [log] [blame]
onqtamcc9e8652016-08-02 14:23:38 +03001[doctest] doctest version is "1.0.0"
2[doctest] run with "--help" for options
3===============================================================================
onqtam30c5e4b2016-08-02 16:10:22 +03004main.cpp(6)
onqtamd9bb03a2016-08-02 15:32:49 +03005subcases
onqtamcc9e8652016-08-02 14:23:38 +03006
7===============================================================================
onqtam30c5e4b2016-08-02 16:10:22 +03008main.cpp(23)
9doctest internals
onqtamd9bb03a2016-08-02 15:32:49 +030010
onqtam30c5e4b2016-08-02 16:10:22 +030011main.cpp(29) PASSED!
onqtamd9bb03a2016-08-02 15:32:49 +030012 CHECK( a.size() == const_str.size() )
13with expansion:
14 CHECK( 9 == 9 )
15
onqtam30c5e4b2016-08-02 16:10:22 +030016main.cpp(30) PASSED!
onqtamd9bb03a2016-08-02 15:32:49 +030017 CHECK( a.length() == const_str.length() )
18with expansion:
19 CHECK( 9 == 9 )
20
onqtam30c5e4b2016-08-02 16:10:22 +030021main.cpp(31) PASSED!
onqtamd9bb03a2016-08-02 15:32:49 +030022 CHECK( a.compare(const_str, true) == 0 )
23with expansion:
24 CHECK( 0 == 0 )
25
onqtam30c5e4b2016-08-02 16:10:22 +030026main.cpp(32) PASSED!
onqtamc223b692016-08-02 17:20:06 +030027 CHECK( a.compare("omgomgomg", false) == 0 )
onqtamd9bb03a2016-08-02 15:32:49 +030028with expansion:
29 CHECK( 0 == 0 )
30
onqtamc223b692016-08-02 17:20:06 +030031"aaa"0.5f99true0.11d1111aaa===============================================================================
onqtam30c5e4b2016-08-02 16:10:22 +030032test.cpp(6)
onqtamd9bb03a2016-08-02 15:32:49 +030033subcases
34
35===============================================================================
onqtam30c5e4b2016-08-02 16:10:22 +030036test.cpp(6)
onqtamd9bb03a2016-08-02 15:32:49 +030037subcases
38 2
39
onqtam30c5e4b2016-08-02 16:10:22 +030040test.cpp(11) FAILED!
onqtamd9bb03a2016-08-02 15:32:49 +030041 CHECK( 0 )
42with expansion:
43 CHECK( 0 )
44
45===============================================================================
onqtamc223b692016-08-02 17:20:06 +030046test.cpp(35)
onqtam4321fd82016-08-02 14:59:17 +030047assertions
48
onqtamc223b692016-08-02 17:20:06 +030049test.cpp(36) FAILED!
onqtam30c5e4b2016-08-02 16:10:22 +030050 CHECK( 1 == 0 )
onqtamd9bb03a2016-08-02 15:32:49 +030051with expansion:
onqtam30c5e4b2016-08-02 16:10:22 +030052 CHECK( 1 == 0 )
onqtamd9bb03a2016-08-02 15:32:49 +030053
onqtamc223b692016-08-02 17:20:06 +030054test.cpp(37) FAILED!
onqtam30c5e4b2016-08-02 16:10:22 +030055 CHECK_FALSE( 1 )
56with expansion:
57 CHECK_FALSE( 1 )
58
onqtamc223b692016-08-02 17:20:06 +030059test.cpp(38) FAILED!
60 CHECK( myType() == myType() )
61with expansion:
62 CHECK( myType! == myType! )
63
64test.cpp(39) FAILED!
onqtam4321fd82016-08-02 14:59:17 +030065 CHECK( Approx(0.1) == 0.2 )
66with expansion:
67 CHECK( Approx( 0.1 ) == 0.2 )
68
onqtamc223b692016-08-02 17:20:06 +030069test.cpp(41) PASSED!
onqtam4321fd82016-08-02 14:59:17 +030070 CHECK_THROWS( throws(true) )
71
onqtamc223b692016-08-02 17:20:06 +030072test.cpp(42) FAILED!
onqtamd9bb03a2016-08-02 15:32:49 +030073 CHECK_THROWS( throws(false) )
74
onqtamc223b692016-08-02 17:20:06 +030075test.cpp(43) PASSED!
onqtam4321fd82016-08-02 14:59:17 +030076 CHECK_NOTHROW( throws(false) )
77
onqtamc223b692016-08-02 17:20:06 +030078test.cpp(44) FAILED!
onqtamd9bb03a2016-08-02 15:32:49 +030079 CHECK_NOTHROW( throws(true) )
80
onqtamc223b692016-08-02 17:20:06 +030081test.cpp(45) PASSED!
onqtam4321fd82016-08-02 14:59:17 +030082 CHECK_THROWS_AS( throws(true), bool )
83
onqtamc223b692016-08-02 17:20:06 +030084test.cpp(46) FAILED! (didn't throw at all)
85 REQUIRE_THROWS_AS( throws(false), bool )
onqtamd9bb03a2016-08-02 15:32:49 +030086
onqtam4321fd82016-08-02 14:59:17 +030087===============================================================================
onqtamc223b692016-08-02 17:20:06 +030088test.cpp(49)
onqtam4321fd82016-08-02 14:59:17 +030089throws
90
91TEST CASE FAILED! (threw exception)
92
93===============================================================================
onqtam30c5e4b2016-08-02 16:10:22 +030094[doctest] test cases: 5 | 2 passed | 3 failed | 0 skipped
onqtamc223b692016-08-02 17:20:06 +030095[doctest] assertions: 15 | 7 passed | 8 failed |