onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 1 | [doctest] doctest version is "1.0.0" |
2 | [doctest] run with "--help" for options | ||||
3 | =============================================================================== | ||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 4 | main.cpp(6) |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 5 | subcases |
onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 6 | |
7 | =============================================================================== | ||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 8 | main.cpp(23) |
9 | doctest internals | ||||
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 10 | |
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 11 | main.cpp(29) PASSED! |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 12 | CHECK( a.size() == const_str.size() ) |
13 | with expansion: | ||||
14 | CHECK( 9 == 9 ) | ||||
15 | |||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 16 | main.cpp(30) PASSED! |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 17 | CHECK( a.length() == const_str.length() ) |
18 | with expansion: | ||||
19 | CHECK( 9 == 9 ) | ||||
20 | |||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 21 | main.cpp(31) PASSED! |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 22 | CHECK( a.compare(const_str, true) == 0 ) |
23 | with expansion: | ||||
24 | CHECK( 0 == 0 ) | ||||
25 | |||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 26 | main.cpp(32) PASSED! |
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 27 | CHECK( a.compare("omgomgomg", false) == 0 ) |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 28 | with expansion: |
29 | CHECK( 0 == 0 ) | ||||
30 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 31 | "aaa"0.5f99true0.11d1111aaa=============================================================================== |
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 32 | test.cpp(6) |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 33 | subcases |
34 | |||||
35 | =============================================================================== | ||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 36 | test.cpp(6) |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 37 | subcases |
38 | 2 | ||||
39 | |||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 40 | test.cpp(11) FAILED! |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 41 | CHECK( 0 ) |
42 | with expansion: | ||||
43 | CHECK( 0 ) | ||||
44 | |||||
45 | =============================================================================== | ||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 46 | test.cpp(35) |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 47 | assertions |
48 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 49 | test.cpp(36) FAILED! |
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 50 | CHECK( 1 == 0 ) |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 51 | with expansion: |
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 52 | CHECK( 1 == 0 ) |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 53 | |
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 54 | test.cpp(37) FAILED! |
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 55 | CHECK_FALSE( 1 ) |
56 | with expansion: | ||||
57 | CHECK_FALSE( 1 ) | ||||
58 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 59 | test.cpp(38) FAILED! |
60 | CHECK( myType() == myType() ) | ||||
61 | with expansion: | ||||
62 | CHECK( myType! == myType! ) | ||||
63 | |||||
64 | test.cpp(39) FAILED! | ||||
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 65 | CHECK( Approx(0.1) == 0.2 ) |
66 | with expansion: | ||||
67 | CHECK( Approx( 0.1 ) == 0.2 ) | ||||
68 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 69 | test.cpp(41) PASSED! |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 70 | CHECK_THROWS( throws(true) ) |
71 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 72 | test.cpp(42) FAILED! |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 73 | CHECK_THROWS( throws(false) ) |
74 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 75 | test.cpp(43) PASSED! |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 76 | CHECK_NOTHROW( throws(false) ) |
77 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 78 | test.cpp(44) FAILED! |
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 79 | CHECK_NOTHROW( throws(true) ) |
80 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 81 | test.cpp(45) PASSED! |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 82 | CHECK_THROWS_AS( throws(true), bool ) |
83 | |||||
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 84 | test.cpp(46) FAILED! (didn't throw at all) |
85 | REQUIRE_THROWS_AS( throws(false), bool ) | ||||
onqtam | d9bb03a | 2016-08-02 15:32:49 +0300 | [diff] [blame] | 86 | |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 87 | =============================================================================== |
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 88 | test.cpp(49) |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 89 | throws |
90 | |||||
91 | TEST CASE FAILED! (threw exception) | ||||
92 | |||||
93 | =============================================================================== | ||||
onqtam | 30c5e4b | 2016-08-02 16:10:22 +0300 | [diff] [blame] | 94 | [doctest] test cases: 5 | 2 passed | 3 failed | 0 skipped |
onqtam | c223b69 | 2016-08-02 17:20:06 +0300 | [diff] [blame^] | 95 | [doctest] assertions: 15 | 7 passed | 8 failed | |