Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1 | |
| 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3 | <exe-name> is a <version> host application. |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4 | Run with -? for options |
| 5 | |
| 6 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7 | # A test name that starts with a # |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 8 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 9 | Misc.tests.cpp:<line number> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 10 | ............................................................................... |
| 11 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 12 | Misc.tests.cpp:<line number>: |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 13 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 14 | with message: |
| 15 | yay |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 16 | |
| 17 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 61d2c37 | 2017-08-30 11:40:29 +0200 | [diff] [blame] | 18 | #1005: Comparing pointer to int and long (NULL can be either on various |
| 19 | systems) |
| 20 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 21 | Decomposition.tests.cpp:<line number> |
Martin Hořeňovský | 61d2c37 | 2017-08-30 11:40:29 +0200 | [diff] [blame] | 22 | ............................................................................... |
| 23 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 24 | Decomposition.tests.cpp:<line number>: |
Martin Hořeňovský | 61d2c37 | 2017-08-30 11:40:29 +0200 | [diff] [blame] | 25 | PASSED: |
| 26 | REQUIRE( fptr == 0 ) |
| 27 | with expansion: |
| 28 | 0 == 0 |
| 29 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 30 | Decomposition.tests.cpp:<line number>: |
Martin Hořeňovský | 61d2c37 | 2017-08-30 11:40:29 +0200 | [diff] [blame] | 31 | PASSED: |
| 32 | REQUIRE( fptr == 0l ) |
| 33 | with expansion: |
| 34 | 0 == 0 |
| 35 | |
| 36 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | b74d4ca | 2017-11-13 10:07:06 +0100 | [diff] [blame] | 37 | #1027 |
| 38 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 39 | Compilation.tests.cpp:<line number> |
Martin Hořeňovský | b74d4ca | 2017-11-13 10:07:06 +0100 | [diff] [blame] | 40 | ............................................................................... |
| 41 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 42 | Compilation.tests.cpp:<line number>: |
Martin Hořeňovský | b74d4ca | 2017-11-13 10:07:06 +0100 | [diff] [blame] | 43 | PASSED: |
| 44 | REQUIRE( y.v == 0 ) |
| 45 | with expansion: |
| 46 | 0 == 0 |
| 47 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 48 | Compilation.tests.cpp:<line number>: |
Martin Hořeňovský | b74d4ca | 2017-11-13 10:07:06 +0100 | [diff] [blame] | 49 | PASSED: |
| 50 | REQUIRE( 0 == y.v ) |
| 51 | with expansion: |
| 52 | 0 == 0 |
| 53 | |
| 54 | ------------------------------------------------------------------------------- |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 55 | #748 - captures with unexpected exceptions |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 56 | outside assertions |
| 57 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 58 | Exception.tests.cpp:<line number> |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 59 | ............................................................................... |
| 60 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 61 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 62 | due to unexpected exception with messages: |
| 63 | answer := 42 |
| 64 | expected exception |
| 65 | |
| 66 | ------------------------------------------------------------------------------- |
| 67 | #748 - captures with unexpected exceptions |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 68 | inside REQUIRE_NOTHROW |
Phil Nash | d6b8ac5 | 2017-02-10 11:53:29 +0000 | [diff] [blame] | 69 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 70 | Exception.tests.cpp:<line number> |
Phil Nash | d6b8ac5 | 2017-02-10 11:53:29 +0000 | [diff] [blame] | 71 | ............................................................................... |
| 72 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 73 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 74 | REQUIRE_NOTHROW( thisThrows() ) |
| 75 | due to unexpected exception with messages: |
| 76 | answer := 42 |
| 77 | expected exception |
Phil Nash | d6b8ac5 | 2017-02-10 11:53:29 +0000 | [diff] [blame] | 78 | |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 79 | ------------------------------------------------------------------------------- |
| 80 | #748 - captures with unexpected exceptions |
| 81 | inside REQUIRE_THROWS |
| 82 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 83 | Exception.tests.cpp:<line number> |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 84 | ............................................................................... |
Phil Nash | d6b8ac5 | 2017-02-10 11:53:29 +0000 | [diff] [blame] | 85 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 86 | Exception.tests.cpp:<line number>: |
Phil Nash | d6b8ac5 | 2017-02-10 11:53:29 +0000 | [diff] [blame] | 87 | PASSED: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 88 | REQUIRE_THROWS( thisThrows() ) |
| 89 | with message: |
| 90 | answer := 42 |
Phil Nash | d6b8ac5 | 2017-02-10 11:53:29 +0000 | [diff] [blame] | 91 | |
| 92 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 93 | #809 |
| 94 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 95 | Compilation.tests.cpp:<line number> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 96 | ............................................................................... |
| 97 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 98 | Compilation.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 99 | PASSED: |
| 100 | REQUIRE( 42 == f ) |
| 101 | with expansion: |
| 102 | 42 == {?} |
| 103 | |
| 104 | ------------------------------------------------------------------------------- |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 105 | #833 |
| 106 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 107 | Compilation.tests.cpp:<line number> |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 108 | ............................................................................... |
| 109 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 110 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 111 | PASSED: |
| 112 | REQUIRE( a == t ) |
| 113 | with expansion: |
| 114 | 3 == 3 |
| 115 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 116 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 117 | PASSED: |
| 118 | CHECK( a == t ) |
| 119 | with expansion: |
| 120 | 3 == 3 |
| 121 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 122 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 123 | PASSED: |
| 124 | REQUIRE_THROWS( throws_int(true) ) |
| 125 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 126 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 127 | PASSED: |
Martin Hořeňovský | 74ab1cd | 2017-07-20 00:29:19 +0200 | [diff] [blame] | 128 | CHECK_THROWS_AS( throws_int(true), int ) |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 129 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 130 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 131 | PASSED: |
| 132 | REQUIRE_NOTHROW( throws_int(false) ) |
| 133 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 134 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 135 | PASSED: |
| 136 | REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") ) |
| 137 | with expansion: |
| 138 | "aaa" ends with: "aaa" |
| 139 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 140 | Compilation.tests.cpp:<line number>: |
Phil Nash | 250f0ee | 2017-04-07 09:33:19 +0100 | [diff] [blame] | 141 | PASSED: |
| 142 | REQUIRE( templated_tests<int>(3) ) |
| 143 | with expansion: |
| 144 | true |
| 145 | |
| 146 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | ace7040 | 2017-03-06 22:07:33 +0100 | [diff] [blame] | 147 | #835 -- errno should not be touched by Catch |
| 148 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 149 | Misc.tests.cpp:<line number> |
Martin Hořeňovský | ace7040 | 2017-03-06 22:07:33 +0100 | [diff] [blame] | 150 | ............................................................................... |
| 151 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 152 | Misc.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | ace7040 | 2017-03-06 22:07:33 +0100 | [diff] [blame] | 153 | CHECK( f() == 0 ) |
| 154 | with expansion: |
| 155 | 1 == 0 |
| 156 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 157 | Misc.tests.cpp:<line number>: |
Martin Hořeňovský | ace7040 | 2017-03-06 22:07:33 +0100 | [diff] [blame] | 158 | PASSED: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 159 | REQUIRE( errno == 1 ) |
Martin Hořeňovský | ace7040 | 2017-03-06 22:07:33 +0100 | [diff] [blame] | 160 | with expansion: |
| 161 | 1 == 1 |
| 162 | |
| 163 | ------------------------------------------------------------------------------- |
Phil Nash | 61ac340 | 2017-04-25 14:57:58 +0100 | [diff] [blame] | 164 | #872 |
| 165 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 166 | Compilation.tests.cpp:<line number> |
Phil Nash | 61ac340 | 2017-04-25 14:57:58 +0100 | [diff] [blame] | 167 | ............................................................................... |
| 168 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 169 | Compilation.tests.cpp:<line number>: |
Phil Nash | 61ac340 | 2017-04-25 14:57:58 +0100 | [diff] [blame] | 170 | PASSED: |
| 171 | REQUIRE( x == 4 ) |
| 172 | with expansion: |
| 173 | {?} == 4 |
| 174 | with message: |
| 175 | dummy := 0 |
| 176 | |
| 177 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 178 | #961 -- Dynamically created sections should all be reported |
| 179 | Looped section 0 |
| 180 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 181 | Misc.tests.cpp:<line number> |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 182 | ............................................................................... |
| 183 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 184 | Misc.tests.cpp:<line number>: |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 185 | PASSED: |
| 186 | with message: |
| 187 | Everything is OK |
| 188 | |
| 189 | ------------------------------------------------------------------------------- |
| 190 | #961 -- Dynamically created sections should all be reported |
| 191 | Looped section 1 |
| 192 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 193 | Misc.tests.cpp:<line number> |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 194 | ............................................................................... |
| 195 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 196 | Misc.tests.cpp:<line number>: |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 197 | PASSED: |
| 198 | with message: |
| 199 | Everything is OK |
| 200 | |
| 201 | ------------------------------------------------------------------------------- |
| 202 | #961 -- Dynamically created sections should all be reported |
| 203 | Looped section 2 |
| 204 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 205 | Misc.tests.cpp:<line number> |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 206 | ............................................................................... |
| 207 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 208 | Misc.tests.cpp:<line number>: |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 209 | PASSED: |
| 210 | with message: |
| 211 | Everything is OK |
| 212 | |
| 213 | ------------------------------------------------------------------------------- |
| 214 | #961 -- Dynamically created sections should all be reported |
| 215 | Looped section 3 |
| 216 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 217 | Misc.tests.cpp:<line number> |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 218 | ............................................................................... |
| 219 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 220 | Misc.tests.cpp:<line number>: |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 221 | PASSED: |
| 222 | with message: |
| 223 | Everything is OK |
| 224 | |
| 225 | ------------------------------------------------------------------------------- |
| 226 | #961 -- Dynamically created sections should all be reported |
| 227 | Looped section 4 |
| 228 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 229 | Misc.tests.cpp:<line number> |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 230 | ............................................................................... |
| 231 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 232 | Misc.tests.cpp:<line number>: |
Martin Hořeňovský | f06ed85 | 2017-08-10 21:38:07 +0200 | [diff] [blame] | 233 | PASSED: |
| 234 | with message: |
| 235 | Everything is OK |
| 236 | |
| 237 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 238 | 'Not' checks that should fail |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 239 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 240 | Condition.tests.cpp:<line number> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 241 | ............................................................................... |
| 242 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 243 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 244 | CHECK( false != false ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 245 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 246 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 247 | CHECK( true != true ) |
| 248 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 249 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 250 | CHECK( !true ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 251 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 252 | false |
| 253 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 254 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 255 | CHECK_FALSE( true ) |
Phil Nash | 05b1ca2 | 2017-10-13 19:45:19 +0100 | [diff] [blame] | 256 | with expansion: |
| 257 | !true |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 258 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 259 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 260 | CHECK( !trueValue ) |
| 261 | with expansion: |
| 262 | false |
| 263 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 264 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 265 | CHECK_FALSE( trueValue ) |
| 266 | with expansion: |
| 267 | !true |
| 268 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 269 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 270 | CHECK( !(1 == 1) ) |
| 271 | with expansion: |
| 272 | false |
| 273 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 274 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 275 | CHECK_FALSE( 1 == 1 ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 276 | |
| 277 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 278 | 'Not' checks that should succeed |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 279 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 280 | Condition.tests.cpp:<line number> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 281 | ............................................................................... |
| 282 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 283 | Condition.tests.cpp:<line number>: |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 284 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 285 | REQUIRE( false == false ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 286 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 287 | Condition.tests.cpp:<line number>: |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 288 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 289 | REQUIRE( true == true ) |
| 290 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 291 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 292 | PASSED: |
| 293 | REQUIRE( !false ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 294 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 295 | true |
| 296 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 297 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 298 | PASSED: |
| 299 | REQUIRE_FALSE( false ) |
Phil Nash | 05b1ca2 | 2017-10-13 19:45:19 +0100 | [diff] [blame] | 300 | with expansion: |
| 301 | !false |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 302 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 303 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 304 | PASSED: |
| 305 | REQUIRE( !falseValue ) |
| 306 | with expansion: |
| 307 | true |
| 308 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 309 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 310 | PASSED: |
| 311 | REQUIRE_FALSE( falseValue ) |
| 312 | with expansion: |
| 313 | !false |
| 314 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 315 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 316 | PASSED: |
| 317 | REQUIRE( !(1 == 2) ) |
| 318 | with expansion: |
| 319 | true |
| 320 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 321 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 322 | PASSED: |
| 323 | REQUIRE_FALSE( 1 == 2 ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 324 | |
| 325 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 326 | (unimplemented) static bools can be evaluated |
| 327 | compare to true |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 328 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 329 | Tricky.tests.cpp:<line number> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 330 | ............................................................................... |
| 331 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 332 | Tricky.tests.cpp:<line number>: |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 333 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 334 | REQUIRE( is_true<true>::value == true ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 335 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 336 | true == true |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 337 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 338 | Tricky.tests.cpp:<line number>: |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 339 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 340 | REQUIRE( true == is_true<true>::value ) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 341 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 342 | true == true |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 343 | |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 344 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 345 | (unimplemented) static bools can be evaluated |
| 346 | compare to false |
| 347 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 348 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 349 | ............................................................................... |
| 350 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 351 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 352 | PASSED: |
| 353 | REQUIRE( is_true<false>::value == false ) |
| 354 | with expansion: |
| 355 | false == false |
| 356 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 357 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 358 | PASSED: |
| 359 | REQUIRE( false == is_true<false>::value ) |
| 360 | with expansion: |
| 361 | false == false |
| 362 | |
| 363 | ------------------------------------------------------------------------------- |
| 364 | (unimplemented) static bools can be evaluated |
| 365 | negation |
| 366 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 367 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 368 | ............................................................................... |
| 369 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 370 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 371 | PASSED: |
| 372 | REQUIRE( !is_true<false>::value ) |
| 373 | with expansion: |
| 374 | true |
| 375 | |
| 376 | ------------------------------------------------------------------------------- |
| 377 | (unimplemented) static bools can be evaluated |
| 378 | double negation |
| 379 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 380 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 381 | ............................................................................... |
| 382 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 383 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 384 | PASSED: |
| 385 | REQUIRE( !!is_true<true>::value ) |
| 386 | with expansion: |
| 387 | true |
| 388 | |
| 389 | ------------------------------------------------------------------------------- |
| 390 | (unimplemented) static bools can be evaluated |
| 391 | direct |
| 392 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 393 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 394 | ............................................................................... |
| 395 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 396 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 397 | PASSED: |
| 398 | REQUIRE( is_true<true>::value ) |
| 399 | with expansion: |
| 400 | true |
| 401 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 402 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 403 | PASSED: |
| 404 | REQUIRE_FALSE( is_true<false>::value ) |
| 405 | with expansion: |
| 406 | !false |
| 407 | |
| 408 | ------------------------------------------------------------------------------- |
| 409 | A METHOD_AS_TEST_CASE based test run that fails |
| 410 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 411 | Class.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 412 | ............................................................................... |
| 413 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 414 | Class.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 415 | REQUIRE( s == "world" ) |
| 416 | with expansion: |
| 417 | "hello" == "world" |
| 418 | |
| 419 | ------------------------------------------------------------------------------- |
| 420 | A METHOD_AS_TEST_CASE based test run that succeeds |
| 421 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 422 | Class.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 423 | ............................................................................... |
| 424 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 425 | Class.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 426 | PASSED: |
| 427 | REQUIRE( s == "hello" ) |
| 428 | with expansion: |
| 429 | "hello" == "hello" |
| 430 | |
| 431 | ------------------------------------------------------------------------------- |
| 432 | A TEST_CASE_METHOD based test run that fails |
| 433 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 434 | Class.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 435 | ............................................................................... |
| 436 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 437 | Class.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 438 | REQUIRE( m_a == 2 ) |
| 439 | with expansion: |
| 440 | 1 == 2 |
| 441 | |
| 442 | ------------------------------------------------------------------------------- |
| 443 | A TEST_CASE_METHOD based test run that succeeds |
| 444 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 445 | Class.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 446 | ............................................................................... |
| 447 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 448 | Class.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 449 | PASSED: |
| 450 | REQUIRE( m_a == 1 ) |
| 451 | with expansion: |
| 452 | 1 == 1 |
| 453 | |
| 454 | ------------------------------------------------------------------------------- |
| 455 | A couple of nested sections followed by a failure |
| 456 | Outer |
| 457 | Inner |
| 458 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 459 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 460 | ............................................................................... |
| 461 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 462 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 463 | PASSED: |
| 464 | with message: |
| 465 | that's not flying - that's failing in style |
| 466 | |
| 467 | ------------------------------------------------------------------------------- |
| 468 | A couple of nested sections followed by a failure |
| 469 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 470 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 471 | ............................................................................... |
| 472 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 473 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 474 | explicitly with message: |
| 475 | to infinity and beyond |
| 476 | |
| 477 | ------------------------------------------------------------------------------- |
| 478 | A failing expression with a non streamable type is still captured |
| 479 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 480 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 481 | ............................................................................... |
| 482 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 483 | Tricky.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 484 | CHECK( &o1 == &o2 ) |
| 485 | with expansion: |
| 486 | 0x<hex digits> == 0x<hex digits> |
| 487 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 488 | Tricky.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 489 | CHECK( o1 == o2 ) |
| 490 | with expansion: |
| 491 | {?} == {?} |
| 492 | |
| 493 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 494 | Absolute margin |
| 495 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 496 | Approx.tests.cpp:<line number> |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 497 | ............................................................................... |
| 498 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 499 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 500 | PASSED: |
| 501 | REQUIRE( 104.0 != Approx(100.0) ) |
| 502 | with expansion: |
| 503 | 104.0 != Approx( 100.0 ) |
| 504 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 505 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 506 | PASSED: |
| 507 | REQUIRE( 104.0 == Approx(100.0).margin(5) ) |
| 508 | with expansion: |
| 509 | 104.0 == Approx( 100.0 ) |
| 510 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 511 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 512 | PASSED: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 513 | REQUIRE( 104.0 == Approx(100.0).margin(4) ) |
| 514 | with expansion: |
| 515 | 104.0 == Approx( 100.0 ) |
| 516 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 517 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 518 | PASSED: |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 519 | REQUIRE( 104.0 != Approx(100.0).margin(3) ) |
| 520 | with expansion: |
| 521 | 104.0 != Approx( 100.0 ) |
| 522 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 523 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 524 | PASSED: |
| 525 | REQUIRE( 100.3 != Approx(100.0) ) |
| 526 | with expansion: |
| 527 | 100.3 != Approx( 100.0 ) |
| 528 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 529 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | bbeb192 | 2017-02-27 16:27:43 +0100 | [diff] [blame] | 530 | PASSED: |
| 531 | REQUIRE( 100.3 == Approx(100.0).margin(0.5) ) |
| 532 | with expansion: |
| 533 | 100.3 == Approx( 100.0 ) |
| 534 | |
| 535 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 536 | An expression with side-effects should only be evaluated once |
| 537 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 538 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 539 | ............................................................................... |
| 540 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 541 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 542 | PASSED: |
| 543 | REQUIRE( i++ == 7 ) |
| 544 | with expansion: |
| 545 | 7 == 7 |
| 546 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 547 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 548 | PASSED: |
| 549 | REQUIRE( i++ == 8 ) |
| 550 | with expansion: |
| 551 | 8 == 8 |
| 552 | |
| 553 | ------------------------------------------------------------------------------- |
| 554 | An unchecked exception reports the line of the last assertion |
| 555 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 556 | Exception.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 557 | ............................................................................... |
| 558 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 559 | Exception.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 560 | PASSED: |
| 561 | CHECK( 1 == 1 ) |
| 562 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 563 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 564 | {Unknown expression after the reported line} |
| 565 | due to unexpected exception with message: |
| 566 | unexpected exception |
| 567 | |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 568 | ------------------------------------------------------------------------------- |
| 569 | Anonymous test case 1 |
| 570 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 571 | VariadicMacros.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 572 | ............................................................................... |
| 573 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 574 | VariadicMacros.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 575 | PASSED: |
| 576 | with message: |
| 577 | anonymous test case |
| 578 | |
| 579 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 580 | Approx setters validate their arguments |
| 581 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 582 | Approx.tests.cpp:<line number> |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 583 | ............................................................................... |
| 584 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 585 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 586 | PASSED: |
| 587 | REQUIRE_NOTHROW( Approx(0).margin(0) ) |
| 588 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 589 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 590 | PASSED: |
| 591 | REQUIRE_NOTHROW( Approx(0).margin(1234656) ) |
| 592 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 593 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 594 | PASSED: |
| 595 | REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error ) |
| 596 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 597 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 598 | PASSED: |
| 599 | REQUIRE_NOTHROW( Approx(0).epsilon(0) ) |
| 600 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 601 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 602 | PASSED: |
| 603 | REQUIRE_NOTHROW( Approx(0).epsilon(1) ) |
| 604 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 605 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 606 | PASSED: |
| 607 | REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error ) |
| 608 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 609 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 610 | PASSED: |
| 611 | REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error ) |
| 612 | |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 613 | ------------------------------------------------------------------------------- |
| 614 | Approx with exactly-representable margin |
| 615 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 616 | Approx.tests.cpp:<line number> |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 617 | ............................................................................... |
| 618 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 619 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 620 | PASSED: |
| 621 | CHECK( 0.25f == Approx(0.0f).margin(0.25f) ) |
| 622 | with expansion: |
| 623 | 0.25f == Approx( 0.0 ) |
| 624 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 625 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 626 | PASSED: |
| 627 | CHECK( 0.0f == Approx(0.25f).margin(0.25f) ) |
| 628 | with expansion: |
| 629 | 0.0f == Approx( 0.25 ) |
| 630 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 631 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 632 | PASSED: |
| 633 | CHECK( 0.5f == Approx(0.25f).margin(0.25f) ) |
| 634 | with expansion: |
| 635 | 0.5f == Approx( 0.25 ) |
| 636 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 637 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 638 | PASSED: |
| 639 | CHECK( 245.0f == Approx(245.25f).margin(0.25f) ) |
| 640 | with expansion: |
| 641 | 245.0f == Approx( 245.25 ) |
| 642 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 643 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 644 | PASSED: |
| 645 | CHECK( 245.5f == Approx(245.25f).margin(0.25f) ) |
| 646 | with expansion: |
| 647 | 245.5f == Approx( 245.25 ) |
| 648 | |
| 649 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 650 | Approximate PI |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 651 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 652 | Approx.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 653 | ............................................................................... |
| 654 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 655 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 656 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 657 | REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 658 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 659 | 3.1428571429 == Approx( 3.141 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 660 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 661 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 662 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 663 | REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 664 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 665 | 3.1428571429 != Approx( 3.141 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 666 | |
| 667 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 668 | Approximate comparisons with different epsilons |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 669 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 670 | Approx.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 671 | ............................................................................... |
| 672 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 673 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 674 | PASSED: |
| 675 | REQUIRE( d != Approx( 1.231 ) ) |
| 676 | with expansion: |
| 677 | 1.23 != Approx( 1.231 ) |
| 678 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 679 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 680 | PASSED: |
| 681 | REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) ) |
| 682 | with expansion: |
| 683 | 1.23 == Approx( 1.231 ) |
| 684 | |
| 685 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 686 | Approximate comparisons with floats |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 687 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 688 | Approx.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 689 | ............................................................................... |
| 690 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 691 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 692 | PASSED: |
| 693 | REQUIRE( 1.23f == Approx( 1.23f ) ) |
| 694 | with expansion: |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 695 | 1.23f == Approx( 1.2300000191 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 696 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 697 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 698 | PASSED: |
| 699 | REQUIRE( 0.0f == Approx( 0.0f ) ) |
| 700 | with expansion: |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 701 | 0.0f == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 702 | |
| 703 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 704 | Approximate comparisons with ints |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 705 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 706 | Approx.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 707 | ............................................................................... |
| 708 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 709 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 710 | PASSED: |
| 711 | REQUIRE( 1 == Approx( 1 ) ) |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 712 | with expansion: |
| 713 | 1 == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 714 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 715 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 716 | PASSED: |
| 717 | REQUIRE( 0 == Approx( 0 ) ) |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 718 | with expansion: |
| 719 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 720 | |
| 721 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 722 | Approximate comparisons with mixed numeric types |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 723 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 724 | Approx.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 725 | ............................................................................... |
| 726 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 727 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 728 | PASSED: |
| 729 | REQUIRE( 1.0f == Approx( 1 ) ) |
| 730 | with expansion: |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 731 | 1.0f == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 732 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 733 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 734 | PASSED: |
| 735 | REQUIRE( 0 == Approx( dZero) ) |
| 736 | with expansion: |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 737 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 738 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 739 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 740 | PASSED: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 741 | REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 742 | with expansion: |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 743 | 0 == Approx( 0.00001 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 744 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 745 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 746 | PASSED: |
| 747 | REQUIRE( 1.234f == Approx( dMedium ) ) |
| 748 | with expansion: |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 749 | 1.234f == Approx( 1.234 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 750 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 751 | Approx.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 752 | PASSED: |
| 753 | REQUIRE( dMedium == Approx( 1.234f ) ) |
| 754 | with expansion: |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 755 | 1.234 == Approx( 1.2339999676 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 756 | |
| 757 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 758 | Assertions then sections |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 759 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 760 | Tricky.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 761 | ............................................................................... |
| 762 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 763 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 764 | PASSED: |
Martin Hořeňovský | 401ad7a | 2017-11-21 21:39:40 +0100 | [diff] [blame] | 765 | REQUIRE( true ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 766 | |
| 767 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 768 | Assertions then sections |
| 769 | A section |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 770 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 771 | Tricky.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 772 | ............................................................................... |
| 773 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 774 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 775 | PASSED: |
Martin Hořeňovský | 401ad7a | 2017-11-21 21:39:40 +0100 | [diff] [blame] | 776 | REQUIRE( true ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 777 | |
| 778 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 779 | Assertions then sections |
| 780 | A section |
| 781 | Another section |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 782 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 783 | Tricky.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 784 | ............................................................................... |
| 785 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 786 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 787 | PASSED: |
Martin Hořeňovský | 401ad7a | 2017-11-21 21:39:40 +0100 | [diff] [blame] | 788 | REQUIRE( true ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 789 | |
| 790 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 791 | Assertions then sections |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 792 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 793 | Tricky.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 794 | ............................................................................... |
| 795 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 796 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 797 | PASSED: |
Martin Hořeňovský | 401ad7a | 2017-11-21 21:39:40 +0100 | [diff] [blame] | 798 | REQUIRE( true ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 799 | |
| 800 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 801 | Assertions then sections |
| 802 | A section |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 803 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 804 | Tricky.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 805 | ............................................................................... |
| 806 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 807 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 808 | PASSED: |
Martin Hořeňovský | 401ad7a | 2017-11-21 21:39:40 +0100 | [diff] [blame] | 809 | REQUIRE( true ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 810 | |
| 811 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 812 | Assertions then sections |
| 813 | A section |
| 814 | Another other section |
| 815 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 816 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 817 | ............................................................................... |
| 818 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 819 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 820 | PASSED: |
Martin Hořeňovský | 401ad7a | 2017-11-21 21:39:40 +0100 | [diff] [blame] | 821 | REQUIRE( true ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 822 | |
| 823 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 824 | Assorted miscellaneous tests |
| 825 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 826 | Approx.tests.cpp:<line number> |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 827 | ............................................................................... |
| 828 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 829 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 830 | PASSED: |
| 831 | REQUIRE( INFINITY == Approx(INFINITY) ) |
| 832 | with expansion: |
| 833 | inff == Approx( inf ) |
| 834 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 835 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 030321e | 2017-11-10 18:48:45 +0100 | [diff] [blame] | 836 | PASSED: |
| 837 | REQUIRE( NAN != Approx(NAN) ) |
| 838 | with expansion: |
| 839 | nanf != Approx( nan ) |
| 840 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 841 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 030321e | 2017-11-10 18:48:45 +0100 | [diff] [blame] | 842 | PASSED: |
| 843 | REQUIRE_FALSE( NAN == Approx(NAN) ) |
| 844 | with expansion: |
| 845 | !(nanf == Approx( nan )) |
| 846 | |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 847 | ------------------------------------------------------------------------------- |
Phil Nash | c2b7bd1 | 2017-10-13 14:16:14 +0100 | [diff] [blame] | 848 | Bitfields can be captured (#1027) |
| 849 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 850 | Tricky.tests.cpp:<line number> |
Phil Nash | c2b7bd1 | 2017-10-13 14:16:14 +0100 | [diff] [blame] | 851 | ............................................................................... |
| 852 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 853 | Tricky.tests.cpp:<line number>: |
Phil Nash | c2b7bd1 | 2017-10-13 14:16:14 +0100 | [diff] [blame] | 854 | PASSED: |
| 855 | REQUIRE( y.v == 0 ) |
| 856 | with expansion: |
| 857 | 0 == 0 |
| 858 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 859 | Tricky.tests.cpp:<line number>: |
Phil Nash | c2b7bd1 | 2017-10-13 14:16:14 +0100 | [diff] [blame] | 860 | PASSED: |
| 861 | REQUIRE( 0 == y.v ) |
| 862 | with expansion: |
| 863 | 0 == 0 |
| 864 | |
| 865 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | be4f6ab | 2017-03-03 14:34:50 +0100 | [diff] [blame] | 866 | Capture and info messages |
| 867 | Capture should stringify like assertions |
| 868 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 869 | ToStringGeneral.tests.cpp:<line number> |
Martin Hořeňovský | be4f6ab | 2017-03-03 14:34:50 +0100 | [diff] [blame] | 870 | ............................................................................... |
| 871 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 872 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | be4f6ab | 2017-03-03 14:34:50 +0100 | [diff] [blame] | 873 | PASSED: |
| 874 | REQUIRE( true ) |
| 875 | with message: |
| 876 | i := 2 |
| 877 | |
| 878 | ------------------------------------------------------------------------------- |
| 879 | Capture and info messages |
| 880 | Info should NOT stringify the way assertions do |
| 881 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 882 | ToStringGeneral.tests.cpp:<line number> |
Martin Hořeňovský | be4f6ab | 2017-03-03 14:34:50 +0100 | [diff] [blame] | 883 | ............................................................................... |
| 884 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 885 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | be4f6ab | 2017-03-03 14:34:50 +0100 | [diff] [blame] | 886 | PASSED: |
| 887 | REQUIRE( true ) |
| 888 | with message: |
| 889 | 3 |
| 890 | |
| 891 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 892 | Character pretty printing |
| 893 | Specifically escaped |
| 894 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 895 | ToStringGeneral.tests.cpp:<line number> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 896 | ............................................................................... |
| 897 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 898 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 899 | PASSED: |
| 900 | CHECK( tab == '\t' ) |
| 901 | with expansion: |
| 902 | '\t' == '\t' |
| 903 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 904 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 905 | PASSED: |
| 906 | CHECK( newline == '\n' ) |
| 907 | with expansion: |
| 908 | '\n' == '\n' |
| 909 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 910 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 911 | PASSED: |
| 912 | CHECK( carr_return == '\r' ) |
| 913 | with expansion: |
| 914 | '\r' == '\r' |
| 915 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 916 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 917 | PASSED: |
| 918 | CHECK( form_feed == '\f' ) |
| 919 | with expansion: |
| 920 | '\f' == '\f' |
| 921 | |
| 922 | ------------------------------------------------------------------------------- |
| 923 | Character pretty printing |
| 924 | General chars |
| 925 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 926 | ToStringGeneral.tests.cpp:<line number> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 927 | ............................................................................... |
| 928 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 929 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 930 | PASSED: |
| 931 | CHECK( space == ' ' ) |
| 932 | with expansion: |
| 933 | ' ' == ' ' |
| 934 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 935 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 936 | PASSED: |
| 937 | REQUIRE( c == chars[i] ) |
| 938 | with expansion: |
| 939 | 'a' == 'a' |
| 940 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 941 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 942 | PASSED: |
| 943 | REQUIRE( c == chars[i] ) |
| 944 | with expansion: |
| 945 | 'z' == 'z' |
| 946 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 947 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 948 | PASSED: |
| 949 | REQUIRE( c == chars[i] ) |
| 950 | with expansion: |
| 951 | 'A' == 'A' |
| 952 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 953 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 954 | PASSED: |
| 955 | REQUIRE( c == chars[i] ) |
| 956 | with expansion: |
| 957 | 'Z' == 'Z' |
| 958 | |
| 959 | ------------------------------------------------------------------------------- |
| 960 | Character pretty printing |
| 961 | Low ASCII |
| 962 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 963 | ToStringGeneral.tests.cpp:<line number> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 964 | ............................................................................... |
| 965 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 966 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 967 | PASSED: |
| 968 | CHECK( null_terminator == '\0' ) |
| 969 | with expansion: |
| 970 | 0 == 0 |
| 971 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 972 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 973 | PASSED: |
| 974 | REQUIRE( c == i ) |
| 975 | with expansion: |
| 976 | 2 == 2 |
| 977 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 978 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 979 | PASSED: |
| 980 | REQUIRE( c == i ) |
| 981 | with expansion: |
| 982 | 3 == 3 |
| 983 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 984 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 985 | PASSED: |
| 986 | REQUIRE( c == i ) |
| 987 | with expansion: |
| 988 | 4 == 4 |
| 989 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 990 | ToStringGeneral.tests.cpp:<line number>: |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame] | 991 | PASSED: |
| 992 | REQUIRE( c == i ) |
| 993 | with expansion: |
| 994 | 5 == 5 |
| 995 | |
| 996 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 997 | Commas in various macros are allowed |
| 998 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 999 | Tricky.tests.cpp:<line number> |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1000 | ............................................................................... |
| 1001 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1002 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1003 | PASSED: |
| 1004 | REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} ) |
| 1005 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1006 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1007 | PASSED: |
| 1008 | CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} ) |
| 1009 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1010 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1011 | PASSED: |
| 1012 | REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} ) |
| 1013 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1014 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1015 | PASSED: |
| 1016 | CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} ) |
| 1017 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1018 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1019 | PASSED: |
| 1020 | REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} ) |
| 1021 | with expansion: |
| 1022 | { 1, 2 } == { 1, 2 } |
| 1023 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1024 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1025 | PASSED: |
| 1026 | CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} ) |
| 1027 | with expansion: |
| 1028 | { 1, 2 } == { 1, 2 } |
| 1029 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1030 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1031 | PASSED: |
| 1032 | REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} ) |
| 1033 | with expansion: |
| 1034 | !({ 1, 2 } == { 1, 2, 3 }) |
| 1035 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1036 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1037 | PASSED: |
| 1038 | CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} ) |
| 1039 | with expansion: |
| 1040 | !({ 1, 2 } == { 1, 2, 3 }) |
| 1041 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1042 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1043 | PASSED: |
| 1044 | CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} ) |
| 1045 | with expansion: |
| 1046 | { 1, 2 } == { 1, 2 } |
| 1047 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1048 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1049 | PASSED: |
| 1050 | CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} ) |
| 1051 | with expansion: |
| 1052 | { 1, 2 } == { 1, 2 } |
| 1053 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1054 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1055 | PASSED: |
| 1056 | REQUIRE( true ) |
| 1057 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1058 | Tricky.tests.cpp:<line number>: |
Martin Hořeňovský | a9128d0 | 2017-05-03 19:10:27 +0200 | [diff] [blame] | 1059 | PASSED: |
| 1060 | CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} ) |
| 1061 | with expansion: |
| 1062 | { 1, 2 } == { 1, 2 } |
| 1063 | |
| 1064 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1065 | Comparing function pointers |
| 1066 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1067 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1068 | ............................................................................... |
| 1069 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1070 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1071 | PASSED: |
| 1072 | REQUIRE( a ) |
| 1073 | with expansion: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1074 | 0x<hex digits> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1075 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1076 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1077 | PASSED: |
| 1078 | REQUIRE( a == &foo ) |
| 1079 | with expansion: |
| 1080 | 0x<hex digits> == 0x<hex digits> |
| 1081 | |
| 1082 | ------------------------------------------------------------------------------- |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1083 | Comparison with explicitly convertible types |
| 1084 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1085 | Approx.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1086 | ............................................................................... |
| 1087 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1088 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1089 | PASSED: |
| 1090 | REQUIRE( td == Approx(10.0) ) |
| 1091 | with expansion: |
| 1092 | StrongDoubleTypedef(10) == Approx( 10.0 ) |
| 1093 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1094 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1095 | PASSED: |
| 1096 | REQUIRE( Approx(10.0) == td ) |
| 1097 | with expansion: |
| 1098 | Approx( 10.0 ) == StrongDoubleTypedef(10) |
| 1099 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1100 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1101 | PASSED: |
| 1102 | REQUIRE( td != Approx(11.0) ) |
| 1103 | with expansion: |
| 1104 | StrongDoubleTypedef(10) != Approx( 11.0 ) |
| 1105 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1106 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1107 | PASSED: |
| 1108 | REQUIRE( Approx(11.0) != td ) |
| 1109 | with expansion: |
| 1110 | Approx( 11.0 ) != StrongDoubleTypedef(10) |
| 1111 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1112 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1113 | PASSED: |
| 1114 | REQUIRE( td <= Approx(10.0) ) |
| 1115 | with expansion: |
| 1116 | StrongDoubleTypedef(10) <= Approx( 10.0 ) |
| 1117 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1118 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1119 | PASSED: |
| 1120 | REQUIRE( td <= Approx(11.0) ) |
| 1121 | with expansion: |
| 1122 | StrongDoubleTypedef(10) <= Approx( 11.0 ) |
| 1123 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1124 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1125 | PASSED: |
| 1126 | REQUIRE( Approx(10.0) <= td ) |
| 1127 | with expansion: |
| 1128 | Approx( 10.0 ) <= StrongDoubleTypedef(10) |
| 1129 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1130 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1131 | PASSED: |
| 1132 | REQUIRE( Approx(9.0) <= td ) |
| 1133 | with expansion: |
| 1134 | Approx( 9.0 ) <= StrongDoubleTypedef(10) |
| 1135 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1136 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1137 | PASSED: |
| 1138 | REQUIRE( td >= Approx(9.0) ) |
| 1139 | with expansion: |
| 1140 | StrongDoubleTypedef(10) >= Approx( 9.0 ) |
| 1141 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1142 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1143 | PASSED: |
Martin Hořeňovský | 28d1955 | 2017-11-28 21:29:34 +0100 | [diff] [blame] | 1144 | REQUIRE( td >= Approx(td) ) |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1145 | with expansion: |
| 1146 | StrongDoubleTypedef(10) >= Approx( 10.0 ) |
| 1147 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1148 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1149 | PASSED: |
Martin Hořeňovský | 28d1955 | 2017-11-28 21:29:34 +0100 | [diff] [blame] | 1150 | REQUIRE( Approx(td) >= td ) |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1151 | with expansion: |
| 1152 | Approx( 10.0 ) >= StrongDoubleTypedef(10) |
| 1153 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1154 | Approx.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 1155 | PASSED: |
| 1156 | REQUIRE( Approx(11.0) >= td ) |
| 1157 | with expansion: |
| 1158 | Approx( 11.0 ) >= StrongDoubleTypedef(10) |
| 1159 | |
| 1160 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1161 | Comparisons between ints where one side is computed |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1162 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1163 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1164 | ............................................................................... |
| 1165 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1166 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1167 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1168 | CHECK( 54 == 6*9 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1169 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1170 | 54 == 54 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1171 | |
| 1172 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1173 | Comparisons between unsigned ints and negative signed ints match c++ standard |
| 1174 | behaviour |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1175 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1176 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1177 | ............................................................................... |
| 1178 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1179 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1180 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1181 | CHECK( ( -1 > 2u ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1182 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1183 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1184 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1185 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1186 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1187 | CHECK( -1 > 2u ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1188 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1189 | -1 > 2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1190 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1191 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1192 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1193 | CHECK( ( 2u < -1 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1194 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1195 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1196 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1197 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1198 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1199 | CHECK( 2u < -1 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1200 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1201 | 2 < -1 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1202 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1203 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1204 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1205 | CHECK( ( minInt > 2u ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1206 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1207 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1208 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1209 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1210 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1211 | CHECK( minInt > 2u ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1212 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1213 | -2147483648 > 2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1214 | |
| 1215 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1216 | Comparisons with int literals don't warn when mixing signed/ unsigned |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1217 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1218 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1219 | ............................................................................... |
| 1220 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1221 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1222 | PASSED: |
| 1223 | REQUIRE( i == 1 ) |
| 1224 | with expansion: |
| 1225 | 1 == 1 |
| 1226 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1227 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1228 | PASSED: |
| 1229 | REQUIRE( ui == 2 ) |
| 1230 | with expansion: |
| 1231 | 2 == 2 |
| 1232 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1233 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1234 | PASSED: |
| 1235 | REQUIRE( l == 3 ) |
| 1236 | with expansion: |
| 1237 | 3 == 3 |
| 1238 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1239 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1240 | PASSED: |
| 1241 | REQUIRE( ul == 4 ) |
| 1242 | with expansion: |
| 1243 | 4 == 4 |
| 1244 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1245 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1246 | PASSED: |
| 1247 | REQUIRE( c == 5 ) |
| 1248 | with expansion: |
| 1249 | 5 == 5 |
| 1250 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1251 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1252 | PASSED: |
| 1253 | REQUIRE( uc == 6 ) |
| 1254 | with expansion: |
| 1255 | 6 == 6 |
| 1256 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1257 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1258 | PASSED: |
| 1259 | REQUIRE( 1 == i ) |
| 1260 | with expansion: |
| 1261 | 1 == 1 |
| 1262 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1263 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1264 | PASSED: |
| 1265 | REQUIRE( 2 == ui ) |
| 1266 | with expansion: |
| 1267 | 2 == 2 |
| 1268 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1269 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1270 | PASSED: |
| 1271 | REQUIRE( 3 == l ) |
| 1272 | with expansion: |
| 1273 | 3 == 3 |
| 1274 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1275 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1276 | PASSED: |
| 1277 | REQUIRE( 4 == ul ) |
| 1278 | with expansion: |
| 1279 | 4 == 4 |
| 1280 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1281 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1282 | PASSED: |
| 1283 | REQUIRE( 5 == c ) |
| 1284 | with expansion: |
| 1285 | 5 == 5 |
| 1286 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1287 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1288 | PASSED: |
| 1289 | REQUIRE( 6 == uc ) |
| 1290 | with expansion: |
| 1291 | 6 == 6 |
| 1292 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1293 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1294 | PASSED: |
Martin Hořeňovský | ab5d176 | 2017-09-01 20:28:49 +0200 | [diff] [blame] | 1295 | REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1296 | with expansion: |
Martin Hořeňovský | ab5d176 | 2017-09-01 20:28:49 +0200 | [diff] [blame] | 1297 | 4294967295 (0x<hex digits>) > 4 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1298 | |
| 1299 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1300 | Contains string matcher |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1301 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1302 | Matchers.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1303 | ............................................................................... |
| 1304 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1305 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1306 | CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1307 | with expansion: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1308 | "this string contains 'abc' as a substring" contains: "not there" (case |
| 1309 | insensitive) |
| 1310 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1311 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1312 | CHECK_THAT( testStringForMatching(), Contains("STRING") ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1313 | with expansion: |
| 1314 | "this string contains 'abc' as a substring" contains: "STRING" |
Phil Nash | a49f088 | 2015-11-18 08:39:21 +0000 | [diff] [blame] | 1315 | |
| 1316 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1317 | Custom exceptions can be translated when testing for nothrow |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1318 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1319 | Exception.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1320 | ............................................................................... |
| 1321 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1322 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1323 | REQUIRE_NOTHROW( throwCustom() ) |
| 1324 | due to unexpected exception with message: |
| 1325 | custom exception - not std |
| 1326 | |
| 1327 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1328 | Custom exceptions can be translated when testing for throwing as something else |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1329 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1330 | Exception.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1331 | ............................................................................... |
| 1332 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1333 | Exception.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | 9952dda | 2017-02-09 12:41:16 +0100 | [diff] [blame] | 1334 | REQUIRE_THROWS_AS( throwCustom(), std::exception ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1335 | due to unexpected exception with message: |
| 1336 | custom exception - not std |
| 1337 | |
| 1338 | ------------------------------------------------------------------------------- |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 1339 | Custom std-exceptions can be custom translated |
| 1340 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1341 | Exception.tests.cpp:<line number> |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 1342 | ............................................................................... |
| 1343 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1344 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 1345 | due to unexpected exception with message: |
| 1346 | custom std exception |
| 1347 | |
| 1348 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1349 | Default scale is invisible to comparison |
| 1350 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1351 | Approx.tests.cpp:<line number> |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1352 | ............................................................................... |
| 1353 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1354 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1355 | PASSED: |
| 1356 | REQUIRE( 101.000001 != Approx(100).epsilon(0.01) ) |
| 1357 | with expansion: |
| 1358 | 101.000001 != Approx( 100.0 ) |
| 1359 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1360 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1361 | PASSED: |
| 1362 | REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) ) |
| 1363 | with expansion: |
| 1364 | 0.00001 != Approx( 0.0000001 ) |
| 1365 | |
| 1366 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1367 | EndsWith string matcher |
| 1368 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1369 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1370 | ............................................................................... |
| 1371 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1372 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1373 | CHECK_THAT( testStringForMatching(), EndsWith("Substring") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1374 | with expansion: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1375 | "this string contains 'abc' as a substring" ends with: "Substring" |
| 1376 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1377 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1378 | CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1379 | with expansion: |
| 1380 | "this string contains 'abc' as a substring" ends with: "this" (case |
| 1381 | insensitive) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1382 | |
| 1383 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1384 | Epsilon only applies to Approx's value |
| 1385 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1386 | Approx.tests.cpp:<line number> |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1387 | ............................................................................... |
| 1388 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1389 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 1390 | PASSED: |
| 1391 | REQUIRE( 101.01 != Approx(100).epsilon(0.01) ) |
| 1392 | with expansion: |
| 1393 | 101.01 != Approx( 100.0 ) |
| 1394 | |
| 1395 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1396 | Equality checks that should fail |
| 1397 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1398 | Condition.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1399 | ............................................................................... |
| 1400 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1401 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1402 | CHECK( data.int_seven == 6 ) |
| 1403 | with expansion: |
| 1404 | 7 == 6 |
| 1405 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1406 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1407 | CHECK( data.int_seven == 8 ) |
| 1408 | with expansion: |
| 1409 | 7 == 8 |
| 1410 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1411 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1412 | CHECK( data.int_seven == 0 ) |
| 1413 | with expansion: |
| 1414 | 7 == 0 |
| 1415 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1416 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1417 | CHECK( data.float_nine_point_one == Approx( 9.11f ) ) |
| 1418 | with expansion: |
| 1419 | 9.1f == Approx( 9.1099996567 ) |
| 1420 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1421 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1422 | CHECK( data.float_nine_point_one == Approx( 9.0f ) ) |
| 1423 | with expansion: |
| 1424 | 9.1f == Approx( 9.0 ) |
| 1425 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1426 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1427 | CHECK( data.float_nine_point_one == Approx( 1 ) ) |
| 1428 | with expansion: |
| 1429 | 9.1f == Approx( 1.0 ) |
| 1430 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1431 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1432 | CHECK( data.float_nine_point_one == Approx( 0 ) ) |
| 1433 | with expansion: |
| 1434 | 9.1f == Approx( 0.0 ) |
| 1435 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1436 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1437 | CHECK( data.double_pi == Approx( 3.1415 ) ) |
| 1438 | with expansion: |
| 1439 | 3.1415926535 == Approx( 3.1415 ) |
| 1440 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1441 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1442 | CHECK( data.str_hello == "goodbye" ) |
| 1443 | with expansion: |
| 1444 | "hello" == "goodbye" |
| 1445 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1446 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1447 | CHECK( data.str_hello == "hell" ) |
| 1448 | with expansion: |
| 1449 | "hello" == "hell" |
| 1450 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1451 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1452 | CHECK( data.str_hello == "hello1" ) |
| 1453 | with expansion: |
| 1454 | "hello" == "hello1" |
| 1455 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1456 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1457 | CHECK( data.str_hello.size() == 6 ) |
| 1458 | with expansion: |
| 1459 | 5 == 6 |
| 1460 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1461 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1462 | CHECK( x == Approx( 1.301 ) ) |
| 1463 | with expansion: |
| 1464 | 1.3 == Approx( 1.301 ) |
| 1465 | |
| 1466 | ------------------------------------------------------------------------------- |
| 1467 | Equality checks that should succeed |
| 1468 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1469 | Condition.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1470 | ............................................................................... |
| 1471 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1472 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1473 | PASSED: |
| 1474 | REQUIRE( data.int_seven == 7 ) |
| 1475 | with expansion: |
| 1476 | 7 == 7 |
| 1477 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1478 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1479 | PASSED: |
| 1480 | REQUIRE( data.float_nine_point_one == Approx( 9.1f ) ) |
| 1481 | with expansion: |
| 1482 | 9.1f == Approx( 9.1000003815 ) |
| 1483 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1484 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1485 | PASSED: |
| 1486 | REQUIRE( data.double_pi == Approx( 3.1415926535 ) ) |
| 1487 | with expansion: |
| 1488 | 3.1415926535 == Approx( 3.1415926535 ) |
| 1489 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1490 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1491 | PASSED: |
| 1492 | REQUIRE( data.str_hello == "hello" ) |
| 1493 | with expansion: |
| 1494 | "hello" == "hello" |
| 1495 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1496 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1497 | PASSED: |
| 1498 | REQUIRE( "hello" == data.str_hello ) |
| 1499 | with expansion: |
| 1500 | "hello" == "hello" |
| 1501 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1502 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1503 | PASSED: |
| 1504 | REQUIRE( data.str_hello.size() == 5 ) |
| 1505 | with expansion: |
| 1506 | 5 == 5 |
| 1507 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1508 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1509 | PASSED: |
| 1510 | REQUIRE( x == Approx( 1.3 ) ) |
| 1511 | with expansion: |
| 1512 | 1.3 == Approx( 1.3 ) |
| 1513 | |
| 1514 | ------------------------------------------------------------------------------- |
| 1515 | Equals |
| 1516 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1517 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1518 | ............................................................................... |
| 1519 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1520 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1521 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1522 | CHECK_THAT( testStringForMatching(), Equals("this string contains 'abc' as a substring") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1523 | with expansion: |
| 1524 | "this string contains 'abc' as a substring" equals: "this string contains |
| 1525 | 'abc' as a substring" |
| 1526 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1527 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1528 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1529 | CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1530 | with expansion: |
| 1531 | "this string contains 'abc' as a substring" equals: "this string contains |
| 1532 | 'abc' as a substring" (case insensitive) |
| 1533 | |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1534 | ------------------------------------------------------------------------------- |
| 1535 | Equals string matcher |
| 1536 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1537 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1538 | ............................................................................... |
| 1539 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1540 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1541 | CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1542 | with expansion: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1543 | "this string contains 'abc' as a substring" equals: "this string contains |
| 1544 | 'ABC' as a substring" |
| 1545 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1546 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1547 | CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 1548 | with expansion: |
| 1549 | "this string contains 'abc' as a substring" equals: "something else" (case |
| 1550 | insensitive) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1551 | |
| 1552 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1553 | Exception matchers that fail |
| 1554 | No exception |
| 1555 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1556 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1557 | ............................................................................... |
| 1558 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1559 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1560 | CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1561 | because no exception was thrown where one was expected: |
| 1562 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1563 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1564 | REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1565 | because no exception was thrown where one was expected: |
| 1566 | |
| 1567 | ------------------------------------------------------------------------------- |
| 1568 | Exception matchers that fail |
| 1569 | Type mismatch |
| 1570 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1571 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1572 | ............................................................................... |
| 1573 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1574 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1575 | CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1576 | due to unexpected exception with message: |
| 1577 | Unknown exception |
| 1578 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1579 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1580 | REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1581 | due to unexpected exception with message: |
| 1582 | Unknown exception |
| 1583 | |
| 1584 | ------------------------------------------------------------------------------- |
| 1585 | Exception matchers that fail |
| 1586 | Contents are wrong |
| 1587 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1588 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1589 | ............................................................................... |
| 1590 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1591 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1592 | CHECK_THROWS_MATCHES( throws(3), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1593 | with expansion: |
| 1594 | {?} special exception has value of 1 |
| 1595 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1596 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1597 | REQUIRE_THROWS_MATCHES( throws(4), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1598 | with expansion: |
| 1599 | {?} special exception has value of 1 |
| 1600 | |
| 1601 | ------------------------------------------------------------------------------- |
| 1602 | Exception matchers that succeed |
| 1603 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1604 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1605 | ............................................................................... |
| 1606 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1607 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1608 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1609 | CHECK_THROWS_MATCHES( throws(1), SpecialException, ExceptionMatcher{1} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1610 | with expansion: |
| 1611 | {?} special exception has value of 1 |
| 1612 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1613 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1614 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 1615 | REQUIRE_THROWS_MATCHES( throws(2), SpecialException, ExceptionMatcher{2} ) |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 1616 | with expansion: |
| 1617 | {?} special exception has value of 2 |
| 1618 | |
| 1619 | ------------------------------------------------------------------------------- |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1620 | Exception messages can be tested for |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1621 | exact match |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1622 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1623 | Exception.tests.cpp:<line number> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1624 | ............................................................................... |
| 1625 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1626 | Exception.tests.cpp:<line number>: |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1627 | PASSED: |
| 1628 | REQUIRE_THROWS_WITH( thisThrows(), "expected exception" ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 1629 | with expansion: |
| 1630 | "expected exception" equals: "expected exception" |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1631 | |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1632 | ------------------------------------------------------------------------------- |
| 1633 | Exception messages can be tested for |
| 1634 | different case |
| 1635 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1636 | Exception.tests.cpp:<line number> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1637 | ............................................................................... |
| 1638 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1639 | Exception.tests.cpp:<line number>: |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1640 | PASSED: |
Phil Nash | 7286892 | 2015-07-15 23:02:25 +0100 | [diff] [blame] | 1641 | REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 1642 | with expansion: |
| 1643 | "expected exception" equals: "expected exception" (case insensitive) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1644 | |
| 1645 | ------------------------------------------------------------------------------- |
| 1646 | Exception messages can be tested for |
| 1647 | wildcarded |
| 1648 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1649 | Exception.tests.cpp:<line number> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1650 | ............................................................................... |
| 1651 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1652 | Exception.tests.cpp:<line number>: |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1653 | PASSED: |
Phil Nash | 7286892 | 2015-07-15 23:02:25 +0100 | [diff] [blame] | 1654 | REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 1655 | with expansion: |
| 1656 | "expected exception" starts with: "expected" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1657 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1658 | Exception.tests.cpp:<line number>: |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1659 | PASSED: |
Phil Nash | 7286892 | 2015-07-15 23:02:25 +0100 | [diff] [blame] | 1660 | REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 1661 | with expansion: |
| 1662 | "expected exception" ends with: "exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1663 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1664 | Exception.tests.cpp:<line number>: |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1665 | PASSED: |
Phil Nash | 7286892 | 2015-07-15 23:02:25 +0100 | [diff] [blame] | 1666 | REQUIRE_THROWS_WITH( thisThrows(), Contains( "except" ) ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 1667 | with expansion: |
| 1668 | "expected exception" contains: "except" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1669 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1670 | Exception.tests.cpp:<line number>: |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1671 | PASSED: |
Phil Nash | 7286892 | 2015-07-15 23:02:25 +0100 | [diff] [blame] | 1672 | REQUIRE_THROWS_WITH( thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 1673 | with expansion: |
| 1674 | "expected exception" contains: "except" (case insensitive) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1675 | |
| 1676 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1677 | Expected exceptions that don't throw or unexpected exceptions fail the test |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1678 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1679 | Exception.tests.cpp:<line number> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1680 | ............................................................................... |
| 1681 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1682 | Exception.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | 9952dda | 2017-02-09 12:41:16 +0100 | [diff] [blame] | 1683 | CHECK_THROWS_AS( thisThrows(), std::string ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1684 | due to unexpected exception with message: |
| 1685 | expected exception |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1686 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1687 | Exception.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | 9952dda | 2017-02-09 12:41:16 +0100 | [diff] [blame] | 1688 | CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1689 | because no exception was thrown where one was expected: |
| 1690 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1691 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1692 | CHECK_NOTHROW( thisThrows() ) |
| 1693 | due to unexpected exception with message: |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1694 | expected exception |
| 1695 | |
| 1696 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1697 | FAIL aborts the test |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1698 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1699 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1700 | ............................................................................... |
| 1701 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1702 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1703 | explicitly with message: |
| 1704 | This is a failure |
| 1705 | |
| 1706 | ------------------------------------------------------------------------------- |
| 1707 | FAIL does not require an argument |
| 1708 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1709 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1710 | ............................................................................... |
| 1711 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1712 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1713 | |
| 1714 | ------------------------------------------------------------------------------- |
Phil Nash | 5dd0639 | 2017-03-08 15:40:20 +0000 | [diff] [blame] | 1715 | FAIL_CHECK does not abort the test |
| 1716 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1717 | Message.tests.cpp:<line number> |
Phil Nash | 5dd0639 | 2017-03-08 15:40:20 +0000 | [diff] [blame] | 1718 | ............................................................................... |
| 1719 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1720 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 5dd0639 | 2017-03-08 15:40:20 +0000 | [diff] [blame] | 1721 | explicitly with message: |
| 1722 | This is a failure |
| 1723 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1724 | Message.tests.cpp:<line number>: |
Phil Nash | 5dd0639 | 2017-03-08 15:40:20 +0000 | [diff] [blame] | 1725 | warning: |
| 1726 | This message appears in the output |
| 1727 | |
| 1728 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1729 | Factorials are computed |
| 1730 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1731 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1732 | ............................................................................... |
| 1733 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1734 | Misc.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1735 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1736 | REQUIRE( Factorial(0) == 1 ) |
| 1737 | with expansion: |
| 1738 | 1 == 1 |
| 1739 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1740 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1741 | PASSED: |
| 1742 | REQUIRE( Factorial(1) == 1 ) |
| 1743 | with expansion: |
| 1744 | 1 == 1 |
| 1745 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1746 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1747 | PASSED: |
| 1748 | REQUIRE( Factorial(2) == 2 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1749 | with expansion: |
| 1750 | 2 == 2 |
| 1751 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1752 | Misc.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1753 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1754 | REQUIRE( Factorial(3) == 6 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1755 | with expansion: |
| 1756 | 6 == 6 |
| 1757 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1758 | Misc.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1759 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1760 | REQUIRE( Factorial(10) == 3628800 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1761 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1762 | 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1763 | |
| 1764 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1765 | Floating point matchers: double |
| 1766 | Margin |
| 1767 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1768 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1769 | ............................................................................... |
| 1770 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1771 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1772 | PASSED: |
| 1773 | REQUIRE_THAT( 1., WithinAbs(1., 0) ) |
| 1774 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1775 | 1.0 is within 0.0 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1776 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1777 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1778 | PASSED: |
| 1779 | REQUIRE_THAT( 0., WithinAbs(1., 1) ) |
| 1780 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1781 | 0.0 is within 1.0 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1782 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1783 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1784 | PASSED: |
| 1785 | REQUIRE_THAT( 0., !WithinAbs(1., 0.99) ) |
| 1786 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1787 | 0.0 not is within 0.99 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1788 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1789 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1790 | PASSED: |
| 1791 | REQUIRE_THAT( 0., !WithinAbs(1., 0.99) ) |
| 1792 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1793 | 0.0 not is within 0.99 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1794 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1795 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1796 | PASSED: |
| 1797 | REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) ) |
| 1798 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1799 | nanf not is within 0.0 of nan |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1800 | |
| 1801 | ------------------------------------------------------------------------------- |
| 1802 | Floating point matchers: double |
| 1803 | ULPs |
| 1804 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1805 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1806 | ............................................................................... |
| 1807 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1808 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1809 | PASSED: |
| 1810 | REQUIRE_THAT( 1., WithinULP(1., 0) ) |
| 1811 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1812 | 1.0 is within 0 ULPs of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1813 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1814 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1815 | PASSED: |
| 1816 | REQUIRE_THAT( std::nextafter(1., 2.), WithinULP(1., 1) ) |
| 1817 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1818 | 1.0 is within 1 ULPs of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1819 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1820 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1821 | PASSED: |
| 1822 | REQUIRE_THAT( std::nextafter(1., 0.), WithinULP(1., 1) ) |
| 1823 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1824 | 1.0 is within 1 ULPs of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1825 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1826 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1827 | PASSED: |
| 1828 | REQUIRE_THAT( std::nextafter(1., 2.), !WithinULP(1., 0) ) |
| 1829 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1830 | 1.0 not is within 0 ULPs of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1831 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1832 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1833 | PASSED: |
| 1834 | REQUIRE_THAT( 1., WithinULP(1., 0) ) |
| 1835 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1836 | 1.0 is within 0 ULPs of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1837 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1838 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1839 | PASSED: |
| 1840 | REQUIRE_THAT( -0., WithinULP(0., 0) ) |
| 1841 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1842 | -0.0 is within 0 ULPs of 0.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1843 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1844 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1845 | PASSED: |
| 1846 | REQUIRE_THAT( NAN, !WithinULP(NAN, 123) ) |
| 1847 | with expansion: |
| 1848 | nanf not is within 123 ULPs of nanf |
| 1849 | |
| 1850 | ------------------------------------------------------------------------------- |
| 1851 | Floating point matchers: double |
| 1852 | Composed |
| 1853 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1854 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1855 | ............................................................................... |
| 1856 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1857 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1858 | PASSED: |
| 1859 | REQUIRE_THAT( 1., WithinAbs(1., 0.5) || WithinULP(2., 1) ) |
| 1860 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1861 | 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0 ) |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1862 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1863 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1864 | PASSED: |
| 1865 | REQUIRE_THAT( 1., WithinAbs(2., 0.5) || WithinULP(1., 0) ) |
| 1866 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1867 | 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0 ) |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1868 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1869 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1870 | PASSED: |
| 1871 | REQUIRE_THAT( NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) ) |
| 1872 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1873 | nanf not ( is within 100.0 of nan or is within 123 ULPs of nanf ) |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1874 | |
| 1875 | ------------------------------------------------------------------------------- |
| 1876 | Floating point matchers: float |
| 1877 | Margin |
| 1878 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1879 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1880 | ............................................................................... |
| 1881 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1882 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1883 | PASSED: |
| 1884 | REQUIRE_THAT( 1.f, WithinAbs(1.f, 0) ) |
| 1885 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1886 | 1.0f is within 0.0 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1887 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1888 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1889 | PASSED: |
| 1890 | REQUIRE_THAT( 0.f, WithinAbs(1.f, 1) ) |
| 1891 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1892 | 0.0f is within 1.0 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1893 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1894 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1895 | PASSED: |
| 1896 | REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) ) |
| 1897 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1898 | 0.0f not is within 0.9900000095 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1899 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1900 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1901 | PASSED: |
| 1902 | REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) ) |
| 1903 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1904 | 0.0f not is within 0.9900000095 of 1.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1905 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1906 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1907 | PASSED: |
| 1908 | REQUIRE_THAT( 0.f, WithinAbs(-0.f, 0) ) |
| 1909 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1910 | 0.0f is within 0.0 of -0.0 |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1911 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1912 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1913 | PASSED: |
| 1914 | REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) ) |
| 1915 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1916 | nanf not is within 0.0 of nan |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1917 | |
| 1918 | ------------------------------------------------------------------------------- |
| 1919 | Floating point matchers: float |
| 1920 | ULPs |
| 1921 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1922 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1923 | ............................................................................... |
| 1924 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1925 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1926 | PASSED: |
| 1927 | REQUIRE_THAT( 1.f, WithinULP(1.f, 0) ) |
| 1928 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1929 | 1.0f is within 0 ULPs of 1.0f |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1930 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1931 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1932 | PASSED: |
| 1933 | REQUIRE_THAT( std::nextafter(1.f, 2.f), WithinULP(1.f, 1) ) |
| 1934 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1935 | 1.0f is within 1 ULPs of 1.0f |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1936 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1937 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1938 | PASSED: |
| 1939 | REQUIRE_THAT( std::nextafter(1.f, 0.f), WithinULP(1.f, 1) ) |
| 1940 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1941 | 1.0f is within 1 ULPs of 1.0f |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1942 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1943 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1944 | PASSED: |
| 1945 | REQUIRE_THAT( std::nextafter(1.f, 2.f), !WithinULP(1.f, 0) ) |
| 1946 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1947 | 1.0f not is within 0 ULPs of 1.0f |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1948 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1949 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1950 | PASSED: |
| 1951 | REQUIRE_THAT( 1.f, WithinULP(1.f, 0) ) |
| 1952 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1953 | 1.0f is within 0 ULPs of 1.0f |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1954 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1955 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1956 | PASSED: |
| 1957 | REQUIRE_THAT( -0.f, WithinULP(0.f, 0) ) |
| 1958 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1959 | -0.0f is within 0 ULPs of 0.0f |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1960 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1961 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1962 | PASSED: |
| 1963 | REQUIRE_THAT( NAN, !WithinULP(NAN, 123) ) |
| 1964 | with expansion: |
| 1965 | nanf not is within 123 ULPs of nanf |
| 1966 | |
| 1967 | ------------------------------------------------------------------------------- |
| 1968 | Floating point matchers: float |
| 1969 | Composed |
| 1970 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1971 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1972 | ............................................................................... |
| 1973 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1974 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1975 | PASSED: |
| 1976 | REQUIRE_THAT( 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) ) |
| 1977 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1978 | 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.0f ) |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1979 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1980 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1981 | PASSED: |
| 1982 | REQUIRE_THAT( 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) ) |
| 1983 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1984 | 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0f ) |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1985 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1986 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1987 | PASSED: |
| 1988 | REQUIRE_THAT( NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) ) |
| 1989 | with expansion: |
Martin Hořeňovský | 8dbaac6 | 2017-11-10 21:43:23 +0100 | [diff] [blame] | 1990 | nanf not ( is within 100.0 of nan or is within 123 ULPs of nanf ) |
Martin Hořeňovský | 0b1f1b1 | 2017-11-10 18:14:42 +0100 | [diff] [blame] | 1991 | |
| 1992 | ------------------------------------------------------------------------------- |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 1993 | Greater-than inequalities with different epsilons |
| 1994 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1995 | Approx.tests.cpp:<line number> |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 1996 | ............................................................................... |
| 1997 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 1998 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 1999 | PASSED: |
| 2000 | REQUIRE( d >= Approx( 1.22 ) ) |
| 2001 | with expansion: |
| 2002 | 1.23 >= Approx( 1.22 ) |
| 2003 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2004 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2005 | PASSED: |
| 2006 | REQUIRE( d >= Approx( 1.23 ) ) |
| 2007 | with expansion: |
| 2008 | 1.23 >= Approx( 1.23 ) |
| 2009 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2010 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2011 | PASSED: |
| 2012 | REQUIRE_FALSE( d >= Approx( 1.24 ) ) |
| 2013 | with expansion: |
| 2014 | !(1.23 >= Approx( 1.24 )) |
| 2015 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2016 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2017 | PASSED: |
| 2018 | REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) ) |
| 2019 | with expansion: |
| 2020 | 1.23 >= Approx( 1.24 ) |
| 2021 | |
| 2022 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2023 | INFO and WARN do not abort tests |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2024 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2025 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2026 | ............................................................................... |
| 2027 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2028 | Message.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2029 | warning: |
| 2030 | this is a message |
| 2031 | this is a warning |
| 2032 | |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2033 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2034 | INFO gets logged on failure |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2035 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2036 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2037 | ............................................................................... |
| 2038 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2039 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2040 | REQUIRE( a == 1 ) |
| 2041 | with expansion: |
| 2042 | 2 == 1 |
| 2043 | with messages: |
| 2044 | this message should be logged |
| 2045 | so should this |
| 2046 | |
| 2047 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2048 | INFO gets logged on failure, even if captured before successful assertions |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2049 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2050 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2051 | ............................................................................... |
| 2052 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2053 | Message.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2054 | PASSED: |
| 2055 | CHECK( a == 2 ) |
| 2056 | with expansion: |
| 2057 | 2 == 2 |
| 2058 | with message: |
| 2059 | this message may be logged later |
| 2060 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2061 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2062 | CHECK( a == 1 ) |
| 2063 | with expansion: |
| 2064 | 2 == 1 |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 2065 | with messages: |
| 2066 | this message may be logged later |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2067 | this message should be logged |
| 2068 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2069 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2070 | CHECK( a == 0 ) |
| 2071 | with expansion: |
| 2072 | 2 == 0 |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 2073 | with messages: |
| 2074 | this message may be logged later |
| 2075 | this message should be logged |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2076 | and this, but later |
| 2077 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2078 | Message.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2079 | PASSED: |
| 2080 | CHECK( a == 2 ) |
| 2081 | with expansion: |
| 2082 | 2 == 2 |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 2083 | with messages: |
| 2084 | this message may be logged later |
| 2085 | this message should be logged |
| 2086 | and this, but later |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2087 | but not this |
| 2088 | |
| 2089 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2090 | INFO is reset for each loop |
| 2091 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2092 | Message.tests.cpp:<line number> |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2093 | ............................................................................... |
| 2094 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2095 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2096 | PASSED: |
| 2097 | REQUIRE( i < 10 ) |
| 2098 | with expansion: |
| 2099 | 0 < 10 |
| 2100 | with messages: |
| 2101 | current counter 0 |
| 2102 | i := 0 |
| 2103 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2104 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2105 | PASSED: |
| 2106 | REQUIRE( i < 10 ) |
| 2107 | with expansion: |
| 2108 | 1 < 10 |
| 2109 | with messages: |
| 2110 | current counter 1 |
| 2111 | i := 1 |
| 2112 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2113 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2114 | PASSED: |
| 2115 | REQUIRE( i < 10 ) |
| 2116 | with expansion: |
| 2117 | 2 < 10 |
| 2118 | with messages: |
| 2119 | current counter 2 |
| 2120 | i := 2 |
| 2121 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2122 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2123 | PASSED: |
| 2124 | REQUIRE( i < 10 ) |
| 2125 | with expansion: |
| 2126 | 3 < 10 |
| 2127 | with messages: |
| 2128 | current counter 3 |
| 2129 | i := 3 |
| 2130 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2131 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2132 | PASSED: |
| 2133 | REQUIRE( i < 10 ) |
| 2134 | with expansion: |
| 2135 | 4 < 10 |
| 2136 | with messages: |
| 2137 | current counter 4 |
| 2138 | i := 4 |
| 2139 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2140 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2141 | PASSED: |
| 2142 | REQUIRE( i < 10 ) |
| 2143 | with expansion: |
| 2144 | 5 < 10 |
| 2145 | with messages: |
| 2146 | current counter 5 |
| 2147 | i := 5 |
| 2148 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2149 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2150 | PASSED: |
| 2151 | REQUIRE( i < 10 ) |
| 2152 | with expansion: |
| 2153 | 6 < 10 |
| 2154 | with messages: |
| 2155 | current counter 6 |
| 2156 | i := 6 |
| 2157 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2158 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2159 | PASSED: |
| 2160 | REQUIRE( i < 10 ) |
| 2161 | with expansion: |
| 2162 | 7 < 10 |
| 2163 | with messages: |
| 2164 | current counter 7 |
| 2165 | i := 7 |
| 2166 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2167 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2168 | PASSED: |
| 2169 | REQUIRE( i < 10 ) |
| 2170 | with expansion: |
| 2171 | 8 < 10 |
| 2172 | with messages: |
| 2173 | current counter 8 |
| 2174 | i := 8 |
| 2175 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2176 | Message.tests.cpp:<line number>: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2177 | PASSED: |
| 2178 | REQUIRE( i < 10 ) |
| 2179 | with expansion: |
| 2180 | 9 < 10 |
| 2181 | with messages: |
| 2182 | current counter 9 |
| 2183 | i := 9 |
| 2184 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2185 | Message.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | 3382312 | 2017-08-10 17:06:32 +0200 | [diff] [blame] | 2186 | REQUIRE( i < 10 ) |
| 2187 | with expansion: |
| 2188 | 10 < 10 |
| 2189 | with messages: |
| 2190 | current counter 10 |
| 2191 | i := 10 |
| 2192 | |
| 2193 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2194 | Inequality checks that should fail |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2195 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2196 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2197 | ............................................................................... |
| 2198 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2199 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2200 | CHECK( data.int_seven != 7 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2201 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2202 | 7 != 7 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2203 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2204 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2205 | CHECK( data.float_nine_point_one != Approx( 9.1f ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2206 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2207 | 9.1f != Approx( 9.1000003815 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2208 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2209 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2210 | CHECK( data.double_pi != Approx( 3.1415926535 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2211 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2212 | 3.1415926535 != Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2213 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2214 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2215 | CHECK( data.str_hello != "hello" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2216 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2217 | "hello" != "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2218 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2219 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2220 | CHECK( data.str_hello.size() != 5 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2221 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2222 | 5 != 5 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2223 | |
| 2224 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2225 | Inequality checks that should succeed |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2226 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2227 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2228 | ............................................................................... |
| 2229 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2230 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2231 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2232 | REQUIRE( data.int_seven != 6 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2233 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2234 | 7 != 6 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2235 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2236 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2237 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2238 | REQUIRE( data.int_seven != 8 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2239 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2240 | 7 != 8 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2241 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2242 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2243 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2244 | REQUIRE( data.float_nine_point_one != Approx( 9.11f ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2245 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2246 | 9.1f != Approx( 9.1099996567 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2247 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2248 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2249 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2250 | REQUIRE( data.float_nine_point_one != Approx( 9.0f ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2251 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2252 | 9.1f != Approx( 9.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2253 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2254 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2255 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2256 | REQUIRE( data.float_nine_point_one != Approx( 1 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2257 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2258 | 9.1f != Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2259 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2260 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2261 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2262 | REQUIRE( data.float_nine_point_one != Approx( 0 ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2263 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2264 | 9.1f != Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2265 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2266 | Condition.tests.cpp:<line number>: |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2267 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2268 | REQUIRE( data.double_pi != Approx( 3.1415 ) ) |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2269 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2270 | 3.1415926535 != Approx( 3.1415 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2271 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2272 | Condition.tests.cpp:<line number>: |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2273 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2274 | REQUIRE( data.str_hello != "goodbye" ) |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2275 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2276 | "hello" != "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2277 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2278 | Condition.tests.cpp:<line number>: |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 2279 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2280 | REQUIRE( data.str_hello != "hell" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2281 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2282 | "hello" != "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2283 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2284 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2285 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2286 | REQUIRE( data.str_hello != "hello1" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2287 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2288 | "hello" != "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2289 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2290 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2291 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2292 | REQUIRE( data.str_hello.size() != 6 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2293 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2294 | 5 != 6 |
Phil Nash | 856468c | 2015-03-04 08:22:32 +0000 | [diff] [blame] | 2295 | |
| 2296 | ------------------------------------------------------------------------------- |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2297 | Less-than inequalities with different epsilons |
| 2298 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2299 | Approx.tests.cpp:<line number> |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2300 | ............................................................................... |
| 2301 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2302 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2303 | PASSED: |
| 2304 | REQUIRE( d <= Approx( 1.24 ) ) |
| 2305 | with expansion: |
| 2306 | 1.23 <= Approx( 1.24 ) |
| 2307 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2308 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2309 | PASSED: |
| 2310 | REQUIRE( d <= Approx( 1.23 ) ) |
| 2311 | with expansion: |
| 2312 | 1.23 <= Approx( 1.23 ) |
| 2313 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2314 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2315 | PASSED: |
| 2316 | REQUIRE_FALSE( d <= Approx( 1.22 ) ) |
| 2317 | with expansion: |
| 2318 | !(1.23 <= Approx( 1.22 )) |
| 2319 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2320 | Approx.tests.cpp:<line number>: |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2321 | PASSED: |
| 2322 | REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) ) |
| 2323 | with expansion: |
| 2324 | 1.23 <= Approx( 1.22 ) |
| 2325 | |
| 2326 | ------------------------------------------------------------------------------- |
Phil Nash | 0e64973 | 2015-11-20 16:54:07 +0000 | [diff] [blame] | 2327 | ManuallyRegistered |
| 2328 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2329 | Misc.tests.cpp:<line number> |
Phil Nash | 0e64973 | 2015-11-20 16:54:07 +0000 | [diff] [blame] | 2330 | ............................................................................... |
| 2331 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2332 | Misc.tests.cpp:<line number>: |
Phil Nash | 0e64973 | 2015-11-20 16:54:07 +0000 | [diff] [blame] | 2333 | PASSED: |
| 2334 | with message: |
| 2335 | was called |
| 2336 | |
| 2337 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2338 | Matchers can be (AllOf) composed with the && operator |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2339 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2340 | Matchers.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2341 | ............................................................................... |
| 2342 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2343 | Matchers.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2344 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2345 | CHECK_THAT( testStringForMatching(), Contains("string") && Contains("abc") && Contains("substring") && Contains("contains") ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2346 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2347 | "this string contains 'abc' as a substring" ( contains: "string" and |
| 2348 | contains: "abc" and contains: "substring" and contains: "contains" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2349 | |
| 2350 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2351 | Matchers can be (AnyOf) composed with the || operator |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2352 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2353 | Matchers.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2354 | ............................................................................... |
| 2355 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2356 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2357 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2358 | CHECK_THAT( testStringForMatching(), Contains("string") || Contains("different") || Contains("random") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2359 | with expansion: |
| 2360 | "this string contains 'abc' as a substring" ( contains: "string" or contains: |
| 2361 | "different" or contains: "random" ) |
| 2362 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2363 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2364 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2365 | CHECK_THAT( testStringForMatching2(), Contains("string") || Contains("different") || Contains("random") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2366 | with expansion: |
| 2367 | "some completely different text that contains one common word" ( contains: |
| 2368 | "string" or contains: "different" or contains: "random" ) |
| 2369 | |
| 2370 | ------------------------------------------------------------------------------- |
| 2371 | Matchers can be composed with both && and || |
| 2372 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2373 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2374 | ............................................................................... |
| 2375 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2376 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2377 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2378 | CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("substring") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2379 | with expansion: |
| 2380 | "this string contains 'abc' as a substring" ( ( contains: "string" or |
| 2381 | contains: "different" ) and contains: "substring" ) |
| 2382 | |
| 2383 | ------------------------------------------------------------------------------- |
| 2384 | Matchers can be composed with both && and || - failing |
| 2385 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2386 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2387 | ............................................................................... |
| 2388 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2389 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2390 | CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2391 | with expansion: |
| 2392 | "this string contains 'abc' as a substring" ( ( contains: "string" or |
| 2393 | contains: "different" ) and contains: "random" ) |
| 2394 | |
| 2395 | ------------------------------------------------------------------------------- |
| 2396 | Matchers can be negated (Not) with the ! operator |
| 2397 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2398 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2399 | ............................................................................... |
| 2400 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2401 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2402 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2403 | CHECK_THAT( testStringForMatching(), !Contains("different") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2404 | with expansion: |
| 2405 | "this string contains 'abc' as a substring" not contains: "different" |
| 2406 | |
| 2407 | ------------------------------------------------------------------------------- |
| 2408 | Matchers can be negated (Not) with the ! operator - failing |
| 2409 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2410 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2411 | ............................................................................... |
| 2412 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2413 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 2414 | CHECK_THAT( testStringForMatching(), !Contains("substring") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2415 | with expansion: |
| 2416 | "this string contains 'abc' as a substring" not contains: "substring" |
| 2417 | |
| 2418 | ------------------------------------------------------------------------------- |
| 2419 | Mismatching exception messages failing the test |
| 2420 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2421 | Exception.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2422 | ............................................................................... |
| 2423 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2424 | Exception.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2425 | PASSED: |
| 2426 | REQUIRE_THROWS_WITH( thisThrows(), "expected exception" ) |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 2427 | with expansion: |
| 2428 | "expected exception" equals: "expected exception" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2429 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2430 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2431 | REQUIRE_THROWS_WITH( thisThrows(), "should fail" ) |
| 2432 | with expansion: |
Phil Nash | 27fd8f8 | 2017-08-09 00:44:30 +0100 | [diff] [blame] | 2433 | "expected exception" equals: "should fail" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2434 | |
| 2435 | ------------------------------------------------------------------------------- |
| 2436 | Nice descriptive name |
| 2437 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2438 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2439 | ............................................................................... |
| 2440 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2441 | Misc.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2442 | warning: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2443 | This one ran |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2444 | |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2445 | ------------------------------------------------------------------------------- |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 2446 | Non-std exceptions can be translated |
| 2447 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2448 | Exception.tests.cpp:<line number> |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 2449 | ............................................................................... |
| 2450 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2451 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 2452 | due to unexpected exception with message: |
| 2453 | custom exception |
| 2454 | |
| 2455 | ------------------------------------------------------------------------------- |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2456 | Objects that evaluated in boolean contexts can be checked |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2457 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2458 | Tricky.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2459 | ............................................................................... |
| 2460 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2461 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2462 | PASSED: |
| 2463 | CHECK( True ) |
| 2464 | with expansion: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 2465 | {?} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2466 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2467 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2468 | PASSED: |
| 2469 | CHECK( !False ) |
| 2470 | with expansion: |
| 2471 | true |
| 2472 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2473 | Tricky.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2474 | PASSED: |
| 2475 | CHECK_FALSE( False ) |
| 2476 | with expansion: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 2477 | !{?} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2478 | |
| 2479 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2480 | Ordering comparison checks that should fail |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2481 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2482 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2483 | ............................................................................... |
| 2484 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2485 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2486 | CHECK( data.int_seven > 7 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2487 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2488 | 7 > 7 |
| 2489 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2490 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2491 | CHECK( data.int_seven < 7 ) |
| 2492 | with expansion: |
| 2493 | 7 < 7 |
| 2494 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2495 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2496 | CHECK( data.int_seven > 8 ) |
| 2497 | with expansion: |
| 2498 | 7 > 8 |
| 2499 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2500 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2501 | CHECK( data.int_seven < 6 ) |
| 2502 | with expansion: |
| 2503 | 7 < 6 |
| 2504 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2505 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2506 | CHECK( data.int_seven < 0 ) |
| 2507 | with expansion: |
| 2508 | 7 < 0 |
| 2509 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2510 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2511 | CHECK( data.int_seven < -1 ) |
| 2512 | with expansion: |
| 2513 | 7 < -1 |
| 2514 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2515 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2516 | CHECK( data.int_seven >= 8 ) |
| 2517 | with expansion: |
| 2518 | 7 >= 8 |
| 2519 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2520 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2521 | CHECK( data.int_seven <= 6 ) |
| 2522 | with expansion: |
| 2523 | 7 <= 6 |
| 2524 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2525 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2526 | CHECK( data.float_nine_point_one < 9 ) |
| 2527 | with expansion: |
| 2528 | 9.1f < 9 |
| 2529 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2530 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2531 | CHECK( data.float_nine_point_one > 10 ) |
| 2532 | with expansion: |
| 2533 | 9.1f > 10 |
| 2534 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2535 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2536 | CHECK( data.float_nine_point_one > 9.2 ) |
| 2537 | with expansion: |
| 2538 | 9.1f > 9.2 |
| 2539 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2540 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2541 | CHECK( data.str_hello > "hello" ) |
| 2542 | with expansion: |
| 2543 | "hello" > "hello" |
| 2544 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2545 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2546 | CHECK( data.str_hello < "hello" ) |
| 2547 | with expansion: |
| 2548 | "hello" < "hello" |
| 2549 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2550 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2551 | CHECK( data.str_hello > "hellp" ) |
| 2552 | with expansion: |
| 2553 | "hello" > "hellp" |
| 2554 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2555 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2556 | CHECK( data.str_hello > "z" ) |
| 2557 | with expansion: |
| 2558 | "hello" > "z" |
| 2559 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2560 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2561 | CHECK( data.str_hello < "hellm" ) |
| 2562 | with expansion: |
| 2563 | "hello" < "hellm" |
| 2564 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2565 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2566 | CHECK( data.str_hello < "a" ) |
| 2567 | with expansion: |
| 2568 | "hello" < "a" |
| 2569 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2570 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2571 | CHECK( data.str_hello >= "z" ) |
| 2572 | with expansion: |
| 2573 | "hello" >= "z" |
| 2574 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2575 | Condition.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2576 | CHECK( data.str_hello <= "a" ) |
| 2577 | with expansion: |
| 2578 | "hello" <= "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2579 | |
| 2580 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2581 | Ordering comparison checks that should succeed |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2582 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2583 | Condition.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2584 | ............................................................................... |
| 2585 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2586 | Condition.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2587 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2588 | REQUIRE( data.int_seven < 8 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2589 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2590 | 7 < 8 |
| 2591 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2592 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2593 | PASSED: |
| 2594 | REQUIRE( data.int_seven > 6 ) |
| 2595 | with expansion: |
| 2596 | 7 > 6 |
| 2597 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2598 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2599 | PASSED: |
| 2600 | REQUIRE( data.int_seven > 0 ) |
| 2601 | with expansion: |
| 2602 | 7 > 0 |
| 2603 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2604 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2605 | PASSED: |
| 2606 | REQUIRE( data.int_seven > -1 ) |
| 2607 | with expansion: |
| 2608 | 7 > -1 |
| 2609 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2610 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2611 | PASSED: |
| 2612 | REQUIRE( data.int_seven >= 7 ) |
| 2613 | with expansion: |
| 2614 | 7 >= 7 |
| 2615 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2616 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2617 | PASSED: |
| 2618 | REQUIRE( data.int_seven >= 6 ) |
| 2619 | with expansion: |
| 2620 | 7 >= 6 |
| 2621 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2622 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2623 | PASSED: |
| 2624 | REQUIRE( data.int_seven <= 7 ) |
| 2625 | with expansion: |
| 2626 | 7 <= 7 |
| 2627 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2628 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2629 | PASSED: |
| 2630 | REQUIRE( data.int_seven <= 8 ) |
| 2631 | with expansion: |
| 2632 | 7 <= 8 |
| 2633 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2634 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2635 | PASSED: |
| 2636 | REQUIRE( data.float_nine_point_one > 9 ) |
| 2637 | with expansion: |
| 2638 | 9.1f > 9 |
| 2639 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2640 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2641 | PASSED: |
| 2642 | REQUIRE( data.float_nine_point_one < 10 ) |
| 2643 | with expansion: |
| 2644 | 9.1f < 10 |
| 2645 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2646 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2647 | PASSED: |
| 2648 | REQUIRE( data.float_nine_point_one < 9.2 ) |
| 2649 | with expansion: |
| 2650 | 9.1f < 9.2 |
| 2651 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2652 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2653 | PASSED: |
| 2654 | REQUIRE( data.str_hello <= "hello" ) |
| 2655 | with expansion: |
| 2656 | "hello" <= "hello" |
| 2657 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2658 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2659 | PASSED: |
| 2660 | REQUIRE( data.str_hello >= "hello" ) |
| 2661 | with expansion: |
| 2662 | "hello" >= "hello" |
| 2663 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2664 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2665 | PASSED: |
| 2666 | REQUIRE( data.str_hello < "hellp" ) |
| 2667 | with expansion: |
| 2668 | "hello" < "hellp" |
| 2669 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2670 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2671 | PASSED: |
| 2672 | REQUIRE( data.str_hello < "zebra" ) |
| 2673 | with expansion: |
| 2674 | "hello" < "zebra" |
| 2675 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2676 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2677 | PASSED: |
| 2678 | REQUIRE( data.str_hello > "hellm" ) |
| 2679 | with expansion: |
| 2680 | "hello" > "hellm" |
| 2681 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2682 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2683 | PASSED: |
| 2684 | REQUIRE( data.str_hello > "a" ) |
| 2685 | with expansion: |
| 2686 | "hello" > "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2687 | |
| 2688 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2689 | Output from all sections is reported |
| 2690 | one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2691 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2692 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2693 | ............................................................................... |
| 2694 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2695 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2696 | explicitly with message: |
| 2697 | Message from section one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2698 | |
| 2699 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2700 | Output from all sections is reported |
| 2701 | two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2702 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2703 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2704 | ............................................................................... |
| 2705 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2706 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2707 | explicitly with message: |
| 2708 | Message from section two |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 2709 | |
| 2710 | ------------------------------------------------------------------------------- |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2711 | Parse test names and tags |
| 2712 | Empty test spec should have no filters |
| 2713 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2714 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2715 | ............................................................................... |
| 2716 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2717 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2718 | PASSED: |
| 2719 | CHECK( spec.hasFilters() == false ) |
| 2720 | with expansion: |
| 2721 | false == false |
| 2722 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2723 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2724 | PASSED: |
| 2725 | CHECK( spec.matches( tcA ) == false ) |
| 2726 | with expansion: |
| 2727 | false == false |
| 2728 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2729 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2730 | PASSED: |
| 2731 | CHECK( spec.matches( tcB ) == false ) |
| 2732 | with expansion: |
| 2733 | false == false |
| 2734 | |
| 2735 | ------------------------------------------------------------------------------- |
| 2736 | Parse test names and tags |
| 2737 | Test spec from empty string should have no filters |
| 2738 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2739 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2740 | ............................................................................... |
| 2741 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2742 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2743 | PASSED: |
| 2744 | CHECK( spec.hasFilters() == false ) |
| 2745 | with expansion: |
| 2746 | false == false |
| 2747 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2748 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2749 | PASSED: |
| 2750 | CHECK( spec.matches(tcA ) == false ) |
| 2751 | with expansion: |
| 2752 | false == false |
| 2753 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2754 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2755 | PASSED: |
| 2756 | CHECK( spec.matches( tcB ) == false ) |
| 2757 | with expansion: |
| 2758 | false == false |
| 2759 | |
| 2760 | ------------------------------------------------------------------------------- |
| 2761 | Parse test names and tags |
| 2762 | Test spec from just a comma should have no filters |
| 2763 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2764 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2765 | ............................................................................... |
| 2766 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2767 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2768 | PASSED: |
| 2769 | CHECK( spec.hasFilters() == false ) |
| 2770 | with expansion: |
| 2771 | false == false |
| 2772 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2773 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2774 | PASSED: |
| 2775 | CHECK( spec.matches( tcA ) == false ) |
| 2776 | with expansion: |
| 2777 | false == false |
| 2778 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2779 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2780 | PASSED: |
| 2781 | CHECK( spec.matches( tcB ) == false ) |
| 2782 | with expansion: |
| 2783 | false == false |
| 2784 | |
| 2785 | ------------------------------------------------------------------------------- |
| 2786 | Parse test names and tags |
| 2787 | Test spec from name should have one filter |
| 2788 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2789 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2790 | ............................................................................... |
| 2791 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2792 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2793 | PASSED: |
| 2794 | CHECK( spec.hasFilters() == true ) |
| 2795 | with expansion: |
| 2796 | true == true |
| 2797 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2798 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2799 | PASSED: |
| 2800 | CHECK( spec.matches( tcA ) == false ) |
| 2801 | with expansion: |
| 2802 | false == false |
| 2803 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2804 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2805 | PASSED: |
| 2806 | CHECK( spec.matches( tcB ) == true ) |
| 2807 | with expansion: |
| 2808 | true == true |
| 2809 | |
| 2810 | ------------------------------------------------------------------------------- |
| 2811 | Parse test names and tags |
| 2812 | Test spec from quoted name should have one filter |
| 2813 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2814 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2815 | ............................................................................... |
| 2816 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2817 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2818 | PASSED: |
| 2819 | CHECK( spec.hasFilters() == true ) |
| 2820 | with expansion: |
| 2821 | true == true |
| 2822 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2823 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2824 | PASSED: |
| 2825 | CHECK( spec.matches( tcA ) == false ) |
| 2826 | with expansion: |
| 2827 | false == false |
| 2828 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2829 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2830 | PASSED: |
| 2831 | CHECK( spec.matches( tcB ) == true ) |
| 2832 | with expansion: |
| 2833 | true == true |
| 2834 | |
| 2835 | ------------------------------------------------------------------------------- |
| 2836 | Parse test names and tags |
| 2837 | Test spec from name should have one filter |
| 2838 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2839 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2840 | ............................................................................... |
| 2841 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2842 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2843 | PASSED: |
| 2844 | CHECK( spec.hasFilters() == true ) |
| 2845 | with expansion: |
| 2846 | true == true |
| 2847 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2848 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2849 | PASSED: |
| 2850 | CHECK( spec.matches( tcA ) == false ) |
| 2851 | with expansion: |
| 2852 | false == false |
| 2853 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2854 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2855 | PASSED: |
| 2856 | CHECK( spec.matches( tcB ) == true ) |
| 2857 | with expansion: |
| 2858 | true == true |
| 2859 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2860 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2861 | PASSED: |
| 2862 | CHECK( spec.matches( tcC ) == false ) |
| 2863 | with expansion: |
| 2864 | false == false |
| 2865 | |
| 2866 | ------------------------------------------------------------------------------- |
| 2867 | Parse test names and tags |
| 2868 | Wildcard at the start |
| 2869 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2870 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2871 | ............................................................................... |
| 2872 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2873 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2874 | PASSED: |
| 2875 | CHECK( spec.hasFilters() == true ) |
| 2876 | with expansion: |
| 2877 | true == true |
| 2878 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2879 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2880 | PASSED: |
| 2881 | CHECK( spec.matches( tcA ) == false ) |
| 2882 | with expansion: |
| 2883 | false == false |
| 2884 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2885 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2886 | PASSED: |
| 2887 | CHECK( spec.matches( tcB ) == false ) |
| 2888 | with expansion: |
| 2889 | false == false |
| 2890 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2891 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2892 | PASSED: |
| 2893 | CHECK( spec.matches( tcC ) == true ) |
| 2894 | with expansion: |
| 2895 | true == true |
| 2896 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2897 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2898 | PASSED: |
| 2899 | CHECK( spec.matches( tcD ) == false ) |
| 2900 | with expansion: |
| 2901 | false == false |
| 2902 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2903 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2904 | PASSED: |
| 2905 | CHECK( parseTestSpec( "*a" ).matches( tcA ) == true ) |
| 2906 | with expansion: |
| 2907 | true == true |
| 2908 | |
| 2909 | ------------------------------------------------------------------------------- |
| 2910 | Parse test names and tags |
| 2911 | Wildcard at the end |
| 2912 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2913 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2914 | ............................................................................... |
| 2915 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2916 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2917 | PASSED: |
| 2918 | CHECK( spec.hasFilters() == true ) |
| 2919 | with expansion: |
| 2920 | true == true |
| 2921 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2922 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2923 | PASSED: |
| 2924 | CHECK( spec.matches( tcA ) == false ) |
| 2925 | with expansion: |
| 2926 | false == false |
| 2927 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2928 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2929 | PASSED: |
| 2930 | CHECK( spec.matches( tcB ) == false ) |
| 2931 | with expansion: |
| 2932 | false == false |
| 2933 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2934 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2935 | PASSED: |
| 2936 | CHECK( spec.matches( tcC ) == true ) |
| 2937 | with expansion: |
| 2938 | true == true |
| 2939 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2940 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2941 | PASSED: |
| 2942 | CHECK( spec.matches( tcD ) == false ) |
| 2943 | with expansion: |
| 2944 | false == false |
| 2945 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2946 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2947 | PASSED: |
| 2948 | CHECK( parseTestSpec( "a*" ).matches( tcA ) == true ) |
| 2949 | with expansion: |
| 2950 | true == true |
| 2951 | |
| 2952 | ------------------------------------------------------------------------------- |
| 2953 | Parse test names and tags |
| 2954 | Wildcard at both ends |
| 2955 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2956 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2957 | ............................................................................... |
| 2958 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2959 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2960 | PASSED: |
| 2961 | CHECK( spec.hasFilters() == true ) |
| 2962 | with expansion: |
| 2963 | true == true |
| 2964 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2965 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2966 | PASSED: |
| 2967 | CHECK( spec.matches( tcA ) == false ) |
| 2968 | with expansion: |
| 2969 | false == false |
| 2970 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2971 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2972 | PASSED: |
| 2973 | CHECK( spec.matches( tcB ) == false ) |
| 2974 | with expansion: |
| 2975 | false == false |
| 2976 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2977 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2978 | PASSED: |
| 2979 | CHECK( spec.matches( tcC ) == true ) |
| 2980 | with expansion: |
| 2981 | true == true |
| 2982 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2983 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2984 | PASSED: |
| 2985 | CHECK( spec.matches( tcD ) == true ) |
| 2986 | with expansion: |
| 2987 | true == true |
| 2988 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2989 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 2990 | PASSED: |
| 2991 | CHECK( parseTestSpec( "*a*" ).matches( tcA ) == true ) |
| 2992 | with expansion: |
| 2993 | true == true |
| 2994 | |
| 2995 | ------------------------------------------------------------------------------- |
| 2996 | Parse test names and tags |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 2997 | Redundant wildcard at the start |
| 2998 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 2999 | CmdLine.tests.cpp:<line number> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3000 | ............................................................................... |
| 3001 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3002 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3003 | PASSED: |
| 3004 | CHECK( spec.hasFilters() == true ) |
| 3005 | with expansion: |
| 3006 | true == true |
| 3007 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3008 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3009 | PASSED: |
| 3010 | CHECK( spec.matches( tcA ) == true ) |
| 3011 | with expansion: |
| 3012 | true == true |
| 3013 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3014 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3015 | PASSED: |
| 3016 | CHECK( spec.matches( tcB ) == false ) |
| 3017 | with expansion: |
| 3018 | false == false |
| 3019 | |
| 3020 | ------------------------------------------------------------------------------- |
| 3021 | Parse test names and tags |
| 3022 | Redundant wildcard at the end |
| 3023 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3024 | CmdLine.tests.cpp:<line number> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3025 | ............................................................................... |
| 3026 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3027 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3028 | PASSED: |
| 3029 | CHECK( spec.hasFilters() == true ) |
| 3030 | with expansion: |
| 3031 | true == true |
| 3032 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3033 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3034 | PASSED: |
| 3035 | CHECK( spec.matches( tcA ) == true ) |
| 3036 | with expansion: |
| 3037 | true == true |
| 3038 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3039 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3040 | PASSED: |
| 3041 | CHECK( spec.matches( tcB ) == false ) |
| 3042 | with expansion: |
| 3043 | false == false |
| 3044 | |
| 3045 | ------------------------------------------------------------------------------- |
| 3046 | Parse test names and tags |
| 3047 | Redundant wildcard at both ends |
| 3048 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3049 | CmdLine.tests.cpp:<line number> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3050 | ............................................................................... |
| 3051 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3052 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3053 | PASSED: |
| 3054 | CHECK( spec.hasFilters() == true ) |
| 3055 | with expansion: |
| 3056 | true == true |
| 3057 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3058 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3059 | PASSED: |
| 3060 | CHECK( spec.matches( tcA ) == true ) |
| 3061 | with expansion: |
| 3062 | true == true |
| 3063 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3064 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3065 | PASSED: |
| 3066 | CHECK( spec.matches( tcB ) == false ) |
| 3067 | with expansion: |
| 3068 | false == false |
| 3069 | |
| 3070 | ------------------------------------------------------------------------------- |
| 3071 | Parse test names and tags |
| 3072 | Wildcard at both ends, redundant at start |
| 3073 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3074 | CmdLine.tests.cpp:<line number> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3075 | ............................................................................... |
| 3076 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3077 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3078 | PASSED: |
| 3079 | CHECK( spec.hasFilters() == true ) |
| 3080 | with expansion: |
| 3081 | true == true |
| 3082 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3083 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3084 | PASSED: |
| 3085 | CHECK( spec.matches( tcA ) == false ) |
| 3086 | with expansion: |
| 3087 | false == false |
| 3088 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3089 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3090 | PASSED: |
| 3091 | CHECK( spec.matches( tcB ) == false ) |
| 3092 | with expansion: |
| 3093 | false == false |
| 3094 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3095 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3096 | PASSED: |
| 3097 | CHECK( spec.matches( tcC ) == true ) |
| 3098 | with expansion: |
| 3099 | true == true |
| 3100 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3101 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 3102 | PASSED: |
| 3103 | CHECK( spec.matches( tcD ) == true ) |
| 3104 | with expansion: |
| 3105 | true == true |
| 3106 | |
| 3107 | ------------------------------------------------------------------------------- |
| 3108 | Parse test names and tags |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3109 | Just wildcard |
| 3110 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3111 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3112 | ............................................................................... |
| 3113 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3114 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3115 | PASSED: |
| 3116 | CHECK( spec.hasFilters() == true ) |
| 3117 | with expansion: |
| 3118 | true == true |
| 3119 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3120 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3121 | PASSED: |
| 3122 | CHECK( spec.matches( tcA ) == true ) |
| 3123 | with expansion: |
| 3124 | true == true |
| 3125 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3126 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3127 | PASSED: |
| 3128 | CHECK( spec.matches( tcB ) == true ) |
| 3129 | with expansion: |
| 3130 | true == true |
| 3131 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3132 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3133 | PASSED: |
| 3134 | CHECK( spec.matches( tcC ) == true ) |
| 3135 | with expansion: |
| 3136 | true == true |
| 3137 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3138 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3139 | PASSED: |
| 3140 | CHECK( spec.matches( tcD ) == true ) |
| 3141 | with expansion: |
| 3142 | true == true |
| 3143 | |
| 3144 | ------------------------------------------------------------------------------- |
| 3145 | Parse test names and tags |
| 3146 | Single tag |
| 3147 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3148 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3149 | ............................................................................... |
| 3150 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3151 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3152 | PASSED: |
| 3153 | CHECK( spec.hasFilters() == true ) |
| 3154 | with expansion: |
| 3155 | true == true |
| 3156 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3157 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3158 | PASSED: |
| 3159 | CHECK( spec.matches( tcA ) == false ) |
| 3160 | with expansion: |
| 3161 | false == false |
| 3162 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3163 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3164 | PASSED: |
| 3165 | CHECK( spec.matches( tcB ) == true ) |
| 3166 | with expansion: |
| 3167 | true == true |
| 3168 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3169 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3170 | PASSED: |
| 3171 | CHECK( spec.matches( tcC ) == false ) |
| 3172 | with expansion: |
| 3173 | false == false |
| 3174 | |
| 3175 | ------------------------------------------------------------------------------- |
| 3176 | Parse test names and tags |
| 3177 | Single tag, two matches |
| 3178 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3179 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3180 | ............................................................................... |
| 3181 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3182 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3183 | PASSED: |
| 3184 | CHECK( spec.hasFilters() == true ) |
| 3185 | with expansion: |
| 3186 | true == true |
| 3187 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3188 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3189 | PASSED: |
| 3190 | CHECK( spec.matches( tcA ) == false ) |
| 3191 | with expansion: |
| 3192 | false == false |
| 3193 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3194 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3195 | PASSED: |
| 3196 | CHECK( spec.matches( tcB ) == true ) |
| 3197 | with expansion: |
| 3198 | true == true |
| 3199 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3200 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3201 | PASSED: |
| 3202 | CHECK( spec.matches( tcC ) == true ) |
| 3203 | with expansion: |
| 3204 | true == true |
| 3205 | |
| 3206 | ------------------------------------------------------------------------------- |
| 3207 | Parse test names and tags |
| 3208 | Two tags |
| 3209 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3210 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3211 | ............................................................................... |
| 3212 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3213 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3214 | PASSED: |
| 3215 | CHECK( spec.hasFilters() == true ) |
| 3216 | with expansion: |
| 3217 | true == true |
| 3218 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3219 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3220 | PASSED: |
| 3221 | CHECK( spec.matches( tcA ) == false ) |
| 3222 | with expansion: |
| 3223 | false == false |
| 3224 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3225 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3226 | PASSED: |
| 3227 | CHECK( spec.matches( tcB ) == false ) |
| 3228 | with expansion: |
| 3229 | false == false |
| 3230 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3231 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3232 | PASSED: |
| 3233 | CHECK( spec.matches( tcC ) == true ) |
| 3234 | with expansion: |
| 3235 | true == true |
| 3236 | |
| 3237 | ------------------------------------------------------------------------------- |
| 3238 | Parse test names and tags |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 3239 | Two tags, spare separated |
| 3240 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3241 | CmdLine.tests.cpp:<line number> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 3242 | ............................................................................... |
| 3243 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3244 | CmdLine.tests.cpp:<line number>: |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 3245 | PASSED: |
| 3246 | CHECK( spec.hasFilters() == true ) |
| 3247 | with expansion: |
| 3248 | true == true |
| 3249 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3250 | CmdLine.tests.cpp:<line number>: |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 3251 | PASSED: |
| 3252 | CHECK( spec.matches( tcA ) == false ) |
| 3253 | with expansion: |
| 3254 | false == false |
| 3255 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3256 | CmdLine.tests.cpp:<line number>: |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 3257 | PASSED: |
| 3258 | CHECK( spec.matches( tcB ) == false ) |
| 3259 | with expansion: |
| 3260 | false == false |
| 3261 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3262 | CmdLine.tests.cpp:<line number>: |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 3263 | PASSED: |
| 3264 | CHECK( spec.matches( tcC ) == true ) |
| 3265 | with expansion: |
| 3266 | true == true |
| 3267 | |
| 3268 | ------------------------------------------------------------------------------- |
| 3269 | Parse test names and tags |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3270 | Wildcarded name and tag |
| 3271 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3272 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3273 | ............................................................................... |
| 3274 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3275 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3276 | PASSED: |
| 3277 | CHECK( spec.hasFilters() == true ) |
| 3278 | with expansion: |
| 3279 | true == true |
| 3280 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3281 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3282 | PASSED: |
| 3283 | CHECK( spec.matches( tcA ) == false ) |
| 3284 | with expansion: |
| 3285 | false == false |
| 3286 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3287 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3288 | PASSED: |
| 3289 | CHECK( spec.matches( tcB ) == false ) |
| 3290 | with expansion: |
| 3291 | false == false |
| 3292 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3293 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3294 | PASSED: |
| 3295 | CHECK( spec.matches( tcC ) == true ) |
| 3296 | with expansion: |
| 3297 | true == true |
| 3298 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3299 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3300 | PASSED: |
| 3301 | CHECK( spec.matches( tcD ) == false ) |
| 3302 | with expansion: |
| 3303 | false == false |
| 3304 | |
| 3305 | ------------------------------------------------------------------------------- |
| 3306 | Parse test names and tags |
| 3307 | Single tag exclusion |
| 3308 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3309 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3310 | ............................................................................... |
| 3311 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3312 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3313 | PASSED: |
| 3314 | CHECK( spec.hasFilters() == true ) |
| 3315 | with expansion: |
| 3316 | true == true |
| 3317 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3318 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3319 | PASSED: |
| 3320 | CHECK( spec.matches( tcA ) == true ) |
| 3321 | with expansion: |
| 3322 | true == true |
| 3323 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3324 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3325 | PASSED: |
| 3326 | CHECK( spec.matches( tcB ) == false ) |
| 3327 | with expansion: |
| 3328 | false == false |
| 3329 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3330 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3331 | PASSED: |
| 3332 | CHECK( spec.matches( tcC ) == true ) |
| 3333 | with expansion: |
| 3334 | true == true |
| 3335 | |
| 3336 | ------------------------------------------------------------------------------- |
| 3337 | Parse test names and tags |
| 3338 | One tag exclusion and one tag inclusion |
| 3339 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3340 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3341 | ............................................................................... |
| 3342 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3343 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3344 | PASSED: |
| 3345 | CHECK( spec.hasFilters() == true ) |
| 3346 | with expansion: |
| 3347 | true == true |
| 3348 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3349 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3350 | PASSED: |
| 3351 | CHECK( spec.matches( tcA ) == false ) |
| 3352 | with expansion: |
| 3353 | false == false |
| 3354 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3355 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3356 | PASSED: |
| 3357 | CHECK( spec.matches( tcB ) == true ) |
| 3358 | with expansion: |
| 3359 | true == true |
| 3360 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3361 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3362 | PASSED: |
| 3363 | CHECK( spec.matches( tcC ) == false ) |
| 3364 | with expansion: |
| 3365 | false == false |
| 3366 | |
| 3367 | ------------------------------------------------------------------------------- |
| 3368 | Parse test names and tags |
| 3369 | One tag exclusion and one wldcarded name inclusion |
| 3370 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3371 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3372 | ............................................................................... |
| 3373 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3374 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3375 | PASSED: |
| 3376 | CHECK( spec.hasFilters() == true ) |
| 3377 | with expansion: |
| 3378 | true == true |
| 3379 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3380 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3381 | PASSED: |
| 3382 | CHECK( spec.matches( tcA ) == false ) |
| 3383 | with expansion: |
| 3384 | false == false |
| 3385 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3386 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3387 | PASSED: |
| 3388 | CHECK( spec.matches( tcB ) == false ) |
| 3389 | with expansion: |
| 3390 | false == false |
| 3391 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3392 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3393 | PASSED: |
| 3394 | CHECK( spec.matches( tcC ) == false ) |
| 3395 | with expansion: |
| 3396 | false == false |
| 3397 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3398 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3399 | PASSED: |
| 3400 | CHECK( spec.matches( tcD ) == true ) |
| 3401 | with expansion: |
| 3402 | true == true |
| 3403 | |
| 3404 | ------------------------------------------------------------------------------- |
| 3405 | Parse test names and tags |
| 3406 | One tag exclusion, using exclude:, and one wldcarded name inclusion |
| 3407 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3408 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3409 | ............................................................................... |
| 3410 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3411 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3412 | PASSED: |
| 3413 | CHECK( spec.hasFilters() == true ) |
| 3414 | with expansion: |
| 3415 | true == true |
| 3416 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3417 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3418 | PASSED: |
| 3419 | CHECK( spec.matches( tcA ) == false ) |
| 3420 | with expansion: |
| 3421 | false == false |
| 3422 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3423 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3424 | PASSED: |
| 3425 | CHECK( spec.matches( tcB ) == false ) |
| 3426 | with expansion: |
| 3427 | false == false |
| 3428 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3429 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3430 | PASSED: |
| 3431 | CHECK( spec.matches( tcC ) == false ) |
| 3432 | with expansion: |
| 3433 | false == false |
| 3434 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3435 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3436 | PASSED: |
| 3437 | CHECK( spec.matches( tcD ) == true ) |
| 3438 | with expansion: |
| 3439 | true == true |
| 3440 | |
| 3441 | ------------------------------------------------------------------------------- |
| 3442 | Parse test names and tags |
| 3443 | name exclusion |
| 3444 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3445 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3446 | ............................................................................... |
| 3447 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3448 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3449 | PASSED: |
| 3450 | CHECK( spec.hasFilters() == true ) |
| 3451 | with expansion: |
| 3452 | true == true |
| 3453 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3454 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3455 | PASSED: |
| 3456 | CHECK( spec.matches( tcA ) == true ) |
| 3457 | with expansion: |
| 3458 | true == true |
| 3459 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3460 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3461 | PASSED: |
| 3462 | CHECK( spec.matches( tcB ) == false ) |
| 3463 | with expansion: |
| 3464 | false == false |
| 3465 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3466 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3467 | PASSED: |
| 3468 | CHECK( spec.matches( tcC ) == true ) |
| 3469 | with expansion: |
| 3470 | true == true |
| 3471 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3472 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3473 | PASSED: |
| 3474 | CHECK( spec.matches( tcD ) == true ) |
| 3475 | with expansion: |
| 3476 | true == true |
| 3477 | |
| 3478 | ------------------------------------------------------------------------------- |
| 3479 | Parse test names and tags |
| 3480 | wildcarded name exclusion |
| 3481 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3482 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3483 | ............................................................................... |
| 3484 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3485 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3486 | PASSED: |
| 3487 | CHECK( spec.hasFilters() == true ) |
| 3488 | with expansion: |
| 3489 | true == true |
| 3490 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3491 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3492 | PASSED: |
| 3493 | CHECK( spec.matches( tcA ) == true ) |
| 3494 | with expansion: |
| 3495 | true == true |
| 3496 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3497 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3498 | PASSED: |
| 3499 | CHECK( spec.matches( tcB ) == true ) |
| 3500 | with expansion: |
| 3501 | true == true |
| 3502 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3503 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3504 | PASSED: |
| 3505 | CHECK( spec.matches( tcC ) == false ) |
| 3506 | with expansion: |
| 3507 | false == false |
| 3508 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3509 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3510 | PASSED: |
| 3511 | CHECK( spec.matches( tcD ) == false ) |
| 3512 | with expansion: |
| 3513 | false == false |
| 3514 | |
| 3515 | ------------------------------------------------------------------------------- |
| 3516 | Parse test names and tags |
| 3517 | wildcarded name exclusion with tag inclusion |
| 3518 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3519 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3520 | ............................................................................... |
| 3521 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3522 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3523 | PASSED: |
| 3524 | CHECK( spec.hasFilters() == true ) |
| 3525 | with expansion: |
| 3526 | true == true |
| 3527 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3528 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3529 | PASSED: |
| 3530 | CHECK( spec.matches( tcA ) == true ) |
| 3531 | with expansion: |
| 3532 | true == true |
| 3533 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3534 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3535 | PASSED: |
| 3536 | CHECK( spec.matches( tcB ) == true ) |
| 3537 | with expansion: |
| 3538 | true == true |
| 3539 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3540 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3541 | PASSED: |
| 3542 | CHECK( spec.matches( tcC ) == true ) |
| 3543 | with expansion: |
| 3544 | true == true |
| 3545 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3546 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3547 | PASSED: |
| 3548 | CHECK( spec.matches( tcD ) == false ) |
| 3549 | with expansion: |
| 3550 | false == false |
| 3551 | |
| 3552 | ------------------------------------------------------------------------------- |
| 3553 | Parse test names and tags |
| 3554 | wildcarded name exclusion, using exclude:, with tag inclusion |
| 3555 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3556 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3557 | ............................................................................... |
| 3558 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3559 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3560 | PASSED: |
| 3561 | CHECK( spec.hasFilters() == true ) |
| 3562 | with expansion: |
| 3563 | true == true |
| 3564 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3565 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3566 | PASSED: |
| 3567 | CHECK( spec.matches( tcA ) == true ) |
| 3568 | with expansion: |
| 3569 | true == true |
| 3570 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3571 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3572 | PASSED: |
| 3573 | CHECK( spec.matches( tcB ) == true ) |
| 3574 | with expansion: |
| 3575 | true == true |
| 3576 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3577 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3578 | PASSED: |
| 3579 | CHECK( spec.matches( tcC ) == true ) |
| 3580 | with expansion: |
| 3581 | true == true |
| 3582 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3583 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3584 | PASSED: |
| 3585 | CHECK( spec.matches( tcD ) == false ) |
| 3586 | with expansion: |
| 3587 | false == false |
| 3588 | |
| 3589 | ------------------------------------------------------------------------------- |
| 3590 | Parse test names and tags |
| 3591 | two wildcarded names |
| 3592 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3593 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3594 | ............................................................................... |
| 3595 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3596 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3597 | PASSED: |
| 3598 | CHECK( spec.hasFilters() == true ) |
| 3599 | with expansion: |
| 3600 | true == true |
| 3601 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3602 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3603 | PASSED: |
| 3604 | CHECK( spec.matches( tcA ) == false ) |
| 3605 | with expansion: |
| 3606 | false == false |
| 3607 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3608 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3609 | PASSED: |
| 3610 | CHECK( spec.matches( tcB ) == false ) |
| 3611 | with expansion: |
| 3612 | false == false |
| 3613 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3614 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3615 | PASSED: |
| 3616 | CHECK( spec.matches( tcC ) == true ) |
| 3617 | with expansion: |
| 3618 | true == true |
| 3619 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3620 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3621 | PASSED: |
| 3622 | CHECK( spec.matches( tcD ) == false ) |
| 3623 | with expansion: |
| 3624 | false == false |
| 3625 | |
| 3626 | ------------------------------------------------------------------------------- |
| 3627 | Parse test names and tags |
| 3628 | empty tag |
| 3629 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3630 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3631 | ............................................................................... |
| 3632 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3633 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3634 | PASSED: |
| 3635 | CHECK( spec.hasFilters() == false ) |
| 3636 | with expansion: |
| 3637 | false == false |
| 3638 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3639 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3640 | PASSED: |
| 3641 | CHECK( spec.matches( tcA ) == false ) |
| 3642 | with expansion: |
| 3643 | false == false |
| 3644 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3645 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3646 | PASSED: |
| 3647 | CHECK( spec.matches( tcB ) == false ) |
| 3648 | with expansion: |
| 3649 | false == false |
| 3650 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3651 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3652 | PASSED: |
| 3653 | CHECK( spec.matches( tcC ) == false ) |
| 3654 | with expansion: |
| 3655 | false == false |
| 3656 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3657 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3658 | PASSED: |
| 3659 | CHECK( spec.matches( tcD ) == false ) |
| 3660 | with expansion: |
| 3661 | false == false |
| 3662 | |
| 3663 | ------------------------------------------------------------------------------- |
| 3664 | Parse test names and tags |
| 3665 | empty quoted name |
| 3666 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3667 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3668 | ............................................................................... |
| 3669 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3670 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3671 | PASSED: |
| 3672 | CHECK( spec.hasFilters() == false ) |
| 3673 | with expansion: |
| 3674 | false == false |
| 3675 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3676 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3677 | PASSED: |
| 3678 | CHECK( spec.matches( tcA ) == false ) |
| 3679 | with expansion: |
| 3680 | false == false |
| 3681 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3682 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3683 | PASSED: |
| 3684 | CHECK( spec.matches( tcB ) == false ) |
| 3685 | with expansion: |
| 3686 | false == false |
| 3687 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3688 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3689 | PASSED: |
| 3690 | CHECK( spec.matches( tcC ) == false ) |
| 3691 | with expansion: |
| 3692 | false == false |
| 3693 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3694 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3695 | PASSED: |
| 3696 | CHECK( spec.matches( tcD ) == false ) |
| 3697 | with expansion: |
| 3698 | false == false |
| 3699 | |
| 3700 | ------------------------------------------------------------------------------- |
| 3701 | Parse test names and tags |
| 3702 | quoted string followed by tag exclusion |
| 3703 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3704 | CmdLine.tests.cpp:<line number> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3705 | ............................................................................... |
| 3706 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3707 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3708 | PASSED: |
| 3709 | CHECK( spec.hasFilters() == true ) |
| 3710 | with expansion: |
| 3711 | true == true |
| 3712 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3713 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3714 | PASSED: |
| 3715 | CHECK( spec.matches( tcA ) == false ) |
| 3716 | with expansion: |
| 3717 | false == false |
| 3718 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3719 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3720 | PASSED: |
| 3721 | CHECK( spec.matches( tcB ) == false ) |
| 3722 | with expansion: |
| 3723 | false == false |
| 3724 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3725 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3726 | PASSED: |
| 3727 | CHECK( spec.matches( tcC ) == false ) |
| 3728 | with expansion: |
| 3729 | false == false |
| 3730 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3731 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3732 | PASSED: |
| 3733 | CHECK( spec.matches( tcD ) == true ) |
| 3734 | with expansion: |
| 3735 | true == true |
| 3736 | |
| 3737 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3738 | Parsing a std::pair |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3739 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3740 | Tricky.tests.cpp:<line number> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3741 | ............................................................................... |
| 3742 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3743 | Tricky.tests.cpp:<line number>: |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3744 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3745 | REQUIRE( (std::pair<int, int>( 1, 2 )) == aNicePair ) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3746 | with expansion: |
Martin Hořeňovský | 760a25e | 2017-10-09 13:12:50 +0200 | [diff] [blame] | 3747 | {?} == {?} |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3748 | |
| 3749 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3750 | Pointers can be compared to null |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3751 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3752 | Condition.tests.cpp:<line number> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3753 | ............................................................................... |
| 3754 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3755 | Condition.tests.cpp:<line number>: |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3756 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3757 | REQUIRE( p == 0 ) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3758 | with expansion: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 3759 | 0 == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3760 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3761 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3762 | PASSED: |
| 3763 | REQUIRE( p == pNULL ) |
| 3764 | with expansion: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 3765 | 0 == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3766 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3767 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3768 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3769 | REQUIRE( p != 0 ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3770 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3771 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3772 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3773 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3774 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3775 | REQUIRE( cp != 0 ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3776 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3777 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3778 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3779 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3780 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3781 | REQUIRE( cpc != 0 ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3782 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3783 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3784 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3785 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3786 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3787 | REQUIRE( returnsNull() == 0 ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3788 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3789 | {null string} == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3790 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3791 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3792 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3793 | REQUIRE( returnsConstNull() == 0 ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3794 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3795 | {null string} == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3796 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3797 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3798 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3799 | REQUIRE( 0 != p ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3800 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 3801 | 0 != 0x<hex digits> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3802 | |
| 3803 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3804 | Process can be configured on command line |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3805 | empty args don't cause a crash |
| 3806 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3807 | CmdLine.tests.cpp:<line number> |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3808 | ............................................................................... |
| 3809 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3810 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3811 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3812 | CHECK( result ) |
| 3813 | with expansion: |
| 3814 | {?} |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3815 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3816 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3817 | PASSED: |
| 3818 | CHECK( config.processName == "" ) |
| 3819 | with expansion: |
| 3820 | "" == "" |
| 3821 | |
| 3822 | ------------------------------------------------------------------------------- |
| 3823 | Process can be configured on command line |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3824 | default - no arguments |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3825 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3826 | CmdLine.tests.cpp:<line number> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3827 | ............................................................................... |
| 3828 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3829 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3830 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3831 | CHECK( result ) |
| 3832 | with expansion: |
| 3833 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3834 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3835 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3836 | PASSED: |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3837 | CHECK( config.processName == "test" ) |
| 3838 | with expansion: |
| 3839 | "test" == "test" |
| 3840 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3841 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 38b05f1 | 2017-03-13 11:00:58 +0000 | [diff] [blame] | 3842 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3843 | CHECK( config.shouldDebugBreak == false ) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3844 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3845 | false == false |
| 3846 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3847 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3848 | PASSED: |
| 3849 | CHECK( config.abortAfter == -1 ) |
| 3850 | with expansion: |
| 3851 | -1 == -1 |
| 3852 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3853 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3854 | PASSED: |
| 3855 | CHECK( config.noThrow == false ) |
| 3856 | with expansion: |
| 3857 | false == false |
| 3858 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3859 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3860 | PASSED: |
| 3861 | CHECK( config.reporterNames.empty() ) |
| 3862 | with expansion: |
| 3863 | true |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3864 | |
| 3865 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3866 | Process can be configured on command line |
| 3867 | test lists |
| 3868 | 1 test |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3869 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3870 | CmdLine.tests.cpp:<line number> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3871 | ............................................................................... |
| 3872 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3873 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3874 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3875 | CHECK( result ) |
| 3876 | with expansion: |
| 3877 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3878 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3879 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3880 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3881 | REQUIRE( cfg.testSpec().matches(fakeTestCase("notIncluded")) == false ) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3882 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3883 | false == false |
| 3884 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3885 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3886 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3887 | REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3888 | with expansion: |
| 3889 | true |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3890 | |
| 3891 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3892 | Process can be configured on command line |
| 3893 | test lists |
| 3894 | Specify one test case exclusion using exclude: |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3895 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3896 | CmdLine.tests.cpp:<line number> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3897 | ............................................................................... |
| 3898 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3899 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3900 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3901 | CHECK( result ) |
| 3902 | with expansion: |
| 3903 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3904 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3905 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3906 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3907 | REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false ) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3908 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3909 | false == false |
| 3910 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3911 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3912 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3913 | REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3914 | with expansion: |
| 3915 | true |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 3916 | |
| 3917 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3918 | Process can be configured on command line |
| 3919 | test lists |
| 3920 | Specify one test case exclusion using ~ |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3921 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3922 | CmdLine.tests.cpp:<line number> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3923 | ............................................................................... |
| 3924 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3925 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3926 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3927 | CHECK( result ) |
| 3928 | with expansion: |
| 3929 | {?} |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3930 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3931 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3932 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3933 | REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3934 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3935 | false == false |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3936 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3937 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3938 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3939 | REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3940 | with expansion: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3941 | true |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3942 | |
| 3943 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3944 | Process can be configured on command line |
| 3945 | reporter |
| 3946 | -r/console |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3947 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3948 | CmdLine.tests.cpp:<line number> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3949 | ............................................................................... |
| 3950 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3951 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3952 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3953 | CHECK( cli.parse({"test", "-r", "console"}) ) |
| 3954 | with expansion: |
| 3955 | {?} |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3956 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3957 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3958 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3959 | REQUIRE( config.reporterNames[0] == "console" ) |
| 3960 | with expansion: |
| 3961 | "console" == "console" |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 3962 | |
| 3963 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3964 | Process can be configured on command line |
| 3965 | reporter |
| 3966 | -r/xml |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3967 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3968 | CmdLine.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3969 | ............................................................................... |
| 3970 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3971 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3972 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3973 | CHECK( cli.parse({"test", "-r", "xml"}) ) |
| 3974 | with expansion: |
| 3975 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3976 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3977 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3978 | PASSED: |
| 3979 | REQUIRE( config.reporterNames[0] == "xml" ) |
| 3980 | with expansion: |
| 3981 | "xml" == "xml" |
| 3982 | |
| 3983 | ------------------------------------------------------------------------------- |
| 3984 | Process can be configured on command line |
| 3985 | reporter |
| 3986 | -r xml and junit |
| 3987 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3988 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3989 | ............................................................................... |
| 3990 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3991 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3992 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 3993 | CHECK( cli.parse({"test", "-r", "xml", "-r", "junit"}) ) |
| 3994 | with expansion: |
| 3995 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3996 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 3997 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 3998 | PASSED: |
| 3999 | REQUIRE( config.reporterNames.size() == 2 ) |
| 4000 | with expansion: |
| 4001 | 2 == 2 |
| 4002 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4003 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4004 | PASSED: |
| 4005 | REQUIRE( config.reporterNames[0] == "xml" ) |
| 4006 | with expansion: |
| 4007 | "xml" == "xml" |
| 4008 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4009 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4010 | PASSED: |
| 4011 | REQUIRE( config.reporterNames[1] == "junit" ) |
| 4012 | with expansion: |
| 4013 | "junit" == "junit" |
| 4014 | |
| 4015 | ------------------------------------------------------------------------------- |
| 4016 | Process can be configured on command line |
| 4017 | reporter |
| 4018 | --reporter/junit |
| 4019 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4020 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4021 | ............................................................................... |
| 4022 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4023 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4024 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4025 | CHECK( cli.parse({"test", "--reporter", "junit"}) ) |
| 4026 | with expansion: |
| 4027 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4028 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4029 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4030 | PASSED: |
| 4031 | REQUIRE( config.reporterNames[0] == "junit" ) |
| 4032 | with expansion: |
| 4033 | "junit" == "junit" |
| 4034 | |
| 4035 | ------------------------------------------------------------------------------- |
| 4036 | Process can be configured on command line |
| 4037 | debugger |
| 4038 | -b |
| 4039 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4040 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4041 | ............................................................................... |
| 4042 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4043 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4044 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4045 | CHECK( cli.parse({"test", "-b"}) ) |
| 4046 | with expansion: |
| 4047 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4048 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4049 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4050 | PASSED: |
| 4051 | REQUIRE( config.shouldDebugBreak == true ) |
| 4052 | with expansion: |
| 4053 | true == true |
| 4054 | |
| 4055 | ------------------------------------------------------------------------------- |
| 4056 | Process can be configured on command line |
| 4057 | debugger |
| 4058 | --break |
| 4059 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4060 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4061 | ............................................................................... |
| 4062 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4063 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4064 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4065 | CHECK( cli.parse({"test", "--break"}) ) |
| 4066 | with expansion: |
| 4067 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4068 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4069 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4070 | PASSED: |
| 4071 | REQUIRE( config.shouldDebugBreak ) |
| 4072 | with expansion: |
| 4073 | true |
| 4074 | |
| 4075 | ------------------------------------------------------------------------------- |
| 4076 | Process can be configured on command line |
| 4077 | abort |
| 4078 | -a aborts after first failure |
| 4079 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4080 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4081 | ............................................................................... |
| 4082 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4083 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4084 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4085 | CHECK( cli.parse({"test", "-a"}) ) |
| 4086 | with expansion: |
| 4087 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4088 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4089 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4090 | PASSED: |
| 4091 | REQUIRE( config.abortAfter == 1 ) |
| 4092 | with expansion: |
| 4093 | 1 == 1 |
| 4094 | |
| 4095 | ------------------------------------------------------------------------------- |
| 4096 | Process can be configured on command line |
| 4097 | abort |
| 4098 | -x 2 aborts after two failures |
| 4099 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4100 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4101 | ............................................................................... |
| 4102 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4103 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4104 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4105 | CHECK( cli.parse({"test", "-x", "2"}) ) |
| 4106 | with expansion: |
| 4107 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4108 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4109 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4110 | PASSED: |
| 4111 | REQUIRE( config.abortAfter == 2 ) |
| 4112 | with expansion: |
| 4113 | 2 == 2 |
| 4114 | |
| 4115 | ------------------------------------------------------------------------------- |
| 4116 | Process can be configured on command line |
| 4117 | abort |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4118 | -x must be numeric |
| 4119 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4120 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4121 | ............................................................................... |
| 4122 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4123 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4124 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4125 | CHECK( !result ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4126 | with expansion: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4127 | true |
| 4128 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4129 | CmdLine.tests.cpp:<line number>: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4130 | PASSED: |
| 4131 | REQUIRE_THAT( result.errorMessage(), Contains("convert") && Contains("oops") ) |
| 4132 | with expansion: |
| 4133 | "Unable to convert 'oops' to destination type" ( contains: "convert" and |
| 4134 | contains: "oops" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4135 | |
| 4136 | ------------------------------------------------------------------------------- |
| 4137 | Process can be configured on command line |
| 4138 | nothrow |
| 4139 | -e |
| 4140 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4141 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4142 | ............................................................................... |
| 4143 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4144 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4145 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4146 | CHECK( cli.parse({"test", "-e"}) ) |
| 4147 | with expansion: |
| 4148 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4149 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4150 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4151 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4152 | REQUIRE( config.noThrow ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4153 | with expansion: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4154 | true |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4155 | |
| 4156 | ------------------------------------------------------------------------------- |
| 4157 | Process can be configured on command line |
| 4158 | nothrow |
| 4159 | --nothrow |
| 4160 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4161 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4162 | ............................................................................... |
| 4163 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4164 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4165 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4166 | CHECK( cli.parse({"test", "--nothrow"}) ) |
| 4167 | with expansion: |
| 4168 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4169 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4170 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4171 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4172 | REQUIRE( config.noThrow ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4173 | with expansion: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4174 | true |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4175 | |
| 4176 | ------------------------------------------------------------------------------- |
| 4177 | Process can be configured on command line |
| 4178 | output filename |
| 4179 | -o filename |
| 4180 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4181 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4182 | ............................................................................... |
| 4183 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4184 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4185 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4186 | CHECK( cli.parse({"test", "-o", "filename.ext"}) ) |
| 4187 | with expansion: |
| 4188 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4189 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4190 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4191 | PASSED: |
| 4192 | REQUIRE( config.outputFilename == "filename.ext" ) |
| 4193 | with expansion: |
| 4194 | "filename.ext" == "filename.ext" |
| 4195 | |
| 4196 | ------------------------------------------------------------------------------- |
| 4197 | Process can be configured on command line |
| 4198 | output filename |
| 4199 | --out |
| 4200 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4201 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4202 | ............................................................................... |
| 4203 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4204 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4205 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4206 | CHECK( cli.parse({"test", "--out", "filename.ext"}) ) |
| 4207 | with expansion: |
| 4208 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4209 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4210 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4211 | PASSED: |
| 4212 | REQUIRE( config.outputFilename == "filename.ext" ) |
| 4213 | with expansion: |
| 4214 | "filename.ext" == "filename.ext" |
| 4215 | |
| 4216 | ------------------------------------------------------------------------------- |
| 4217 | Process can be configured on command line |
| 4218 | combinations |
| 4219 | Single character flags can be combined |
| 4220 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4221 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4222 | ............................................................................... |
| 4223 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4224 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4225 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4226 | CHECK( cli.parse({"test", "-abe"}) ) |
| 4227 | with expansion: |
| 4228 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4229 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4230 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4231 | PASSED: |
| 4232 | CHECK( config.abortAfter == 1 ) |
| 4233 | with expansion: |
| 4234 | 1 == 1 |
| 4235 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4236 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4237 | PASSED: |
| 4238 | CHECK( config.shouldDebugBreak ) |
| 4239 | with expansion: |
| 4240 | true |
| 4241 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4242 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4243 | PASSED: |
| 4244 | CHECK( config.noThrow == true ) |
| 4245 | with expansion: |
| 4246 | true == true |
| 4247 | |
| 4248 | ------------------------------------------------------------------------------- |
| 4249 | Process can be configured on command line |
| 4250 | use-colour |
| 4251 | without option |
| 4252 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4253 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4254 | ............................................................................... |
| 4255 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4256 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4257 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4258 | CHECK( cli.parse({"test"}) ) |
| 4259 | with expansion: |
| 4260 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4261 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4262 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4263 | PASSED: |
| 4264 | REQUIRE( config.useColour == UseColour::Auto ) |
| 4265 | with expansion: |
| 4266 | 0 == 0 |
| 4267 | |
| 4268 | ------------------------------------------------------------------------------- |
| 4269 | Process can be configured on command line |
| 4270 | use-colour |
| 4271 | auto |
| 4272 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4273 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4274 | ............................................................................... |
| 4275 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4276 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4277 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4278 | CHECK( cli.parse({"test", "--use-colour", "auto"}) ) |
| 4279 | with expansion: |
| 4280 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4281 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4282 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4283 | PASSED: |
| 4284 | REQUIRE( config.useColour == UseColour::Auto ) |
| 4285 | with expansion: |
| 4286 | 0 == 0 |
| 4287 | |
| 4288 | ------------------------------------------------------------------------------- |
| 4289 | Process can be configured on command line |
| 4290 | use-colour |
| 4291 | yes |
| 4292 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4293 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4294 | ............................................................................... |
| 4295 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4296 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4297 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4298 | CHECK( cli.parse({"test", "--use-colour", "yes"}) ) |
| 4299 | with expansion: |
| 4300 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4301 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4302 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4303 | PASSED: |
| 4304 | REQUIRE( config.useColour == UseColour::Yes ) |
| 4305 | with expansion: |
| 4306 | 1 == 1 |
| 4307 | |
| 4308 | ------------------------------------------------------------------------------- |
| 4309 | Process can be configured on command line |
| 4310 | use-colour |
| 4311 | no |
| 4312 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4313 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4314 | ............................................................................... |
| 4315 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4316 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4317 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4318 | CHECK( cli.parse({"test", "--use-colour", "no"}) ) |
| 4319 | with expansion: |
| 4320 | {?} |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4321 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4322 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4323 | PASSED: |
| 4324 | REQUIRE( config.useColour == UseColour::No ) |
| 4325 | with expansion: |
| 4326 | 2 == 2 |
| 4327 | |
| 4328 | ------------------------------------------------------------------------------- |
| 4329 | Process can be configured on command line |
| 4330 | use-colour |
| 4331 | error |
| 4332 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4333 | CmdLine.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4334 | ............................................................................... |
| 4335 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4336 | CmdLine.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4337 | PASSED: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4338 | CHECK( !result ) |
| 4339 | with expansion: |
| 4340 | true |
| 4341 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4342 | CmdLine.tests.cpp:<line number>: |
Phil Nash | c41a45e | 2017-06-12 23:13:27 +0100 | [diff] [blame] | 4343 | PASSED: |
| 4344 | CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) ) |
| 4345 | with expansion: |
| 4346 | "colour mode must be one of: auto, yes or no. 'wrong' not recognised" |
| 4347 | contains: "colour mode must be one of" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4348 | |
| 4349 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 4350 | Reconstruction should be based on stringification: #914 |
| 4351 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4352 | Decomposition.tests.cpp:<line number> |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 4353 | ............................................................................... |
| 4354 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4355 | Decomposition.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | 07ef028 | 2017-06-06 15:07:57 +0200 | [diff] [blame] | 4356 | CHECK( truthy(false) ) |
| 4357 | with expansion: |
| 4358 | Hey, its truthy! |
| 4359 | |
| 4360 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | b0857e8 | 2017-11-13 15:35:31 +0100 | [diff] [blame] | 4361 | Regex string matcher |
| 4362 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4363 | Matchers.tests.cpp:<line number> |
Martin Hořeňovský | b0857e8 | 2017-11-13 15:35:31 +0100 | [diff] [blame] | 4364 | ............................................................................... |
| 4365 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4366 | Matchers.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | b0857e8 | 2017-11-13 15:35:31 +0100 | [diff] [blame] | 4367 | CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") ) |
| 4368 | with expansion: |
| 4369 | "this string contains 'abc' as a substring" matches "this STRING contains |
| 4370 | 'abc' as a substring" case sensitively |
| 4371 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4372 | Matchers.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | b0857e8 | 2017-11-13 15:35:31 +0100 | [diff] [blame] | 4373 | CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") ) |
| 4374 | with expansion: |
| 4375 | "this string contains 'abc' as a substring" matches "contains 'abc' as a |
| 4376 | substring" case sensitively |
| 4377 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4378 | Matchers.tests.cpp:<line number>: FAILED: |
Martin Hořeňovský | b0857e8 | 2017-11-13 15:35:31 +0100 | [diff] [blame] | 4379 | CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") ) |
| 4380 | with expansion: |
| 4381 | "this string contains 'abc' as a substring" matches "this string contains |
| 4382 | 'abc' as a" case sensitively |
| 4383 | |
| 4384 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4385 | SUCCEED counts as a test pass |
| 4386 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4387 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4388 | ............................................................................... |
| 4389 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4390 | Message.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4391 | PASSED: |
| 4392 | with message: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4393 | this is a success |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4394 | |
| 4395 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4396 | SUCCESS does not require an argument |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4397 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4398 | Message.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4399 | ............................................................................... |
| 4400 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4401 | Message.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4402 | PASSED: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4403 | |
| 4404 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4405 | Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or |
| 4406 | methods |
| 4407 | Given: No operations precede me |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4408 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4409 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4410 | ............................................................................... |
| 4411 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4412 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4413 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4414 | REQUIRE( before == 0 ) |
| 4415 | with expansion: |
| 4416 | 0 == 0 |
| 4417 | |
| 4418 | ------------------------------------------------------------------------------- |
| 4419 | Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or |
| 4420 | methods |
| 4421 | Given: No operations precede me |
| 4422 | When: We get the count |
| 4423 | Then: Subsequently values are higher |
| 4424 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4425 | BDD.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4426 | ............................................................................... |
| 4427 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4428 | BDD.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4429 | PASSED: |
| 4430 | REQUIRE( after > before ) |
| 4431 | with expansion: |
| 4432 | 1 > 0 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4433 | |
| 4434 | ------------------------------------------------------------------------------- |
| 4435 | Scenario: Do that thing with the thing |
| 4436 | Given: This stuff exists |
| 4437 | When: I do this |
| 4438 | Then: it should do this |
| 4439 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4440 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4441 | ............................................................................... |
| 4442 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4443 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4444 | PASSED: |
| 4445 | REQUIRE( itDoesThis() ) |
| 4446 | with expansion: |
| 4447 | true |
| 4448 | |
| 4449 | ------------------------------------------------------------------------------- |
| 4450 | Scenario: Do that thing with the thing |
| 4451 | Given: This stuff exists |
| 4452 | When: I do this |
| 4453 | Then: it should do this |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4454 | And: do that |
| 4455 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4456 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4457 | ............................................................................... |
| 4458 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4459 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4460 | PASSED: |
| 4461 | REQUIRE( itDoesThat() ) |
| 4462 | with expansion: |
| 4463 | true |
| 4464 | |
| 4465 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4466 | Scenario: This is a really long scenario name to see how the list command deals |
| 4467 | with wrapping |
| 4468 | Given: A section name that is so long that it cannot fit in a single |
| 4469 | console width |
| 4470 | When: The test headers are printed as part of the normal running of the |
| 4471 | scenario |
| 4472 | Then: The, deliberately very long and overly verbose (you see what I did |
| 4473 | there?) section names must wrap, along with an indent |
| 4474 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4475 | BDD.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4476 | ............................................................................... |
| 4477 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4478 | BDD.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4479 | PASSED: |
| 4480 | with message: |
| 4481 | boo! |
| 4482 | |
| 4483 | ------------------------------------------------------------------------------- |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4484 | Scenario: Vector resizing affects size and capacity |
| 4485 | Given: an empty vector |
| 4486 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4487 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4488 | ............................................................................... |
| 4489 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4490 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4491 | PASSED: |
| 4492 | REQUIRE( v.size() == 0 ) |
| 4493 | with expansion: |
| 4494 | 0 == 0 |
| 4495 | |
| 4496 | ------------------------------------------------------------------------------- |
| 4497 | Scenario: Vector resizing affects size and capacity |
| 4498 | Given: an empty vector |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4499 | When: it is made larger |
| 4500 | Then: the size and capacity go up |
| 4501 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4502 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4503 | ............................................................................... |
| 4504 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4505 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4506 | PASSED: |
| 4507 | REQUIRE( v.size() == 10 ) |
| 4508 | with expansion: |
| 4509 | 10 == 10 |
| 4510 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4511 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4512 | PASSED: |
| 4513 | REQUIRE( v.capacity() >= 10 ) |
| 4514 | with expansion: |
| 4515 | 10 >= 10 |
| 4516 | |
| 4517 | ------------------------------------------------------------------------------- |
| 4518 | Scenario: Vector resizing affects size and capacity |
| 4519 | Given: an empty vector |
| 4520 | When: it is made larger |
| 4521 | Then: the size and capacity go up |
| 4522 | And when: it is made smaller again |
| 4523 | Then: the size goes down but the capacity stays the same |
| 4524 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4525 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4526 | ............................................................................... |
| 4527 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4528 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4529 | PASSED: |
| 4530 | REQUIRE( v.size() == 5 ) |
| 4531 | with expansion: |
| 4532 | 5 == 5 |
| 4533 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4534 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4535 | PASSED: |
| 4536 | REQUIRE( v.capacity() >= 10 ) |
| 4537 | with expansion: |
| 4538 | 10 >= 10 |
| 4539 | |
| 4540 | ------------------------------------------------------------------------------- |
| 4541 | Scenario: Vector resizing affects size and capacity |
| 4542 | Given: an empty vector |
| 4543 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4544 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4545 | ............................................................................... |
| 4546 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4547 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4548 | PASSED: |
| 4549 | REQUIRE( v.size() == 0 ) |
| 4550 | with expansion: |
| 4551 | 0 == 0 |
| 4552 | |
| 4553 | ------------------------------------------------------------------------------- |
| 4554 | Scenario: Vector resizing affects size and capacity |
| 4555 | Given: an empty vector |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4556 | When: we reserve more space |
| 4557 | Then: The capacity is increased but the size remains the same |
| 4558 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4559 | BDD.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4560 | ............................................................................... |
| 4561 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4562 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4563 | PASSED: |
| 4564 | REQUIRE( v.capacity() >= 10 ) |
| 4565 | with expansion: |
| 4566 | 10 >= 10 |
| 4567 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4568 | BDD.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4569 | PASSED: |
| 4570 | REQUIRE( v.size() == 0 ) |
| 4571 | with expansion: |
| 4572 | 0 == 0 |
| 4573 | |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4574 | A string sent directly to stdout |
| 4575 | A string sent directly to stderr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4576 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4577 | Some simple comparisons between doubles |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4578 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4579 | Approx.tests.cpp:<line number> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4580 | ............................................................................... |
| 4581 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4582 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4583 | PASSED: |
| 4584 | REQUIRE( d == Approx( 1.23 ) ) |
| 4585 | with expansion: |
| 4586 | 1.23 == Approx( 1.23 ) |
| 4587 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4588 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4589 | PASSED: |
| 4590 | REQUIRE( d != Approx( 1.22 ) ) |
| 4591 | with expansion: |
| 4592 | 1.23 != Approx( 1.22 ) |
| 4593 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4594 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4595 | PASSED: |
| 4596 | REQUIRE( d != Approx( 1.24 ) ) |
| 4597 | with expansion: |
| 4598 | 1.23 != Approx( 1.24 ) |
| 4599 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4600 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4601 | PASSED: |
| 4602 | REQUIRE( Approx( d ) == 1.23 ) |
| 4603 | with expansion: |
| 4604 | Approx( 1.23 ) == 1.23 |
| 4605 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4606 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4607 | PASSED: |
| 4608 | REQUIRE( Approx( d ) != 1.22 ) |
| 4609 | with expansion: |
| 4610 | Approx( 1.23 ) != 1.22 |
| 4611 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4612 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4613 | PASSED: |
| 4614 | REQUIRE( Approx( d ) != 1.24 ) |
| 4615 | with expansion: |
| 4616 | Approx( 1.23 ) != 1.24 |
| 4617 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4618 | Approx.tests.cpp:<line number>: |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 4619 | PASSED: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 4620 | REQUIRE( INFINITY == Approx(INFINITY) ) |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 4621 | with expansion: |
Martin Hořeňovský | 22ac9d2 | 2017-11-01 07:30:11 +0100 | [diff] [blame] | 4622 | inff == Approx( inf ) |
Martin Hořeňovský | 11f716f | 2017-10-30 15:25:48 +0100 | [diff] [blame] | 4623 | |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4624 | Message from section one |
| 4625 | ------------------------------------------------------------------------------- |
| 4626 | Standard output from all sections is reported |
| 4627 | one |
| 4628 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4629 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4630 | ............................................................................... |
| 4631 | |
| 4632 | |
| 4633 | No assertions in section 'one' |
| 4634 | |
| 4635 | Message from section two |
| 4636 | ------------------------------------------------------------------------------- |
| 4637 | Standard output from all sections is reported |
| 4638 | two |
| 4639 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4640 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4641 | ............................................................................... |
| 4642 | |
| 4643 | |
| 4644 | No assertions in section 'two' |
| 4645 | |
| 4646 | ------------------------------------------------------------------------------- |
| 4647 | StartsWith string matcher |
| 4648 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4649 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4650 | ............................................................................... |
| 4651 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4652 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4653 | CHECK_THAT( testStringForMatching(), StartsWith("This String") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4654 | with expansion: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4655 | "this string contains 'abc' as a substring" starts with: "This String" |
| 4656 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4657 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4658 | CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4659 | with expansion: |
| 4660 | "this string contains 'abc' as a substring" starts with: "string" (case |
| 4661 | insensitive) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4662 | |
| 4663 | ------------------------------------------------------------------------------- |
| 4664 | String matchers |
| 4665 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4666 | Matchers.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4667 | ............................................................................... |
| 4668 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4669 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4670 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4671 | REQUIRE_THAT( testStringForMatching(), Contains("string") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4672 | with expansion: |
| 4673 | "this string contains 'abc' as a substring" contains: "string" |
| 4674 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4675 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4676 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4677 | REQUIRE_THAT( testStringForMatching(), Contains("string", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4678 | with expansion: |
| 4679 | "this string contains 'abc' as a substring" contains: "string" (case |
| 4680 | insensitive) |
| 4681 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4682 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4683 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4684 | CHECK_THAT( testStringForMatching(), Contains("abc") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4685 | with expansion: |
| 4686 | "this string contains 'abc' as a substring" contains: "abc" |
| 4687 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4688 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4689 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4690 | CHECK_THAT( testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4691 | with expansion: |
| 4692 | "this string contains 'abc' as a substring" contains: "abc" (case insensitive) |
| 4693 | insensitive) |
| 4694 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4695 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4696 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4697 | CHECK_THAT( testStringForMatching(), StartsWith("this") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4698 | with expansion: |
| 4699 | "this string contains 'abc' as a substring" starts with: "this" |
| 4700 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4701 | Matchers.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4702 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4703 | CHECK_THAT( testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4704 | with expansion: |
| 4705 | "this string contains 'abc' as a substring" starts with: "this" (case |
| 4706 | insensitive) |
| 4707 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4708 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4709 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4710 | CHECK_THAT( testStringForMatching(), EndsWith("substring") ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4711 | with expansion: |
| 4712 | "this string contains 'abc' as a substring" ends with: "substring" |
| 4713 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4714 | Matchers.tests.cpp:<line number>: |
Martin Hořeňovský | b0857e8 | 2017-11-13 15:35:31 +0100 | [diff] [blame] | 4715 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 4716 | CHECK_THAT( testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No) ) |
Martin Hořeňovský | 55b71be | 2017-11-13 15:46:33 +0100 | [diff] [blame] | 4717 | with expansion: |
| 4718 | "this string contains 'abc' as a substring" ends with: " substring" (case |
| 4719 | insensitive) |
| 4720 | |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4721 | ------------------------------------------------------------------------------- |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4722 | StringRef |
| 4723 | Empty string |
| 4724 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4725 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4726 | ............................................................................... |
| 4727 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4728 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4729 | PASSED: |
| 4730 | REQUIRE( empty.empty() ) |
| 4731 | with expansion: |
| 4732 | true |
| 4733 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4734 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4735 | PASSED: |
| 4736 | REQUIRE( empty.size() == 0 ) |
| 4737 | with expansion: |
| 4738 | 0 == 0 |
| 4739 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4740 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4741 | PASSED: |
| 4742 | REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 ) |
| 4743 | with expansion: |
| 4744 | 0 == 0 |
| 4745 | |
| 4746 | ------------------------------------------------------------------------------- |
| 4747 | StringRef |
| 4748 | From string literal |
| 4749 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4750 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4751 | ............................................................................... |
| 4752 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4753 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4754 | PASSED: |
| 4755 | REQUIRE( s.empty() == false ) |
| 4756 | with expansion: |
| 4757 | false == false |
| 4758 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4759 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4760 | PASSED: |
| 4761 | REQUIRE( s.size() == 5 ) |
| 4762 | with expansion: |
| 4763 | 5 == 5 |
| 4764 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4765 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4766 | PASSED: |
| 4767 | REQUIRE( isSubstring( s ) == false ) |
| 4768 | with expansion: |
| 4769 | false == false |
| 4770 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4771 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4772 | PASSED: |
| 4773 | REQUIRE( std::strcmp( rawChars, "hello" ) == 0 ) |
| 4774 | with expansion: |
| 4775 | 0 == 0 |
| 4776 | |
| 4777 | ------------------------------------------------------------------------------- |
| 4778 | StringRef |
| 4779 | From string literal |
| 4780 | c_str() does not cause copy |
| 4781 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4782 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4783 | ............................................................................... |
| 4784 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4785 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4786 | PASSED: |
| 4787 | REQUIRE( isOwned( s ) == false ) |
| 4788 | with expansion: |
| 4789 | false == false |
| 4790 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4791 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4792 | PASSED: |
| 4793 | REQUIRE( s.c_str() == rawChars ) |
| 4794 | with expansion: |
| 4795 | "hello" == "hello" |
| 4796 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4797 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4798 | PASSED: |
| 4799 | REQUIRE( isOwned( s ) == false ) |
| 4800 | with expansion: |
| 4801 | false == false |
| 4802 | |
| 4803 | ------------------------------------------------------------------------------- |
| 4804 | StringRef |
| 4805 | From sub-string |
| 4806 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4807 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4808 | ............................................................................... |
| 4809 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4810 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4811 | PASSED: |
| 4812 | REQUIRE( original == "original" ) |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4813 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4814 | String.tests.cpp:<line number>: FAILED: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4815 | REQUIRE( isSubstring( original ) ) |
| 4816 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 4817 | false |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4818 | |
| 4819 | ------------------------------------------------------------------------------- |
| 4820 | StringRef |
| 4821 | Substrings |
| 4822 | zero-based substring |
| 4823 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4824 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4825 | ............................................................................... |
| 4826 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4827 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4828 | PASSED: |
| 4829 | REQUIRE( ss.empty() == false ) |
| 4830 | with expansion: |
| 4831 | false == false |
| 4832 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4833 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4834 | PASSED: |
| 4835 | REQUIRE( ss.size() == 5 ) |
| 4836 | with expansion: |
| 4837 | 5 == 5 |
| 4838 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4839 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4840 | PASSED: |
| 4841 | REQUIRE( std::strcmp( ss.c_str(), "hello" ) == 0 ) |
| 4842 | with expansion: |
| 4843 | 0 == 0 |
| 4844 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4845 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4846 | PASSED: |
| 4847 | REQUIRE( ss == "hello" ) |
| 4848 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 4849 | hello == "hello" |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4850 | |
| 4851 | ------------------------------------------------------------------------------- |
| 4852 | StringRef |
| 4853 | Substrings |
| 4854 | c_str() causes copy |
| 4855 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4856 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4857 | ............................................................................... |
| 4858 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4859 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4860 | PASSED: |
| 4861 | REQUIRE( isSubstring( ss ) ) |
| 4862 | with expansion: |
| 4863 | true |
| 4864 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4865 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4866 | PASSED: |
| 4867 | REQUIRE( isOwned( ss ) == false ) |
| 4868 | with expansion: |
| 4869 | false == false |
| 4870 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4871 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4872 | PASSED: |
| 4873 | REQUIRE( rawChars == data( s ) ) |
| 4874 | with expansion: |
| 4875 | "hello world!" == "hello world!" |
| 4876 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4877 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4878 | PASSED: |
| 4879 | REQUIRE( ss.c_str() != rawChars ) |
| 4880 | with expansion: |
| 4881 | "hello" != "hello world!" |
| 4882 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4883 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4884 | PASSED: |
| 4885 | REQUIRE( isSubstring( ss ) == false ) |
| 4886 | with expansion: |
| 4887 | false == false |
| 4888 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4889 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4890 | PASSED: |
| 4891 | REQUIRE( isOwned( ss ) ) |
| 4892 | with expansion: |
| 4893 | true |
| 4894 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4895 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4896 | PASSED: |
| 4897 | REQUIRE( data( ss ) != data( s ) ) |
| 4898 | with expansion: |
| 4899 | "hello" != "hello world!" |
| 4900 | |
| 4901 | ------------------------------------------------------------------------------- |
| 4902 | StringRef |
| 4903 | Substrings |
| 4904 | non-zero-based substring |
| 4905 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4906 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4907 | ............................................................................... |
| 4908 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4909 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4910 | PASSED: |
| 4911 | REQUIRE( ss.size() == 6 ) |
| 4912 | with expansion: |
| 4913 | 6 == 6 |
| 4914 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4915 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4916 | PASSED: |
| 4917 | REQUIRE( std::strcmp( ss.c_str(), "world!" ) == 0 ) |
| 4918 | with expansion: |
| 4919 | 0 == 0 |
| 4920 | |
| 4921 | ------------------------------------------------------------------------------- |
| 4922 | StringRef |
| 4923 | Substrings |
| 4924 | Pointer values of full refs should match |
| 4925 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4926 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4927 | ............................................................................... |
| 4928 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4929 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4930 | PASSED: |
| 4931 | REQUIRE( s.c_str() == s2.c_str() ) |
| 4932 | with expansion: |
| 4933 | "hello world!" == "hello world!" |
| 4934 | |
| 4935 | ------------------------------------------------------------------------------- |
| 4936 | StringRef |
| 4937 | Substrings |
| 4938 | Pointer values of substring refs should not match |
| 4939 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4940 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4941 | ............................................................................... |
| 4942 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4943 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4944 | PASSED: |
| 4945 | REQUIRE( s.c_str() != ss.c_str() ) |
| 4946 | with expansion: |
| 4947 | "hello world!" != "hello" |
| 4948 | |
| 4949 | ------------------------------------------------------------------------------- |
| 4950 | StringRef |
| 4951 | Comparisons |
| 4952 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4953 | String.tests.cpp:<line number> |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4954 | ............................................................................... |
| 4955 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4956 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4957 | PASSED: |
| 4958 | REQUIRE( StringRef("hello") == StringRef("hello") ) |
| 4959 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 4960 | hello == hello |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4961 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4962 | String.tests.cpp:<line number>: |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4963 | PASSED: |
| 4964 | REQUIRE( StringRef("hello") != StringRef("cello") ) |
| 4965 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 4966 | hello != cello |
Phil Nash | 60f25c7 | 2017-06-29 11:19:08 +0100 | [diff] [blame] | 4967 | |
| 4968 | ------------------------------------------------------------------------------- |
| 4969 | StringRef |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4970 | from std::string |
| 4971 | implicitly constructed |
| 4972 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4973 | String.tests.cpp:<line number> |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4974 | ............................................................................... |
| 4975 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4976 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4977 | PASSED: |
| 4978 | REQUIRE( sr == "a standard string" ) |
| 4979 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 4980 | a standard string == "a standard string" |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4981 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4982 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4983 | PASSED: |
| 4984 | REQUIRE( sr.size() == stdStr.size() ) |
| 4985 | with expansion: |
| 4986 | 17 == 17 |
| 4987 | |
| 4988 | ------------------------------------------------------------------------------- |
| 4989 | StringRef |
| 4990 | from std::string |
| 4991 | explicitly constructed |
| 4992 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4993 | String.tests.cpp:<line number> |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4994 | ............................................................................... |
| 4995 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 4996 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 4997 | PASSED: |
| 4998 | REQUIRE( sr == "a standard string" ) |
| 4999 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 5000 | a standard string == "a standard string" |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5001 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5002 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5003 | PASSED: |
| 5004 | REQUIRE( sr.size() == stdStr.size() ) |
| 5005 | with expansion: |
| 5006 | 17 == 17 |
| 5007 | |
| 5008 | ------------------------------------------------------------------------------- |
| 5009 | StringRef |
| 5010 | from std::string |
| 5011 | assigned |
| 5012 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5013 | String.tests.cpp:<line number> |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5014 | ............................................................................... |
| 5015 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5016 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5017 | PASSED: |
| 5018 | REQUIRE( sr == "a standard string" ) |
| 5019 | with expansion: |
Phil Nash | fa3535e | 2017-08-14 08:50:44 +0100 | [diff] [blame] | 5020 | a standard string == "a standard string" |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5021 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5022 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5023 | PASSED: |
| 5024 | REQUIRE( sr.size() == stdStr.size() ) |
| 5025 | with expansion: |
| 5026 | 17 == 17 |
| 5027 | |
| 5028 | ------------------------------------------------------------------------------- |
| 5029 | StringRef |
| 5030 | to std::string |
| 5031 | implicitly constructed |
| 5032 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5033 | String.tests.cpp:<line number> |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5034 | ............................................................................... |
| 5035 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5036 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5037 | PASSED: |
| 5038 | REQUIRE( stdStr == "a stringref" ) |
| 5039 | with expansion: |
| 5040 | "a stringref" == "a stringref" |
| 5041 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5042 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5043 | PASSED: |
| 5044 | REQUIRE( stdStr.size() == sr.size() ) |
| 5045 | with expansion: |
| 5046 | 11 == 11 |
| 5047 | |
| 5048 | ------------------------------------------------------------------------------- |
| 5049 | StringRef |
| 5050 | to std::string |
| 5051 | explicitly constructed |
| 5052 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5053 | String.tests.cpp:<line number> |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5054 | ............................................................................... |
| 5055 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5056 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5057 | PASSED: |
| 5058 | REQUIRE( stdStr == "a stringref" ) |
| 5059 | with expansion: |
| 5060 | "a stringref" == "a stringref" |
| 5061 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5062 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5063 | PASSED: |
| 5064 | REQUIRE( stdStr.size() == sr.size() ) |
| 5065 | with expansion: |
| 5066 | 11 == 11 |
| 5067 | |
| 5068 | ------------------------------------------------------------------------------- |
| 5069 | StringRef |
| 5070 | to std::string |
| 5071 | assigned |
| 5072 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5073 | String.tests.cpp:<line number> |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5074 | ............................................................................... |
| 5075 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5076 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5077 | PASSED: |
| 5078 | REQUIRE( stdStr == "a stringref" ) |
| 5079 | with expansion: |
| 5080 | "a stringref" == "a stringref" |
| 5081 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5082 | String.tests.cpp:<line number>: |
Phil Nash | bb8c1fb | 2017-08-14 08:43:33 +0100 | [diff] [blame] | 5083 | PASSED: |
| 5084 | REQUIRE( stdStr.size() == sr.size() ) |
| 5085 | with expansion: |
| 5086 | 11 == 11 |
| 5087 | |
| 5088 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5089 | Stringifying std::chrono::duration helpers |
| 5090 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5091 | ToStringChrono.tests.cpp:<line number> |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5092 | ............................................................................... |
| 5093 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5094 | ToStringChrono.tests.cpp:<line number>: |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5095 | PASSED: |
| 5096 | REQUIRE( minute == seconds ) |
| 5097 | with expansion: |
| 5098 | 1 m == 60 s |
| 5099 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5100 | ToStringChrono.tests.cpp:<line number>: |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5101 | PASSED: |
| 5102 | REQUIRE( hour != seconds ) |
| 5103 | with expansion: |
| 5104 | 1 h != 60 s |
| 5105 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5106 | ToStringChrono.tests.cpp:<line number>: |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5107 | PASSED: |
| 5108 | REQUIRE( micro != milli ) |
| 5109 | with expansion: |
| 5110 | 1 us != 1 ms |
| 5111 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5112 | ToStringChrono.tests.cpp:<line number>: |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5113 | PASSED: |
| 5114 | REQUIRE( nano != micro ) |
| 5115 | with expansion: |
| 5116 | 1 ns != 1 us |
| 5117 | |
| 5118 | ------------------------------------------------------------------------------- |
| 5119 | Stringifying std::chrono::duration with weird ratios |
| 5120 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5121 | ToStringChrono.tests.cpp:<line number> |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5122 | ............................................................................... |
| 5123 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5124 | ToStringChrono.tests.cpp:<line number>: |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5125 | PASSED: |
| 5126 | REQUIRE( half_minute != femto_second ) |
| 5127 | with expansion: |
| 5128 | 1 [30/1]s != 1 fs |
| 5129 | |
Martin Hořeňovský | 8c32d0b | 2017-11-28 21:47:06 +0100 | [diff] [blame] | 5130 | ToStringChrono.tests.cpp:<line number>: |
| 5131 | PASSED: |
| 5132 | REQUIRE( pico_second != atto_second ) |
| 5133 | with expansion: |
| 5134 | 1 ps != 1 as |
| 5135 | |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5136 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5137 | Stringifying std::chrono::time_point<system_clock> |
| 5138 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5139 | ToStringChrono.tests.cpp:<line number> |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5140 | ............................................................................... |
| 5141 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5142 | ToStringChrono.tests.cpp:<line number>: |
Martin Hořeňovský | 79b405f | 2017-10-09 12:31:22 +0200 | [diff] [blame] | 5143 | PASSED: |
| 5144 | REQUIRE( now != later ) |
| 5145 | with expansion: |
| 5146 | {iso8601-timestamp} |
| 5147 | != |
| 5148 | {iso8601-timestamp} |
| 5149 | |
| 5150 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5151 | Tabs and newlines show in output |
| 5152 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5153 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5154 | ............................................................................... |
| 5155 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5156 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5157 | CHECK( s1 == s2 ) |
| 5158 | with expansion: |
| 5159 | "if ($b == 10) { |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 5160 | $a = 20; |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5161 | }" |
| 5162 | == |
| 5163 | "if ($b == 10) { |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 5164 | $a = 20; |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5165 | } |
| 5166 | " |
| 5167 | |
| 5168 | ------------------------------------------------------------------------------- |
| 5169 | Tag alias can be registered against tag patterns |
| 5170 | The same tag alias can only be registered once |
| 5171 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5172 | TagAlias.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5173 | ............................................................................... |
| 5174 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5175 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5176 | PASSED: |
| 5177 | CHECK_THAT( what, Contains( "[@zzz]" ) ) |
| 5178 | with expansion: |
Phil Nash | bada67b | 2017-05-05 18:25:02 +0100 | [diff] [blame] | 5179 | "error: tag alias, '[@zzz]' already registered. |
| 5180 | First seen at: file:2 |
| 5181 | Redefined at: file:10" contains: "[@zzz]" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5182 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5183 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5184 | PASSED: |
| 5185 | CHECK_THAT( what, Contains( "file" ) ) |
| 5186 | with expansion: |
Phil Nash | bada67b | 2017-05-05 18:25:02 +0100 | [diff] [blame] | 5187 | "error: tag alias, '[@zzz]' already registered. |
| 5188 | First seen at: file:2 |
| 5189 | Redefined at: file:10" contains: "file" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5190 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5191 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5192 | PASSED: |
| 5193 | CHECK_THAT( what, Contains( "2" ) ) |
| 5194 | with expansion: |
Phil Nash | bada67b | 2017-05-05 18:25:02 +0100 | [diff] [blame] | 5195 | "error: tag alias, '[@zzz]' already registered. |
| 5196 | First seen at: file:2 |
| 5197 | Redefined at: file:10" contains: "2" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5198 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5199 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5200 | PASSED: |
| 5201 | CHECK_THAT( what, Contains( "10" ) ) |
| 5202 | with expansion: |
Phil Nash | bada67b | 2017-05-05 18:25:02 +0100 | [diff] [blame] | 5203 | "error: tag alias, '[@zzz]' already registered. |
| 5204 | First seen at: file:2 |
| 5205 | Redefined at: file:10" contains: "10" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5206 | |
| 5207 | ------------------------------------------------------------------------------- |
| 5208 | Tag alias can be registered against tag patterns |
| 5209 | Tag aliases must be of the form [@name] |
| 5210 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5211 | TagAlias.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5212 | ............................................................................... |
| 5213 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5214 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5215 | PASSED: |
| 5216 | CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) ) |
| 5217 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5218 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5219 | PASSED: |
| 5220 | CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) ) |
| 5221 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5222 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5223 | PASSED: |
| 5224 | CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) ) |
| 5225 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5226 | TagAlias.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5227 | PASSED: |
| 5228 | CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) ) |
| 5229 | |
| 5230 | ------------------------------------------------------------------------------- |
| 5231 | Test case with one argument |
| 5232 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5233 | VariadicMacros.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5234 | ............................................................................... |
| 5235 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5236 | VariadicMacros.tests.cpp:<line number>: |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5237 | PASSED: |
| 5238 | with message: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5239 | no assertions |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5240 | |
| 5241 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5242 | Test enum bit values |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 5243 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5244 | Tricky.tests.cpp:<line number> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 5245 | ............................................................................... |
| 5246 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5247 | Tricky.tests.cpp:<line number>: |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 5248 | PASSED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5249 | REQUIRE( 0x<hex digits> == bit30and31 ) |
| 5250 | with expansion: |
| 5251 | 3221225472 (0x<hex digits>) == 3221225472 |
| 5252 | |
| 5253 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5254 | The NO_FAIL macro reports a failure but does not fail the test |
| 5255 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5256 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5257 | ............................................................................... |
| 5258 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5259 | Message.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5260 | FAILED - but was ok: |
| 5261 | CHECK_NOFAIL( 1 == 2 ) |
| 5262 | |
| 5263 | ------------------------------------------------------------------------------- |
| 5264 | This test 'should' fail but doesn't |
| 5265 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5266 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5267 | ............................................................................... |
| 5268 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5269 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5270 | PASSED: |
| 5271 | with message: |
| 5272 | oops! |
| 5273 | |
| 5274 | ------------------------------------------------------------------------------- |
| 5275 | Tracker |
| 5276 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5277 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5278 | ............................................................................... |
| 5279 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5280 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5281 | PASSED: |
| 5282 | REQUIRE( testCase.isOpen() ) |
| 5283 | with expansion: |
| 5284 | true |
| 5285 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5286 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5287 | PASSED: |
| 5288 | REQUIRE( s1.isOpen() ) |
| 5289 | with expansion: |
| 5290 | true |
| 5291 | |
| 5292 | ------------------------------------------------------------------------------- |
| 5293 | Tracker |
| 5294 | successfully close one section |
| 5295 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5296 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5297 | ............................................................................... |
| 5298 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5299 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5300 | PASSED: |
| 5301 | REQUIRE( s1.isSuccessfullyCompleted() ) |
| 5302 | with expansion: |
| 5303 | true |
| 5304 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5305 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5306 | PASSED: |
| 5307 | REQUIRE( testCase.isComplete() == false ) |
| 5308 | with expansion: |
| 5309 | false == false |
| 5310 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5311 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5312 | PASSED: |
| 5313 | REQUIRE( ctx.completedCycle() ) |
| 5314 | with expansion: |
| 5315 | true |
| 5316 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5317 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5318 | PASSED: |
| 5319 | REQUIRE( testCase.isSuccessfullyCompleted() ) |
| 5320 | with expansion: |
| 5321 | true |
| 5322 | |
| 5323 | ------------------------------------------------------------------------------- |
| 5324 | Tracker |
| 5325 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5326 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5327 | ............................................................................... |
| 5328 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5329 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5330 | PASSED: |
| 5331 | REQUIRE( testCase.isOpen() ) |
| 5332 | with expansion: |
| 5333 | true |
| 5334 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5335 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5336 | PASSED: |
| 5337 | REQUIRE( s1.isOpen() ) |
| 5338 | with expansion: |
| 5339 | true |
| 5340 | |
| 5341 | ------------------------------------------------------------------------------- |
| 5342 | Tracker |
| 5343 | fail one section |
| 5344 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5345 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5346 | ............................................................................... |
| 5347 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5348 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5349 | PASSED: |
| 5350 | REQUIRE( s1.isComplete() ) |
| 5351 | with expansion: |
| 5352 | true |
| 5353 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5354 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5355 | PASSED: |
| 5356 | REQUIRE( s1.isSuccessfullyCompleted() == false ) |
| 5357 | with expansion: |
| 5358 | false == false |
| 5359 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5360 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5361 | PASSED: |
| 5362 | REQUIRE( testCase.isComplete() == false ) |
| 5363 | with expansion: |
| 5364 | false == false |
| 5365 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5366 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5367 | PASSED: |
| 5368 | REQUIRE( ctx.completedCycle() ) |
| 5369 | with expansion: |
| 5370 | true |
| 5371 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5372 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5373 | PASSED: |
| 5374 | REQUIRE( testCase.isSuccessfullyCompleted() == false ) |
| 5375 | with expansion: |
| 5376 | false == false |
| 5377 | |
| 5378 | ------------------------------------------------------------------------------- |
| 5379 | Tracker |
| 5380 | fail one section |
| 5381 | re-enter after failed section |
| 5382 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5383 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5384 | ............................................................................... |
| 5385 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5386 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5387 | PASSED: |
| 5388 | REQUIRE( testCase2.isOpen() ) |
| 5389 | with expansion: |
| 5390 | true |
| 5391 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5392 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5393 | PASSED: |
| 5394 | REQUIRE( s1b.isOpen() == false ) |
| 5395 | with expansion: |
| 5396 | false == false |
| 5397 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5398 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5399 | PASSED: |
| 5400 | REQUIRE( ctx.completedCycle() ) |
| 5401 | with expansion: |
| 5402 | true |
| 5403 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5404 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5405 | PASSED: |
| 5406 | REQUIRE( testCase.isComplete() ) |
| 5407 | with expansion: |
| 5408 | true |
| 5409 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5410 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5411 | PASSED: |
| 5412 | REQUIRE( testCase.isSuccessfullyCompleted() ) |
| 5413 | with expansion: |
| 5414 | true |
| 5415 | |
| 5416 | ------------------------------------------------------------------------------- |
| 5417 | Tracker |
| 5418 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5419 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5420 | ............................................................................... |
| 5421 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5422 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5423 | PASSED: |
| 5424 | REQUIRE( testCase.isOpen() ) |
| 5425 | with expansion: |
| 5426 | true |
| 5427 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5428 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5429 | PASSED: |
| 5430 | REQUIRE( s1.isOpen() ) |
| 5431 | with expansion: |
| 5432 | true |
| 5433 | |
| 5434 | ------------------------------------------------------------------------------- |
| 5435 | Tracker |
| 5436 | fail one section |
| 5437 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5438 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5439 | ............................................................................... |
| 5440 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5441 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5442 | PASSED: |
| 5443 | REQUIRE( s1.isComplete() ) |
| 5444 | with expansion: |
| 5445 | true |
| 5446 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5447 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5448 | PASSED: |
| 5449 | REQUIRE( s1.isSuccessfullyCompleted() == false ) |
| 5450 | with expansion: |
| 5451 | false == false |
| 5452 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5453 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5454 | PASSED: |
| 5455 | REQUIRE( testCase.isComplete() == false ) |
| 5456 | with expansion: |
| 5457 | false == false |
| 5458 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5459 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5460 | PASSED: |
| 5461 | REQUIRE( ctx.completedCycle() ) |
| 5462 | with expansion: |
| 5463 | true |
| 5464 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5465 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5466 | PASSED: |
| 5467 | REQUIRE( testCase.isSuccessfullyCompleted() == false ) |
| 5468 | with expansion: |
| 5469 | false == false |
| 5470 | |
| 5471 | ------------------------------------------------------------------------------- |
| 5472 | Tracker |
| 5473 | fail one section |
| 5474 | re-enter after failed section and find next section |
| 5475 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5476 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5477 | ............................................................................... |
| 5478 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5479 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5480 | PASSED: |
| 5481 | REQUIRE( testCase2.isOpen() ) |
| 5482 | with expansion: |
| 5483 | true |
| 5484 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5485 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5486 | PASSED: |
| 5487 | REQUIRE( s1b.isOpen() == false ) |
| 5488 | with expansion: |
| 5489 | false == false |
| 5490 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5491 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5492 | PASSED: |
| 5493 | REQUIRE( s2.isOpen() ) |
| 5494 | with expansion: |
| 5495 | true |
| 5496 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5497 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5498 | PASSED: |
| 5499 | REQUIRE( ctx.completedCycle() ) |
| 5500 | with expansion: |
| 5501 | true |
| 5502 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5503 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5504 | PASSED: |
| 5505 | REQUIRE( testCase.isComplete() ) |
| 5506 | with expansion: |
| 5507 | true |
| 5508 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5509 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5510 | PASSED: |
| 5511 | REQUIRE( testCase.isSuccessfullyCompleted() ) |
| 5512 | with expansion: |
| 5513 | true |
| 5514 | |
| 5515 | ------------------------------------------------------------------------------- |
| 5516 | Tracker |
| 5517 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5518 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5519 | ............................................................................... |
| 5520 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5521 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5522 | PASSED: |
| 5523 | REQUIRE( testCase.isOpen() ) |
| 5524 | with expansion: |
| 5525 | true |
| 5526 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5527 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5528 | PASSED: |
| 5529 | REQUIRE( s1.isOpen() ) |
| 5530 | with expansion: |
| 5531 | true |
| 5532 | |
| 5533 | ------------------------------------------------------------------------------- |
| 5534 | Tracker |
| 5535 | successfully close one section, then find another |
| 5536 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5537 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5538 | ............................................................................... |
| 5539 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5540 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5541 | PASSED: |
| 5542 | REQUIRE( s2.isOpen() == false ) |
| 5543 | with expansion: |
| 5544 | false == false |
| 5545 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5546 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5547 | PASSED: |
| 5548 | REQUIRE( testCase.isComplete() == false ) |
| 5549 | with expansion: |
| 5550 | false == false |
| 5551 | |
| 5552 | ------------------------------------------------------------------------------- |
| 5553 | Tracker |
| 5554 | successfully close one section, then find another |
| 5555 | Re-enter - skips S1 and enters S2 |
| 5556 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5557 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5558 | ............................................................................... |
| 5559 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5560 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5561 | PASSED: |
| 5562 | REQUIRE( testCase2.isOpen() ) |
| 5563 | with expansion: |
| 5564 | true |
| 5565 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5566 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5567 | PASSED: |
| 5568 | REQUIRE( s1b.isOpen() == false ) |
| 5569 | with expansion: |
| 5570 | false == false |
| 5571 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5572 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5573 | PASSED: |
| 5574 | REQUIRE( s2b.isOpen() ) |
| 5575 | with expansion: |
| 5576 | true |
| 5577 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5578 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5579 | PASSED: |
| 5580 | REQUIRE( ctx.completedCycle() == false ) |
| 5581 | with expansion: |
| 5582 | false == false |
| 5583 | |
| 5584 | ------------------------------------------------------------------------------- |
| 5585 | Tracker |
| 5586 | successfully close one section, then find another |
| 5587 | Re-enter - skips S1 and enters S2 |
| 5588 | Successfully close S2 |
| 5589 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5590 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5591 | ............................................................................... |
| 5592 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5593 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5594 | PASSED: |
| 5595 | REQUIRE( ctx.completedCycle() ) |
| 5596 | with expansion: |
| 5597 | true |
| 5598 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5599 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5600 | PASSED: |
| 5601 | REQUIRE( s2b.isSuccessfullyCompleted() ) |
| 5602 | with expansion: |
| 5603 | true |
| 5604 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5605 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5606 | PASSED: |
| 5607 | REQUIRE( testCase2.isComplete() == false ) |
| 5608 | with expansion: |
| 5609 | false == false |
| 5610 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5611 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5612 | PASSED: |
| 5613 | REQUIRE( testCase2.isSuccessfullyCompleted() ) |
| 5614 | with expansion: |
| 5615 | true |
| 5616 | |
| 5617 | ------------------------------------------------------------------------------- |
| 5618 | Tracker |
| 5619 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5620 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5621 | ............................................................................... |
| 5622 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5623 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5624 | PASSED: |
| 5625 | REQUIRE( testCase.isOpen() ) |
| 5626 | with expansion: |
| 5627 | true |
| 5628 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5629 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5630 | PASSED: |
| 5631 | REQUIRE( s1.isOpen() ) |
| 5632 | with expansion: |
| 5633 | true |
| 5634 | |
| 5635 | ------------------------------------------------------------------------------- |
| 5636 | Tracker |
| 5637 | successfully close one section, then find another |
| 5638 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5639 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5640 | ............................................................................... |
| 5641 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5642 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5643 | PASSED: |
| 5644 | REQUIRE( s2.isOpen() == false ) |
| 5645 | with expansion: |
| 5646 | false == false |
| 5647 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5648 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5649 | PASSED: |
| 5650 | REQUIRE( testCase.isComplete() == false ) |
| 5651 | with expansion: |
| 5652 | false == false |
| 5653 | |
| 5654 | ------------------------------------------------------------------------------- |
| 5655 | Tracker |
| 5656 | successfully close one section, then find another |
| 5657 | Re-enter - skips S1 and enters S2 |
| 5658 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5659 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5660 | ............................................................................... |
| 5661 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5662 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5663 | PASSED: |
| 5664 | REQUIRE( testCase2.isOpen() ) |
| 5665 | with expansion: |
| 5666 | true |
| 5667 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5668 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5669 | PASSED: |
| 5670 | REQUIRE( s1b.isOpen() == false ) |
| 5671 | with expansion: |
| 5672 | false == false |
| 5673 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5674 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5675 | PASSED: |
| 5676 | REQUIRE( s2b.isOpen() ) |
| 5677 | with expansion: |
| 5678 | true |
| 5679 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5680 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5681 | PASSED: |
| 5682 | REQUIRE( ctx.completedCycle() == false ) |
| 5683 | with expansion: |
| 5684 | false == false |
| 5685 | |
| 5686 | ------------------------------------------------------------------------------- |
| 5687 | Tracker |
| 5688 | successfully close one section, then find another |
| 5689 | Re-enter - skips S1 and enters S2 |
| 5690 | fail S2 |
| 5691 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5692 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5693 | ............................................................................... |
| 5694 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5695 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5696 | PASSED: |
| 5697 | REQUIRE( ctx.completedCycle() ) |
| 5698 | with expansion: |
| 5699 | true |
| 5700 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5701 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5702 | PASSED: |
| 5703 | REQUIRE( s2b.isComplete() ) |
| 5704 | with expansion: |
| 5705 | true |
| 5706 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5707 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5708 | PASSED: |
| 5709 | REQUIRE( s2b.isSuccessfullyCompleted() == false ) |
| 5710 | with expansion: |
| 5711 | false == false |
| 5712 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5713 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5714 | PASSED: |
| 5715 | REQUIRE( testCase2.isSuccessfullyCompleted() == false ) |
| 5716 | with expansion: |
| 5717 | false == false |
| 5718 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5719 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5720 | PASSED: |
| 5721 | REQUIRE( testCase3.isOpen() ) |
| 5722 | with expansion: |
| 5723 | true |
| 5724 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5725 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5726 | PASSED: |
| 5727 | REQUIRE( s1c.isOpen() == false ) |
| 5728 | with expansion: |
| 5729 | false == false |
| 5730 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5731 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5732 | PASSED: |
| 5733 | REQUIRE( s2c.isOpen() == false ) |
| 5734 | with expansion: |
| 5735 | false == false |
| 5736 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5737 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5738 | PASSED: |
| 5739 | REQUIRE( testCase3.isSuccessfullyCompleted() ) |
| 5740 | with expansion: |
| 5741 | true |
| 5742 | |
| 5743 | ------------------------------------------------------------------------------- |
| 5744 | Tracker |
| 5745 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5746 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5747 | ............................................................................... |
| 5748 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5749 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5750 | PASSED: |
| 5751 | REQUIRE( testCase.isOpen() ) |
| 5752 | with expansion: |
| 5753 | true |
| 5754 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5755 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5756 | PASSED: |
| 5757 | REQUIRE( s1.isOpen() ) |
| 5758 | with expansion: |
| 5759 | true |
| 5760 | |
| 5761 | ------------------------------------------------------------------------------- |
| 5762 | Tracker |
| 5763 | open a nested section |
| 5764 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5765 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5766 | ............................................................................... |
| 5767 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5768 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5769 | PASSED: |
| 5770 | REQUIRE( s2.isOpen() ) |
| 5771 | with expansion: |
| 5772 | true |
| 5773 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5774 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5775 | PASSED: |
| 5776 | REQUIRE( s2.isComplete() ) |
| 5777 | with expansion: |
| 5778 | true |
| 5779 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5780 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5781 | PASSED: |
| 5782 | REQUIRE( s1.isComplete() == false ) |
| 5783 | with expansion: |
| 5784 | false == false |
| 5785 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5786 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5787 | PASSED: |
| 5788 | REQUIRE( s1.isComplete() ) |
| 5789 | with expansion: |
| 5790 | true |
| 5791 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5792 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5793 | PASSED: |
| 5794 | REQUIRE( testCase.isComplete() == false ) |
| 5795 | with expansion: |
| 5796 | false == false |
| 5797 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5798 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5799 | PASSED: |
| 5800 | REQUIRE( testCase.isComplete() ) |
| 5801 | with expansion: |
| 5802 | true |
| 5803 | |
| 5804 | ------------------------------------------------------------------------------- |
| 5805 | Tracker |
| 5806 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5807 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5808 | ............................................................................... |
| 5809 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5810 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5811 | PASSED: |
| 5812 | REQUIRE( testCase.isOpen() ) |
| 5813 | with expansion: |
| 5814 | true |
| 5815 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5816 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5817 | PASSED: |
| 5818 | REQUIRE( s1.isOpen() ) |
| 5819 | with expansion: |
| 5820 | true |
| 5821 | |
| 5822 | ------------------------------------------------------------------------------- |
| 5823 | Tracker |
| 5824 | start a generator |
| 5825 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5826 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5827 | ............................................................................... |
| 5828 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5829 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5830 | PASSED: |
| 5831 | REQUIRE( g1.isOpen() ) |
| 5832 | with expansion: |
| 5833 | true |
| 5834 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5835 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5836 | PASSED: |
| 5837 | REQUIRE( g1.index() == 0 ) |
| 5838 | with expansion: |
| 5839 | 0 == 0 |
| 5840 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5841 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5842 | PASSED: |
| 5843 | REQUIRE( g1.isComplete() == false ) |
| 5844 | with expansion: |
| 5845 | false == false |
| 5846 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5847 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5848 | PASSED: |
| 5849 | REQUIRE( s1.isComplete() == false ) |
| 5850 | with expansion: |
| 5851 | false == false |
| 5852 | |
| 5853 | ------------------------------------------------------------------------------- |
| 5854 | Tracker |
| 5855 | start a generator |
| 5856 | close outer section |
| 5857 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5858 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5859 | ............................................................................... |
| 5860 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5861 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5862 | PASSED: |
| 5863 | REQUIRE( s1.isComplete() == false ) |
| 5864 | with expansion: |
| 5865 | false == false |
| 5866 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5867 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5868 | PASSED: |
| 5869 | REQUIRE( testCase.isSuccessfullyCompleted() == false ) |
| 5870 | with expansion: |
| 5871 | false == false |
| 5872 | |
| 5873 | ------------------------------------------------------------------------------- |
| 5874 | Tracker |
| 5875 | start a generator |
| 5876 | close outer section |
| 5877 | Re-enter for second generation |
| 5878 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5879 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5880 | ............................................................................... |
| 5881 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5882 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5883 | PASSED: |
| 5884 | REQUIRE( testCase2.isOpen() ) |
| 5885 | with expansion: |
| 5886 | true |
| 5887 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5888 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5889 | PASSED: |
| 5890 | REQUIRE( s1b.isOpen() ) |
| 5891 | with expansion: |
| 5892 | true |
| 5893 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5894 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5895 | PASSED: |
| 5896 | REQUIRE( g1b.isOpen() ) |
| 5897 | with expansion: |
| 5898 | true |
| 5899 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5900 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5901 | PASSED: |
| 5902 | REQUIRE( g1b.index() == 1 ) |
| 5903 | with expansion: |
| 5904 | 1 == 1 |
| 5905 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5906 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5907 | PASSED: |
| 5908 | REQUIRE( s1.isComplete() == false ) |
| 5909 | with expansion: |
| 5910 | false == false |
| 5911 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5912 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5913 | PASSED: |
| 5914 | REQUIRE( s1b.isComplete() ) |
| 5915 | with expansion: |
| 5916 | true |
| 5917 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5918 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5919 | PASSED: |
| 5920 | REQUIRE( g1b.isComplete() ) |
| 5921 | with expansion: |
| 5922 | true |
| 5923 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5924 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5925 | PASSED: |
| 5926 | REQUIRE( testCase2.isComplete() ) |
| 5927 | with expansion: |
| 5928 | true |
| 5929 | |
| 5930 | ------------------------------------------------------------------------------- |
| 5931 | Tracker |
| 5932 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5933 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5934 | ............................................................................... |
| 5935 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5936 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5937 | PASSED: |
| 5938 | REQUIRE( testCase.isOpen() ) |
| 5939 | with expansion: |
| 5940 | true |
| 5941 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5942 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5943 | PASSED: |
| 5944 | REQUIRE( s1.isOpen() ) |
| 5945 | with expansion: |
| 5946 | true |
| 5947 | |
| 5948 | ------------------------------------------------------------------------------- |
| 5949 | Tracker |
| 5950 | start a generator |
| 5951 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5952 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5953 | ............................................................................... |
| 5954 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5955 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5956 | PASSED: |
| 5957 | REQUIRE( g1.isOpen() ) |
| 5958 | with expansion: |
| 5959 | true |
| 5960 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5961 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5962 | PASSED: |
| 5963 | REQUIRE( g1.index() == 0 ) |
| 5964 | with expansion: |
| 5965 | 0 == 0 |
| 5966 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5967 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5968 | PASSED: |
| 5969 | REQUIRE( g1.isComplete() == false ) |
| 5970 | with expansion: |
| 5971 | false == false |
| 5972 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5973 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5974 | PASSED: |
| 5975 | REQUIRE( s1.isComplete() == false ) |
| 5976 | with expansion: |
| 5977 | false == false |
| 5978 | |
| 5979 | ------------------------------------------------------------------------------- |
| 5980 | Tracker |
| 5981 | start a generator |
| 5982 | Start a new inner section |
| 5983 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5984 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5985 | ............................................................................... |
| 5986 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5987 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5988 | PASSED: |
| 5989 | REQUIRE( s2.isOpen() ) |
| 5990 | with expansion: |
| 5991 | true |
| 5992 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5993 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5994 | PASSED: |
| 5995 | REQUIRE( s2.isComplete() ) |
| 5996 | with expansion: |
| 5997 | true |
| 5998 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 5999 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6000 | PASSED: |
| 6001 | REQUIRE( s1.isComplete() == false ) |
| 6002 | with expansion: |
| 6003 | false == false |
| 6004 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6005 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6006 | PASSED: |
| 6007 | REQUIRE( testCase.isComplete() == false ) |
| 6008 | with expansion: |
| 6009 | false == false |
| 6010 | |
| 6011 | ------------------------------------------------------------------------------- |
| 6012 | Tracker |
| 6013 | start a generator |
| 6014 | Start a new inner section |
| 6015 | Re-enter for second generation |
| 6016 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6017 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6018 | ............................................................................... |
| 6019 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6020 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6021 | PASSED: |
| 6022 | REQUIRE( testCase2.isOpen() ) |
| 6023 | with expansion: |
| 6024 | true |
| 6025 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6026 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6027 | PASSED: |
| 6028 | REQUIRE( s1b.isOpen() ) |
| 6029 | with expansion: |
| 6030 | true |
| 6031 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6032 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6033 | PASSED: |
| 6034 | REQUIRE( g1b.isOpen() ) |
| 6035 | with expansion: |
| 6036 | true |
| 6037 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6038 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6039 | PASSED: |
| 6040 | REQUIRE( g1b.index() == 1 ) |
| 6041 | with expansion: |
| 6042 | 1 == 1 |
| 6043 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6044 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6045 | PASSED: |
| 6046 | REQUIRE( s2b.isOpen() ) |
| 6047 | with expansion: |
| 6048 | true |
| 6049 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6050 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6051 | PASSED: |
| 6052 | REQUIRE( s2b.isComplete() ) |
| 6053 | with expansion: |
| 6054 | true |
| 6055 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6056 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6057 | PASSED: |
| 6058 | REQUIRE( g1b.isComplete() ) |
| 6059 | with expansion: |
| 6060 | true |
| 6061 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6062 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6063 | PASSED: |
| 6064 | REQUIRE( s1b.isComplete() ) |
| 6065 | with expansion: |
| 6066 | true |
| 6067 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6068 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6069 | PASSED: |
| 6070 | REQUIRE( testCase2.isComplete() ) |
| 6071 | with expansion: |
| 6072 | true |
| 6073 | |
| 6074 | ------------------------------------------------------------------------------- |
| 6075 | Tracker |
| 6076 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6077 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6078 | ............................................................................... |
| 6079 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6080 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6081 | PASSED: |
| 6082 | REQUIRE( testCase.isOpen() ) |
| 6083 | with expansion: |
| 6084 | true |
| 6085 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6086 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6087 | PASSED: |
| 6088 | REQUIRE( s1.isOpen() ) |
| 6089 | with expansion: |
| 6090 | true |
| 6091 | |
| 6092 | ------------------------------------------------------------------------------- |
| 6093 | Tracker |
| 6094 | start a generator |
| 6095 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6096 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6097 | ............................................................................... |
| 6098 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6099 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6100 | PASSED: |
| 6101 | REQUIRE( g1.isOpen() ) |
| 6102 | with expansion: |
| 6103 | true |
| 6104 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6105 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6106 | PASSED: |
| 6107 | REQUIRE( g1.index() == 0 ) |
| 6108 | with expansion: |
| 6109 | 0 == 0 |
| 6110 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6111 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6112 | PASSED: |
| 6113 | REQUIRE( g1.isComplete() == false ) |
| 6114 | with expansion: |
| 6115 | false == false |
| 6116 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6117 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6118 | PASSED: |
| 6119 | REQUIRE( s1.isComplete() == false ) |
| 6120 | with expansion: |
| 6121 | false == false |
| 6122 | |
| 6123 | ------------------------------------------------------------------------------- |
| 6124 | Tracker |
| 6125 | start a generator |
| 6126 | Fail an inner section |
| 6127 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6128 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6129 | ............................................................................... |
| 6130 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6131 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6132 | PASSED: |
| 6133 | REQUIRE( s2.isOpen() ) |
| 6134 | with expansion: |
| 6135 | true |
| 6136 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6137 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6138 | PASSED: |
| 6139 | REQUIRE( s2.isComplete() ) |
| 6140 | with expansion: |
| 6141 | true |
| 6142 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6143 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6144 | PASSED: |
| 6145 | REQUIRE( s2.isSuccessfullyCompleted() == false ) |
| 6146 | with expansion: |
| 6147 | false == false |
| 6148 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6149 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6150 | PASSED: |
| 6151 | REQUIRE( s1.isComplete() == false ) |
| 6152 | with expansion: |
| 6153 | false == false |
| 6154 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6155 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6156 | PASSED: |
| 6157 | REQUIRE( testCase.isComplete() == false ) |
| 6158 | with expansion: |
| 6159 | false == false |
| 6160 | |
| 6161 | ------------------------------------------------------------------------------- |
| 6162 | Tracker |
| 6163 | start a generator |
| 6164 | Fail an inner section |
| 6165 | Re-enter for second generation |
| 6166 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6167 | PartTracker.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6168 | ............................................................................... |
| 6169 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6170 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6171 | PASSED: |
| 6172 | REQUIRE( testCase2.isOpen() ) |
| 6173 | with expansion: |
| 6174 | true |
| 6175 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6176 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6177 | PASSED: |
| 6178 | REQUIRE( s1b.isOpen() ) |
| 6179 | with expansion: |
| 6180 | true |
| 6181 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6182 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6183 | PASSED: |
| 6184 | REQUIRE( g1b.isOpen() ) |
| 6185 | with expansion: |
| 6186 | true |
| 6187 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6188 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6189 | PASSED: |
| 6190 | REQUIRE( g1b.index() == 0 ) |
| 6191 | with expansion: |
| 6192 | 0 == 0 |
| 6193 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6194 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6195 | PASSED: |
| 6196 | REQUIRE( s2b.isOpen() == false ) |
| 6197 | with expansion: |
| 6198 | false == false |
| 6199 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6200 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6201 | PASSED: |
| 6202 | REQUIRE( g1b.isComplete() == false ) |
| 6203 | with expansion: |
| 6204 | false == false |
| 6205 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6206 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6207 | PASSED: |
| 6208 | REQUIRE( s1b.isComplete() == false ) |
| 6209 | with expansion: |
| 6210 | false == false |
| 6211 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6212 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6213 | PASSED: |
| 6214 | REQUIRE( testCase2.isComplete() == false ) |
| 6215 | with expansion: |
| 6216 | false == false |
| 6217 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6218 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6219 | PASSED: |
| 6220 | REQUIRE( testCase3.isOpen() ) |
| 6221 | with expansion: |
| 6222 | true |
| 6223 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6224 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6225 | PASSED: |
| 6226 | REQUIRE( s1c.isOpen() ) |
| 6227 | with expansion: |
| 6228 | true |
| 6229 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6230 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6231 | PASSED: |
| 6232 | REQUIRE( g1c.isOpen() ) |
| 6233 | with expansion: |
| 6234 | true |
| 6235 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6236 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6237 | PASSED: |
| 6238 | REQUIRE( g1c.index() == 1 ) |
| 6239 | with expansion: |
| 6240 | 1 == 1 |
| 6241 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6242 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6243 | PASSED: |
| 6244 | REQUIRE( s2c.isOpen() ) |
| 6245 | with expansion: |
| 6246 | true |
| 6247 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6248 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6249 | PASSED: |
| 6250 | REQUIRE( s2c.isComplete() ) |
| 6251 | with expansion: |
| 6252 | true |
| 6253 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6254 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6255 | PASSED: |
| 6256 | REQUIRE( g1c.isComplete() ) |
| 6257 | with expansion: |
| 6258 | true |
| 6259 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6260 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6261 | PASSED: |
| 6262 | REQUIRE( s1c.isComplete() ) |
| 6263 | with expansion: |
| 6264 | true |
| 6265 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6266 | PartTracker.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6267 | PASSED: |
| 6268 | REQUIRE( testCase3.isComplete() ) |
| 6269 | with expansion: |
| 6270 | true |
| 6271 | |
| 6272 | ------------------------------------------------------------------------------- |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6273 | Unexpected exceptions can be translated |
| 6274 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6275 | Exception.tests.cpp:<line number> |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6276 | ............................................................................... |
| 6277 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6278 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6279 | due to unexpected exception with message: |
| 6280 | 3.14 |
| 6281 | |
| 6282 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6283 | Use a custom approx |
| 6284 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6285 | Approx.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6286 | ............................................................................... |
| 6287 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6288 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6289 | PASSED: |
| 6290 | REQUIRE( d == approx( 1.23 ) ) |
| 6291 | with expansion: |
| 6292 | 1.23 == Approx( 1.23 ) |
| 6293 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6294 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6295 | PASSED: |
| 6296 | REQUIRE( d == approx( 1.22 ) ) |
| 6297 | with expansion: |
| 6298 | 1.23 == Approx( 1.22 ) |
| 6299 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6300 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6301 | PASSED: |
| 6302 | REQUIRE( d == approx( 1.24 ) ) |
| 6303 | with expansion: |
| 6304 | 1.23 == Approx( 1.24 ) |
| 6305 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6306 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6307 | PASSED: |
| 6308 | REQUIRE( d != approx( 1.25 ) ) |
| 6309 | with expansion: |
| 6310 | 1.23 != Approx( 1.25 ) |
| 6311 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6312 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6313 | PASSED: |
| 6314 | REQUIRE( approx( d ) == 1.23 ) |
| 6315 | with expansion: |
| 6316 | Approx( 1.23 ) == 1.23 |
| 6317 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6318 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6319 | PASSED: |
| 6320 | REQUIRE( approx( d ) == 1.22 ) |
| 6321 | with expansion: |
| 6322 | Approx( 1.23 ) == 1.22 |
| 6323 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6324 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6325 | PASSED: |
| 6326 | REQUIRE( approx( d ) == 1.24 ) |
| 6327 | with expansion: |
| 6328 | Approx( 1.23 ) == 1.24 |
| 6329 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6330 | Approx.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6331 | PASSED: |
| 6332 | REQUIRE( approx( d ) != 1.25 ) |
| 6333 | with expansion: |
| 6334 | Approx( 1.23 ) != 1.25 |
| 6335 | |
| 6336 | ------------------------------------------------------------------------------- |
| 6337 | Variadic macros |
| 6338 | Section with one argument |
| 6339 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6340 | VariadicMacros.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6341 | ............................................................................... |
| 6342 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6343 | VariadicMacros.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6344 | PASSED: |
| 6345 | with message: |
| 6346 | no assertions |
| 6347 | |
| 6348 | ------------------------------------------------------------------------------- |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6349 | Vector matchers |
| 6350 | Contains (element) |
| 6351 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6352 | Matchers.tests.cpp:<line number> |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6353 | ............................................................................... |
| 6354 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6355 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6356 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6357 | CHECK_THAT( v, VectorContains(1) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6358 | with expansion: |
| 6359 | { 1, 2, 3 } Contains: 1 |
| 6360 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6361 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6362 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6363 | CHECK_THAT( v, VectorContains(2) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6364 | with expansion: |
| 6365 | { 1, 2, 3 } Contains: 2 |
| 6366 | |
| 6367 | ------------------------------------------------------------------------------- |
| 6368 | Vector matchers |
| 6369 | Contains (vector) |
| 6370 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6371 | Matchers.tests.cpp:<line number> |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6372 | ............................................................................... |
| 6373 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6374 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6375 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6376 | CHECK_THAT( v, Contains(v2) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6377 | with expansion: |
| 6378 | { 1, 2, 3 } Contains: { 1, 2 } |
| 6379 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6380 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6381 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6382 | CHECK_THAT( v, Contains(v2) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6383 | with expansion: |
| 6384 | { 1, 2, 3 } Contains: { 1, 2, 3 } |
| 6385 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6386 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6387 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6388 | CHECK_THAT( v, Contains(empty) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6389 | with expansion: |
| 6390 | { 1, 2, 3 } Contains: { } |
| 6391 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6392 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6393 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6394 | CHECK_THAT( empty, Contains(empty) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6395 | with expansion: |
| 6396 | { } Contains: { } |
| 6397 | |
| 6398 | ------------------------------------------------------------------------------- |
| 6399 | Vector matchers |
Phil Nash | 3537b78 | 2017-11-13 10:06:26 +0000 | [diff] [blame] | 6400 | Contains (element), composed |
| 6401 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6402 | Matchers.tests.cpp:<line number> |
Phil Nash | 3537b78 | 2017-11-13 10:06:26 +0000 | [diff] [blame] | 6403 | ............................................................................... |
| 6404 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6405 | Matchers.tests.cpp:<line number>: |
Phil Nash | 3537b78 | 2017-11-13 10:06:26 +0000 | [diff] [blame] | 6406 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6407 | CHECK_THAT( v, VectorContains(1) && VectorContains(2) ) |
Phil Nash | 3537b78 | 2017-11-13 10:06:26 +0000 | [diff] [blame] | 6408 | with expansion: |
| 6409 | { 1, 2, 3 } ( Contains: 1 and Contains: 2 ) |
| 6410 | |
| 6411 | ------------------------------------------------------------------------------- |
| 6412 | Vector matchers |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6413 | Equals |
| 6414 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6415 | Matchers.tests.cpp:<line number> |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6416 | ............................................................................... |
| 6417 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6418 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6419 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6420 | CHECK_THAT( v, Equals(v) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6421 | with expansion: |
| 6422 | { 1, 2, 3 } Equals: { 1, 2, 3 } |
| 6423 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6424 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6425 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6426 | CHECK_THAT( empty, Equals(empty) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6427 | with expansion: |
| 6428 | { } Equals: { } |
| 6429 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6430 | Matchers.tests.cpp:<line number>: |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6431 | PASSED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6432 | CHECK_THAT( v, Equals(v2) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6433 | with expansion: |
| 6434 | { 1, 2, 3 } Equals: { 1, 2, 3 } |
| 6435 | |
| 6436 | ------------------------------------------------------------------------------- |
| 6437 | Vector matchers that fail |
| 6438 | Contains (element) |
| 6439 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6440 | Matchers.tests.cpp:<line number> |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6441 | ............................................................................... |
| 6442 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6443 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6444 | CHECK_THAT( v, VectorContains(-1) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6445 | with expansion: |
| 6446 | { 1, 2, 3 } Contains: -1 |
| 6447 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6448 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6449 | CHECK_THAT( empty, VectorContains(1) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6450 | with expansion: |
| 6451 | { } Contains: 1 |
| 6452 | |
| 6453 | ------------------------------------------------------------------------------- |
| 6454 | Vector matchers that fail |
| 6455 | Contains (vector) |
| 6456 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6457 | Matchers.tests.cpp:<line number> |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6458 | ............................................................................... |
| 6459 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6460 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6461 | CHECK_THAT( empty, Contains(v) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6462 | with expansion: |
| 6463 | { } Contains: { 1, 2, 3 } |
| 6464 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6465 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6466 | CHECK_THAT( v, Contains(v2) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6467 | with expansion: |
| 6468 | { 1, 2, 3 } Contains: { 1, 2, 4 } |
| 6469 | |
| 6470 | ------------------------------------------------------------------------------- |
| 6471 | Vector matchers that fail |
| 6472 | Equals |
| 6473 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6474 | Matchers.tests.cpp:<line number> |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6475 | ............................................................................... |
| 6476 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6477 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6478 | CHECK_THAT( v, Equals(v2) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6479 | with expansion: |
| 6480 | { 1, 2, 3 } Equals: { 1, 2 } |
| 6481 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6482 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6483 | CHECK_THAT( v2, Equals(v) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6484 | with expansion: |
| 6485 | { 1, 2 } Equals: { 1, 2, 3 } |
| 6486 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6487 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6488 | CHECK_THAT( empty, Equals(v) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6489 | with expansion: |
| 6490 | { } Equals: { 1, 2, 3 } |
| 6491 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6492 | Matchers.tests.cpp:<line number>: FAILED: |
Phil Nash | 8da8458 | 2017-11-15 07:48:43 +0000 | [diff] [blame] | 6493 | CHECK_THAT( v, Equals(empty) ) |
Phil Nash | 10dfca3 | 2017-02-21 16:05:04 +0000 | [diff] [blame] | 6494 | with expansion: |
| 6495 | { 1, 2, 3 } Equals: { } |
| 6496 | |
| 6497 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6498 | When checked exceptions are thrown they can be expected or unexpected |
| 6499 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6500 | Exception.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6501 | ............................................................................... |
| 6502 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6503 | Exception.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6504 | PASSED: |
Martin Hořeňovský | 9952dda | 2017-02-09 12:41:16 +0100 | [diff] [blame] | 6505 | REQUIRE_THROWS_AS( thisThrows(), std::domain_error ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6506 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6507 | Exception.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6508 | PASSED: |
| 6509 | REQUIRE_NOTHROW( thisDoesntThrow() ) |
| 6510 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6511 | Exception.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6512 | PASSED: |
| 6513 | REQUIRE_THROWS( thisThrows() ) |
| 6514 | |
| 6515 | ------------------------------------------------------------------------------- |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6516 | When unchecked exceptions are thrown directly they are always failures |
| 6517 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6518 | Exception.tests.cpp:<line number> |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6519 | ............................................................................... |
| 6520 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6521 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6522 | due to unexpected exception with message: |
| 6523 | unexpected exception |
| 6524 | |
| 6525 | ------------------------------------------------------------------------------- |
Phil Nash | 7bcb424 | 2017-01-23 17:56:41 +0000 | [diff] [blame] | 6526 | When unchecked exceptions are thrown during a CHECK the test should continue |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6527 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6528 | Exception.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6529 | ............................................................................... |
| 6530 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6531 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6532 | CHECK( thisThrows() == 0 ) |
| 6533 | due to unexpected exception with message: |
| 6534 | expected exception |
| 6535 | |
| 6536 | ------------------------------------------------------------------------------- |
| 6537 | When unchecked exceptions are thrown during a REQUIRE the test should abort |
| 6538 | fail |
| 6539 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6540 | Exception.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6541 | ............................................................................... |
| 6542 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6543 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6544 | REQUIRE( thisThrows() == 0 ) |
| 6545 | due to unexpected exception with message: |
| 6546 | expected exception |
| 6547 | |
| 6548 | ------------------------------------------------------------------------------- |
| 6549 | When unchecked exceptions are thrown from functions they are always failures |
| 6550 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6551 | Exception.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6552 | ............................................................................... |
| 6553 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6554 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6555 | CHECK( thisThrows() == 0 ) |
| 6556 | due to unexpected exception with message: |
| 6557 | expected exception |
| 6558 | |
| 6559 | ------------------------------------------------------------------------------- |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6560 | When unchecked exceptions are thrown from sections they are always failures |
| 6561 | section name |
| 6562 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6563 | Exception.tests.cpp:<line number> |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6564 | ............................................................................... |
| 6565 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6566 | Exception.tests.cpp:<line number>: FAILED: |
Phil Nash | 714d01c | 2017-04-09 20:40:01 +0100 | [diff] [blame] | 6567 | due to unexpected exception with message: |
| 6568 | unexpected exception |
| 6569 | |
| 6570 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6571 | Where the LHS is not a simple value |
| 6572 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6573 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6574 | ............................................................................... |
| 6575 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6576 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6577 | warning: |
| 6578 | Uncomment the code in this test to check that it gives a sensible compiler |
| 6579 | error |
| 6580 | |
| 6581 | ------------------------------------------------------------------------------- |
| 6582 | Where there is more to the expression after the RHS |
| 6583 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6584 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6585 | ............................................................................... |
| 6586 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6587 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6588 | warning: |
| 6589 | Uncomment the code in this test to check that it gives a sensible compiler |
| 6590 | error |
| 6591 | |
| 6592 | ------------------------------------------------------------------------------- |
| 6593 | X/level/0/a |
| 6594 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6595 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6596 | ............................................................................... |
| 6597 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6598 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6599 | PASSED: |
| 6600 | |
| 6601 | ------------------------------------------------------------------------------- |
| 6602 | X/level/0/b |
| 6603 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6604 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6605 | ............................................................................... |
| 6606 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6607 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6608 | PASSED: |
| 6609 | |
| 6610 | ------------------------------------------------------------------------------- |
| 6611 | X/level/1/a |
| 6612 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6613 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6614 | ............................................................................... |
| 6615 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6616 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6617 | PASSED: |
| 6618 | |
| 6619 | ------------------------------------------------------------------------------- |
| 6620 | X/level/1/b |
| 6621 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6622 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6623 | ............................................................................... |
| 6624 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6625 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6626 | PASSED: |
| 6627 | |
| 6628 | ------------------------------------------------------------------------------- |
| 6629 | XmlEncode |
| 6630 | normal string |
| 6631 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6632 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6633 | ............................................................................... |
| 6634 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6635 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6636 | PASSED: |
| 6637 | REQUIRE( encode( "normal string" ) == "normal string" ) |
| 6638 | with expansion: |
| 6639 | "normal string" == "normal string" |
| 6640 | |
| 6641 | ------------------------------------------------------------------------------- |
| 6642 | XmlEncode |
| 6643 | empty string |
| 6644 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6645 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6646 | ............................................................................... |
| 6647 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6648 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6649 | PASSED: |
| 6650 | REQUIRE( encode( "" ) == "" ) |
| 6651 | with expansion: |
| 6652 | "" == "" |
| 6653 | |
| 6654 | ------------------------------------------------------------------------------- |
| 6655 | XmlEncode |
| 6656 | string with ampersand |
| 6657 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6658 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6659 | ............................................................................... |
| 6660 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6661 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6662 | PASSED: |
| 6663 | REQUIRE( encode( "smith & jones" ) == "smith & jones" ) |
| 6664 | with expansion: |
| 6665 | "smith & jones" == "smith & jones" |
| 6666 | |
| 6667 | ------------------------------------------------------------------------------- |
| 6668 | XmlEncode |
| 6669 | string with less-than |
| 6670 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6671 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6672 | ............................................................................... |
| 6673 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6674 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6675 | PASSED: |
| 6676 | REQUIRE( encode( "smith < jones" ) == "smith < jones" ) |
| 6677 | with expansion: |
| 6678 | "smith < jones" == "smith < jones" |
| 6679 | |
| 6680 | ------------------------------------------------------------------------------- |
| 6681 | XmlEncode |
| 6682 | string with greater-than |
| 6683 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6684 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6685 | ............................................................................... |
| 6686 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6687 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6688 | PASSED: |
| 6689 | REQUIRE( encode( "smith > jones" ) == "smith > jones" ) |
| 6690 | with expansion: |
| 6691 | "smith > jones" == "smith > jones" |
| 6692 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6693 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6694 | PASSED: |
| 6695 | REQUIRE( encode( "smith ]]> jones" ) == "smith ]]> jones" ) |
| 6696 | with expansion: |
| 6697 | "smith ]]> jones" |
| 6698 | == |
| 6699 | "smith ]]> jones" |
| 6700 | |
| 6701 | ------------------------------------------------------------------------------- |
| 6702 | XmlEncode |
| 6703 | string with quotes |
| 6704 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6705 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6706 | ............................................................................... |
| 6707 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6708 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6709 | PASSED: |
| 6710 | REQUIRE( encode( stringWithQuotes ) == stringWithQuotes ) |
| 6711 | with expansion: |
| 6712 | "don't "quote" me on that" |
| 6713 | == |
| 6714 | "don't "quote" me on that" |
| 6715 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6716 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6717 | PASSED: |
| 6718 | REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't "quote" me on that" ) |
| 6719 | with expansion: |
| 6720 | "don't "quote" me on that" |
| 6721 | == |
| 6722 | "don't "quote" me on that" |
| 6723 | |
| 6724 | ------------------------------------------------------------------------------- |
| 6725 | XmlEncode |
Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 6726 | string with control char (1) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6727 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6728 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6729 | ............................................................................... |
| 6730 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6731 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6732 | PASSED: |
Phil Nash | 1f271c9 | 2017-02-06 16:00:05 +0000 | [diff] [blame] | 6733 | REQUIRE( encode( "[\x01]" ) == "[\\x01]" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6734 | with expansion: |
Phil Nash | 1f271c9 | 2017-02-06 16:00:05 +0000 | [diff] [blame] | 6735 | "[\x01]" == "[\x01]" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6736 | |
| 6737 | ------------------------------------------------------------------------------- |
| 6738 | XmlEncode |
Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 6739 | string with control char (x7F) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6740 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6741 | Xml.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6742 | ............................................................................... |
| 6743 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6744 | Xml.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6745 | PASSED: |
Phil Nash | 1f271c9 | 2017-02-06 16:00:05 +0000 | [diff] [blame] | 6746 | REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6747 | with expansion: |
Phil Nash | 1f271c9 | 2017-02-06 16:00:05 +0000 | [diff] [blame] | 6748 | "[\x7F]" == "[\x7F]" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6749 | |
| 6750 | ------------------------------------------------------------------------------- |
| 6751 | atomic if |
| 6752 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6753 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6754 | ............................................................................... |
| 6755 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6756 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6757 | PASSED: |
| 6758 | REQUIRE( x == 0 ) |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 6759 | with expansion: |
| 6760 | 0 == 0 |
| 6761 | |
| 6762 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6763 | boolean member |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 6764 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6765 | Tricky.tests.cpp:<line number> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 6766 | ............................................................................... |
| 6767 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6768 | Tricky.tests.cpp:<line number>: |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 6769 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6770 | REQUIRE( obj.prop != 0 ) |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 6771 | with expansion: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6772 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6773 | |
| 6774 | ------------------------------------------------------------------------------- |
| 6775 | checkedElse |
| 6776 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6777 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6778 | ............................................................................... |
| 6779 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6780 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6781 | PASSED: |
| 6782 | CHECKED_ELSE( flag ) |
| 6783 | with expansion: |
| 6784 | true |
| 6785 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6786 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6787 | PASSED: |
| 6788 | REQUIRE( testCheckedElse( true ) ) |
| 6789 | with expansion: |
| 6790 | true |
| 6791 | |
| 6792 | ------------------------------------------------------------------------------- |
| 6793 | checkedElse, failing |
| 6794 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6795 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6796 | ............................................................................... |
| 6797 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6798 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6799 | CHECKED_ELSE( flag ) |
| 6800 | with expansion: |
| 6801 | false |
| 6802 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6803 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6804 | REQUIRE( testCheckedElse( false ) ) |
| 6805 | with expansion: |
| 6806 | false |
| 6807 | |
| 6808 | ------------------------------------------------------------------------------- |
| 6809 | checkedIf |
| 6810 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6811 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6812 | ............................................................................... |
| 6813 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6814 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6815 | PASSED: |
| 6816 | CHECKED_IF( flag ) |
| 6817 | with expansion: |
| 6818 | true |
| 6819 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6820 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6821 | PASSED: |
| 6822 | REQUIRE( testCheckedIf( true ) ) |
| 6823 | with expansion: |
| 6824 | true |
| 6825 | |
| 6826 | ------------------------------------------------------------------------------- |
| 6827 | checkedIf, failing |
| 6828 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6829 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6830 | ............................................................................... |
| 6831 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6832 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6833 | CHECKED_IF( flag ) |
| 6834 | with expansion: |
| 6835 | false |
| 6836 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6837 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6838 | REQUIRE( testCheckedIf( false ) ) |
| 6839 | with expansion: |
| 6840 | false |
| 6841 | |
| 6842 | ------------------------------------------------------------------------------- |
| 6843 | comparisons between const int variables |
| 6844 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6845 | Condition.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6846 | ............................................................................... |
| 6847 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6848 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6849 | PASSED: |
| 6850 | REQUIRE( unsigned_char_var == 1 ) |
| 6851 | with expansion: |
| 6852 | 1 == 1 |
| 6853 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6854 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6855 | PASSED: |
| 6856 | REQUIRE( unsigned_short_var == 1 ) |
| 6857 | with expansion: |
| 6858 | 1 == 1 |
| 6859 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6860 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6861 | PASSED: |
| 6862 | REQUIRE( unsigned_int_var == 1 ) |
| 6863 | with expansion: |
| 6864 | 1 == 1 |
| 6865 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6866 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6867 | PASSED: |
| 6868 | REQUIRE( unsigned_long_var == 1 ) |
| 6869 | with expansion: |
| 6870 | 1 == 1 |
| 6871 | |
| 6872 | ------------------------------------------------------------------------------- |
| 6873 | comparisons between int variables |
| 6874 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6875 | Condition.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6876 | ............................................................................... |
| 6877 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6878 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6879 | PASSED: |
| 6880 | REQUIRE( long_var == unsigned_char_var ) |
| 6881 | with expansion: |
| 6882 | 1 == 1 |
| 6883 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6884 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6885 | PASSED: |
| 6886 | REQUIRE( long_var == unsigned_short_var ) |
| 6887 | with expansion: |
| 6888 | 1 == 1 |
| 6889 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6890 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6891 | PASSED: |
| 6892 | REQUIRE( long_var == unsigned_int_var ) |
| 6893 | with expansion: |
| 6894 | 1 == 1 |
| 6895 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6896 | Condition.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6897 | PASSED: |
| 6898 | REQUIRE( long_var == unsigned_long_var ) |
| 6899 | with expansion: |
| 6900 | 1 == 1 |
| 6901 | |
| 6902 | ------------------------------------------------------------------------------- |
| 6903 | even more nested SECTION tests |
| 6904 | c |
| 6905 | d (leaf) |
| 6906 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6907 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6908 | ............................................................................... |
| 6909 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6910 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6911 | PASSED: |
| 6912 | |
| 6913 | ------------------------------------------------------------------------------- |
| 6914 | even more nested SECTION tests |
| 6915 | c |
| 6916 | e (leaf) |
| 6917 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6918 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6919 | ............................................................................... |
| 6920 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6921 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6922 | PASSED: |
| 6923 | |
| 6924 | ------------------------------------------------------------------------------- |
| 6925 | even more nested SECTION tests |
| 6926 | f (leaf) |
| 6927 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6928 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6929 | ............................................................................... |
| 6930 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6931 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6932 | PASSED: |
| 6933 | |
Phil Nash | df5c31b | 2017-08-11 10:38:29 +0100 | [diff] [blame] | 6934 | loose text artifact |
| 6935 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6936 | just failure |
| 6937 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6938 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6939 | ............................................................................... |
| 6940 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6941 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6942 | explicitly with message: |
| 6943 | Previous info should not be seen |
| 6944 | |
| 6945 | ------------------------------------------------------------------------------- |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 6946 | long long |
| 6947 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6948 | Misc.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 6949 | ............................................................................... |
| 6950 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6951 | Misc.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 6952 | PASSED: |
| 6953 | REQUIRE( l == std::numeric_limits<long long>::max() ) |
| 6954 | with expansion: |
| 6955 | 9223372036854775807 (0x<hex digits>) |
| 6956 | == |
| 6957 | 9223372036854775807 (0x<hex digits>) |
| 6958 | |
| 6959 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6960 | looped SECTION tests |
| 6961 | s1 |
| 6962 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6963 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6964 | ............................................................................... |
| 6965 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6966 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6967 | CHECK( b > a ) |
| 6968 | with expansion: |
| 6969 | 0 > 1 |
| 6970 | |
| 6971 | ------------------------------------------------------------------------------- |
| 6972 | looped tests |
| 6973 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6974 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6975 | ............................................................................... |
| 6976 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6977 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6978 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 6979 | with expansion: |
| 6980 | 1 == 0 |
| 6981 | with message: |
| 6982 | Testing if fib[0] (1) is even |
| 6983 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6984 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6985 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 6986 | with expansion: |
| 6987 | 1 == 0 |
| 6988 | with message: |
| 6989 | Testing if fib[1] (1) is even |
| 6990 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6991 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6992 | PASSED: |
| 6993 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 6994 | with expansion: |
| 6995 | 0 == 0 |
| 6996 | with message: |
| 6997 | Testing if fib[2] (2) is even |
| 6998 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 6999 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7000 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 7001 | with expansion: |
| 7002 | 1 == 0 |
| 7003 | with message: |
| 7004 | Testing if fib[3] (3) is even |
| 7005 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7006 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7007 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 7008 | with expansion: |
| 7009 | 1 == 0 |
| 7010 | with message: |
| 7011 | Testing if fib[4] (5) is even |
| 7012 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7013 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7014 | PASSED: |
| 7015 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 7016 | with expansion: |
| 7017 | 0 == 0 |
| 7018 | with message: |
| 7019 | Testing if fib[5] (8) is even |
| 7020 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7021 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7022 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 7023 | with expansion: |
| 7024 | 1 == 0 |
| 7025 | with message: |
| 7026 | Testing if fib[6] (13) is even |
| 7027 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7028 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7029 | CHECK( ( fib[i] % 2 ) == 0 ) |
| 7030 | with expansion: |
| 7031 | 1 == 0 |
| 7032 | with message: |
| 7033 | Testing if fib[7] (21) is even |
| 7034 | |
| 7035 | ------------------------------------------------------------------------------- |
| 7036 | more nested SECTION tests |
| 7037 | s1 |
| 7038 | s2 |
| 7039 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7040 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7041 | ............................................................................... |
| 7042 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7043 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7044 | REQUIRE( a == b ) |
| 7045 | with expansion: |
| 7046 | 1 == 2 |
| 7047 | |
| 7048 | ------------------------------------------------------------------------------- |
| 7049 | more nested SECTION tests |
| 7050 | s1 |
| 7051 | s3 |
| 7052 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7053 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7054 | ............................................................................... |
| 7055 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7056 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7057 | PASSED: |
| 7058 | REQUIRE( a != b ) |
| 7059 | with expansion: |
| 7060 | 1 != 2 |
| 7061 | |
| 7062 | ------------------------------------------------------------------------------- |
| 7063 | more nested SECTION tests |
| 7064 | s1 |
| 7065 | s4 |
| 7066 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7067 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7068 | ............................................................................... |
| 7069 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7070 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7071 | PASSED: |
| 7072 | REQUIRE( a < b ) |
| 7073 | with expansion: |
| 7074 | 1 < 2 |
| 7075 | |
| 7076 | ------------------------------------------------------------------------------- |
| 7077 | nested SECTION tests |
| 7078 | s1 |
| 7079 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7080 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7081 | ............................................................................... |
| 7082 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7083 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7084 | PASSED: |
| 7085 | REQUIRE( a != b ) |
| 7086 | with expansion: |
| 7087 | 1 != 2 |
| 7088 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7089 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7090 | PASSED: |
| 7091 | REQUIRE( b != a ) |
| 7092 | with expansion: |
| 7093 | 2 != 1 |
| 7094 | |
| 7095 | ------------------------------------------------------------------------------- |
| 7096 | nested SECTION tests |
| 7097 | s1 |
| 7098 | s2 |
| 7099 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7100 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7101 | ............................................................................... |
| 7102 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7103 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7104 | PASSED: |
| 7105 | REQUIRE( a != b ) |
| 7106 | with expansion: |
| 7107 | 1 != 2 |
| 7108 | |
| 7109 | ------------------------------------------------------------------------------- |
| 7110 | non streamable - with conv. op |
| 7111 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7112 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7113 | ............................................................................... |
| 7114 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7115 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7116 | PASSED: |
| 7117 | REQUIRE( s == "7" ) |
| 7118 | with expansion: |
| 7119 | "7" == "7" |
| 7120 | |
| 7121 | ------------------------------------------------------------------------------- |
Phil Nash | b8f482b | 2017-08-17 16:48:46 +0100 | [diff] [blame] | 7122 | non-copyable objects |
| 7123 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7124 | Tricky.tests.cpp:<line number> |
Phil Nash | b8f482b | 2017-08-17 16:48:46 +0100 | [diff] [blame] | 7125 | ............................................................................... |
| 7126 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7127 | Tricky.tests.cpp:<line number>: |
Phil Nash | b8f482b | 2017-08-17 16:48:46 +0100 | [diff] [blame] | 7128 | PASSED: |
| 7129 | CHECK( ti == typeid(int) ) |
| 7130 | with expansion: |
| 7131 | {?} == {?} |
| 7132 | |
| 7133 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7134 | not allowed |
| 7135 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7136 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7137 | ............................................................................... |
| 7138 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7139 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7140 | PASSED: |
| 7141 | |
| 7142 | ------------------------------------------------------------------------------- |
| 7143 | null strings |
| 7144 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7145 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7146 | ............................................................................... |
| 7147 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7148 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7149 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 7150 | REQUIRE( makeString( false ) != static_cast<char*>(0) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7151 | with expansion: |
| 7152 | "valid string" != {null string} |
| 7153 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7154 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7155 | PASSED: |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 7156 | REQUIRE( makeString( true ) == static_cast<char*>(0) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7157 | with expansion: |
| 7158 | {null string} == {null string} |
| 7159 | |
| 7160 | ------------------------------------------------------------------------------- |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7161 | null_ptr |
| 7162 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7163 | Tricky.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7164 | ............................................................................... |
| 7165 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7166 | Tricky.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7167 | PASSED: |
| 7168 | REQUIRE( ptr.get() == 0 ) |
| 7169 | with expansion: |
| 7170 | 0 == 0 |
| 7171 | |
| 7172 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7173 | pair<pair<int,const char *,pair<std::string,int> > -> toString |
| 7174 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7175 | ToStringPair.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7176 | ............................................................................... |
| 7177 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7178 | ToStringPair.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7179 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7180 | REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7181 | with expansion: |
| 7182 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 7183 | == |
| 7184 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 7185 | |
| 7186 | ------------------------------------------------------------------------------- |
| 7187 | pointer to class |
| 7188 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7189 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7190 | ............................................................................... |
| 7191 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7192 | Tricky.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7193 | PASSED: |
| 7194 | REQUIRE( p == 0 ) |
| 7195 | with expansion: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7196 | 0 == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7197 | |
| 7198 | ------------------------------------------------------------------------------- |
| 7199 | random SECTION tests |
| 7200 | s1 |
| 7201 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7202 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7203 | ............................................................................... |
| 7204 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7205 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7206 | PASSED: |
| 7207 | REQUIRE( a != b ) |
| 7208 | with expansion: |
| 7209 | 1 != 2 |
| 7210 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7211 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7212 | PASSED: |
| 7213 | REQUIRE( b != a ) |
| 7214 | with expansion: |
| 7215 | 2 != 1 |
| 7216 | |
| 7217 | ------------------------------------------------------------------------------- |
| 7218 | random SECTION tests |
| 7219 | s2 |
| 7220 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7221 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7222 | ............................................................................... |
| 7223 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7224 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7225 | PASSED: |
| 7226 | REQUIRE( a != b ) |
| 7227 | with expansion: |
| 7228 | 1 != 2 |
| 7229 | |
| 7230 | ------------------------------------------------------------------------------- |
| 7231 | replaceInPlace |
| 7232 | replace single char |
| 7233 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7234 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7235 | ............................................................................... |
| 7236 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7237 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7238 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7239 | CHECK( Catch::replaceInPlace( letters, "b", "z" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7240 | with expansion: |
| 7241 | true |
| 7242 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7243 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7244 | PASSED: |
| 7245 | CHECK( letters == "azcdefcg" ) |
| 7246 | with expansion: |
| 7247 | "azcdefcg" == "azcdefcg" |
| 7248 | |
| 7249 | ------------------------------------------------------------------------------- |
| 7250 | replaceInPlace |
| 7251 | replace two chars |
| 7252 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7253 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7254 | ............................................................................... |
| 7255 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7256 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7257 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7258 | CHECK( Catch::replaceInPlace( letters, "c", "z" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7259 | with expansion: |
| 7260 | true |
| 7261 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7262 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7263 | PASSED: |
| 7264 | CHECK( letters == "abzdefzg" ) |
| 7265 | with expansion: |
| 7266 | "abzdefzg" == "abzdefzg" |
| 7267 | |
| 7268 | ------------------------------------------------------------------------------- |
| 7269 | replaceInPlace |
| 7270 | replace first char |
| 7271 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7272 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7273 | ............................................................................... |
| 7274 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7275 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7276 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7277 | CHECK( Catch::replaceInPlace( letters, "a", "z" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7278 | with expansion: |
| 7279 | true |
| 7280 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7281 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7282 | PASSED: |
| 7283 | CHECK( letters == "zbcdefcg" ) |
| 7284 | with expansion: |
| 7285 | "zbcdefcg" == "zbcdefcg" |
| 7286 | |
| 7287 | ------------------------------------------------------------------------------- |
| 7288 | replaceInPlace |
| 7289 | replace last char |
| 7290 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7291 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7292 | ............................................................................... |
| 7293 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7294 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7295 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7296 | CHECK( Catch::replaceInPlace( letters, "g", "z" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7297 | with expansion: |
| 7298 | true |
| 7299 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7300 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7301 | PASSED: |
| 7302 | CHECK( letters == "abcdefcz" ) |
| 7303 | with expansion: |
| 7304 | "abcdefcz" == "abcdefcz" |
| 7305 | |
| 7306 | ------------------------------------------------------------------------------- |
| 7307 | replaceInPlace |
| 7308 | replace all chars |
| 7309 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7310 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7311 | ............................................................................... |
| 7312 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7313 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7314 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7315 | CHECK( Catch::replaceInPlace( letters, letters, "replaced" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7316 | with expansion: |
| 7317 | true |
| 7318 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7319 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7320 | PASSED: |
| 7321 | CHECK( letters == "replaced" ) |
| 7322 | with expansion: |
| 7323 | "replaced" == "replaced" |
| 7324 | |
| 7325 | ------------------------------------------------------------------------------- |
| 7326 | replaceInPlace |
| 7327 | replace no chars |
| 7328 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7329 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7330 | ............................................................................... |
| 7331 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7332 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7333 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7334 | CHECK_FALSE( Catch::replaceInPlace( letters, "x", "z" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7335 | with expansion: |
| 7336 | !false |
| 7337 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7338 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7339 | PASSED: |
| 7340 | CHECK( letters == letters ) |
| 7341 | with expansion: |
| 7342 | "abcdefcg" == "abcdefcg" |
| 7343 | |
| 7344 | ------------------------------------------------------------------------------- |
| 7345 | replaceInPlace |
| 7346 | escape ' |
| 7347 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7348 | String.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7349 | ............................................................................... |
| 7350 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7351 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7352 | PASSED: |
Phil Nash | 58d8bc6 | 2017-07-20 23:09:50 +0100 | [diff] [blame] | 7353 | CHECK( Catch::replaceInPlace( s, "'", "|'" ) ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7354 | with expansion: |
| 7355 | true |
| 7356 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7357 | String.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7358 | PASSED: |
| 7359 | CHECK( s == "didn|'t" ) |
| 7360 | with expansion: |
| 7361 | "didn|'t" == "didn|'t" |
| 7362 | |
| 7363 | ------------------------------------------------------------------------------- |
| 7364 | send a single char to INFO |
| 7365 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7366 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7367 | ............................................................................... |
| 7368 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7369 | Misc.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7370 | REQUIRE( false ) |
| 7371 | with message: |
| 7372 | 3 |
| 7373 | |
| 7374 | ------------------------------------------------------------------------------- |
| 7375 | sends information to INFO |
| 7376 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7377 | Message.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7378 | ............................................................................... |
| 7379 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7380 | Message.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7381 | REQUIRE( false ) |
| 7382 | with messages: |
| 7383 | hi |
| 7384 | i := 7 |
| 7385 | |
| 7386 | ------------------------------------------------------------------------------- |
| 7387 | std::pair<int,const std::string> -> toString |
| 7388 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7389 | ToStringPair.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7390 | ............................................................................... |
| 7391 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7392 | ToStringPair.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7393 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7394 | REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7395 | with expansion: |
| 7396 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 7397 | |
| 7398 | ------------------------------------------------------------------------------- |
| 7399 | std::pair<int,std::string> -> toString |
| 7400 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7401 | ToStringPair.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7402 | ............................................................................... |
| 7403 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7404 | ToStringPair.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7405 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7406 | REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7407 | with expansion: |
| 7408 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 7409 | |
| 7410 | ------------------------------------------------------------------------------- |
| 7411 | std::vector<std::pair<std::string,int> > -> toString |
| 7412 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7413 | ToStringPair.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7414 | ............................................................................... |
| 7415 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7416 | ToStringPair.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7417 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7418 | REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7419 | with expansion: |
| 7420 | "{ { "green", 55 } }" |
| 7421 | == |
| 7422 | "{ { "green", 55 } }" |
| 7423 | |
| 7424 | ------------------------------------------------------------------------------- |
| 7425 | string literals of different sizes can be compared |
| 7426 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7427 | Tricky.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7428 | ............................................................................... |
| 7429 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7430 | Tricky.tests.cpp:<line number>: FAILED: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7431 | REQUIRE( std::string( "first" ) == "second" ) |
| 7432 | with expansion: |
| 7433 | "first" == "second" |
| 7434 | |
| 7435 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7436 | stringify( has_maker ) |
| 7437 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7438 | ToStringWhich.tests.cpp:<line number> |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7439 | ............................................................................... |
| 7440 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7441 | ToStringWhich.tests.cpp:<line number>: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7442 | PASSED: |
| 7443 | REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" ) |
| 7444 | with expansion: |
| 7445 | "StringMaker<has_maker>" |
| 7446 | == |
| 7447 | "StringMaker<has_maker>" |
| 7448 | |
| 7449 | ------------------------------------------------------------------------------- |
| 7450 | stringify( has_maker_and_toString ) |
| 7451 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7452 | ToStringWhich.tests.cpp:<line number> |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7453 | ............................................................................... |
| 7454 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7455 | ToStringWhich.tests.cpp:<line number>: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7456 | PASSED: |
| 7457 | REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" ) |
| 7458 | with expansion: |
| 7459 | "StringMaker<has_maker_and_operator>" |
| 7460 | == |
| 7461 | "StringMaker<has_maker_and_operator>" |
| 7462 | |
| 7463 | ------------------------------------------------------------------------------- |
| 7464 | stringify( has_operator ) |
| 7465 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7466 | ToStringWhich.tests.cpp:<line number> |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7467 | ............................................................................... |
| 7468 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7469 | ToStringWhich.tests.cpp:<line number>: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7470 | PASSED: |
| 7471 | REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" ) |
| 7472 | with expansion: |
| 7473 | "operator<<( has_operator )" |
| 7474 | == |
| 7475 | "operator<<( has_operator )" |
| 7476 | |
| 7477 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7478 | toString on const wchar_t const pointer returns the string contents |
| 7479 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7480 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7481 | ............................................................................... |
| 7482 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7483 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7484 | PASSED: |
| 7485 | CHECK( result == "\"wide load\"" ) |
| 7486 | with expansion: |
| 7487 | ""wide load"" == ""wide load"" |
| 7488 | |
| 7489 | ------------------------------------------------------------------------------- |
| 7490 | toString on const wchar_t pointer returns the string contents |
| 7491 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7492 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7493 | ............................................................................... |
| 7494 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7495 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7496 | PASSED: |
| 7497 | CHECK( result == "\"wide load\"" ) |
| 7498 | with expansion: |
| 7499 | ""wide load"" == ""wide load"" |
| 7500 | |
| 7501 | ------------------------------------------------------------------------------- |
| 7502 | toString on wchar_t const pointer returns the string contents |
| 7503 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7504 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7505 | ............................................................................... |
| 7506 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7507 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7508 | PASSED: |
| 7509 | CHECK( result == "\"wide load\"" ) |
| 7510 | with expansion: |
| 7511 | ""wide load"" == ""wide load"" |
| 7512 | |
| 7513 | ------------------------------------------------------------------------------- |
| 7514 | toString on wchar_t returns the string contents |
| 7515 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7516 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7517 | ............................................................................... |
| 7518 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7519 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7520 | PASSED: |
| 7521 | CHECK( result == "\"wide load\"" ) |
| 7522 | with expansion: |
| 7523 | ""wide load"" == ""wide load"" |
| 7524 | |
| 7525 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 73a1623 | 2017-11-25 18:38:18 +0100 | [diff] [blame] | 7526 | toString( vectors<has_maker> ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7527 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7528 | ToStringWhich.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7529 | ............................................................................... |
| 7530 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7531 | ToStringWhich.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7532 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7533 | REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7534 | with expansion: |
| 7535 | "{ StringMaker<has_maker> }" |
| 7536 | == |
| 7537 | "{ StringMaker<has_maker> }" |
| 7538 | |
| 7539 | ------------------------------------------------------------------------------- |
Martin Hořeňovský | 73a1623 | 2017-11-25 18:38:18 +0100 | [diff] [blame] | 7540 | toString( vectors<has_maker_and_operator> ) |
| 7541 | ------------------------------------------------------------------------------- |
| 7542 | ToStringWhich.tests.cpp:<line number> |
| 7543 | ............................................................................... |
| 7544 | |
| 7545 | ToStringWhich.tests.cpp:<line number>: |
| 7546 | PASSED: |
| 7547 | REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" ) |
| 7548 | with expansion: |
| 7549 | "{ StringMaker<has_maker_and_operator> }" |
| 7550 | == |
| 7551 | "{ StringMaker<has_maker_and_operator> }" |
| 7552 | |
| 7553 | ------------------------------------------------------------------------------- |
| 7554 | toString( vectors<has_operator> ) |
| 7555 | ------------------------------------------------------------------------------- |
| 7556 | ToStringWhich.tests.cpp:<line number> |
| 7557 | ............................................................................... |
| 7558 | |
| 7559 | ToStringWhich.tests.cpp:<line number>: |
| 7560 | PASSED: |
| 7561 | REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" ) |
| 7562 | with expansion: |
| 7563 | "{ operator<<( has_operator ) }" |
| 7564 | == |
| 7565 | "{ operator<<( has_operator ) }" |
| 7566 | |
| 7567 | ------------------------------------------------------------------------------- |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7568 | toString(enum class w/operator<<) |
| 7569 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7570 | EnumToString.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7571 | ............................................................................... |
| 7572 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7573 | EnumToString.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7574 | PASSED: |
| 7575 | CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" ) |
| 7576 | with expansion: |
| 7577 | "E2/V0" == "E2/V0" |
| 7578 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7579 | EnumToString.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7580 | PASSED: |
| 7581 | CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" ) |
| 7582 | with expansion: |
| 7583 | "E2/V1" == "E2/V1" |
| 7584 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7585 | EnumToString.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7586 | PASSED: |
| 7587 | CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" ) |
| 7588 | with expansion: |
| 7589 | "Unknown enum value 10" |
| 7590 | == |
| 7591 | "Unknown enum value 10" |
| 7592 | |
| 7593 | ------------------------------------------------------------------------------- |
| 7594 | toString(enum class) |
| 7595 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7596 | EnumToString.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7597 | ............................................................................... |
| 7598 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7599 | EnumToString.tests.cpp:<line number>: FAILED: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7600 | CHECK( ::Catch::Detail::stringify(e0) == "0" ) |
| 7601 | with expansion: |
| 7602 | "{?}" == "0" |
| 7603 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7604 | EnumToString.tests.cpp:<line number>: FAILED: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7605 | CHECK( ::Catch::Detail::stringify(e1) == "1" ) |
| 7606 | with expansion: |
| 7607 | "{?}" == "1" |
| 7608 | |
| 7609 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7610 | toString(enum w/operator<<) |
| 7611 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7612 | EnumToString.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7613 | ............................................................................... |
| 7614 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7615 | EnumToString.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7616 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7617 | CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7618 | with expansion: |
| 7619 | "E2{0}" == "E2{0}" |
| 7620 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7621 | EnumToString.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7622 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7623 | CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7624 | with expansion: |
| 7625 | "E2{1}" == "E2{1}" |
| 7626 | |
| 7627 | ------------------------------------------------------------------------------- |
| 7628 | toString(enum) |
| 7629 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7630 | EnumToString.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7631 | ............................................................................... |
| 7632 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7633 | EnumToString.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7634 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7635 | CHECK( ::Catch::Detail::stringify(e0) == "0" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7636 | with expansion: |
| 7637 | "0" == "0" |
| 7638 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7639 | EnumToString.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7640 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7641 | CHECK( ::Catch::Detail::stringify(e1) == "1" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7642 | with expansion: |
| 7643 | "1" == "1" |
| 7644 | |
| 7645 | ------------------------------------------------------------------------------- |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7646 | tuple<> |
| 7647 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7648 | ToStringTuple.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7649 | ............................................................................... |
| 7650 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7651 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7652 | PASSED: |
| 7653 | CHECK( "{ }" == ::Catch::Detail::stringify(type{}) ) |
| 7654 | with expansion: |
| 7655 | "{ }" == "{ }" |
| 7656 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7657 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7658 | PASSED: |
| 7659 | CHECK( "{ }" == ::Catch::Detail::stringify(value) ) |
| 7660 | with expansion: |
| 7661 | "{ }" == "{ }" |
| 7662 | |
| 7663 | ------------------------------------------------------------------------------- |
| 7664 | tuple<float,int> |
| 7665 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7666 | ToStringTuple.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7667 | ............................................................................... |
| 7668 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7669 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7670 | PASSED: |
| 7671 | CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) ) |
| 7672 | with expansion: |
| 7673 | "1.2f" == "1.2f" |
| 7674 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7675 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7676 | PASSED: |
| 7677 | CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) ) |
| 7678 | with expansion: |
| 7679 | "{ 1.2f, 0 }" == "{ 1.2f, 0 }" |
| 7680 | |
| 7681 | ------------------------------------------------------------------------------- |
| 7682 | tuple<int> |
| 7683 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7684 | ToStringTuple.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7685 | ............................................................................... |
| 7686 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7687 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7688 | PASSED: |
| 7689 | CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) ) |
| 7690 | with expansion: |
| 7691 | "{ 0 }" == "{ 0 }" |
| 7692 | |
| 7693 | ------------------------------------------------------------------------------- |
| 7694 | tuple<0,int,const char *> |
| 7695 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7696 | ToStringTuple.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7697 | ............................................................................... |
| 7698 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7699 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7700 | PASSED: |
| 7701 | CHECK( "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) ) |
| 7702 | with expansion: |
| 7703 | "{ 0, 42, "Catch me" }" |
| 7704 | == |
| 7705 | "{ 0, 42, "Catch me" }" |
| 7706 | |
| 7707 | ------------------------------------------------------------------------------- |
| 7708 | tuple<string,string> |
| 7709 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7710 | ToStringTuple.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7711 | ............................................................................... |
| 7712 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7713 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7714 | PASSED: |
| 7715 | CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) ) |
| 7716 | with expansion: |
| 7717 | "{ "hello", "world" }" |
| 7718 | == |
| 7719 | "{ "hello", "world" }" |
| 7720 | |
| 7721 | ------------------------------------------------------------------------------- |
| 7722 | tuple<tuple<int>,tuple<>,float> |
| 7723 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7724 | ToStringTuple.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7725 | ............................................................................... |
| 7726 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7727 | ToStringTuple.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7728 | PASSED: |
| 7729 | CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) ) |
| 7730 | with expansion: |
| 7731 | "{ { 42 }, { }, 1.2f }" |
| 7732 | == |
| 7733 | "{ { 42 }, { }, 1.2f }" |
| 7734 | |
| 7735 | ------------------------------------------------------------------------------- |
| 7736 | vec<vec<string,alloc>> -> toString |
| 7737 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7738 | ToStringVector.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7739 | ............................................................................... |
| 7740 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7741 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7742 | PASSED: |
| 7743 | REQUIRE( ::Catch::Detail::stringify(v) == "{ }" ) |
| 7744 | with expansion: |
| 7745 | "{ }" == "{ }" |
| 7746 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7747 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7748 | PASSED: |
| 7749 | REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" ) |
| 7750 | with expansion: |
| 7751 | "{ { "hello" }, { "world" } }" |
| 7752 | == |
| 7753 | "{ { "hello" }, { "world" } }" |
| 7754 | |
| 7755 | ------------------------------------------------------------------------------- |
| 7756 | vector<int,allocator> -> toString |
| 7757 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7758 | ToStringVector.tests.cpp:<line number> |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7759 | ............................................................................... |
| 7760 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7761 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7762 | PASSED: |
| 7763 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ) |
| 7764 | with expansion: |
| 7765 | "{ }" == "{ }" |
| 7766 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7767 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7768 | PASSED: |
| 7769 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ) |
| 7770 | with expansion: |
| 7771 | "{ 42 }" == "{ 42 }" |
| 7772 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7773 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | c874a99 | 2017-07-13 08:52:51 +0100 | [diff] [blame] | 7774 | PASSED: |
| 7775 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ) |
| 7776 | with expansion: |
| 7777 | "{ 42, 250 }" == "{ 42, 250 }" |
| 7778 | |
| 7779 | ------------------------------------------------------------------------------- |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7780 | vector<int> -> toString |
| 7781 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7782 | ToStringVector.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7783 | ............................................................................... |
| 7784 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7785 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7786 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7787 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7788 | with expansion: |
| 7789 | "{ }" == "{ }" |
| 7790 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7791 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7792 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7793 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7794 | with expansion: |
| 7795 | "{ 42 }" == "{ 42 }" |
| 7796 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7797 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7798 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7799 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7800 | with expansion: |
| 7801 | "{ 42, 250 }" == "{ 42, 250 }" |
| 7802 | |
| 7803 | ------------------------------------------------------------------------------- |
| 7804 | vector<string> -> toString |
| 7805 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7806 | ToStringVector.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7807 | ............................................................................... |
| 7808 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7809 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7810 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7811 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7812 | with expansion: |
| 7813 | "{ }" == "{ }" |
| 7814 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7815 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7816 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7817 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7818 | with expansion: |
| 7819 | "{ "hello" }" == "{ "hello" }" |
| 7820 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7821 | ToStringVector.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7822 | PASSED: |
Martin Hořeňovský | 33ed177 | 2017-05-02 23:51:03 +0200 | [diff] [blame] | 7823 | REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" ) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7824 | with expansion: |
| 7825 | "{ "hello", "world" }" |
| 7826 | == |
| 7827 | "{ "hello", "world" }" |
| 7828 | |
| 7829 | ------------------------------------------------------------------------------- |
| 7830 | vectors can be sized and resized |
| 7831 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7832 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7833 | ............................................................................... |
| 7834 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7835 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7836 | PASSED: |
| 7837 | REQUIRE( v.size() == 5 ) |
| 7838 | with expansion: |
| 7839 | 5 == 5 |
| 7840 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7841 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7842 | PASSED: |
| 7843 | REQUIRE( v.capacity() >= 5 ) |
| 7844 | with expansion: |
| 7845 | 5 >= 5 |
| 7846 | |
| 7847 | ------------------------------------------------------------------------------- |
| 7848 | vectors can be sized and resized |
| 7849 | resizing bigger changes size and capacity |
| 7850 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7851 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7852 | ............................................................................... |
| 7853 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7854 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7855 | PASSED: |
| 7856 | REQUIRE( v.size() == 10 ) |
| 7857 | with expansion: |
| 7858 | 10 == 10 |
| 7859 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7860 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7861 | PASSED: |
| 7862 | REQUIRE( v.capacity() >= 10 ) |
| 7863 | with expansion: |
| 7864 | 10 >= 10 |
| 7865 | |
| 7866 | ------------------------------------------------------------------------------- |
| 7867 | vectors can be sized and resized |
| 7868 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7869 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7870 | ............................................................................... |
| 7871 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7872 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7873 | PASSED: |
| 7874 | REQUIRE( v.size() == 5 ) |
| 7875 | with expansion: |
| 7876 | 5 == 5 |
| 7877 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7878 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7879 | PASSED: |
| 7880 | REQUIRE( v.capacity() >= 5 ) |
| 7881 | with expansion: |
| 7882 | 5 >= 5 |
| 7883 | |
| 7884 | ------------------------------------------------------------------------------- |
| 7885 | vectors can be sized and resized |
| 7886 | resizing smaller changes size but not capacity |
| 7887 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7888 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7889 | ............................................................................... |
| 7890 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7891 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7892 | PASSED: |
| 7893 | REQUIRE( v.size() == 0 ) |
| 7894 | with expansion: |
| 7895 | 0 == 0 |
| 7896 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7897 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7898 | PASSED: |
| 7899 | REQUIRE( v.capacity() >= 5 ) |
| 7900 | with expansion: |
| 7901 | 5 >= 5 |
| 7902 | |
| 7903 | ------------------------------------------------------------------------------- |
| 7904 | vectors can be sized and resized |
| 7905 | resizing smaller changes size but not capacity |
| 7906 | We can use the 'swap trick' to reset the capacity |
| 7907 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7908 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7909 | ............................................................................... |
| 7910 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7911 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7912 | PASSED: |
| 7913 | REQUIRE( v.capacity() == 0 ) |
| 7914 | with expansion: |
| 7915 | 0 == 0 |
| 7916 | |
| 7917 | ------------------------------------------------------------------------------- |
| 7918 | vectors can be sized and resized |
| 7919 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7920 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7921 | ............................................................................... |
| 7922 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7923 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7924 | PASSED: |
| 7925 | REQUIRE( v.size() == 5 ) |
| 7926 | with expansion: |
| 7927 | 5 == 5 |
| 7928 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7929 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7930 | PASSED: |
| 7931 | REQUIRE( v.capacity() >= 5 ) |
| 7932 | with expansion: |
| 7933 | 5 >= 5 |
| 7934 | |
| 7935 | ------------------------------------------------------------------------------- |
| 7936 | vectors can be sized and resized |
| 7937 | reserving bigger changes capacity but not size |
| 7938 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7939 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7940 | ............................................................................... |
| 7941 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7942 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7943 | PASSED: |
| 7944 | REQUIRE( v.size() == 5 ) |
| 7945 | with expansion: |
| 7946 | 5 == 5 |
| 7947 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7948 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7949 | PASSED: |
| 7950 | REQUIRE( v.capacity() >= 10 ) |
| 7951 | with expansion: |
| 7952 | 10 >= 10 |
| 7953 | |
| 7954 | ------------------------------------------------------------------------------- |
| 7955 | vectors can be sized and resized |
| 7956 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7957 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7958 | ............................................................................... |
| 7959 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7960 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7961 | PASSED: |
| 7962 | REQUIRE( v.size() == 5 ) |
| 7963 | with expansion: |
| 7964 | 5 == 5 |
| 7965 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7966 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7967 | PASSED: |
| 7968 | REQUIRE( v.capacity() >= 5 ) |
| 7969 | with expansion: |
| 7970 | 5 >= 5 |
| 7971 | |
| 7972 | ------------------------------------------------------------------------------- |
| 7973 | vectors can be sized and resized |
| 7974 | reserving smaller does not change size or capacity |
| 7975 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7976 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7977 | ............................................................................... |
| 7978 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7979 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7980 | PASSED: |
| 7981 | REQUIRE( v.size() == 5 ) |
| 7982 | with expansion: |
| 7983 | 5 == 5 |
| 7984 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7985 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7986 | PASSED: |
| 7987 | REQUIRE( v.capacity() >= 5 ) |
| 7988 | with expansion: |
| 7989 | 5 >= 5 |
| 7990 | |
| 7991 | ------------------------------------------------------------------------------- |
| 7992 | xmlentitycheck |
| 7993 | embedded xml |
| 7994 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7995 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7996 | ............................................................................... |
| 7997 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 7998 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7999 | PASSED: |
| 8000 | |
| 8001 | ------------------------------------------------------------------------------- |
| 8002 | xmlentitycheck |
| 8003 | encoded chars |
| 8004 | ------------------------------------------------------------------------------- |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 8005 | Misc.tests.cpp:<line number> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8006 | ............................................................................... |
| 8007 | |
Phil Nash | 74d3dfd | 2017-11-13 16:03:27 +0000 | [diff] [blame] | 8008 | Misc.tests.cpp:<line number>: |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8009 | PASSED: |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8010 | |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8011 | =============================================================================== |
Martin Hořeňovský | 73a1623 | 2017-11-25 18:38:18 +0100 | [diff] [blame] | 8012 | test cases: 191 | 137 passed | 50 failed | 4 failed as expected |
Martin Hořeňovský | 8c32d0b | 2017-11-28 21:47:06 +0100 | [diff] [blame] | 8013 | assertions: 954 | 827 passed | 106 failed | 21 failed as expected |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8014 | |