blob: 083d8dc049ce3795352bbd11afb8d03c19adb7d8 [file] [log] [blame]
Phil Nash2f7a2962013-09-27 19:01:14 +01001
2~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phil Nash62cbde32017-01-09 14:33:03 +00003<exe-name> is a <version> host application.
Phil Nash2f7a2962013-09-27 19:01:14 +01004Run with -? for options
5
6-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00007# A test name that starts with a #
Phil Nash5ea32662014-09-03 19:22:47 +01008-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00009Misc.tests.cpp:<line number>
Phil Nash5ea32662014-09-03 19:22:47 +010010...............................................................................
11
Phil Nash74d3dfd2017-11-13 16:03:27 +000012Misc.tests.cpp:<line number>:
Phil Nash5ea32662014-09-03 19:22:47 +010013PASSED:
Phil Nash79acc052016-11-29 11:32:16 +000014with message:
15 yay
Phil Nash5ea32662014-09-03 19:22:47 +010016
17-------------------------------------------------------------------------------
Martin Hořeňovský61d2c372017-08-30 11:40:29 +020018#1005: Comparing pointer to int and long (NULL can be either on various
19 systems)
20-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +000021Decomposition.tests.cpp:<line number>
Martin Hořeňovský61d2c372017-08-30 11:40:29 +020022...............................................................................
23
Phil Nash74d3dfd2017-11-13 16:03:27 +000024Decomposition.tests.cpp:<line number>:
Martin Hořeňovský61d2c372017-08-30 11:40:29 +020025PASSED:
26 REQUIRE( fptr == 0 )
27with expansion:
28 0 == 0
29
Phil Nash74d3dfd2017-11-13 16:03:27 +000030Decomposition.tests.cpp:<line number>:
Martin Hořeňovský61d2c372017-08-30 11:40:29 +020031PASSED:
32 REQUIRE( fptr == 0l )
33with expansion:
34 0 == 0
35
36-------------------------------------------------------------------------------
Martin Hořeňovskýb74d4ca2017-11-13 10:07:06 +010037#1027
38-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +000039Compilation.tests.cpp:<line number>
Martin Hořeňovskýb74d4ca2017-11-13 10:07:06 +010040...............................................................................
41
Phil Nash74d3dfd2017-11-13 16:03:27 +000042Compilation.tests.cpp:<line number>:
Martin Hořeňovskýb74d4ca2017-11-13 10:07:06 +010043PASSED:
44 REQUIRE( y.v == 0 )
45with expansion:
46 0 == 0
47
Phil Nash74d3dfd2017-11-13 16:03:27 +000048Compilation.tests.cpp:<line number>:
Martin Hořeňovskýb74d4ca2017-11-13 10:07:06 +010049PASSED:
50 REQUIRE( 0 == y.v )
51with expansion:
52 0 == 0
53
54-------------------------------------------------------------------------------
Phil Nash250f0ee2017-04-07 09:33:19 +010055#748 - captures with unexpected exceptions
Phil Nash714d01c2017-04-09 20:40:01 +010056 outside assertions
57-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +000058Exception.tests.cpp:<line number>
Phil Nash714d01c2017-04-09 20:40:01 +010059...............................................................................
60
Phil Nash74d3dfd2017-11-13 16:03:27 +000061Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +010062due to unexpected exception with messages:
63 answer := 42
64 expected exception
65
66-------------------------------------------------------------------------------
67#748 - captures with unexpected exceptions
Phil Nash250f0ee2017-04-07 09:33:19 +010068 inside REQUIRE_NOTHROW
Phil Nashd6b8ac52017-02-10 11:53:29 +000069-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +000070Exception.tests.cpp:<line number>
Phil Nashd6b8ac52017-02-10 11:53:29 +000071...............................................................................
72
Phil Nash74d3dfd2017-11-13 16:03:27 +000073Exception.tests.cpp:<line number>: FAILED:
Phil Nash250f0ee2017-04-07 09:33:19 +010074 REQUIRE_NOTHROW( thisThrows() )
75due to unexpected exception with messages:
76 answer := 42
77 expected exception
Phil Nashd6b8ac52017-02-10 11:53:29 +000078
Phil Nash250f0ee2017-04-07 09:33:19 +010079-------------------------------------------------------------------------------
80#748 - captures with unexpected exceptions
81 inside REQUIRE_THROWS
82-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +000083Exception.tests.cpp:<line number>
Phil Nash250f0ee2017-04-07 09:33:19 +010084...............................................................................
Phil Nashd6b8ac52017-02-10 11:53:29 +000085
Phil Nash74d3dfd2017-11-13 16:03:27 +000086Exception.tests.cpp:<line number>:
Phil Nashd6b8ac52017-02-10 11:53:29 +000087PASSED:
Phil Nash250f0ee2017-04-07 09:33:19 +010088 REQUIRE_THROWS( thisThrows() )
89with message:
90 answer := 42
Phil Nashd6b8ac52017-02-10 11:53:29 +000091
92-------------------------------------------------------------------------------
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +010093#809
94-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +000095Compilation.tests.cpp:<line number>
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +010096...............................................................................
97
Phil Nash74d3dfd2017-11-13 16:03:27 +000098Compilation.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +010099PASSED:
100 REQUIRE( 42 == f )
101with expansion:
102 42 == {?}
103
104-------------------------------------------------------------------------------
Phil Nash250f0ee2017-04-07 09:33:19 +0100105#833
106-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000107Compilation.tests.cpp:<line number>
Phil Nash250f0ee2017-04-07 09:33:19 +0100108...............................................................................
109
Phil Nash74d3dfd2017-11-13 16:03:27 +0000110Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100111PASSED:
112 REQUIRE( a == t )
113with expansion:
114 3 == 3
115
Phil Nash74d3dfd2017-11-13 16:03:27 +0000116Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100117PASSED:
118 CHECK( a == t )
119with expansion:
120 3 == 3
121
Phil Nash74d3dfd2017-11-13 16:03:27 +0000122Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100123PASSED:
124 REQUIRE_THROWS( throws_int(true) )
125
Phil Nash74d3dfd2017-11-13 16:03:27 +0000126Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100127PASSED:
Martin Hořeňovský74ab1cd2017-07-20 00:29:19 +0200128 CHECK_THROWS_AS( throws_int(true), int )
Phil Nash250f0ee2017-04-07 09:33:19 +0100129
Phil Nash74d3dfd2017-11-13 16:03:27 +0000130Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100131PASSED:
132 REQUIRE_NOTHROW( throws_int(false) )
133
Phil Nash74d3dfd2017-11-13 16:03:27 +0000134Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100135PASSED:
136 REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") )
137with expansion:
138 "aaa" ends with: "aaa"
139
Phil Nash74d3dfd2017-11-13 16:03:27 +0000140Compilation.tests.cpp:<line number>:
Phil Nash250f0ee2017-04-07 09:33:19 +0100141PASSED:
142 REQUIRE( templated_tests<int>(3) )
143with expansion:
144 true
145
146-------------------------------------------------------------------------------
Martin Hořeňovskýace70402017-03-06 22:07:33 +0100147#835 -- errno should not be touched by Catch
148-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000149Misc.tests.cpp:<line number>
Martin Hořeňovskýace70402017-03-06 22:07:33 +0100150...............................................................................
151
Phil Nash74d3dfd2017-11-13 16:03:27 +0000152Misc.tests.cpp:<line number>: FAILED:
Martin Hořeňovskýace70402017-03-06 22:07:33 +0100153 CHECK( f() == 0 )
154with expansion:
155 1 == 0
156
Phil Nash74d3dfd2017-11-13 16:03:27 +0000157Misc.tests.cpp:<line number>:
Martin Hořeňovskýace70402017-03-06 22:07:33 +0100158PASSED:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +0200159 REQUIRE( errno == 1 )
Martin Hořeňovskýace70402017-03-06 22:07:33 +0100160with expansion:
161 1 == 1
162
163-------------------------------------------------------------------------------
Phil Nash61ac3402017-04-25 14:57:58 +0100164#872
165-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000166Compilation.tests.cpp:<line number>
Phil Nash61ac3402017-04-25 14:57:58 +0100167...............................................................................
168
Phil Nash74d3dfd2017-11-13 16:03:27 +0000169Compilation.tests.cpp:<line number>:
Phil Nash61ac3402017-04-25 14:57:58 +0100170PASSED:
171 REQUIRE( x == 4 )
172with expansion:
173 {?} == 4
174with message:
175 dummy := 0
176
177-------------------------------------------------------------------------------
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200178#961 -- Dynamically created sections should all be reported
179 Looped section 0
180-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000181Misc.tests.cpp:<line number>
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200182...............................................................................
183
Phil Nash74d3dfd2017-11-13 16:03:27 +0000184Misc.tests.cpp:<line number>:
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200185PASSED:
186with message:
187 Everything is OK
188
189-------------------------------------------------------------------------------
190#961 -- Dynamically created sections should all be reported
191 Looped section 1
192-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000193Misc.tests.cpp:<line number>
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200194...............................................................................
195
Phil Nash74d3dfd2017-11-13 16:03:27 +0000196Misc.tests.cpp:<line number>:
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200197PASSED:
198with message:
199 Everything is OK
200
201-------------------------------------------------------------------------------
202#961 -- Dynamically created sections should all be reported
203 Looped section 2
204-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000205Misc.tests.cpp:<line number>
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200206...............................................................................
207
Phil Nash74d3dfd2017-11-13 16:03:27 +0000208Misc.tests.cpp:<line number>:
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200209PASSED:
210with message:
211 Everything is OK
212
213-------------------------------------------------------------------------------
214#961 -- Dynamically created sections should all be reported
215 Looped section 3
216-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000217Misc.tests.cpp:<line number>
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200218...............................................................................
219
Phil Nash74d3dfd2017-11-13 16:03:27 +0000220Misc.tests.cpp:<line number>:
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200221PASSED:
222with message:
223 Everything is OK
224
225-------------------------------------------------------------------------------
226#961 -- Dynamically created sections should all be reported
227 Looped section 4
228-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000229Misc.tests.cpp:<line number>
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200230...............................................................................
231
Phil Nash74d3dfd2017-11-13 16:03:27 +0000232Misc.tests.cpp:<line number>:
Martin Hořeňovskýf06ed852017-08-10 21:38:07 +0200233PASSED:
234with message:
235 Everything is OK
236
237-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000238'Not' checks that should fail
Phil Nash5ea32662014-09-03 19:22:47 +0100239-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000240Condition.tests.cpp:<line number>
Phil Nash5ea32662014-09-03 19:22:47 +0100241...............................................................................
242
Phil Nash74d3dfd2017-11-13 16:03:27 +0000243Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000244 CHECK( false != false )
Phil Nash5ea32662014-09-03 19:22:47 +0100245
Phil Nash74d3dfd2017-11-13 16:03:27 +0000246Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000247 CHECK( true != true )
248
Phil Nash74d3dfd2017-11-13 16:03:27 +0000249Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000250 CHECK( !true )
Phil Nash5ea32662014-09-03 19:22:47 +0100251with expansion:
Phil Nash79acc052016-11-29 11:32:16 +0000252 false
253
Phil Nash74d3dfd2017-11-13 16:03:27 +0000254Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000255 CHECK_FALSE( true )
Phil Nash05b1ca22017-10-13 19:45:19 +0100256with expansion:
257 !true
Phil Nash79acc052016-11-29 11:32:16 +0000258
Phil Nash74d3dfd2017-11-13 16:03:27 +0000259Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000260 CHECK( !trueValue )
261with expansion:
262 false
263
Phil Nash74d3dfd2017-11-13 16:03:27 +0000264Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000265 CHECK_FALSE( trueValue )
266with expansion:
267 !true
268
Phil Nash74d3dfd2017-11-13 16:03:27 +0000269Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000270 CHECK( !(1 == 1) )
271with expansion:
272 false
273
Phil Nash74d3dfd2017-11-13 16:03:27 +0000274Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000275 CHECK_FALSE( 1 == 1 )
Phil Nash5ea32662014-09-03 19:22:47 +0100276
277-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000278'Not' checks that should succeed
Phil Nash5ea32662014-09-03 19:22:47 +0100279-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000280Condition.tests.cpp:<line number>
Phil Nash5ea32662014-09-03 19:22:47 +0100281...............................................................................
282
Phil Nash74d3dfd2017-11-13 16:03:27 +0000283Condition.tests.cpp:<line number>:
Phil Nash5ea32662014-09-03 19:22:47 +0100284PASSED:
Phil Nash79acc052016-11-29 11:32:16 +0000285 REQUIRE( false == false )
Phil Nash5ea32662014-09-03 19:22:47 +0100286
Phil Nash74d3dfd2017-11-13 16:03:27 +0000287Condition.tests.cpp:<line number>:
Phil Nash5ea32662014-09-03 19:22:47 +0100288PASSED:
Phil Nash79acc052016-11-29 11:32:16 +0000289 REQUIRE( true == true )
290
Phil Nash74d3dfd2017-11-13 16:03:27 +0000291Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000292PASSED:
293 REQUIRE( !false )
Phil Nash5ea32662014-09-03 19:22:47 +0100294with expansion:
Phil Nash79acc052016-11-29 11:32:16 +0000295 true
296
Phil Nash74d3dfd2017-11-13 16:03:27 +0000297Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000298PASSED:
299 REQUIRE_FALSE( false )
Phil Nash05b1ca22017-10-13 19:45:19 +0100300with expansion:
301 !false
Phil Nash79acc052016-11-29 11:32:16 +0000302
Phil Nash74d3dfd2017-11-13 16:03:27 +0000303Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000304PASSED:
305 REQUIRE( !falseValue )
306with expansion:
307 true
308
Phil Nash74d3dfd2017-11-13 16:03:27 +0000309Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000310PASSED:
311 REQUIRE_FALSE( falseValue )
312with expansion:
313 !false
314
Phil Nash74d3dfd2017-11-13 16:03:27 +0000315Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000316PASSED:
317 REQUIRE( !(1 == 2) )
318with expansion:
319 true
320
Phil Nash74d3dfd2017-11-13 16:03:27 +0000321Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000322PASSED:
323 REQUIRE_FALSE( 1 == 2 )
Phil Nash5ea32662014-09-03 19:22:47 +0100324
325-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000326(unimplemented) static bools can be evaluated
327 compare to true
Phil Nash5ea32662014-09-03 19:22:47 +0100328-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000329Tricky.tests.cpp:<line number>
Phil Nash5ea32662014-09-03 19:22:47 +0100330...............................................................................
331
Phil Nash74d3dfd2017-11-13 16:03:27 +0000332Tricky.tests.cpp:<line number>:
Phil Nash5ea32662014-09-03 19:22:47 +0100333PASSED:
Phil Nash79acc052016-11-29 11:32:16 +0000334 REQUIRE( is_true<true>::value == true )
Phil Nash5ea32662014-09-03 19:22:47 +0100335with expansion:
Phil Nash79acc052016-11-29 11:32:16 +0000336 true == true
Phil Nash5ea32662014-09-03 19:22:47 +0100337
Phil Nash74d3dfd2017-11-13 16:03:27 +0000338Tricky.tests.cpp:<line number>:
Phil Nash5ea32662014-09-03 19:22:47 +0100339PASSED:
Phil Nash79acc052016-11-29 11:32:16 +0000340 REQUIRE( true == is_true<true>::value )
Phil Nash5ea32662014-09-03 19:22:47 +0100341with expansion:
Phil Nash79acc052016-11-29 11:32:16 +0000342 true == true
Phil Nash886ef162014-09-04 07:27:09 +0100343
Phil Nash5ea32662014-09-03 19:22:47 +0100344-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000345(unimplemented) static bools can be evaluated
346 compare to false
347-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000348Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000349...............................................................................
350
Phil Nash74d3dfd2017-11-13 16:03:27 +0000351Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000352PASSED:
353 REQUIRE( is_true<false>::value == false )
354with expansion:
355 false == false
356
Phil Nash74d3dfd2017-11-13 16:03:27 +0000357Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000358PASSED:
359 REQUIRE( false == is_true<false>::value )
360with expansion:
361 false == false
362
363-------------------------------------------------------------------------------
364(unimplemented) static bools can be evaluated
365 negation
366-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000367Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000368...............................................................................
369
Phil Nash74d3dfd2017-11-13 16:03:27 +0000370Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000371PASSED:
372 REQUIRE( !is_true<false>::value )
373with expansion:
374 true
375
376-------------------------------------------------------------------------------
377(unimplemented) static bools can be evaluated
378 double negation
379-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000380Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000381...............................................................................
382
Phil Nash74d3dfd2017-11-13 16:03:27 +0000383Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000384PASSED:
385 REQUIRE( !!is_true<true>::value )
386with expansion:
387 true
388
389-------------------------------------------------------------------------------
390(unimplemented) static bools can be evaluated
391 direct
392-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000393Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000394...............................................................................
395
Phil Nash74d3dfd2017-11-13 16:03:27 +0000396Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000397PASSED:
398 REQUIRE( is_true<true>::value )
399with expansion:
400 true
401
Phil Nash74d3dfd2017-11-13 16:03:27 +0000402Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000403PASSED:
404 REQUIRE_FALSE( is_true<false>::value )
405with expansion:
406 !false
407
408-------------------------------------------------------------------------------
409A METHOD_AS_TEST_CASE based test run that fails
410-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000411Class.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000412...............................................................................
413
Phil Nash74d3dfd2017-11-13 16:03:27 +0000414Class.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000415 REQUIRE( s == "world" )
416with expansion:
417 "hello" == "world"
418
419-------------------------------------------------------------------------------
420A METHOD_AS_TEST_CASE based test run that succeeds
421-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000422Class.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000423...............................................................................
424
Phil Nash74d3dfd2017-11-13 16:03:27 +0000425Class.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000426PASSED:
427 REQUIRE( s == "hello" )
428with expansion:
429 "hello" == "hello"
430
431-------------------------------------------------------------------------------
432A TEST_CASE_METHOD based test run that fails
433-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000434Class.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000435...............................................................................
436
Phil Nash74d3dfd2017-11-13 16:03:27 +0000437Class.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000438 REQUIRE( m_a == 2 )
439with expansion:
440 1 == 2
441
442-------------------------------------------------------------------------------
443A TEST_CASE_METHOD based test run that succeeds
444-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000445Class.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000446...............................................................................
447
Phil Nash74d3dfd2017-11-13 16:03:27 +0000448Class.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000449PASSED:
450 REQUIRE( m_a == 1 )
451with expansion:
452 1 == 1
453
454-------------------------------------------------------------------------------
455A couple of nested sections followed by a failure
456 Outer
457 Inner
458-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000459Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000460...............................................................................
461
Phil Nash74d3dfd2017-11-13 16:03:27 +0000462Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000463PASSED:
464with message:
465 that's not flying - that's failing in style
466
467-------------------------------------------------------------------------------
468A couple of nested sections followed by a failure
469-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000470Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000471...............................................................................
472
Phil Nash74d3dfd2017-11-13 16:03:27 +0000473Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000474explicitly with message:
475 to infinity and beyond
476
477-------------------------------------------------------------------------------
478A failing expression with a non streamable type is still captured
479-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000480Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000481...............................................................................
482
Phil Nash74d3dfd2017-11-13 16:03:27 +0000483Tricky.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000484 CHECK( &o1 == &o2 )
485with expansion:
486 0x<hex digits> == 0x<hex digits>
487
Phil Nash74d3dfd2017-11-13 16:03:27 +0000488Tricky.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +0000489 CHECK( o1 == o2 )
490with expansion:
491 {?} == {?}
492
493-------------------------------------------------------------------------------
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100494Absolute margin
495-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000496Approx.tests.cpp:<line number>
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100497...............................................................................
498
Phil Nash74d3dfd2017-11-13 16:03:27 +0000499Approx.tests.cpp:<line number>:
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100500PASSED:
501 REQUIRE( 104.0 != Approx(100.0) )
502with expansion:
503 104.0 != Approx( 100.0 )
504
Phil Nash74d3dfd2017-11-13 16:03:27 +0000505Approx.tests.cpp:<line number>:
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100506PASSED:
507 REQUIRE( 104.0 == Approx(100.0).margin(5) )
508with expansion:
509 104.0 == Approx( 100.0 )
510
Phil Nash74d3dfd2017-11-13 16:03:27 +0000511Approx.tests.cpp:<line number>:
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100512PASSED:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100513 REQUIRE( 104.0 == Approx(100.0).margin(4) )
514with expansion:
515 104.0 == Approx( 100.0 )
516
Phil Nash74d3dfd2017-11-13 16:03:27 +0000517Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100518PASSED:
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100519 REQUIRE( 104.0 != Approx(100.0).margin(3) )
520with expansion:
521 104.0 != Approx( 100.0 )
522
Phil Nash74d3dfd2017-11-13 16:03:27 +0000523Approx.tests.cpp:<line number>:
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100524PASSED:
525 REQUIRE( 100.3 != Approx(100.0) )
526with expansion:
527 100.3 != Approx( 100.0 )
528
Phil Nash74d3dfd2017-11-13 16:03:27 +0000529Approx.tests.cpp:<line number>:
Martin Hořeňovskýbbeb1922017-02-27 16:27:43 +0100530PASSED:
531 REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
532with expansion:
533 100.3 == Approx( 100.0 )
534
535-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000536An expression with side-effects should only be evaluated once
537-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000538Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000539...............................................................................
540
Phil Nash74d3dfd2017-11-13 16:03:27 +0000541Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000542PASSED:
543 REQUIRE( i++ == 7 )
544with expansion:
545 7 == 7
546
Phil Nash74d3dfd2017-11-13 16:03:27 +0000547Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000548PASSED:
549 REQUIRE( i++ == 8 )
550with expansion:
551 8 == 8
552
553-------------------------------------------------------------------------------
554An unchecked exception reports the line of the last assertion
555-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000556Exception.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000557...............................................................................
558
Phil Nash74d3dfd2017-11-13 16:03:27 +0000559Exception.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000560PASSED:
561 CHECK( 1 == 1 )
562
Phil Nash74d3dfd2017-11-13 16:03:27 +0000563Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +0100564 {Unknown expression after the reported line}
565due to unexpected exception with message:
566 unexpected exception
567
Phil Nash79acc052016-11-29 11:32:16 +0000568-------------------------------------------------------------------------------
569Anonymous test case 1
570-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000571VariadicMacros.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000572...............................................................................
573
Phil Nash74d3dfd2017-11-13 16:03:27 +0000574VariadicMacros.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000575PASSED:
576with message:
577 anonymous test case
578
579-------------------------------------------------------------------------------
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100580Approx setters validate their arguments
581-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000582Approx.tests.cpp:<line number>
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100583...............................................................................
584
Phil Nash74d3dfd2017-11-13 16:03:27 +0000585Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100586PASSED:
587 REQUIRE_NOTHROW( Approx(0).margin(0) )
588
Phil Nash74d3dfd2017-11-13 16:03:27 +0000589Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100590PASSED:
591 REQUIRE_NOTHROW( Approx(0).margin(1234656) )
592
Phil Nash74d3dfd2017-11-13 16:03:27 +0000593Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100594PASSED:
595 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
596
Phil Nash74d3dfd2017-11-13 16:03:27 +0000597Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100598PASSED:
599 REQUIRE_NOTHROW( Approx(0).epsilon(0) )
600
Phil Nash74d3dfd2017-11-13 16:03:27 +0000601Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100602PASSED:
603 REQUIRE_NOTHROW( Approx(0).epsilon(1) )
604
Phil Nash74d3dfd2017-11-13 16:03:27 +0000605Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100606PASSED:
607 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
608
Phil Nash74d3dfd2017-11-13 16:03:27 +0000609Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100610PASSED:
611 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
612
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100613-------------------------------------------------------------------------------
614Approx with exactly-representable margin
615-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000616Approx.tests.cpp:<line number>
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100617...............................................................................
618
Phil Nash74d3dfd2017-11-13 16:03:27 +0000619Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100620PASSED:
621 CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
622with expansion:
623 0.25f == Approx( 0.0 )
624
Phil Nash74d3dfd2017-11-13 16:03:27 +0000625Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100626PASSED:
627 CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
628with expansion:
629 0.0f == Approx( 0.25 )
630
Phil Nash74d3dfd2017-11-13 16:03:27 +0000631Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100632PASSED:
633 CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
634with expansion:
635 0.5f == Approx( 0.25 )
636
Phil Nash74d3dfd2017-11-13 16:03:27 +0000637Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100638PASSED:
639 CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
640with expansion:
641 245.0f == Approx( 245.25 )
642
Phil Nash74d3dfd2017-11-13 16:03:27 +0000643Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +0100644PASSED:
645 CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
646with expansion:
647 245.5f == Approx( 245.25 )
648
649-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000650Approximate PI
Phil Nash2f7a2962013-09-27 19:01:14 +0100651-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000652Approx.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100653...............................................................................
654
Phil Nash74d3dfd2017-11-13 16:03:27 +0000655Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100656PASSED:
Phil Nash79acc052016-11-29 11:32:16 +0000657 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +0100658with expansion:
Phil Nash79acc052016-11-29 11:32:16 +0000659 3.1428571429 == Approx( 3.141 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100660
Phil Nash74d3dfd2017-11-13 16:03:27 +0000661Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100662PASSED:
Phil Nash79acc052016-11-29 11:32:16 +0000663 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +0100664with expansion:
Phil Nash79acc052016-11-29 11:32:16 +0000665 3.1428571429 != Approx( 3.141 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100666
667-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +0000668Approximate comparisons with different epsilons
Phil Nash2f7a2962013-09-27 19:01:14 +0100669-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000670Approx.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100671...............................................................................
672
Phil Nash74d3dfd2017-11-13 16:03:27 +0000673Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100674PASSED:
675 REQUIRE( d != Approx( 1.231 ) )
676with expansion:
677 1.23 != Approx( 1.231 )
678
Phil Nash74d3dfd2017-11-13 16:03:27 +0000679Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100680PASSED:
681 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
682with expansion:
683 1.23 == Approx( 1.231 )
684
685-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +0000686Approximate comparisons with floats
Phil Nash2f7a2962013-09-27 19:01:14 +0100687-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000688Approx.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100689...............................................................................
690
Phil Nash74d3dfd2017-11-13 16:03:27 +0000691Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100692PASSED:
693 REQUIRE( 1.23f == Approx( 1.23f ) )
694with expansion:
Phil Nashd89e74f2014-07-09 18:16:40 +0100695 1.23f == Approx( 1.2300000191 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100696
Phil Nash74d3dfd2017-11-13 16:03:27 +0000697Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100698PASSED:
699 REQUIRE( 0.0f == Approx( 0.0f ) )
700with expansion:
Phil Nashd89e74f2014-07-09 18:16:40 +0100701 0.0f == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100702
703-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +0000704Approximate comparisons with ints
Phil Nash2f7a2962013-09-27 19:01:14 +0100705-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000706Approx.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100707...............................................................................
708
Phil Nash74d3dfd2017-11-13 16:03:27 +0000709Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100710PASSED:
711 REQUIRE( 1 == Approx( 1 ) )
Phil Nash1aa60fa2013-12-19 18:41:55 +0000712with expansion:
713 1 == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100714
Phil Nash74d3dfd2017-11-13 16:03:27 +0000715Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100716PASSED:
717 REQUIRE( 0 == Approx( 0 ) )
Phil Nash1aa60fa2013-12-19 18:41:55 +0000718with expansion:
719 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100720
721-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +0000722Approximate comparisons with mixed numeric types
Phil Nash2f7a2962013-09-27 19:01:14 +0100723-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000724Approx.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100725...............................................................................
726
Phil Nash74d3dfd2017-11-13 16:03:27 +0000727Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100728PASSED:
729 REQUIRE( 1.0f == Approx( 1 ) )
730with expansion:
Phil Nashd89e74f2014-07-09 18:16:40 +0100731 1.0f == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100732
Phil Nash74d3dfd2017-11-13 16:03:27 +0000733Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100734PASSED:
735 REQUIRE( 0 == Approx( dZero) )
736with expansion:
Phil Nash1aa60fa2013-12-19 18:41:55 +0000737 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100738
Phil Nash74d3dfd2017-11-13 16:03:27 +0000739Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100740PASSED:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100741 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +0100742with expansion:
Phil Nash1aa60fa2013-12-19 18:41:55 +0000743 0 == Approx( 0.00001 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100744
Phil Nash74d3dfd2017-11-13 16:03:27 +0000745Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100746PASSED:
747 REQUIRE( 1.234f == Approx( dMedium ) )
748with expansion:
Phil Nashd89e74f2014-07-09 18:16:40 +0100749 1.234f == Approx( 1.234 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100750
Phil Nash74d3dfd2017-11-13 16:03:27 +0000751Approx.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100752PASSED:
753 REQUIRE( dMedium == Approx( 1.234f ) )
754with expansion:
Phil Nash1aa60fa2013-12-19 18:41:55 +0000755 1.234 == Approx( 1.2339999676 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100756
757-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000758Assertions then sections
Phil Nash2f7a2962013-09-27 19:01:14 +0100759-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000760Tricky.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100761...............................................................................
762
Phil Nash74d3dfd2017-11-13 16:03:27 +0000763Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100764PASSED:
Martin Hořeňovský401ad7a2017-11-21 21:39:40 +0100765 REQUIRE( true )
Phil Nash2f7a2962013-09-27 19:01:14 +0100766
767-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000768Assertions then sections
769 A section
Phil Nash2f7a2962013-09-27 19:01:14 +0100770-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000771Tricky.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100772...............................................................................
773
Phil Nash74d3dfd2017-11-13 16:03:27 +0000774Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100775PASSED:
Martin Hořeňovský401ad7a2017-11-21 21:39:40 +0100776 REQUIRE( true )
Phil Nash2f7a2962013-09-27 19:01:14 +0100777
778-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000779Assertions then sections
780 A section
781 Another section
Phil Nash2f7a2962013-09-27 19:01:14 +0100782-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000783Tricky.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100784...............................................................................
785
Phil Nash74d3dfd2017-11-13 16:03:27 +0000786Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100787PASSED:
Martin Hořeňovský401ad7a2017-11-21 21:39:40 +0100788 REQUIRE( true )
Phil Nash2f7a2962013-09-27 19:01:14 +0100789
790-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000791Assertions then sections
Phil Nash2f7a2962013-09-27 19:01:14 +0100792-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000793Tricky.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100794...............................................................................
795
Phil Nash74d3dfd2017-11-13 16:03:27 +0000796Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +0100797PASSED:
Martin Hořeňovský401ad7a2017-11-21 21:39:40 +0100798 REQUIRE( true )
Phil Nash2f7a2962013-09-27 19:01:14 +0100799
800-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000801Assertions then sections
802 A section
Phil Nash2f7a2962013-09-27 19:01:14 +0100803-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000804Tricky.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +0100805...............................................................................
806
Phil Nash74d3dfd2017-11-13 16:03:27 +0000807Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000808PASSED:
Martin Hořeňovský401ad7a2017-11-21 21:39:40 +0100809 REQUIRE( true )
Phil Nash2f7a2962013-09-27 19:01:14 +0100810
811-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +0000812Assertions then sections
813 A section
814 Another other section
815-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000816Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +0000817...............................................................................
818
Phil Nash74d3dfd2017-11-13 16:03:27 +0000819Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +0000820PASSED:
Martin Hořeňovský401ad7a2017-11-21 21:39:40 +0100821 REQUIRE( true )
Phil Nash79acc052016-11-29 11:32:16 +0000822
823-------------------------------------------------------------------------------
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100824Assorted miscellaneous tests
825-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000826Approx.tests.cpp:<line number>
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100827...............................................................................
828
Phil Nash74d3dfd2017-11-13 16:03:27 +0000829Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100830PASSED:
831 REQUIRE( INFINITY == Approx(INFINITY) )
832with expansion:
833 inff == Approx( inf )
834
Phil Nash74d3dfd2017-11-13 16:03:27 +0000835Approx.tests.cpp:<line number>:
Martin Hořeňovský030321e2017-11-10 18:48:45 +0100836PASSED:
837 REQUIRE( NAN != Approx(NAN) )
838with expansion:
839 nanf != Approx( nan )
840
Phil Nash74d3dfd2017-11-13 16:03:27 +0000841Approx.tests.cpp:<line number>:
Martin Hořeňovský030321e2017-11-10 18:48:45 +0100842PASSED:
843 REQUIRE_FALSE( NAN == Approx(NAN) )
844with expansion:
845 !(nanf == Approx( nan ))
846
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +0100847-------------------------------------------------------------------------------
Phil Nashc2b7bd12017-10-13 14:16:14 +0100848Bitfields can be captured (#1027)
849-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000850Tricky.tests.cpp:<line number>
Phil Nashc2b7bd12017-10-13 14:16:14 +0100851...............................................................................
852
Phil Nash74d3dfd2017-11-13 16:03:27 +0000853Tricky.tests.cpp:<line number>:
Phil Nashc2b7bd12017-10-13 14:16:14 +0100854PASSED:
855 REQUIRE( y.v == 0 )
856with expansion:
857 0 == 0
858
Phil Nash74d3dfd2017-11-13 16:03:27 +0000859Tricky.tests.cpp:<line number>:
Phil Nashc2b7bd12017-10-13 14:16:14 +0100860PASSED:
861 REQUIRE( 0 == y.v )
862with expansion:
863 0 == 0
864
865-------------------------------------------------------------------------------
Martin Hořeňovskýbe4f6ab2017-03-03 14:34:50 +0100866Capture and info messages
867 Capture should stringify like assertions
868-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000869ToStringGeneral.tests.cpp:<line number>
Martin Hořeňovskýbe4f6ab2017-03-03 14:34:50 +0100870...............................................................................
871
Phil Nash74d3dfd2017-11-13 16:03:27 +0000872ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovskýbe4f6ab2017-03-03 14:34:50 +0100873PASSED:
874 REQUIRE( true )
875with message:
876 i := 2
877
878-------------------------------------------------------------------------------
879Capture and info messages
880 Info should NOT stringify the way assertions do
881-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000882ToStringGeneral.tests.cpp:<line number>
Martin Hořeňovskýbe4f6ab2017-03-03 14:34:50 +0100883...............................................................................
884
Phil Nash74d3dfd2017-11-13 16:03:27 +0000885ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovskýbe4f6ab2017-03-03 14:34:50 +0100886PASSED:
887 REQUIRE( true )
888with message:
889 3
890
891-------------------------------------------------------------------------------
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100892Character pretty printing
893 Specifically escaped
894-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000895ToStringGeneral.tests.cpp:<line number>
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100896...............................................................................
897
Phil Nash74d3dfd2017-11-13 16:03:27 +0000898ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100899PASSED:
900 CHECK( tab == '\t' )
901with expansion:
902 '\t' == '\t'
903
Phil Nash74d3dfd2017-11-13 16:03:27 +0000904ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100905PASSED:
906 CHECK( newline == '\n' )
907with expansion:
908 '\n' == '\n'
909
Phil Nash74d3dfd2017-11-13 16:03:27 +0000910ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100911PASSED:
912 CHECK( carr_return == '\r' )
913with expansion:
914 '\r' == '\r'
915
Phil Nash74d3dfd2017-11-13 16:03:27 +0000916ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100917PASSED:
918 CHECK( form_feed == '\f' )
919with expansion:
920 '\f' == '\f'
921
922-------------------------------------------------------------------------------
923Character pretty printing
924 General chars
925-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000926ToStringGeneral.tests.cpp:<line number>
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100927...............................................................................
928
Phil Nash74d3dfd2017-11-13 16:03:27 +0000929ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100930PASSED:
931 CHECK( space == ' ' )
932with expansion:
933 ' ' == ' '
934
Phil Nash74d3dfd2017-11-13 16:03:27 +0000935ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100936PASSED:
937 REQUIRE( c == chars[i] )
938with expansion:
939 'a' == 'a'
940
Phil Nash74d3dfd2017-11-13 16:03:27 +0000941ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100942PASSED:
943 REQUIRE( c == chars[i] )
944with expansion:
945 'z' == 'z'
946
Phil Nash74d3dfd2017-11-13 16:03:27 +0000947ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100948PASSED:
949 REQUIRE( c == chars[i] )
950with expansion:
951 'A' == 'A'
952
Phil Nash74d3dfd2017-11-13 16:03:27 +0000953ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100954PASSED:
955 REQUIRE( c == chars[i] )
956with expansion:
957 'Z' == 'Z'
958
959-------------------------------------------------------------------------------
960Character pretty printing
961 Low ASCII
962-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000963ToStringGeneral.tests.cpp:<line number>
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100964...............................................................................
965
Phil Nash74d3dfd2017-11-13 16:03:27 +0000966ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100967PASSED:
968 CHECK( null_terminator == '\0' )
969with expansion:
970 0 == 0
971
Phil Nash74d3dfd2017-11-13 16:03:27 +0000972ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100973PASSED:
974 REQUIRE( c == i )
975with expansion:
976 2 == 2
977
Phil Nash74d3dfd2017-11-13 16:03:27 +0000978ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100979PASSED:
980 REQUIRE( c == i )
981with expansion:
982 3 == 3
983
Phil Nash74d3dfd2017-11-13 16:03:27 +0000984ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100985PASSED:
986 REQUIRE( c == i )
987with expansion:
988 4 == 4
989
Phil Nash74d3dfd2017-11-13 16:03:27 +0000990ToStringGeneral.tests.cpp:<line number>:
Martin Hořeňovský7db4d8d2017-02-07 13:32:48 +0100991PASSED:
992 REQUIRE( c == i )
993with expansion:
994 5 == 5
995
996-------------------------------------------------------------------------------
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +0200997Commas in various macros are allowed
998-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +0000999Tricky.tests.cpp:<line number>
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001000...............................................................................
1001
Phil Nash74d3dfd2017-11-13 16:03:27 +00001002Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001003PASSED:
1004 REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
1005
Phil Nash74d3dfd2017-11-13 16:03:27 +00001006Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001007PASSED:
1008 CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
1009
Phil Nash74d3dfd2017-11-13 16:03:27 +00001010Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001011PASSED:
1012 REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
1013
Phil Nash74d3dfd2017-11-13 16:03:27 +00001014Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001015PASSED:
1016 CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
1017
Phil Nash74d3dfd2017-11-13 16:03:27 +00001018Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001019PASSED:
1020 REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
1021with expansion:
1022 { 1, 2 } == { 1, 2 }
1023
Phil Nash74d3dfd2017-11-13 16:03:27 +00001024Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001025PASSED:
1026 CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
1027with expansion:
1028 { 1, 2 } == { 1, 2 }
1029
Phil Nash74d3dfd2017-11-13 16:03:27 +00001030Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001031PASSED:
1032 REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
1033with expansion:
1034 !({ 1, 2 } == { 1, 2, 3 })
1035
Phil Nash74d3dfd2017-11-13 16:03:27 +00001036Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001037PASSED:
1038 CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
1039with expansion:
1040 !({ 1, 2 } == { 1, 2, 3 })
1041
Phil Nash74d3dfd2017-11-13 16:03:27 +00001042Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001043PASSED:
1044 CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
1045with expansion:
1046 { 1, 2 } == { 1, 2 }
1047
Phil Nash74d3dfd2017-11-13 16:03:27 +00001048Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001049PASSED:
1050 CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
1051with expansion:
1052 { 1, 2 } == { 1, 2 }
1053
Phil Nash74d3dfd2017-11-13 16:03:27 +00001054Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001055PASSED:
1056 REQUIRE( true )
1057
Phil Nash74d3dfd2017-11-13 16:03:27 +00001058Tricky.tests.cpp:<line number>:
Martin Hořeňovskýa9128d02017-05-03 19:10:27 +02001059PASSED:
1060 CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
1061with expansion:
1062 { 1, 2 } == { 1, 2 }
1063
1064-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001065Comparing function pointers
1066-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001067Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001068...............................................................................
1069
Phil Nash74d3dfd2017-11-13 16:03:27 +00001070Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001071PASSED:
1072 REQUIRE( a )
1073with expansion:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001074 0x<hex digits>
Phil Nash79acc052016-11-29 11:32:16 +00001075
Phil Nash74d3dfd2017-11-13 16:03:27 +00001076Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001077PASSED:
1078 REQUIRE( a == &foo )
1079with expansion:
1080 0x<hex digits> == 0x<hex digits>
1081
1082-------------------------------------------------------------------------------
Phil Nashc874a992017-07-13 08:52:51 +01001083Comparison with explicitly convertible types
1084-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001085Approx.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01001086...............................................................................
1087
Phil Nash74d3dfd2017-11-13 16:03:27 +00001088Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001089PASSED:
1090 REQUIRE( td == Approx(10.0) )
1091with expansion:
1092 StrongDoubleTypedef(10) == Approx( 10.0 )
1093
Phil Nash74d3dfd2017-11-13 16:03:27 +00001094Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001095PASSED:
1096 REQUIRE( Approx(10.0) == td )
1097with expansion:
1098 Approx( 10.0 ) == StrongDoubleTypedef(10)
1099
Phil Nash74d3dfd2017-11-13 16:03:27 +00001100Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001101PASSED:
1102 REQUIRE( td != Approx(11.0) )
1103with expansion:
1104 StrongDoubleTypedef(10) != Approx( 11.0 )
1105
Phil Nash74d3dfd2017-11-13 16:03:27 +00001106Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001107PASSED:
1108 REQUIRE( Approx(11.0) != td )
1109with expansion:
1110 Approx( 11.0 ) != StrongDoubleTypedef(10)
1111
Phil Nash74d3dfd2017-11-13 16:03:27 +00001112Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001113PASSED:
1114 REQUIRE( td <= Approx(10.0) )
1115with expansion:
1116 StrongDoubleTypedef(10) <= Approx( 10.0 )
1117
Phil Nash74d3dfd2017-11-13 16:03:27 +00001118Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001119PASSED:
1120 REQUIRE( td <= Approx(11.0) )
1121with expansion:
1122 StrongDoubleTypedef(10) <= Approx( 11.0 )
1123
Phil Nash74d3dfd2017-11-13 16:03:27 +00001124Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001125PASSED:
1126 REQUIRE( Approx(10.0) <= td )
1127with expansion:
1128 Approx( 10.0 ) <= StrongDoubleTypedef(10)
1129
Phil Nash74d3dfd2017-11-13 16:03:27 +00001130Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001131PASSED:
1132 REQUIRE( Approx(9.0) <= td )
1133with expansion:
1134 Approx( 9.0 ) <= StrongDoubleTypedef(10)
1135
Phil Nash74d3dfd2017-11-13 16:03:27 +00001136Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001137PASSED:
1138 REQUIRE( td >= Approx(9.0) )
1139with expansion:
1140 StrongDoubleTypedef(10) >= Approx( 9.0 )
1141
Phil Nash74d3dfd2017-11-13 16:03:27 +00001142Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001143PASSED:
Martin Hořeňovský28d19552017-11-28 21:29:34 +01001144 REQUIRE( td >= Approx(td) )
Phil Nashc874a992017-07-13 08:52:51 +01001145with expansion:
1146 StrongDoubleTypedef(10) >= Approx( 10.0 )
1147
Phil Nash74d3dfd2017-11-13 16:03:27 +00001148Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001149PASSED:
Martin Hořeňovský28d19552017-11-28 21:29:34 +01001150 REQUIRE( Approx(td) >= td )
Phil Nashc874a992017-07-13 08:52:51 +01001151with expansion:
1152 Approx( 10.0 ) >= StrongDoubleTypedef(10)
1153
Phil Nash74d3dfd2017-11-13 16:03:27 +00001154Approx.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01001155PASSED:
1156 REQUIRE( Approx(11.0) >= td )
1157with expansion:
1158 Approx( 11.0 ) >= StrongDoubleTypedef(10)
1159
1160-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001161Comparisons between ints where one side is computed
Phil Nash2f7a2962013-09-27 19:01:14 +01001162-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001163Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001164...............................................................................
1165
Phil Nash74d3dfd2017-11-13 16:03:27 +00001166Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001167PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001168 CHECK( 54 == 6*9 )
Phil Nash2f7a2962013-09-27 19:01:14 +01001169with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001170 54 == 54
Phil Nash2f7a2962013-09-27 19:01:14 +01001171
1172-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001173Comparisons between unsigned ints and negative signed ints match c++ standard
1174behaviour
Phil Nash2f7a2962013-09-27 19:01:14 +01001175-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001176Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001177...............................................................................
1178
Phil Nash74d3dfd2017-11-13 16:03:27 +00001179Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001180PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001181 CHECK( ( -1 > 2u ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01001182with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001183 true
Phil Nash2f7a2962013-09-27 19:01:14 +01001184
Phil Nash74d3dfd2017-11-13 16:03:27 +00001185Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001186PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001187 CHECK( -1 > 2u )
Phil Nash2f7a2962013-09-27 19:01:14 +01001188with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001189 -1 > 2
Phil Nash2f7a2962013-09-27 19:01:14 +01001190
Phil Nash74d3dfd2017-11-13 16:03:27 +00001191Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001192PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001193 CHECK( ( 2u < -1 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01001194with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001195 true
Phil Nash2f7a2962013-09-27 19:01:14 +01001196
Phil Nash74d3dfd2017-11-13 16:03:27 +00001197Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001198PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001199 CHECK( 2u < -1 )
Phil Nash2f7a2962013-09-27 19:01:14 +01001200with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001201 2 < -1
Phil Nash2f7a2962013-09-27 19:01:14 +01001202
Phil Nash74d3dfd2017-11-13 16:03:27 +00001203Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001204PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001205 CHECK( ( minInt > 2u ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01001206with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001207 true
Phil Nash2f7a2962013-09-27 19:01:14 +01001208
Phil Nash74d3dfd2017-11-13 16:03:27 +00001209Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001210PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001211 CHECK( minInt > 2u )
Phil Nash2f7a2962013-09-27 19:01:14 +01001212with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001213 -2147483648 > 2
Phil Nash2f7a2962013-09-27 19:01:14 +01001214
1215-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00001216Comparisons with int literals don't warn when mixing signed/ unsigned
Phil Nash2f7a2962013-09-27 19:01:14 +01001217-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001218Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001219...............................................................................
1220
Phil Nash74d3dfd2017-11-13 16:03:27 +00001221Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001222PASSED:
1223 REQUIRE( i == 1 )
1224with expansion:
1225 1 == 1
1226
Phil Nash74d3dfd2017-11-13 16:03:27 +00001227Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001228PASSED:
1229 REQUIRE( ui == 2 )
1230with expansion:
1231 2 == 2
1232
Phil Nash74d3dfd2017-11-13 16:03:27 +00001233Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001234PASSED:
1235 REQUIRE( l == 3 )
1236with expansion:
1237 3 == 3
1238
Phil Nash74d3dfd2017-11-13 16:03:27 +00001239Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001240PASSED:
1241 REQUIRE( ul == 4 )
1242with expansion:
1243 4 == 4
1244
Phil Nash74d3dfd2017-11-13 16:03:27 +00001245Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001246PASSED:
1247 REQUIRE( c == 5 )
1248with expansion:
1249 5 == 5
1250
Phil Nash74d3dfd2017-11-13 16:03:27 +00001251Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001252PASSED:
1253 REQUIRE( uc == 6 )
1254with expansion:
1255 6 == 6
1256
Phil Nash74d3dfd2017-11-13 16:03:27 +00001257Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001258PASSED:
1259 REQUIRE( 1 == i )
1260with expansion:
1261 1 == 1
1262
Phil Nash74d3dfd2017-11-13 16:03:27 +00001263Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001264PASSED:
1265 REQUIRE( 2 == ui )
1266with expansion:
1267 2 == 2
1268
Phil Nash74d3dfd2017-11-13 16:03:27 +00001269Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001270PASSED:
1271 REQUIRE( 3 == l )
1272with expansion:
1273 3 == 3
1274
Phil Nash74d3dfd2017-11-13 16:03:27 +00001275Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001276PASSED:
1277 REQUIRE( 4 == ul )
1278with expansion:
1279 4 == 4
1280
Phil Nash74d3dfd2017-11-13 16:03:27 +00001281Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001282PASSED:
1283 REQUIRE( 5 == c )
1284with expansion:
1285 5 == 5
1286
Phil Nash74d3dfd2017-11-13 16:03:27 +00001287Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001288PASSED:
1289 REQUIRE( 6 == uc )
1290with expansion:
1291 6 == 6
1292
Phil Nash74d3dfd2017-11-13 16:03:27 +00001293Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001294PASSED:
Martin Hořeňovskýab5d1762017-09-01 20:28:49 +02001295 REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
Phil Nash2f7a2962013-09-27 19:01:14 +01001296with expansion:
Martin Hořeňovskýab5d1762017-09-01 20:28:49 +02001297 4294967295 (0x<hex digits>) > 4
Phil Nash2f7a2962013-09-27 19:01:14 +01001298
1299-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001300Contains string matcher
Phil Nash2f7a2962013-09-27 19:01:14 +01001301-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001302Matchers.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001303...............................................................................
1304
Phil Nash74d3dfd2017-11-13 16:03:27 +00001305Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001306 CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) )
Phil Nash2f7a2962013-09-27 19:01:14 +01001307with expansion:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001308 "this string contains 'abc' as a substring" contains: "not there" (case
1309 insensitive)
1310
Phil Nash74d3dfd2017-11-13 16:03:27 +00001311Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001312 CHECK_THAT( testStringForMatching(), Contains("STRING") )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001313with expansion:
1314 "this string contains 'abc' as a substring" contains: "STRING"
Phil Nasha49f0882015-11-18 08:39:21 +00001315
1316-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00001317Custom exceptions can be translated when testing for nothrow
Phil Nash2f7a2962013-09-27 19:01:14 +01001318-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001319Exception.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001320...............................................................................
1321
Phil Nash74d3dfd2017-11-13 16:03:27 +00001322Exception.tests.cpp:<line number>: FAILED:
Phil Nash2f7a2962013-09-27 19:01:14 +01001323 REQUIRE_NOTHROW( throwCustom() )
1324due to unexpected exception with message:
1325 custom exception - not std
1326
1327-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00001328Custom exceptions can be translated when testing for throwing as something else
Phil Nash2f7a2962013-09-27 19:01:14 +01001329-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001330Exception.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001331...............................................................................
1332
Phil Nash74d3dfd2017-11-13 16:03:27 +00001333Exception.tests.cpp:<line number>: FAILED:
Martin Hořeňovský9952dda2017-02-09 12:41:16 +01001334 REQUIRE_THROWS_AS( throwCustom(), std::exception )
Phil Nash2f7a2962013-09-27 19:01:14 +01001335due to unexpected exception with message:
1336 custom exception - not std
1337
1338-------------------------------------------------------------------------------
Phil Nash714d01c2017-04-09 20:40:01 +01001339Custom std-exceptions can be custom translated
1340-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001341Exception.tests.cpp:<line number>
Phil Nash714d01c2017-04-09 20:40:01 +01001342...............................................................................
1343
Phil Nash74d3dfd2017-11-13 16:03:27 +00001344Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +01001345due to unexpected exception with message:
1346 custom std exception
1347
1348-------------------------------------------------------------------------------
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001349Default scale is invisible to comparison
1350-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001351Approx.tests.cpp:<line number>
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001352...............................................................................
1353
Phil Nash74d3dfd2017-11-13 16:03:27 +00001354Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001355PASSED:
1356 REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
1357with expansion:
1358 101.000001 != Approx( 100.0 )
1359
Phil Nash74d3dfd2017-11-13 16:03:27 +00001360Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001361PASSED:
1362 REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
1363with expansion:
1364 0.00001 != Approx( 0.0000001 )
1365
1366-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001367EndsWith string matcher
1368-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001369Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001370...............................................................................
1371
Phil Nash74d3dfd2017-11-13 16:03:27 +00001372Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001373 CHECK_THAT( testStringForMatching(), EndsWith("Substring") )
Phil Nash79acc052016-11-29 11:32:16 +00001374with expansion:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001375 "this string contains 'abc' as a substring" ends with: "Substring"
1376
Phil Nash74d3dfd2017-11-13 16:03:27 +00001377Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001378 CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001379with expansion:
1380 "this string contains 'abc' as a substring" ends with: "this" (case
1381 insensitive)
Phil Nash79acc052016-11-29 11:32:16 +00001382
1383-------------------------------------------------------------------------------
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001384Epsilon only applies to Approx's value
1385-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001386Approx.tests.cpp:<line number>
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001387...............................................................................
1388
Phil Nash74d3dfd2017-11-13 16:03:27 +00001389Approx.tests.cpp:<line number>:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01001390PASSED:
1391 REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
1392with expansion:
1393 101.01 != Approx( 100.0 )
1394
1395-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001396Equality checks that should fail
1397-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001398Condition.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001399...............................................................................
1400
Phil Nash74d3dfd2017-11-13 16:03:27 +00001401Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001402 CHECK( data.int_seven == 6 )
1403with expansion:
1404 7 == 6
1405
Phil Nash74d3dfd2017-11-13 16:03:27 +00001406Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001407 CHECK( data.int_seven == 8 )
1408with expansion:
1409 7 == 8
1410
Phil Nash74d3dfd2017-11-13 16:03:27 +00001411Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001412 CHECK( data.int_seven == 0 )
1413with expansion:
1414 7 == 0
1415
Phil Nash74d3dfd2017-11-13 16:03:27 +00001416Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001417 CHECK( data.float_nine_point_one == Approx( 9.11f ) )
1418with expansion:
1419 9.1f == Approx( 9.1099996567 )
1420
Phil Nash74d3dfd2017-11-13 16:03:27 +00001421Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001422 CHECK( data.float_nine_point_one == Approx( 9.0f ) )
1423with expansion:
1424 9.1f == Approx( 9.0 )
1425
Phil Nash74d3dfd2017-11-13 16:03:27 +00001426Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001427 CHECK( data.float_nine_point_one == Approx( 1 ) )
1428with expansion:
1429 9.1f == Approx( 1.0 )
1430
Phil Nash74d3dfd2017-11-13 16:03:27 +00001431Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001432 CHECK( data.float_nine_point_one == Approx( 0 ) )
1433with expansion:
1434 9.1f == Approx( 0.0 )
1435
Phil Nash74d3dfd2017-11-13 16:03:27 +00001436Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001437 CHECK( data.double_pi == Approx( 3.1415 ) )
1438with expansion:
1439 3.1415926535 == Approx( 3.1415 )
1440
Phil Nash74d3dfd2017-11-13 16:03:27 +00001441Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001442 CHECK( data.str_hello == "goodbye" )
1443with expansion:
1444 "hello" == "goodbye"
1445
Phil Nash74d3dfd2017-11-13 16:03:27 +00001446Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001447 CHECK( data.str_hello == "hell" )
1448with expansion:
1449 "hello" == "hell"
1450
Phil Nash74d3dfd2017-11-13 16:03:27 +00001451Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001452 CHECK( data.str_hello == "hello1" )
1453with expansion:
1454 "hello" == "hello1"
1455
Phil Nash74d3dfd2017-11-13 16:03:27 +00001456Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001457 CHECK( data.str_hello.size() == 6 )
1458with expansion:
1459 5 == 6
1460
Phil Nash74d3dfd2017-11-13 16:03:27 +00001461Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001462 CHECK( x == Approx( 1.301 ) )
1463with expansion:
1464 1.3 == Approx( 1.301 )
1465
1466-------------------------------------------------------------------------------
1467Equality checks that should succeed
1468-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001469Condition.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001470...............................................................................
1471
Phil Nash74d3dfd2017-11-13 16:03:27 +00001472Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001473PASSED:
1474 REQUIRE( data.int_seven == 7 )
1475with expansion:
1476 7 == 7
1477
Phil Nash74d3dfd2017-11-13 16:03:27 +00001478Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001479PASSED:
1480 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
1481with expansion:
1482 9.1f == Approx( 9.1000003815 )
1483
Phil Nash74d3dfd2017-11-13 16:03:27 +00001484Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001485PASSED:
1486 REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
1487with expansion:
1488 3.1415926535 == Approx( 3.1415926535 )
1489
Phil Nash74d3dfd2017-11-13 16:03:27 +00001490Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001491PASSED:
1492 REQUIRE( data.str_hello == "hello" )
1493with expansion:
1494 "hello" == "hello"
1495
Phil Nash74d3dfd2017-11-13 16:03:27 +00001496Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001497PASSED:
1498 REQUIRE( "hello" == data.str_hello )
1499with expansion:
1500 "hello" == "hello"
1501
Phil Nash74d3dfd2017-11-13 16:03:27 +00001502Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001503PASSED:
1504 REQUIRE( data.str_hello.size() == 5 )
1505with expansion:
1506 5 == 5
1507
Phil Nash74d3dfd2017-11-13 16:03:27 +00001508Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001509PASSED:
1510 REQUIRE( x == Approx( 1.3 ) )
1511with expansion:
1512 1.3 == Approx( 1.3 )
1513
1514-------------------------------------------------------------------------------
1515Equals
1516-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001517Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001518...............................................................................
1519
Phil Nash74d3dfd2017-11-13 16:03:27 +00001520Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001521PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00001522 CHECK_THAT( testStringForMatching(), Equals("this string contains 'abc' as a substring") )
Phil Nash79acc052016-11-29 11:32:16 +00001523with expansion:
1524 "this string contains 'abc' as a substring" equals: "this string contains
1525 'abc' as a substring"
1526
Phil Nash74d3dfd2017-11-13 16:03:27 +00001527Matchers.tests.cpp:<line number>:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001528PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00001529 CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001530with expansion:
1531 "this string contains 'abc' as a substring" equals: "this string contains
1532 'abc' as a substring" (case insensitive)
1533
Phil Nash79acc052016-11-29 11:32:16 +00001534-------------------------------------------------------------------------------
1535Equals string matcher
1536-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001537Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001538...............................................................................
1539
Phil Nash74d3dfd2017-11-13 16:03:27 +00001540Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001541 CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring") )
Phil Nash79acc052016-11-29 11:32:16 +00001542with expansion:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001543 "this string contains 'abc' as a substring" equals: "this string contains
1544 'ABC' as a substring"
1545
Phil Nash74d3dfd2017-11-13 16:03:27 +00001546Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001547 CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01001548with expansion:
1549 "this string contains 'abc' as a substring" equals: "something else" (case
1550 insensitive)
Phil Nash79acc052016-11-29 11:32:16 +00001551
1552-------------------------------------------------------------------------------
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001553Exception matchers that fail
1554 No exception
1555-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001556Matchers.tests.cpp:<line number>
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001557...............................................................................
1558
Phil Nash74d3dfd2017-11-13 16:03:27 +00001559Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001560 CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001561because no exception was thrown where one was expected:
1562
Phil Nash74d3dfd2017-11-13 16:03:27 +00001563Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001564 REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001565because no exception was thrown where one was expected:
1566
1567-------------------------------------------------------------------------------
1568Exception matchers that fail
1569 Type mismatch
1570-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001571Matchers.tests.cpp:<line number>
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001572...............................................................................
1573
Phil Nash74d3dfd2017-11-13 16:03:27 +00001574Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001575 CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001576due to unexpected exception with message:
1577 Unknown exception
1578
Phil Nash74d3dfd2017-11-13 16:03:27 +00001579Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001580 REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001581due to unexpected exception with message:
1582 Unknown exception
1583
1584-------------------------------------------------------------------------------
1585Exception matchers that fail
1586 Contents are wrong
1587-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001588Matchers.tests.cpp:<line number>
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001589...............................................................................
1590
Phil Nash74d3dfd2017-11-13 16:03:27 +00001591Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001592 CHECK_THROWS_MATCHES( throws(3), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001593with expansion:
1594 {?} special exception has value of 1
1595
Phil Nash74d3dfd2017-11-13 16:03:27 +00001596Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00001597 REQUIRE_THROWS_MATCHES( throws(4), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001598with expansion:
1599 {?} special exception has value of 1
1600
1601-------------------------------------------------------------------------------
1602Exception matchers that succeed
1603-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001604Matchers.tests.cpp:<line number>
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001605...............................................................................
1606
Phil Nash74d3dfd2017-11-13 16:03:27 +00001607Matchers.tests.cpp:<line number>:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001608PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00001609 CHECK_THROWS_MATCHES( throws(1), SpecialException, ExceptionMatcher{1} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001610with expansion:
1611 {?} special exception has value of 1
1612
Phil Nash74d3dfd2017-11-13 16:03:27 +00001613Matchers.tests.cpp:<line number>:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001614PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00001615 REQUIRE_THROWS_MATCHES( throws(2), SpecialException, ExceptionMatcher{2} )
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02001616with expansion:
1617 {?} special exception has value of 2
1618
1619-------------------------------------------------------------------------------
Phil Nash85de7432015-07-13 06:34:41 +01001620Exception messages can be tested for
Phil Nash2104ca22015-07-13 15:03:04 +01001621 exact match
Phil Nash85de7432015-07-13 06:34:41 +01001622-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001623Exception.tests.cpp:<line number>
Phil Nash85de7432015-07-13 06:34:41 +01001624...............................................................................
1625
Phil Nash74d3dfd2017-11-13 16:03:27 +00001626Exception.tests.cpp:<line number>:
Phil Nash85de7432015-07-13 06:34:41 +01001627PASSED:
1628 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
Phil Nash27fd8f82017-08-09 00:44:30 +01001629with expansion:
1630 "expected exception" equals: "expected exception"
Phil Nash85de7432015-07-13 06:34:41 +01001631
Phil Nash2104ca22015-07-13 15:03:04 +01001632-------------------------------------------------------------------------------
1633Exception messages can be tested for
1634 different case
1635-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001636Exception.tests.cpp:<line number>
Phil Nash2104ca22015-07-13 15:03:04 +01001637...............................................................................
1638
Phil Nash74d3dfd2017-11-13 16:03:27 +00001639Exception.tests.cpp:<line number>:
Phil Nash2104ca22015-07-13 15:03:04 +01001640PASSED:
Phil Nash72868922015-07-15 23:02:25 +01001641 REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
Phil Nash27fd8f82017-08-09 00:44:30 +01001642with expansion:
1643 "expected exception" equals: "expected exception" (case insensitive)
Phil Nash2104ca22015-07-13 15:03:04 +01001644
1645-------------------------------------------------------------------------------
1646Exception messages can be tested for
1647 wildcarded
1648-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001649Exception.tests.cpp:<line number>
Phil Nash2104ca22015-07-13 15:03:04 +01001650...............................................................................
1651
Phil Nash74d3dfd2017-11-13 16:03:27 +00001652Exception.tests.cpp:<line number>:
Phil Nash2104ca22015-07-13 15:03:04 +01001653PASSED:
Phil Nash72868922015-07-15 23:02:25 +01001654 REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
Phil Nash27fd8f82017-08-09 00:44:30 +01001655with expansion:
1656 "expected exception" starts with: "expected"
Phil Nash2104ca22015-07-13 15:03:04 +01001657
Phil Nash74d3dfd2017-11-13 16:03:27 +00001658Exception.tests.cpp:<line number>:
Phil Nash2104ca22015-07-13 15:03:04 +01001659PASSED:
Phil Nash72868922015-07-15 23:02:25 +01001660 REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
Phil Nash27fd8f82017-08-09 00:44:30 +01001661with expansion:
1662 "expected exception" ends with: "exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001663
Phil Nash74d3dfd2017-11-13 16:03:27 +00001664Exception.tests.cpp:<line number>:
Phil Nash2104ca22015-07-13 15:03:04 +01001665PASSED:
Phil Nash72868922015-07-15 23:02:25 +01001666 REQUIRE_THROWS_WITH( thisThrows(), Contains( "except" ) )
Phil Nash27fd8f82017-08-09 00:44:30 +01001667with expansion:
1668 "expected exception" contains: "except"
Phil Nash2104ca22015-07-13 15:03:04 +01001669
Phil Nash74d3dfd2017-11-13 16:03:27 +00001670Exception.tests.cpp:<line number>:
Phil Nash2104ca22015-07-13 15:03:04 +01001671PASSED:
Phil Nash72868922015-07-15 23:02:25 +01001672 REQUIRE_THROWS_WITH( thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) )
Phil Nash27fd8f82017-08-09 00:44:30 +01001673with expansion:
1674 "expected exception" contains: "except" (case insensitive)
Phil Nash2104ca22015-07-13 15:03:04 +01001675
1676-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001677Expected exceptions that don't throw or unexpected exceptions fail the test
Phil Nash2104ca22015-07-13 15:03:04 +01001678-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001679Exception.tests.cpp:<line number>
Phil Nash2104ca22015-07-13 15:03:04 +01001680...............................................................................
1681
Phil Nash74d3dfd2017-11-13 16:03:27 +00001682Exception.tests.cpp:<line number>: FAILED:
Martin Hořeňovský9952dda2017-02-09 12:41:16 +01001683 CHECK_THROWS_AS( thisThrows(), std::string )
Phil Nash79acc052016-11-29 11:32:16 +00001684due to unexpected exception with message:
1685 expected exception
Phil Nash2104ca22015-07-13 15:03:04 +01001686
Phil Nash74d3dfd2017-11-13 16:03:27 +00001687Exception.tests.cpp:<line number>: FAILED:
Martin Hořeňovský9952dda2017-02-09 12:41:16 +01001688 CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
Phil Nash79acc052016-11-29 11:32:16 +00001689because no exception was thrown where one was expected:
1690
Phil Nash74d3dfd2017-11-13 16:03:27 +00001691Exception.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001692 CHECK_NOTHROW( thisThrows() )
1693due to unexpected exception with message:
Phil Nash85de7432015-07-13 06:34:41 +01001694 expected exception
1695
1696-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001697FAIL aborts the test
Phil Nash2f7a2962013-09-27 19:01:14 +01001698-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001699Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01001700...............................................................................
1701
Phil Nash74d3dfd2017-11-13 16:03:27 +00001702Message.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001703explicitly with message:
1704 This is a failure
1705
1706-------------------------------------------------------------------------------
1707FAIL does not require an argument
1708-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001709Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001710...............................................................................
1711
Phil Nash74d3dfd2017-11-13 16:03:27 +00001712Message.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00001713
1714-------------------------------------------------------------------------------
Phil Nash5dd06392017-03-08 15:40:20 +00001715FAIL_CHECK does not abort the test
1716-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001717Message.tests.cpp:<line number>
Phil Nash5dd06392017-03-08 15:40:20 +00001718...............................................................................
1719
Phil Nash74d3dfd2017-11-13 16:03:27 +00001720Message.tests.cpp:<line number>: FAILED:
Phil Nash5dd06392017-03-08 15:40:20 +00001721explicitly with message:
1722 This is a failure
1723
Phil Nash74d3dfd2017-11-13 16:03:27 +00001724Message.tests.cpp:<line number>:
Phil Nash5dd06392017-03-08 15:40:20 +00001725warning:
1726 This message appears in the output
1727
1728-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00001729Factorials are computed
1730-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001731Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00001732...............................................................................
1733
Phil Nash74d3dfd2017-11-13 16:03:27 +00001734Misc.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001735PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001736 REQUIRE( Factorial(0) == 1 )
1737with expansion:
1738 1 == 1
1739
Phil Nash74d3dfd2017-11-13 16:03:27 +00001740Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001741PASSED:
1742 REQUIRE( Factorial(1) == 1 )
1743with expansion:
1744 1 == 1
1745
Phil Nash74d3dfd2017-11-13 16:03:27 +00001746Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00001747PASSED:
1748 REQUIRE( Factorial(2) == 2 )
Phil Nash2f7a2962013-09-27 19:01:14 +01001749with expansion:
1750 2 == 2
1751
Phil Nash74d3dfd2017-11-13 16:03:27 +00001752Misc.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001753PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001754 REQUIRE( Factorial(3) == 6 )
Phil Nash2f7a2962013-09-27 19:01:14 +01001755with expansion:
1756 6 == 6
1757
Phil Nash74d3dfd2017-11-13 16:03:27 +00001758Misc.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01001759PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00001760 REQUIRE( Factorial(10) == 3628800 )
Phil Nash2f7a2962013-09-27 19:01:14 +01001761with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00001762 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
Phil Nash2f7a2962013-09-27 19:01:14 +01001763
1764-------------------------------------------------------------------------------
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001765Floating point matchers: double
1766 Margin
1767-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001768Matchers.tests.cpp:<line number>
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001769...............................................................................
1770
Phil Nash74d3dfd2017-11-13 16:03:27 +00001771Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001772PASSED:
1773 REQUIRE_THAT( 1., WithinAbs(1., 0) )
1774with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001775 1.0 is within 0.0 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001776
Phil Nash74d3dfd2017-11-13 16:03:27 +00001777Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001778PASSED:
1779 REQUIRE_THAT( 0., WithinAbs(1., 1) )
1780with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001781 0.0 is within 1.0 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001782
Phil Nash74d3dfd2017-11-13 16:03:27 +00001783Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001784PASSED:
1785 REQUIRE_THAT( 0., !WithinAbs(1., 0.99) )
1786with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001787 0.0 not is within 0.99 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001788
Phil Nash74d3dfd2017-11-13 16:03:27 +00001789Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001790PASSED:
1791 REQUIRE_THAT( 0., !WithinAbs(1., 0.99) )
1792with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001793 0.0 not is within 0.99 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001794
Phil Nash74d3dfd2017-11-13 16:03:27 +00001795Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001796PASSED:
1797 REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) )
1798with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001799 nanf not is within 0.0 of nan
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001800
1801-------------------------------------------------------------------------------
1802Floating point matchers: double
1803 ULPs
1804-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001805Matchers.tests.cpp:<line number>
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001806...............................................................................
1807
Phil Nash74d3dfd2017-11-13 16:03:27 +00001808Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001809PASSED:
1810 REQUIRE_THAT( 1., WithinULP(1., 0) )
1811with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001812 1.0 is within 0 ULPs of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001813
Phil Nash74d3dfd2017-11-13 16:03:27 +00001814Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001815PASSED:
1816 REQUIRE_THAT( std::nextafter(1., 2.), WithinULP(1., 1) )
1817with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001818 1.0 is within 1 ULPs of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001819
Phil Nash74d3dfd2017-11-13 16:03:27 +00001820Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001821PASSED:
1822 REQUIRE_THAT( std::nextafter(1., 0.), WithinULP(1., 1) )
1823with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001824 1.0 is within 1 ULPs of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001825
Phil Nash74d3dfd2017-11-13 16:03:27 +00001826Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001827PASSED:
1828 REQUIRE_THAT( std::nextafter(1., 2.), !WithinULP(1., 0) )
1829with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001830 1.0 not is within 0 ULPs of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001831
Phil Nash74d3dfd2017-11-13 16:03:27 +00001832Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001833PASSED:
1834 REQUIRE_THAT( 1., WithinULP(1., 0) )
1835with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001836 1.0 is within 0 ULPs of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001837
Phil Nash74d3dfd2017-11-13 16:03:27 +00001838Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001839PASSED:
1840 REQUIRE_THAT( -0., WithinULP(0., 0) )
1841with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001842 -0.0 is within 0 ULPs of 0.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001843
Phil Nash74d3dfd2017-11-13 16:03:27 +00001844Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001845PASSED:
1846 REQUIRE_THAT( NAN, !WithinULP(NAN, 123) )
1847with expansion:
1848 nanf not is within 123 ULPs of nanf
1849
1850-------------------------------------------------------------------------------
1851Floating point matchers: double
1852 Composed
1853-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001854Matchers.tests.cpp:<line number>
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001855...............................................................................
1856
Phil Nash74d3dfd2017-11-13 16:03:27 +00001857Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001858PASSED:
1859 REQUIRE_THAT( 1., WithinAbs(1., 0.5) || WithinULP(2., 1) )
1860with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001861 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0 )
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001862
Phil Nash74d3dfd2017-11-13 16:03:27 +00001863Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001864PASSED:
1865 REQUIRE_THAT( 1., WithinAbs(2., 0.5) || WithinULP(1., 0) )
1866with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001867 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0 )
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001868
Phil Nash74d3dfd2017-11-13 16:03:27 +00001869Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001870PASSED:
1871 REQUIRE_THAT( NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) )
1872with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001873 nanf not ( is within 100.0 of nan or is within 123 ULPs of nanf )
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001874
1875-------------------------------------------------------------------------------
1876Floating point matchers: float
1877 Margin
1878-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001879Matchers.tests.cpp:<line number>
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001880...............................................................................
1881
Phil Nash74d3dfd2017-11-13 16:03:27 +00001882Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001883PASSED:
1884 REQUIRE_THAT( 1.f, WithinAbs(1.f, 0) )
1885with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001886 1.0f is within 0.0 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001887
Phil Nash74d3dfd2017-11-13 16:03:27 +00001888Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001889PASSED:
1890 REQUIRE_THAT( 0.f, WithinAbs(1.f, 1) )
1891with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001892 0.0f is within 1.0 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001893
Phil Nash74d3dfd2017-11-13 16:03:27 +00001894Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001895PASSED:
1896 REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) )
1897with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001898 0.0f not is within 0.9900000095 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001899
Phil Nash74d3dfd2017-11-13 16:03:27 +00001900Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001901PASSED:
1902 REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) )
1903with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001904 0.0f not is within 0.9900000095 of 1.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001905
Phil Nash74d3dfd2017-11-13 16:03:27 +00001906Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001907PASSED:
1908 REQUIRE_THAT( 0.f, WithinAbs(-0.f, 0) )
1909with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001910 0.0f is within 0.0 of -0.0
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001911
Phil Nash74d3dfd2017-11-13 16:03:27 +00001912Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001913PASSED:
1914 REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) )
1915with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001916 nanf not is within 0.0 of nan
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001917
1918-------------------------------------------------------------------------------
1919Floating point matchers: float
1920 ULPs
1921-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001922Matchers.tests.cpp:<line number>
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001923...............................................................................
1924
Phil Nash74d3dfd2017-11-13 16:03:27 +00001925Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001926PASSED:
1927 REQUIRE_THAT( 1.f, WithinULP(1.f, 0) )
1928with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001929 1.0f is within 0 ULPs of 1.0f
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001930
Phil Nash74d3dfd2017-11-13 16:03:27 +00001931Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001932PASSED:
1933 REQUIRE_THAT( std::nextafter(1.f, 2.f), WithinULP(1.f, 1) )
1934with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001935 1.0f is within 1 ULPs of 1.0f
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001936
Phil Nash74d3dfd2017-11-13 16:03:27 +00001937Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001938PASSED:
1939 REQUIRE_THAT( std::nextafter(1.f, 0.f), WithinULP(1.f, 1) )
1940with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001941 1.0f is within 1 ULPs of 1.0f
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001942
Phil Nash74d3dfd2017-11-13 16:03:27 +00001943Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001944PASSED:
1945 REQUIRE_THAT( std::nextafter(1.f, 2.f), !WithinULP(1.f, 0) )
1946with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001947 1.0f not is within 0 ULPs of 1.0f
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001948
Phil Nash74d3dfd2017-11-13 16:03:27 +00001949Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001950PASSED:
1951 REQUIRE_THAT( 1.f, WithinULP(1.f, 0) )
1952with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001953 1.0f is within 0 ULPs of 1.0f
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001954
Phil Nash74d3dfd2017-11-13 16:03:27 +00001955Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001956PASSED:
1957 REQUIRE_THAT( -0.f, WithinULP(0.f, 0) )
1958with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001959 -0.0f is within 0 ULPs of 0.0f
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001960
Phil Nash74d3dfd2017-11-13 16:03:27 +00001961Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001962PASSED:
1963 REQUIRE_THAT( NAN, !WithinULP(NAN, 123) )
1964with expansion:
1965 nanf not is within 123 ULPs of nanf
1966
1967-------------------------------------------------------------------------------
1968Floating point matchers: float
1969 Composed
1970-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001971Matchers.tests.cpp:<line number>
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001972...............................................................................
1973
Phil Nash74d3dfd2017-11-13 16:03:27 +00001974Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001975PASSED:
1976 REQUIRE_THAT( 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) )
1977with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001978 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.0f )
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001979
Phil Nash74d3dfd2017-11-13 16:03:27 +00001980Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001981PASSED:
1982 REQUIRE_THAT( 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) )
1983with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001984 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0f )
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001985
Phil Nash74d3dfd2017-11-13 16:03:27 +00001986Matchers.tests.cpp:<line number>:
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001987PASSED:
1988 REQUIRE_THAT( NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) )
1989with expansion:
Martin Hořeňovský8dbaac62017-11-10 21:43:23 +01001990 nanf not ( is within 100.0 of nan or is within 123 ULPs of nanf )
Martin Hořeňovský0b1f1b12017-11-10 18:14:42 +01001991
1992-------------------------------------------------------------------------------
Phil Nash0cde0e92017-01-09 14:40:09 +00001993Greater-than inequalities with different epsilons
1994-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00001995Approx.tests.cpp:<line number>
Phil Nash0cde0e92017-01-09 14:40:09 +00001996...............................................................................
1997
Phil Nash74d3dfd2017-11-13 16:03:27 +00001998Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00001999PASSED:
2000 REQUIRE( d >= Approx( 1.22 ) )
2001with expansion:
2002 1.23 >= Approx( 1.22 )
2003
Phil Nash74d3dfd2017-11-13 16:03:27 +00002004Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002005PASSED:
2006 REQUIRE( d >= Approx( 1.23 ) )
2007with expansion:
2008 1.23 >= Approx( 1.23 )
2009
Phil Nash74d3dfd2017-11-13 16:03:27 +00002010Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002011PASSED:
2012 REQUIRE_FALSE( d >= Approx( 1.24 ) )
2013with expansion:
2014 !(1.23 >= Approx( 1.24 ))
2015
Phil Nash74d3dfd2017-11-13 16:03:27 +00002016Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002017PASSED:
2018 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
2019with expansion:
2020 1.23 >= Approx( 1.24 )
2021
2022-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00002023INFO and WARN do not abort tests
Phil Nash2f7a2962013-09-27 19:01:14 +01002024-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002025Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002026...............................................................................
2027
Phil Nash74d3dfd2017-11-13 16:03:27 +00002028Message.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002029warning:
2030 this is a message
2031 this is a warning
2032
Phil Nash2f7a2962013-09-27 19:01:14 +01002033-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00002034INFO gets logged on failure
Phil Nash2f7a2962013-09-27 19:01:14 +01002035-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002036Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002037...............................................................................
2038
Phil Nash74d3dfd2017-11-13 16:03:27 +00002039Message.tests.cpp:<line number>: FAILED:
Phil Nash2f7a2962013-09-27 19:01:14 +01002040 REQUIRE( a == 1 )
2041with expansion:
2042 2 == 1
2043with messages:
2044 this message should be logged
2045 so should this
2046
2047-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00002048INFO gets logged on failure, even if captured before successful assertions
Phil Nash2f7a2962013-09-27 19:01:14 +01002049-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002050Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002051...............................................................................
2052
Phil Nash74d3dfd2017-11-13 16:03:27 +00002053Message.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002054PASSED:
2055 CHECK( a == 2 )
2056with expansion:
2057 2 == 2
2058with message:
2059 this message may be logged later
2060
Phil Nash74d3dfd2017-11-13 16:03:27 +00002061Message.tests.cpp:<line number>: FAILED:
Phil Nash2f7a2962013-09-27 19:01:14 +01002062 CHECK( a == 1 )
2063with expansion:
2064 2 == 1
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02002065with messages:
2066 this message may be logged later
Phil Nash2f7a2962013-09-27 19:01:14 +01002067 this message should be logged
2068
Phil Nash74d3dfd2017-11-13 16:03:27 +00002069Message.tests.cpp:<line number>: FAILED:
Phil Nash2f7a2962013-09-27 19:01:14 +01002070 CHECK( a == 0 )
2071with expansion:
2072 2 == 0
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02002073with messages:
2074 this message may be logged later
2075 this message should be logged
Phil Nash2f7a2962013-09-27 19:01:14 +01002076 and this, but later
2077
Phil Nash74d3dfd2017-11-13 16:03:27 +00002078Message.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002079PASSED:
2080 CHECK( a == 2 )
2081with expansion:
2082 2 == 2
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02002083with messages:
2084 this message may be logged later
2085 this message should be logged
2086 and this, but later
Phil Nash2f7a2962013-09-27 19:01:14 +01002087 but not this
2088
2089-------------------------------------------------------------------------------
Martin Hořeňovský33823122017-08-10 17:06:32 +02002090INFO is reset for each loop
2091-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002092Message.tests.cpp:<line number>
Martin Hořeňovský33823122017-08-10 17:06:32 +02002093...............................................................................
2094
Phil Nash74d3dfd2017-11-13 16:03:27 +00002095Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002096PASSED:
2097 REQUIRE( i < 10 )
2098with expansion:
2099 0 < 10
2100with messages:
2101 current counter 0
2102 i := 0
2103
Phil Nash74d3dfd2017-11-13 16:03:27 +00002104Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002105PASSED:
2106 REQUIRE( i < 10 )
2107with expansion:
2108 1 < 10
2109with messages:
2110 current counter 1
2111 i := 1
2112
Phil Nash74d3dfd2017-11-13 16:03:27 +00002113Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002114PASSED:
2115 REQUIRE( i < 10 )
2116with expansion:
2117 2 < 10
2118with messages:
2119 current counter 2
2120 i := 2
2121
Phil Nash74d3dfd2017-11-13 16:03:27 +00002122Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002123PASSED:
2124 REQUIRE( i < 10 )
2125with expansion:
2126 3 < 10
2127with messages:
2128 current counter 3
2129 i := 3
2130
Phil Nash74d3dfd2017-11-13 16:03:27 +00002131Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002132PASSED:
2133 REQUIRE( i < 10 )
2134with expansion:
2135 4 < 10
2136with messages:
2137 current counter 4
2138 i := 4
2139
Phil Nash74d3dfd2017-11-13 16:03:27 +00002140Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002141PASSED:
2142 REQUIRE( i < 10 )
2143with expansion:
2144 5 < 10
2145with messages:
2146 current counter 5
2147 i := 5
2148
Phil Nash74d3dfd2017-11-13 16:03:27 +00002149Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002150PASSED:
2151 REQUIRE( i < 10 )
2152with expansion:
2153 6 < 10
2154with messages:
2155 current counter 6
2156 i := 6
2157
Phil Nash74d3dfd2017-11-13 16:03:27 +00002158Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002159PASSED:
2160 REQUIRE( i < 10 )
2161with expansion:
2162 7 < 10
2163with messages:
2164 current counter 7
2165 i := 7
2166
Phil Nash74d3dfd2017-11-13 16:03:27 +00002167Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002168PASSED:
2169 REQUIRE( i < 10 )
2170with expansion:
2171 8 < 10
2172with messages:
2173 current counter 8
2174 i := 8
2175
Phil Nash74d3dfd2017-11-13 16:03:27 +00002176Message.tests.cpp:<line number>:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002177PASSED:
2178 REQUIRE( i < 10 )
2179with expansion:
2180 9 < 10
2181with messages:
2182 current counter 9
2183 i := 9
2184
Phil Nash74d3dfd2017-11-13 16:03:27 +00002185Message.tests.cpp:<line number>: FAILED:
Martin Hořeňovský33823122017-08-10 17:06:32 +02002186 REQUIRE( i < 10 )
2187with expansion:
2188 10 < 10
2189with messages:
2190 current counter 10
2191 i := 10
2192
2193-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002194Inequality checks that should fail
Phil Nash2f7a2962013-09-27 19:01:14 +01002195-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002196Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002197...............................................................................
2198
Phil Nash74d3dfd2017-11-13 16:03:27 +00002199Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002200 CHECK( data.int_seven != 7 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002201with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002202 7 != 7
Phil Nash2f7a2962013-09-27 19:01:14 +01002203
Phil Nash74d3dfd2017-11-13 16:03:27 +00002204Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002205 CHECK( data.float_nine_point_one != Approx( 9.1f ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01002206with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002207 9.1f != Approx( 9.1000003815 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002208
Phil Nash74d3dfd2017-11-13 16:03:27 +00002209Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002210 CHECK( data.double_pi != Approx( 3.1415926535 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01002211with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002212 3.1415926535 != Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002213
Phil Nash74d3dfd2017-11-13 16:03:27 +00002214Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002215 CHECK( data.str_hello != "hello" )
Phil Nash2f7a2962013-09-27 19:01:14 +01002216with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002217 "hello" != "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +01002218
Phil Nash74d3dfd2017-11-13 16:03:27 +00002219Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002220 CHECK( data.str_hello.size() != 5 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002221with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002222 5 != 5
Phil Nash2f7a2962013-09-27 19:01:14 +01002223
2224-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002225Inequality checks that should succeed
Phil Nash2f7a2962013-09-27 19:01:14 +01002226-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002227Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002228...............................................................................
2229
Phil Nash74d3dfd2017-11-13 16:03:27 +00002230Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002231PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002232 REQUIRE( data.int_seven != 6 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002233with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002234 7 != 6
Phil Nash2f7a2962013-09-27 19:01:14 +01002235
Phil Nash74d3dfd2017-11-13 16:03:27 +00002236Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002237PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002238 REQUIRE( data.int_seven != 8 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002239with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002240 7 != 8
Phil Nash2f7a2962013-09-27 19:01:14 +01002241
Phil Nash74d3dfd2017-11-13 16:03:27 +00002242Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002243PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002244 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01002245with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002246 9.1f != Approx( 9.1099996567 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002247
Phil Nash74d3dfd2017-11-13 16:03:27 +00002248Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002249PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002250 REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01002251with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002252 9.1f != Approx( 9.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002253
Phil Nash74d3dfd2017-11-13 16:03:27 +00002254Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002255PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002256 REQUIRE( data.float_nine_point_one != Approx( 1 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01002257with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002258 9.1f != Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002259
Phil Nash74d3dfd2017-11-13 16:03:27 +00002260Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002261PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002262 REQUIRE( data.float_nine_point_one != Approx( 0 ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01002263with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002264 9.1f != Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002265
Phil Nash74d3dfd2017-11-13 16:03:27 +00002266Condition.tests.cpp:<line number>:
Phil Nash471bd252015-11-03 07:33:43 +00002267PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002268 REQUIRE( data.double_pi != Approx( 3.1415 ) )
Phil Nash471bd252015-11-03 07:33:43 +00002269with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002270 3.1415926535 != Approx( 3.1415 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002271
Phil Nash74d3dfd2017-11-13 16:03:27 +00002272Condition.tests.cpp:<line number>:
Phil Nash471bd252015-11-03 07:33:43 +00002273PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002274 REQUIRE( data.str_hello != "goodbye" )
Phil Nash471bd252015-11-03 07:33:43 +00002275with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002276 "hello" != "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +01002277
Phil Nash74d3dfd2017-11-13 16:03:27 +00002278Condition.tests.cpp:<line number>:
Phil Nash015e0712015-11-03 07:46:37 +00002279PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002280 REQUIRE( data.str_hello != "hell" )
Phil Nash2f7a2962013-09-27 19:01:14 +01002281with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002282 "hello" != "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +01002283
Phil Nash74d3dfd2017-11-13 16:03:27 +00002284Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002285PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002286 REQUIRE( data.str_hello != "hello1" )
Phil Nash2f7a2962013-09-27 19:01:14 +01002287with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002288 "hello" != "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +01002289
Phil Nash74d3dfd2017-11-13 16:03:27 +00002290Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002291PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002292 REQUIRE( data.str_hello.size() != 6 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002293with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002294 5 != 6
Phil Nash856468c2015-03-04 08:22:32 +00002295
2296-------------------------------------------------------------------------------
Phil Nash0cde0e92017-01-09 14:40:09 +00002297Less-than inequalities with different epsilons
2298-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002299Approx.tests.cpp:<line number>
Phil Nash0cde0e92017-01-09 14:40:09 +00002300...............................................................................
2301
Phil Nash74d3dfd2017-11-13 16:03:27 +00002302Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002303PASSED:
2304 REQUIRE( d <= Approx( 1.24 ) )
2305with expansion:
2306 1.23 <= Approx( 1.24 )
2307
Phil Nash74d3dfd2017-11-13 16:03:27 +00002308Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002309PASSED:
2310 REQUIRE( d <= Approx( 1.23 ) )
2311with expansion:
2312 1.23 <= Approx( 1.23 )
2313
Phil Nash74d3dfd2017-11-13 16:03:27 +00002314Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002315PASSED:
2316 REQUIRE_FALSE( d <= Approx( 1.22 ) )
2317with expansion:
2318 !(1.23 <= Approx( 1.22 ))
2319
Phil Nash74d3dfd2017-11-13 16:03:27 +00002320Approx.tests.cpp:<line number>:
Phil Nash0cde0e92017-01-09 14:40:09 +00002321PASSED:
2322 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
2323with expansion:
2324 1.23 <= Approx( 1.22 )
2325
2326-------------------------------------------------------------------------------
Phil Nash0e649732015-11-20 16:54:07 +00002327ManuallyRegistered
2328-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002329Misc.tests.cpp:<line number>
Phil Nash0e649732015-11-20 16:54:07 +00002330...............................................................................
2331
Phil Nash74d3dfd2017-11-13 16:03:27 +00002332Misc.tests.cpp:<line number>:
Phil Nash0e649732015-11-20 16:54:07 +00002333PASSED:
2334with message:
2335 was called
2336
2337-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002338Matchers can be (AllOf) composed with the && operator
Phil Nash2f7a2962013-09-27 19:01:14 +01002339-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002340Matchers.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002341...............................................................................
2342
Phil Nash74d3dfd2017-11-13 16:03:27 +00002343Matchers.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002344PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00002345 CHECK_THAT( testStringForMatching(), Contains("string") && Contains("abc") && Contains("substring") && Contains("contains") )
Phil Nash2f7a2962013-09-27 19:01:14 +01002346with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002347 "this string contains 'abc' as a substring" ( contains: "string" and
2348 contains: "abc" and contains: "substring" and contains: "contains" )
Phil Nash2f7a2962013-09-27 19:01:14 +01002349
2350-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002351Matchers can be (AnyOf) composed with the || operator
Phil Nash2f7a2962013-09-27 19:01:14 +01002352-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002353Matchers.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002354...............................................................................
2355
Phil Nash74d3dfd2017-11-13 16:03:27 +00002356Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002357PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00002358 CHECK_THAT( testStringForMatching(), Contains("string") || Contains("different") || Contains("random") )
Phil Nash79acc052016-11-29 11:32:16 +00002359with expansion:
2360 "this string contains 'abc' as a substring" ( contains: "string" or contains:
2361 "different" or contains: "random" )
2362
Phil Nash74d3dfd2017-11-13 16:03:27 +00002363Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002364PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00002365 CHECK_THAT( testStringForMatching2(), Contains("string") || Contains("different") || Contains("random") )
Phil Nash79acc052016-11-29 11:32:16 +00002366with expansion:
2367 "some completely different text that contains one common word" ( contains:
2368 "string" or contains: "different" or contains: "random" )
2369
2370-------------------------------------------------------------------------------
2371Matchers can be composed with both && and ||
2372-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002373Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00002374...............................................................................
2375
Phil Nash74d3dfd2017-11-13 16:03:27 +00002376Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002377PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00002378 CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("substring") )
Phil Nash79acc052016-11-29 11:32:16 +00002379with expansion:
2380 "this string contains 'abc' as a substring" ( ( contains: "string" or
2381 contains: "different" ) and contains: "substring" )
2382
2383-------------------------------------------------------------------------------
2384Matchers can be composed with both && and || - failing
2385-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002386Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00002387...............................................................................
2388
Phil Nash74d3dfd2017-11-13 16:03:27 +00002389Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00002390 CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") )
Phil Nash79acc052016-11-29 11:32:16 +00002391with expansion:
2392 "this string contains 'abc' as a substring" ( ( contains: "string" or
2393 contains: "different" ) and contains: "random" )
2394
2395-------------------------------------------------------------------------------
2396Matchers can be negated (Not) with the ! operator
2397-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002398Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00002399...............................................................................
2400
Phil Nash74d3dfd2017-11-13 16:03:27 +00002401Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002402PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00002403 CHECK_THAT( testStringForMatching(), !Contains("different") )
Phil Nash79acc052016-11-29 11:32:16 +00002404with expansion:
2405 "this string contains 'abc' as a substring" not contains: "different"
2406
2407-------------------------------------------------------------------------------
2408Matchers can be negated (Not) with the ! operator - failing
2409-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002410Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00002411...............................................................................
2412
Phil Nash74d3dfd2017-11-13 16:03:27 +00002413Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00002414 CHECK_THAT( testStringForMatching(), !Contains("substring") )
Phil Nash79acc052016-11-29 11:32:16 +00002415with expansion:
2416 "this string contains 'abc' as a substring" not contains: "substring"
2417
2418-------------------------------------------------------------------------------
2419Mismatching exception messages failing the test
2420-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002421Exception.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00002422...............................................................................
2423
Phil Nash74d3dfd2017-11-13 16:03:27 +00002424Exception.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002425PASSED:
2426 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
Phil Nash27fd8f82017-08-09 00:44:30 +01002427with expansion:
2428 "expected exception" equals: "expected exception"
Phil Nash79acc052016-11-29 11:32:16 +00002429
Phil Nash74d3dfd2017-11-13 16:03:27 +00002430Exception.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002431 REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
2432with expansion:
Phil Nash27fd8f82017-08-09 00:44:30 +01002433 "expected exception" equals: "should fail"
Phil Nash79acc052016-11-29 11:32:16 +00002434
2435-------------------------------------------------------------------------------
2436Nice descriptive name
2437-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002438Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00002439...............................................................................
2440
Phil Nash74d3dfd2017-11-13 16:03:27 +00002441Misc.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002442warning:
Phil Nash79acc052016-11-29 11:32:16 +00002443 This one ran
Phil Nash2f7a2962013-09-27 19:01:14 +01002444
Phil Nash2f7a2962013-09-27 19:01:14 +01002445-------------------------------------------------------------------------------
Phil Nash714d01c2017-04-09 20:40:01 +01002446Non-std exceptions can be translated
2447-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002448Exception.tests.cpp:<line number>
Phil Nash714d01c2017-04-09 20:40:01 +01002449...............................................................................
2450
Phil Nash74d3dfd2017-11-13 16:03:27 +00002451Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +01002452due to unexpected exception with message:
2453 custom exception
2454
2455-------------------------------------------------------------------------------
Phil Nash337dc252013-11-19 07:21:03 +00002456Objects that evaluated in boolean contexts can be checked
Phil Nash2f7a2962013-09-27 19:01:14 +01002457-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002458Tricky.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002459...............................................................................
2460
Phil Nash74d3dfd2017-11-13 16:03:27 +00002461Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002462PASSED:
2463 CHECK( True )
2464with expansion:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02002465 {?}
Phil Nash2f7a2962013-09-27 19:01:14 +01002466
Phil Nash74d3dfd2017-11-13 16:03:27 +00002467Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002468PASSED:
2469 CHECK( !False )
2470with expansion:
2471 true
2472
Phil Nash74d3dfd2017-11-13 16:03:27 +00002473Tricky.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002474PASSED:
2475 CHECK_FALSE( False )
2476with expansion:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02002477 !{?}
Phil Nash2f7a2962013-09-27 19:01:14 +01002478
2479-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002480Ordering comparison checks that should fail
Phil Nash2f7a2962013-09-27 19:01:14 +01002481-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002482Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002483...............................................................................
2484
Phil Nash74d3dfd2017-11-13 16:03:27 +00002485Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002486 CHECK( data.int_seven > 7 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002487with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002488 7 > 7
2489
Phil Nash74d3dfd2017-11-13 16:03:27 +00002490Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002491 CHECK( data.int_seven < 7 )
2492with expansion:
2493 7 < 7
2494
Phil Nash74d3dfd2017-11-13 16:03:27 +00002495Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002496 CHECK( data.int_seven > 8 )
2497with expansion:
2498 7 > 8
2499
Phil Nash74d3dfd2017-11-13 16:03:27 +00002500Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002501 CHECK( data.int_seven < 6 )
2502with expansion:
2503 7 < 6
2504
Phil Nash74d3dfd2017-11-13 16:03:27 +00002505Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002506 CHECK( data.int_seven < 0 )
2507with expansion:
2508 7 < 0
2509
Phil Nash74d3dfd2017-11-13 16:03:27 +00002510Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002511 CHECK( data.int_seven < -1 )
2512with expansion:
2513 7 < -1
2514
Phil Nash74d3dfd2017-11-13 16:03:27 +00002515Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002516 CHECK( data.int_seven >= 8 )
2517with expansion:
2518 7 >= 8
2519
Phil Nash74d3dfd2017-11-13 16:03:27 +00002520Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002521 CHECK( data.int_seven <= 6 )
2522with expansion:
2523 7 <= 6
2524
Phil Nash74d3dfd2017-11-13 16:03:27 +00002525Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002526 CHECK( data.float_nine_point_one < 9 )
2527with expansion:
2528 9.1f < 9
2529
Phil Nash74d3dfd2017-11-13 16:03:27 +00002530Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002531 CHECK( data.float_nine_point_one > 10 )
2532with expansion:
2533 9.1f > 10
2534
Phil Nash74d3dfd2017-11-13 16:03:27 +00002535Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002536 CHECK( data.float_nine_point_one > 9.2 )
2537with expansion:
2538 9.1f > 9.2
2539
Phil Nash74d3dfd2017-11-13 16:03:27 +00002540Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002541 CHECK( data.str_hello > "hello" )
2542with expansion:
2543 "hello" > "hello"
2544
Phil Nash74d3dfd2017-11-13 16:03:27 +00002545Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002546 CHECK( data.str_hello < "hello" )
2547with expansion:
2548 "hello" < "hello"
2549
Phil Nash74d3dfd2017-11-13 16:03:27 +00002550Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002551 CHECK( data.str_hello > "hellp" )
2552with expansion:
2553 "hello" > "hellp"
2554
Phil Nash74d3dfd2017-11-13 16:03:27 +00002555Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002556 CHECK( data.str_hello > "z" )
2557with expansion:
2558 "hello" > "z"
2559
Phil Nash74d3dfd2017-11-13 16:03:27 +00002560Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002561 CHECK( data.str_hello < "hellm" )
2562with expansion:
2563 "hello" < "hellm"
2564
Phil Nash74d3dfd2017-11-13 16:03:27 +00002565Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002566 CHECK( data.str_hello < "a" )
2567with expansion:
2568 "hello" < "a"
2569
Phil Nash74d3dfd2017-11-13 16:03:27 +00002570Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002571 CHECK( data.str_hello >= "z" )
2572with expansion:
2573 "hello" >= "z"
2574
Phil Nash74d3dfd2017-11-13 16:03:27 +00002575Condition.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002576 CHECK( data.str_hello <= "a" )
2577with expansion:
2578 "hello" <= "a"
Phil Nash2f7a2962013-09-27 19:01:14 +01002579
2580-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002581Ordering comparison checks that should succeed
Phil Nash2f7a2962013-09-27 19:01:14 +01002582-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002583Condition.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002584...............................................................................
2585
Phil Nash74d3dfd2017-11-13 16:03:27 +00002586Condition.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01002587PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00002588 REQUIRE( data.int_seven < 8 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002589with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00002590 7 < 8
2591
Phil Nash74d3dfd2017-11-13 16:03:27 +00002592Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002593PASSED:
2594 REQUIRE( data.int_seven > 6 )
2595with expansion:
2596 7 > 6
2597
Phil Nash74d3dfd2017-11-13 16:03:27 +00002598Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002599PASSED:
2600 REQUIRE( data.int_seven > 0 )
2601with expansion:
2602 7 > 0
2603
Phil Nash74d3dfd2017-11-13 16:03:27 +00002604Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002605PASSED:
2606 REQUIRE( data.int_seven > -1 )
2607with expansion:
2608 7 > -1
2609
Phil Nash74d3dfd2017-11-13 16:03:27 +00002610Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002611PASSED:
2612 REQUIRE( data.int_seven >= 7 )
2613with expansion:
2614 7 >= 7
2615
Phil Nash74d3dfd2017-11-13 16:03:27 +00002616Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002617PASSED:
2618 REQUIRE( data.int_seven >= 6 )
2619with expansion:
2620 7 >= 6
2621
Phil Nash74d3dfd2017-11-13 16:03:27 +00002622Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002623PASSED:
2624 REQUIRE( data.int_seven <= 7 )
2625with expansion:
2626 7 <= 7
2627
Phil Nash74d3dfd2017-11-13 16:03:27 +00002628Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002629PASSED:
2630 REQUIRE( data.int_seven <= 8 )
2631with expansion:
2632 7 <= 8
2633
Phil Nash74d3dfd2017-11-13 16:03:27 +00002634Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002635PASSED:
2636 REQUIRE( data.float_nine_point_one > 9 )
2637with expansion:
2638 9.1f > 9
2639
Phil Nash74d3dfd2017-11-13 16:03:27 +00002640Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002641PASSED:
2642 REQUIRE( data.float_nine_point_one < 10 )
2643with expansion:
2644 9.1f < 10
2645
Phil Nash74d3dfd2017-11-13 16:03:27 +00002646Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002647PASSED:
2648 REQUIRE( data.float_nine_point_one < 9.2 )
2649with expansion:
2650 9.1f < 9.2
2651
Phil Nash74d3dfd2017-11-13 16:03:27 +00002652Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002653PASSED:
2654 REQUIRE( data.str_hello <= "hello" )
2655with expansion:
2656 "hello" <= "hello"
2657
Phil Nash74d3dfd2017-11-13 16:03:27 +00002658Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002659PASSED:
2660 REQUIRE( data.str_hello >= "hello" )
2661with expansion:
2662 "hello" >= "hello"
2663
Phil Nash74d3dfd2017-11-13 16:03:27 +00002664Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002665PASSED:
2666 REQUIRE( data.str_hello < "hellp" )
2667with expansion:
2668 "hello" < "hellp"
2669
Phil Nash74d3dfd2017-11-13 16:03:27 +00002670Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002671PASSED:
2672 REQUIRE( data.str_hello < "zebra" )
2673with expansion:
2674 "hello" < "zebra"
2675
Phil Nash74d3dfd2017-11-13 16:03:27 +00002676Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002677PASSED:
2678 REQUIRE( data.str_hello > "hellm" )
2679with expansion:
2680 "hello" > "hellm"
2681
Phil Nash74d3dfd2017-11-13 16:03:27 +00002682Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00002683PASSED:
2684 REQUIRE( data.str_hello > "a" )
2685with expansion:
2686 "hello" > "a"
Phil Nash2f7a2962013-09-27 19:01:14 +01002687
2688-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002689Output from all sections is reported
2690 one
Phil Nash2f7a2962013-09-27 19:01:14 +01002691-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002692Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002693...............................................................................
2694
Phil Nash74d3dfd2017-11-13 16:03:27 +00002695Message.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002696explicitly with message:
2697 Message from section one
Phil Nash2f7a2962013-09-27 19:01:14 +01002698
2699-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00002700Output from all sections is reported
2701 two
Phil Nash2f7a2962013-09-27 19:01:14 +01002702-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002703Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01002704...............................................................................
2705
Phil Nash74d3dfd2017-11-13 16:03:27 +00002706Message.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00002707explicitly with message:
2708 Message from section two
Phil Nash5ea32662014-09-03 19:22:47 +01002709
2710-------------------------------------------------------------------------------
Phil Nash766491a2014-05-16 18:31:15 +01002711Parse test names and tags
2712 Empty test spec should have no filters
2713-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002714CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002715...............................................................................
2716
Phil Nash74d3dfd2017-11-13 16:03:27 +00002717CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002718PASSED:
2719 CHECK( spec.hasFilters() == false )
2720with expansion:
2721 false == false
2722
Phil Nash74d3dfd2017-11-13 16:03:27 +00002723CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002724PASSED:
2725 CHECK( spec.matches( tcA ) == false )
2726with expansion:
2727 false == false
2728
Phil Nash74d3dfd2017-11-13 16:03:27 +00002729CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002730PASSED:
2731 CHECK( spec.matches( tcB ) == false )
2732with expansion:
2733 false == false
2734
2735-------------------------------------------------------------------------------
2736Parse test names and tags
2737 Test spec from empty string should have no filters
2738-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002739CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002740...............................................................................
2741
Phil Nash74d3dfd2017-11-13 16:03:27 +00002742CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002743PASSED:
2744 CHECK( spec.hasFilters() == false )
2745with expansion:
2746 false == false
2747
Phil Nash74d3dfd2017-11-13 16:03:27 +00002748CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002749PASSED:
2750 CHECK( spec.matches(tcA ) == false )
2751with expansion:
2752 false == false
2753
Phil Nash74d3dfd2017-11-13 16:03:27 +00002754CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002755PASSED:
2756 CHECK( spec.matches( tcB ) == false )
2757with expansion:
2758 false == false
2759
2760-------------------------------------------------------------------------------
2761Parse test names and tags
2762 Test spec from just a comma should have no filters
2763-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002764CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002765...............................................................................
2766
Phil Nash74d3dfd2017-11-13 16:03:27 +00002767CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002768PASSED:
2769 CHECK( spec.hasFilters() == false )
2770with expansion:
2771 false == false
2772
Phil Nash74d3dfd2017-11-13 16:03:27 +00002773CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002774PASSED:
2775 CHECK( spec.matches( tcA ) == false )
2776with expansion:
2777 false == false
2778
Phil Nash74d3dfd2017-11-13 16:03:27 +00002779CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002780PASSED:
2781 CHECK( spec.matches( tcB ) == false )
2782with expansion:
2783 false == false
2784
2785-------------------------------------------------------------------------------
2786Parse test names and tags
2787 Test spec from name should have one filter
2788-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002789CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002790...............................................................................
2791
Phil Nash74d3dfd2017-11-13 16:03:27 +00002792CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002793PASSED:
2794 CHECK( spec.hasFilters() == true )
2795with expansion:
2796 true == true
2797
Phil Nash74d3dfd2017-11-13 16:03:27 +00002798CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002799PASSED:
2800 CHECK( spec.matches( tcA ) == false )
2801with expansion:
2802 false == false
2803
Phil Nash74d3dfd2017-11-13 16:03:27 +00002804CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002805PASSED:
2806 CHECK( spec.matches( tcB ) == true )
2807with expansion:
2808 true == true
2809
2810-------------------------------------------------------------------------------
2811Parse test names and tags
2812 Test spec from quoted name should have one filter
2813-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002814CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002815...............................................................................
2816
Phil Nash74d3dfd2017-11-13 16:03:27 +00002817CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002818PASSED:
2819 CHECK( spec.hasFilters() == true )
2820with expansion:
2821 true == true
2822
Phil Nash74d3dfd2017-11-13 16:03:27 +00002823CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002824PASSED:
2825 CHECK( spec.matches( tcA ) == false )
2826with expansion:
2827 false == false
2828
Phil Nash74d3dfd2017-11-13 16:03:27 +00002829CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002830PASSED:
2831 CHECK( spec.matches( tcB ) == true )
2832with expansion:
2833 true == true
2834
2835-------------------------------------------------------------------------------
2836Parse test names and tags
2837 Test spec from name should have one filter
2838-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002839CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002840...............................................................................
2841
Phil Nash74d3dfd2017-11-13 16:03:27 +00002842CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002843PASSED:
2844 CHECK( spec.hasFilters() == true )
2845with expansion:
2846 true == true
2847
Phil Nash74d3dfd2017-11-13 16:03:27 +00002848CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002849PASSED:
2850 CHECK( spec.matches( tcA ) == false )
2851with expansion:
2852 false == false
2853
Phil Nash74d3dfd2017-11-13 16:03:27 +00002854CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002855PASSED:
2856 CHECK( spec.matches( tcB ) == true )
2857with expansion:
2858 true == true
2859
Phil Nash74d3dfd2017-11-13 16:03:27 +00002860CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002861PASSED:
2862 CHECK( spec.matches( tcC ) == false )
2863with expansion:
2864 false == false
2865
2866-------------------------------------------------------------------------------
2867Parse test names and tags
2868 Wildcard at the start
2869-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002870CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002871...............................................................................
2872
Phil Nash74d3dfd2017-11-13 16:03:27 +00002873CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002874PASSED:
2875 CHECK( spec.hasFilters() == true )
2876with expansion:
2877 true == true
2878
Phil Nash74d3dfd2017-11-13 16:03:27 +00002879CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002880PASSED:
2881 CHECK( spec.matches( tcA ) == false )
2882with expansion:
2883 false == false
2884
Phil Nash74d3dfd2017-11-13 16:03:27 +00002885CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002886PASSED:
2887 CHECK( spec.matches( tcB ) == false )
2888with expansion:
2889 false == false
2890
Phil Nash74d3dfd2017-11-13 16:03:27 +00002891CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002892PASSED:
2893 CHECK( spec.matches( tcC ) == true )
2894with expansion:
2895 true == true
2896
Phil Nash74d3dfd2017-11-13 16:03:27 +00002897CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002898PASSED:
2899 CHECK( spec.matches( tcD ) == false )
2900with expansion:
2901 false == false
2902
Phil Nash74d3dfd2017-11-13 16:03:27 +00002903CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002904PASSED:
2905 CHECK( parseTestSpec( "*a" ).matches( tcA ) == true )
2906with expansion:
2907 true == true
2908
2909-------------------------------------------------------------------------------
2910Parse test names and tags
2911 Wildcard at the end
2912-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002913CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002914...............................................................................
2915
Phil Nash74d3dfd2017-11-13 16:03:27 +00002916CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002917PASSED:
2918 CHECK( spec.hasFilters() == true )
2919with expansion:
2920 true == true
2921
Phil Nash74d3dfd2017-11-13 16:03:27 +00002922CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002923PASSED:
2924 CHECK( spec.matches( tcA ) == false )
2925with expansion:
2926 false == false
2927
Phil Nash74d3dfd2017-11-13 16:03:27 +00002928CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002929PASSED:
2930 CHECK( spec.matches( tcB ) == false )
2931with expansion:
2932 false == false
2933
Phil Nash74d3dfd2017-11-13 16:03:27 +00002934CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002935PASSED:
2936 CHECK( spec.matches( tcC ) == true )
2937with expansion:
2938 true == true
2939
Phil Nash74d3dfd2017-11-13 16:03:27 +00002940CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002941PASSED:
2942 CHECK( spec.matches( tcD ) == false )
2943with expansion:
2944 false == false
2945
Phil Nash74d3dfd2017-11-13 16:03:27 +00002946CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002947PASSED:
2948 CHECK( parseTestSpec( "a*" ).matches( tcA ) == true )
2949with expansion:
2950 true == true
2951
2952-------------------------------------------------------------------------------
2953Parse test names and tags
2954 Wildcard at both ends
2955-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002956CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01002957...............................................................................
2958
Phil Nash74d3dfd2017-11-13 16:03:27 +00002959CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002960PASSED:
2961 CHECK( spec.hasFilters() == true )
2962with expansion:
2963 true == true
2964
Phil Nash74d3dfd2017-11-13 16:03:27 +00002965CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002966PASSED:
2967 CHECK( spec.matches( tcA ) == false )
2968with expansion:
2969 false == false
2970
Phil Nash74d3dfd2017-11-13 16:03:27 +00002971CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002972PASSED:
2973 CHECK( spec.matches( tcB ) == false )
2974with expansion:
2975 false == false
2976
Phil Nash74d3dfd2017-11-13 16:03:27 +00002977CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002978PASSED:
2979 CHECK( spec.matches( tcC ) == true )
2980with expansion:
2981 true == true
2982
Phil Nash74d3dfd2017-11-13 16:03:27 +00002983CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002984PASSED:
2985 CHECK( spec.matches( tcD ) == true )
2986with expansion:
2987 true == true
2988
Phil Nash74d3dfd2017-11-13 16:03:27 +00002989CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01002990PASSED:
2991 CHECK( parseTestSpec( "*a*" ).matches( tcA ) == true )
2992with expansion:
2993 true == true
2994
2995-------------------------------------------------------------------------------
2996Parse test names and tags
Phil Nash71390352014-05-19 18:21:01 +01002997 Redundant wildcard at the start
2998-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00002999CmdLine.tests.cpp:<line number>
Phil Nash71390352014-05-19 18:21:01 +01003000...............................................................................
3001
Phil Nash74d3dfd2017-11-13 16:03:27 +00003002CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003003PASSED:
3004 CHECK( spec.hasFilters() == true )
3005with expansion:
3006 true == true
3007
Phil Nash74d3dfd2017-11-13 16:03:27 +00003008CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003009PASSED:
3010 CHECK( spec.matches( tcA ) == true )
3011with expansion:
3012 true == true
3013
Phil Nash74d3dfd2017-11-13 16:03:27 +00003014CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003015PASSED:
3016 CHECK( spec.matches( tcB ) == false )
3017with expansion:
3018 false == false
3019
3020-------------------------------------------------------------------------------
3021Parse test names and tags
3022 Redundant wildcard at the end
3023-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003024CmdLine.tests.cpp:<line number>
Phil Nash71390352014-05-19 18:21:01 +01003025...............................................................................
3026
Phil Nash74d3dfd2017-11-13 16:03:27 +00003027CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003028PASSED:
3029 CHECK( spec.hasFilters() == true )
3030with expansion:
3031 true == true
3032
Phil Nash74d3dfd2017-11-13 16:03:27 +00003033CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003034PASSED:
3035 CHECK( spec.matches( tcA ) == true )
3036with expansion:
3037 true == true
3038
Phil Nash74d3dfd2017-11-13 16:03:27 +00003039CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003040PASSED:
3041 CHECK( spec.matches( tcB ) == false )
3042with expansion:
3043 false == false
3044
3045-------------------------------------------------------------------------------
3046Parse test names and tags
3047 Redundant wildcard at both ends
3048-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003049CmdLine.tests.cpp:<line number>
Phil Nash71390352014-05-19 18:21:01 +01003050...............................................................................
3051
Phil Nash74d3dfd2017-11-13 16:03:27 +00003052CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003053PASSED:
3054 CHECK( spec.hasFilters() == true )
3055with expansion:
3056 true == true
3057
Phil Nash74d3dfd2017-11-13 16:03:27 +00003058CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003059PASSED:
3060 CHECK( spec.matches( tcA ) == true )
3061with expansion:
3062 true == true
3063
Phil Nash74d3dfd2017-11-13 16:03:27 +00003064CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003065PASSED:
3066 CHECK( spec.matches( tcB ) == false )
3067with expansion:
3068 false == false
3069
3070-------------------------------------------------------------------------------
3071Parse test names and tags
3072 Wildcard at both ends, redundant at start
3073-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003074CmdLine.tests.cpp:<line number>
Phil Nash71390352014-05-19 18:21:01 +01003075...............................................................................
3076
Phil Nash74d3dfd2017-11-13 16:03:27 +00003077CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003078PASSED:
3079 CHECK( spec.hasFilters() == true )
3080with expansion:
3081 true == true
3082
Phil Nash74d3dfd2017-11-13 16:03:27 +00003083CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003084PASSED:
3085 CHECK( spec.matches( tcA ) == false )
3086with expansion:
3087 false == false
3088
Phil Nash74d3dfd2017-11-13 16:03:27 +00003089CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003090PASSED:
3091 CHECK( spec.matches( tcB ) == false )
3092with expansion:
3093 false == false
3094
Phil Nash74d3dfd2017-11-13 16:03:27 +00003095CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003096PASSED:
3097 CHECK( spec.matches( tcC ) == true )
3098with expansion:
3099 true == true
3100
Phil Nash74d3dfd2017-11-13 16:03:27 +00003101CmdLine.tests.cpp:<line number>:
Phil Nash71390352014-05-19 18:21:01 +01003102PASSED:
3103 CHECK( spec.matches( tcD ) == true )
3104with expansion:
3105 true == true
3106
3107-------------------------------------------------------------------------------
3108Parse test names and tags
Phil Nash766491a2014-05-16 18:31:15 +01003109 Just wildcard
3110-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003111CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003112...............................................................................
3113
Phil Nash74d3dfd2017-11-13 16:03:27 +00003114CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003115PASSED:
3116 CHECK( spec.hasFilters() == true )
3117with expansion:
3118 true == true
3119
Phil Nash74d3dfd2017-11-13 16:03:27 +00003120CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003121PASSED:
3122 CHECK( spec.matches( tcA ) == true )
3123with expansion:
3124 true == true
3125
Phil Nash74d3dfd2017-11-13 16:03:27 +00003126CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003127PASSED:
3128 CHECK( spec.matches( tcB ) == true )
3129with expansion:
3130 true == true
3131
Phil Nash74d3dfd2017-11-13 16:03:27 +00003132CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003133PASSED:
3134 CHECK( spec.matches( tcC ) == true )
3135with expansion:
3136 true == true
3137
Phil Nash74d3dfd2017-11-13 16:03:27 +00003138CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003139PASSED:
3140 CHECK( spec.matches( tcD ) == true )
3141with expansion:
3142 true == true
3143
3144-------------------------------------------------------------------------------
3145Parse test names and tags
3146 Single tag
3147-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003148CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003149...............................................................................
3150
Phil Nash74d3dfd2017-11-13 16:03:27 +00003151CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003152PASSED:
3153 CHECK( spec.hasFilters() == true )
3154with expansion:
3155 true == true
3156
Phil Nash74d3dfd2017-11-13 16:03:27 +00003157CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003158PASSED:
3159 CHECK( spec.matches( tcA ) == false )
3160with expansion:
3161 false == false
3162
Phil Nash74d3dfd2017-11-13 16:03:27 +00003163CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003164PASSED:
3165 CHECK( spec.matches( tcB ) == true )
3166with expansion:
3167 true == true
3168
Phil Nash74d3dfd2017-11-13 16:03:27 +00003169CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003170PASSED:
3171 CHECK( spec.matches( tcC ) == false )
3172with expansion:
3173 false == false
3174
3175-------------------------------------------------------------------------------
3176Parse test names and tags
3177 Single tag, two matches
3178-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003179CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003180...............................................................................
3181
Phil Nash74d3dfd2017-11-13 16:03:27 +00003182CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003183PASSED:
3184 CHECK( spec.hasFilters() == true )
3185with expansion:
3186 true == true
3187
Phil Nash74d3dfd2017-11-13 16:03:27 +00003188CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003189PASSED:
3190 CHECK( spec.matches( tcA ) == false )
3191with expansion:
3192 false == false
3193
Phil Nash74d3dfd2017-11-13 16:03:27 +00003194CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003195PASSED:
3196 CHECK( spec.matches( tcB ) == true )
3197with expansion:
3198 true == true
3199
Phil Nash74d3dfd2017-11-13 16:03:27 +00003200CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003201PASSED:
3202 CHECK( spec.matches( tcC ) == true )
3203with expansion:
3204 true == true
3205
3206-------------------------------------------------------------------------------
3207Parse test names and tags
3208 Two tags
3209-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003210CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003211...............................................................................
3212
Phil Nash74d3dfd2017-11-13 16:03:27 +00003213CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003214PASSED:
3215 CHECK( spec.hasFilters() == true )
3216with expansion:
3217 true == true
3218
Phil Nash74d3dfd2017-11-13 16:03:27 +00003219CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003220PASSED:
3221 CHECK( spec.matches( tcA ) == false )
3222with expansion:
3223 false == false
3224
Phil Nash74d3dfd2017-11-13 16:03:27 +00003225CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003226PASSED:
3227 CHECK( spec.matches( tcB ) == false )
3228with expansion:
3229 false == false
3230
Phil Nash74d3dfd2017-11-13 16:03:27 +00003231CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003232PASSED:
3233 CHECK( spec.matches( tcC ) == true )
3234with expansion:
3235 true == true
3236
3237-------------------------------------------------------------------------------
3238Parse test names and tags
Phil Nasha2d8f772014-05-20 18:28:48 +01003239 Two tags, spare separated
3240-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003241CmdLine.tests.cpp:<line number>
Phil Nasha2d8f772014-05-20 18:28:48 +01003242...............................................................................
3243
Phil Nash74d3dfd2017-11-13 16:03:27 +00003244CmdLine.tests.cpp:<line number>:
Phil Nasha2d8f772014-05-20 18:28:48 +01003245PASSED:
3246 CHECK( spec.hasFilters() == true )
3247with expansion:
3248 true == true
3249
Phil Nash74d3dfd2017-11-13 16:03:27 +00003250CmdLine.tests.cpp:<line number>:
Phil Nasha2d8f772014-05-20 18:28:48 +01003251PASSED:
3252 CHECK( spec.matches( tcA ) == false )
3253with expansion:
3254 false == false
3255
Phil Nash74d3dfd2017-11-13 16:03:27 +00003256CmdLine.tests.cpp:<line number>:
Phil Nasha2d8f772014-05-20 18:28:48 +01003257PASSED:
3258 CHECK( spec.matches( tcB ) == false )
3259with expansion:
3260 false == false
3261
Phil Nash74d3dfd2017-11-13 16:03:27 +00003262CmdLine.tests.cpp:<line number>:
Phil Nasha2d8f772014-05-20 18:28:48 +01003263PASSED:
3264 CHECK( spec.matches( tcC ) == true )
3265with expansion:
3266 true == true
3267
3268-------------------------------------------------------------------------------
3269Parse test names and tags
Phil Nash766491a2014-05-16 18:31:15 +01003270 Wildcarded name and tag
3271-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003272CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003273...............................................................................
3274
Phil Nash74d3dfd2017-11-13 16:03:27 +00003275CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003276PASSED:
3277 CHECK( spec.hasFilters() == true )
3278with expansion:
3279 true == true
3280
Phil Nash74d3dfd2017-11-13 16:03:27 +00003281CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003282PASSED:
3283 CHECK( spec.matches( tcA ) == false )
3284with expansion:
3285 false == false
3286
Phil Nash74d3dfd2017-11-13 16:03:27 +00003287CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003288PASSED:
3289 CHECK( spec.matches( tcB ) == false )
3290with expansion:
3291 false == false
3292
Phil Nash74d3dfd2017-11-13 16:03:27 +00003293CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003294PASSED:
3295 CHECK( spec.matches( tcC ) == true )
3296with expansion:
3297 true == true
3298
Phil Nash74d3dfd2017-11-13 16:03:27 +00003299CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003300PASSED:
3301 CHECK( spec.matches( tcD ) == false )
3302with expansion:
3303 false == false
3304
3305-------------------------------------------------------------------------------
3306Parse test names and tags
3307 Single tag exclusion
3308-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003309CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003310...............................................................................
3311
Phil Nash74d3dfd2017-11-13 16:03:27 +00003312CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003313PASSED:
3314 CHECK( spec.hasFilters() == true )
3315with expansion:
3316 true == true
3317
Phil Nash74d3dfd2017-11-13 16:03:27 +00003318CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003319PASSED:
3320 CHECK( spec.matches( tcA ) == true )
3321with expansion:
3322 true == true
3323
Phil Nash74d3dfd2017-11-13 16:03:27 +00003324CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003325PASSED:
3326 CHECK( spec.matches( tcB ) == false )
3327with expansion:
3328 false == false
3329
Phil Nash74d3dfd2017-11-13 16:03:27 +00003330CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003331PASSED:
3332 CHECK( spec.matches( tcC ) == true )
3333with expansion:
3334 true == true
3335
3336-------------------------------------------------------------------------------
3337Parse test names and tags
3338 One tag exclusion and one tag inclusion
3339-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003340CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003341...............................................................................
3342
Phil Nash74d3dfd2017-11-13 16:03:27 +00003343CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003344PASSED:
3345 CHECK( spec.hasFilters() == true )
3346with expansion:
3347 true == true
3348
Phil Nash74d3dfd2017-11-13 16:03:27 +00003349CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003350PASSED:
3351 CHECK( spec.matches( tcA ) == false )
3352with expansion:
3353 false == false
3354
Phil Nash74d3dfd2017-11-13 16:03:27 +00003355CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003356PASSED:
3357 CHECK( spec.matches( tcB ) == true )
3358with expansion:
3359 true == true
3360
Phil Nash74d3dfd2017-11-13 16:03:27 +00003361CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003362PASSED:
3363 CHECK( spec.matches( tcC ) == false )
3364with expansion:
3365 false == false
3366
3367-------------------------------------------------------------------------------
3368Parse test names and tags
3369 One tag exclusion and one wldcarded name inclusion
3370-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003371CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003372...............................................................................
3373
Phil Nash74d3dfd2017-11-13 16:03:27 +00003374CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003375PASSED:
3376 CHECK( spec.hasFilters() == true )
3377with expansion:
3378 true == true
3379
Phil Nash74d3dfd2017-11-13 16:03:27 +00003380CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003381PASSED:
3382 CHECK( spec.matches( tcA ) == false )
3383with expansion:
3384 false == false
3385
Phil Nash74d3dfd2017-11-13 16:03:27 +00003386CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003387PASSED:
3388 CHECK( spec.matches( tcB ) == false )
3389with expansion:
3390 false == false
3391
Phil Nash74d3dfd2017-11-13 16:03:27 +00003392CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003393PASSED:
3394 CHECK( spec.matches( tcC ) == false )
3395with expansion:
3396 false == false
3397
Phil Nash74d3dfd2017-11-13 16:03:27 +00003398CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003399PASSED:
3400 CHECK( spec.matches( tcD ) == true )
3401with expansion:
3402 true == true
3403
3404-------------------------------------------------------------------------------
3405Parse test names and tags
3406 One tag exclusion, using exclude:, and one wldcarded name inclusion
3407-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003408CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003409...............................................................................
3410
Phil Nash74d3dfd2017-11-13 16:03:27 +00003411CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003412PASSED:
3413 CHECK( spec.hasFilters() == true )
3414with expansion:
3415 true == true
3416
Phil Nash74d3dfd2017-11-13 16:03:27 +00003417CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003418PASSED:
3419 CHECK( spec.matches( tcA ) == false )
3420with expansion:
3421 false == false
3422
Phil Nash74d3dfd2017-11-13 16:03:27 +00003423CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003424PASSED:
3425 CHECK( spec.matches( tcB ) == false )
3426with expansion:
3427 false == false
3428
Phil Nash74d3dfd2017-11-13 16:03:27 +00003429CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003430PASSED:
3431 CHECK( spec.matches( tcC ) == false )
3432with expansion:
3433 false == false
3434
Phil Nash74d3dfd2017-11-13 16:03:27 +00003435CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003436PASSED:
3437 CHECK( spec.matches( tcD ) == true )
3438with expansion:
3439 true == true
3440
3441-------------------------------------------------------------------------------
3442Parse test names and tags
3443 name exclusion
3444-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003445CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003446...............................................................................
3447
Phil Nash74d3dfd2017-11-13 16:03:27 +00003448CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003449PASSED:
3450 CHECK( spec.hasFilters() == true )
3451with expansion:
3452 true == true
3453
Phil Nash74d3dfd2017-11-13 16:03:27 +00003454CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003455PASSED:
3456 CHECK( spec.matches( tcA ) == true )
3457with expansion:
3458 true == true
3459
Phil Nash74d3dfd2017-11-13 16:03:27 +00003460CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003461PASSED:
3462 CHECK( spec.matches( tcB ) == false )
3463with expansion:
3464 false == false
3465
Phil Nash74d3dfd2017-11-13 16:03:27 +00003466CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003467PASSED:
3468 CHECK( spec.matches( tcC ) == true )
3469with expansion:
3470 true == true
3471
Phil Nash74d3dfd2017-11-13 16:03:27 +00003472CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003473PASSED:
3474 CHECK( spec.matches( tcD ) == true )
3475with expansion:
3476 true == true
3477
3478-------------------------------------------------------------------------------
3479Parse test names and tags
3480 wildcarded name exclusion
3481-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003482CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003483...............................................................................
3484
Phil Nash74d3dfd2017-11-13 16:03:27 +00003485CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003486PASSED:
3487 CHECK( spec.hasFilters() == true )
3488with expansion:
3489 true == true
3490
Phil Nash74d3dfd2017-11-13 16:03:27 +00003491CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003492PASSED:
3493 CHECK( spec.matches( tcA ) == true )
3494with expansion:
3495 true == true
3496
Phil Nash74d3dfd2017-11-13 16:03:27 +00003497CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003498PASSED:
3499 CHECK( spec.matches( tcB ) == true )
3500with expansion:
3501 true == true
3502
Phil Nash74d3dfd2017-11-13 16:03:27 +00003503CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003504PASSED:
3505 CHECK( spec.matches( tcC ) == false )
3506with expansion:
3507 false == false
3508
Phil Nash74d3dfd2017-11-13 16:03:27 +00003509CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003510PASSED:
3511 CHECK( spec.matches( tcD ) == false )
3512with expansion:
3513 false == false
3514
3515-------------------------------------------------------------------------------
3516Parse test names and tags
3517 wildcarded name exclusion with tag inclusion
3518-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003519CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003520...............................................................................
3521
Phil Nash74d3dfd2017-11-13 16:03:27 +00003522CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003523PASSED:
3524 CHECK( spec.hasFilters() == true )
3525with expansion:
3526 true == true
3527
Phil Nash74d3dfd2017-11-13 16:03:27 +00003528CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003529PASSED:
3530 CHECK( spec.matches( tcA ) == true )
3531with expansion:
3532 true == true
3533
Phil Nash74d3dfd2017-11-13 16:03:27 +00003534CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003535PASSED:
3536 CHECK( spec.matches( tcB ) == true )
3537with expansion:
3538 true == true
3539
Phil Nash74d3dfd2017-11-13 16:03:27 +00003540CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003541PASSED:
3542 CHECK( spec.matches( tcC ) == true )
3543with expansion:
3544 true == true
3545
Phil Nash74d3dfd2017-11-13 16:03:27 +00003546CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003547PASSED:
3548 CHECK( spec.matches( tcD ) == false )
3549with expansion:
3550 false == false
3551
3552-------------------------------------------------------------------------------
3553Parse test names and tags
3554 wildcarded name exclusion, using exclude:, with tag inclusion
3555-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003556CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003557...............................................................................
3558
Phil Nash74d3dfd2017-11-13 16:03:27 +00003559CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003560PASSED:
3561 CHECK( spec.hasFilters() == true )
3562with expansion:
3563 true == true
3564
Phil Nash74d3dfd2017-11-13 16:03:27 +00003565CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003566PASSED:
3567 CHECK( spec.matches( tcA ) == true )
3568with expansion:
3569 true == true
3570
Phil Nash74d3dfd2017-11-13 16:03:27 +00003571CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003572PASSED:
3573 CHECK( spec.matches( tcB ) == true )
3574with expansion:
3575 true == true
3576
Phil Nash74d3dfd2017-11-13 16:03:27 +00003577CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003578PASSED:
3579 CHECK( spec.matches( tcC ) == true )
3580with expansion:
3581 true == true
3582
Phil Nash74d3dfd2017-11-13 16:03:27 +00003583CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003584PASSED:
3585 CHECK( spec.matches( tcD ) == false )
3586with expansion:
3587 false == false
3588
3589-------------------------------------------------------------------------------
3590Parse test names and tags
3591 two wildcarded names
3592-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003593CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003594...............................................................................
3595
Phil Nash74d3dfd2017-11-13 16:03:27 +00003596CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003597PASSED:
3598 CHECK( spec.hasFilters() == true )
3599with expansion:
3600 true == true
3601
Phil Nash74d3dfd2017-11-13 16:03:27 +00003602CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003603PASSED:
3604 CHECK( spec.matches( tcA ) == false )
3605with expansion:
3606 false == false
3607
Phil Nash74d3dfd2017-11-13 16:03:27 +00003608CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003609PASSED:
3610 CHECK( spec.matches( tcB ) == false )
3611with expansion:
3612 false == false
3613
Phil Nash74d3dfd2017-11-13 16:03:27 +00003614CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003615PASSED:
3616 CHECK( spec.matches( tcC ) == true )
3617with expansion:
3618 true == true
3619
Phil Nash74d3dfd2017-11-13 16:03:27 +00003620CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003621PASSED:
3622 CHECK( spec.matches( tcD ) == false )
3623with expansion:
3624 false == false
3625
3626-------------------------------------------------------------------------------
3627Parse test names and tags
3628 empty tag
3629-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003630CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003631...............................................................................
3632
Phil Nash74d3dfd2017-11-13 16:03:27 +00003633CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003634PASSED:
3635 CHECK( spec.hasFilters() == false )
3636with expansion:
3637 false == false
3638
Phil Nash74d3dfd2017-11-13 16:03:27 +00003639CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003640PASSED:
3641 CHECK( spec.matches( tcA ) == false )
3642with expansion:
3643 false == false
3644
Phil Nash74d3dfd2017-11-13 16:03:27 +00003645CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003646PASSED:
3647 CHECK( spec.matches( tcB ) == false )
3648with expansion:
3649 false == false
3650
Phil Nash74d3dfd2017-11-13 16:03:27 +00003651CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003652PASSED:
3653 CHECK( spec.matches( tcC ) == false )
3654with expansion:
3655 false == false
3656
Phil Nash74d3dfd2017-11-13 16:03:27 +00003657CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003658PASSED:
3659 CHECK( spec.matches( tcD ) == false )
3660with expansion:
3661 false == false
3662
3663-------------------------------------------------------------------------------
3664Parse test names and tags
3665 empty quoted name
3666-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003667CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003668...............................................................................
3669
Phil Nash74d3dfd2017-11-13 16:03:27 +00003670CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003671PASSED:
3672 CHECK( spec.hasFilters() == false )
3673with expansion:
3674 false == false
3675
Phil Nash74d3dfd2017-11-13 16:03:27 +00003676CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003677PASSED:
3678 CHECK( spec.matches( tcA ) == false )
3679with expansion:
3680 false == false
3681
Phil Nash74d3dfd2017-11-13 16:03:27 +00003682CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003683PASSED:
3684 CHECK( spec.matches( tcB ) == false )
3685with expansion:
3686 false == false
3687
Phil Nash74d3dfd2017-11-13 16:03:27 +00003688CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003689PASSED:
3690 CHECK( spec.matches( tcC ) == false )
3691with expansion:
3692 false == false
3693
Phil Nash74d3dfd2017-11-13 16:03:27 +00003694CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003695PASSED:
3696 CHECK( spec.matches( tcD ) == false )
3697with expansion:
3698 false == false
3699
3700-------------------------------------------------------------------------------
3701Parse test names and tags
3702 quoted string followed by tag exclusion
3703-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003704CmdLine.tests.cpp:<line number>
Phil Nash766491a2014-05-16 18:31:15 +01003705...............................................................................
3706
Phil Nash74d3dfd2017-11-13 16:03:27 +00003707CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003708PASSED:
3709 CHECK( spec.hasFilters() == true )
3710with expansion:
3711 true == true
3712
Phil Nash74d3dfd2017-11-13 16:03:27 +00003713CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003714PASSED:
3715 CHECK( spec.matches( tcA ) == false )
3716with expansion:
3717 false == false
3718
Phil Nash74d3dfd2017-11-13 16:03:27 +00003719CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003720PASSED:
3721 CHECK( spec.matches( tcB ) == false )
3722with expansion:
3723 false == false
3724
Phil Nash74d3dfd2017-11-13 16:03:27 +00003725CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003726PASSED:
3727 CHECK( spec.matches( tcC ) == false )
3728with expansion:
3729 false == false
3730
Phil Nash74d3dfd2017-11-13 16:03:27 +00003731CmdLine.tests.cpp:<line number>:
Phil Nash766491a2014-05-16 18:31:15 +01003732PASSED:
3733 CHECK( spec.matches( tcD ) == true )
3734with expansion:
3735 true == true
3736
3737-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003738Parsing a std::pair
Phil Nash50183202014-12-30 18:47:01 +00003739-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003740Tricky.tests.cpp:<line number>
Phil Nash50183202014-12-30 18:47:01 +00003741...............................................................................
3742
Phil Nash74d3dfd2017-11-13 16:03:27 +00003743Tricky.tests.cpp:<line number>:
Phil Nash50183202014-12-30 18:47:01 +00003744PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00003745 REQUIRE( (std::pair<int, int>( 1, 2 )) == aNicePair )
Phil Nash50183202014-12-30 18:47:01 +00003746with expansion:
Martin Hořeňovský760a25e2017-10-09 13:12:50 +02003747 {?} == {?}
Phil Nash50183202014-12-30 18:47:01 +00003748
3749-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003750Pointers can be compared to null
Phil Nash50183202014-12-30 18:47:01 +00003751-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003752Condition.tests.cpp:<line number>
Phil Nash50183202014-12-30 18:47:01 +00003753...............................................................................
3754
Phil Nash74d3dfd2017-11-13 16:03:27 +00003755Condition.tests.cpp:<line number>:
Phil Nash50183202014-12-30 18:47:01 +00003756PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003757 REQUIRE( p == 0 )
Phil Nash50183202014-12-30 18:47:01 +00003758with expansion:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02003759 0 == 0
Phil Nash79acc052016-11-29 11:32:16 +00003760
Phil Nash74d3dfd2017-11-13 16:03:27 +00003761Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003762PASSED:
3763 REQUIRE( p == pNULL )
3764with expansion:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02003765 0 == 0
Phil Nash79acc052016-11-29 11:32:16 +00003766
Phil Nash74d3dfd2017-11-13 16:03:27 +00003767Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003768PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003769 REQUIRE( p != 0 )
Phil Nash79acc052016-11-29 11:32:16 +00003770with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00003771 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00003772
Phil Nash74d3dfd2017-11-13 16:03:27 +00003773Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003774PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003775 REQUIRE( cp != 0 )
Phil Nash79acc052016-11-29 11:32:16 +00003776with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00003777 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00003778
Phil Nash74d3dfd2017-11-13 16:03:27 +00003779Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003780PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003781 REQUIRE( cpc != 0 )
Phil Nash79acc052016-11-29 11:32:16 +00003782with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00003783 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00003784
Phil Nash74d3dfd2017-11-13 16:03:27 +00003785Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003786PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003787 REQUIRE( returnsNull() == 0 )
Phil Nash79acc052016-11-29 11:32:16 +00003788with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00003789 {null string} == 0
Phil Nash79acc052016-11-29 11:32:16 +00003790
Phil Nash74d3dfd2017-11-13 16:03:27 +00003791Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003792PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003793 REQUIRE( returnsConstNull() == 0 )
Phil Nash79acc052016-11-29 11:32:16 +00003794with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00003795 {null string} == 0
Phil Nash79acc052016-11-29 11:32:16 +00003796
Phil Nash74d3dfd2017-11-13 16:03:27 +00003797Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003798PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00003799 REQUIRE( 0 != p )
Phil Nash79acc052016-11-29 11:32:16 +00003800with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00003801 0 != 0x<hex digits>
Phil Nash50183202014-12-30 18:47:01 +00003802
3803-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003804Process can be configured on command line
Phil Nash38b05f12017-03-13 11:00:58 +00003805 empty args don't cause a crash
3806-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003807CmdLine.tests.cpp:<line number>
Phil Nash38b05f12017-03-13 11:00:58 +00003808...............................................................................
3809
Phil Nash74d3dfd2017-11-13 16:03:27 +00003810CmdLine.tests.cpp:<line number>:
Phil Nash38b05f12017-03-13 11:00:58 +00003811PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003812 CHECK( result )
3813with expansion:
3814 {?}
Phil Nash38b05f12017-03-13 11:00:58 +00003815
Phil Nash74d3dfd2017-11-13 16:03:27 +00003816CmdLine.tests.cpp:<line number>:
Phil Nash38b05f12017-03-13 11:00:58 +00003817PASSED:
3818 CHECK( config.processName == "" )
3819with expansion:
3820 "" == ""
3821
3822-------------------------------------------------------------------------------
3823Process can be configured on command line
Phil Nash79acc052016-11-29 11:32:16 +00003824 default - no arguments
Phil Nash50183202014-12-30 18:47:01 +00003825-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003826CmdLine.tests.cpp:<line number>
Phil Nash50183202014-12-30 18:47:01 +00003827...............................................................................
3828
Phil Nash74d3dfd2017-11-13 16:03:27 +00003829CmdLine.tests.cpp:<line number>:
Phil Nash50183202014-12-30 18:47:01 +00003830PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003831 CHECK( result )
3832with expansion:
3833 {?}
Phil Nash79acc052016-11-29 11:32:16 +00003834
Phil Nash74d3dfd2017-11-13 16:03:27 +00003835CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003836PASSED:
Phil Nash38b05f12017-03-13 11:00:58 +00003837 CHECK( config.processName == "test" )
3838with expansion:
3839 "test" == "test"
3840
Phil Nash74d3dfd2017-11-13 16:03:27 +00003841CmdLine.tests.cpp:<line number>:
Phil Nash38b05f12017-03-13 11:00:58 +00003842PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00003843 CHECK( config.shouldDebugBreak == false )
Phil Nash50183202014-12-30 18:47:01 +00003844with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00003845 false == false
3846
Phil Nash74d3dfd2017-11-13 16:03:27 +00003847CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003848PASSED:
3849 CHECK( config.abortAfter == -1 )
3850with expansion:
3851 -1 == -1
3852
Phil Nash74d3dfd2017-11-13 16:03:27 +00003853CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003854PASSED:
3855 CHECK( config.noThrow == false )
3856with expansion:
3857 false == false
3858
Phil Nash74d3dfd2017-11-13 16:03:27 +00003859CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003860PASSED:
3861 CHECK( config.reporterNames.empty() )
3862with expansion:
3863 true
Phil Nash50183202014-12-30 18:47:01 +00003864
3865-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003866Process can be configured on command line
3867 test lists
3868 1 test
Phil Nash50183202014-12-30 18:47:01 +00003869-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003870CmdLine.tests.cpp:<line number>
Phil Nash50183202014-12-30 18:47:01 +00003871...............................................................................
3872
Phil Nash74d3dfd2017-11-13 16:03:27 +00003873CmdLine.tests.cpp:<line number>:
Phil Nash50183202014-12-30 18:47:01 +00003874PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003875 CHECK( result )
3876with expansion:
3877 {?}
Phil Nash79acc052016-11-29 11:32:16 +00003878
Phil Nash74d3dfd2017-11-13 16:03:27 +00003879CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003880PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003881 REQUIRE( cfg.testSpec().matches(fakeTestCase("notIncluded")) == false )
Phil Nash50183202014-12-30 18:47:01 +00003882with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00003883 false == false
3884
Phil Nash74d3dfd2017-11-13 16:03:27 +00003885CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003886PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003887 REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) )
Phil Nash79acc052016-11-29 11:32:16 +00003888with expansion:
3889 true
Phil Nash50183202014-12-30 18:47:01 +00003890
3891-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003892Process can be configured on command line
3893 test lists
3894 Specify one test case exclusion using exclude:
Phil Nash50183202014-12-30 18:47:01 +00003895-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003896CmdLine.tests.cpp:<line number>
Phil Nash50183202014-12-30 18:47:01 +00003897...............................................................................
3898
Phil Nash74d3dfd2017-11-13 16:03:27 +00003899CmdLine.tests.cpp:<line number>:
Phil Nash50183202014-12-30 18:47:01 +00003900PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003901 CHECK( result )
3902with expansion:
3903 {?}
Phil Nash79acc052016-11-29 11:32:16 +00003904
Phil Nash74d3dfd2017-11-13 16:03:27 +00003905CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003906PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003907 REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false )
Phil Nash50183202014-12-30 18:47:01 +00003908with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00003909 false == false
3910
Phil Nash74d3dfd2017-11-13 16:03:27 +00003911CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003912PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003913 REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) )
Phil Nash79acc052016-11-29 11:32:16 +00003914with expansion:
3915 true
Phil Nash50183202014-12-30 18:47:01 +00003916
3917-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003918Process can be configured on command line
3919 test lists
3920 Specify one test case exclusion using ~
Phil Nash061861d2014-06-30 07:34:27 +01003921-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003922CmdLine.tests.cpp:<line number>
Phil Nash061861d2014-06-30 07:34:27 +01003923...............................................................................
3924
Phil Nash74d3dfd2017-11-13 16:03:27 +00003925CmdLine.tests.cpp:<line number>:
Phil Nash061861d2014-06-30 07:34:27 +01003926PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003927 CHECK( result )
3928with expansion:
3929 {?}
Phil Nash061861d2014-06-30 07:34:27 +01003930
Phil Nash74d3dfd2017-11-13 16:03:27 +00003931CmdLine.tests.cpp:<line number>:
Phil Nash061861d2014-06-30 07:34:27 +01003932PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003933 REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false )
Phil Nash061861d2014-06-30 07:34:27 +01003934with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00003935 false == false
Phil Nash061861d2014-06-30 07:34:27 +01003936
Phil Nash74d3dfd2017-11-13 16:03:27 +00003937CmdLine.tests.cpp:<line number>:
Phil Nash061861d2014-06-30 07:34:27 +01003938PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003939 REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) )
Phil Nash061861d2014-06-30 07:34:27 +01003940with expansion:
Phil Nash79acc052016-11-29 11:32:16 +00003941 true
Phil Nash061861d2014-06-30 07:34:27 +01003942
3943-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003944Process can be configured on command line
3945 reporter
3946 -r/console
Phil Nash061861d2014-06-30 07:34:27 +01003947-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003948CmdLine.tests.cpp:<line number>
Phil Nash061861d2014-06-30 07:34:27 +01003949...............................................................................
3950
Phil Nash74d3dfd2017-11-13 16:03:27 +00003951CmdLine.tests.cpp:<line number>:
Phil Nash061861d2014-06-30 07:34:27 +01003952PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003953 CHECK( cli.parse({"test", "-r", "console"}) )
3954with expansion:
3955 {?}
Phil Nash061861d2014-06-30 07:34:27 +01003956
Phil Nash74d3dfd2017-11-13 16:03:27 +00003957CmdLine.tests.cpp:<line number>:
Phil Nash061861d2014-06-30 07:34:27 +01003958PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00003959 REQUIRE( config.reporterNames[0] == "console" )
3960with expansion:
3961 "console" == "console"
Phil Nash061861d2014-06-30 07:34:27 +01003962
3963-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00003964Process can be configured on command line
3965 reporter
3966 -r/xml
Phil Nash2f7a2962013-09-27 19:01:14 +01003967-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003968CmdLine.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01003969...............................................................................
3970
Phil Nash74d3dfd2017-11-13 16:03:27 +00003971CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003972PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003973 CHECK( cli.parse({"test", "-r", "xml"}) )
3974with expansion:
3975 {?}
Phil Nash79acc052016-11-29 11:32:16 +00003976
Phil Nash74d3dfd2017-11-13 16:03:27 +00003977CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003978PASSED:
3979 REQUIRE( config.reporterNames[0] == "xml" )
3980with expansion:
3981 "xml" == "xml"
3982
3983-------------------------------------------------------------------------------
3984Process can be configured on command line
3985 reporter
3986 -r xml and junit
3987-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00003988CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00003989...............................................................................
3990
Phil Nash74d3dfd2017-11-13 16:03:27 +00003991CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003992PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01003993 CHECK( cli.parse({"test", "-r", "xml", "-r", "junit"}) )
3994with expansion:
3995 {?}
Phil Nash79acc052016-11-29 11:32:16 +00003996
Phil Nash74d3dfd2017-11-13 16:03:27 +00003997CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00003998PASSED:
3999 REQUIRE( config.reporterNames.size() == 2 )
4000with expansion:
4001 2 == 2
4002
Phil Nash74d3dfd2017-11-13 16:03:27 +00004003CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004004PASSED:
4005 REQUIRE( config.reporterNames[0] == "xml" )
4006with expansion:
4007 "xml" == "xml"
4008
Phil Nash74d3dfd2017-11-13 16:03:27 +00004009CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004010PASSED:
4011 REQUIRE( config.reporterNames[1] == "junit" )
4012with expansion:
4013 "junit" == "junit"
4014
4015-------------------------------------------------------------------------------
4016Process can be configured on command line
4017 reporter
4018 --reporter/junit
4019-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004020CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004021...............................................................................
4022
Phil Nash74d3dfd2017-11-13 16:03:27 +00004023CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004024PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004025 CHECK( cli.parse({"test", "--reporter", "junit"}) )
4026with expansion:
4027 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004028
Phil Nash74d3dfd2017-11-13 16:03:27 +00004029CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004030PASSED:
4031 REQUIRE( config.reporterNames[0] == "junit" )
4032with expansion:
4033 "junit" == "junit"
4034
4035-------------------------------------------------------------------------------
4036Process can be configured on command line
4037 debugger
4038 -b
4039-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004040CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004041...............................................................................
4042
Phil Nash74d3dfd2017-11-13 16:03:27 +00004043CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004044PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004045 CHECK( cli.parse({"test", "-b"}) )
4046with expansion:
4047 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004048
Phil Nash74d3dfd2017-11-13 16:03:27 +00004049CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004050PASSED:
4051 REQUIRE( config.shouldDebugBreak == true )
4052with expansion:
4053 true == true
4054
4055-------------------------------------------------------------------------------
4056Process can be configured on command line
4057 debugger
4058 --break
4059-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004060CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004061...............................................................................
4062
Phil Nash74d3dfd2017-11-13 16:03:27 +00004063CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004064PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004065 CHECK( cli.parse({"test", "--break"}) )
4066with expansion:
4067 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004068
Phil Nash74d3dfd2017-11-13 16:03:27 +00004069CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004070PASSED:
4071 REQUIRE( config.shouldDebugBreak )
4072with expansion:
4073 true
4074
4075-------------------------------------------------------------------------------
4076Process can be configured on command line
4077 abort
4078 -a aborts after first failure
4079-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004080CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004081...............................................................................
4082
Phil Nash74d3dfd2017-11-13 16:03:27 +00004083CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004084PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004085 CHECK( cli.parse({"test", "-a"}) )
4086with expansion:
4087 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004088
Phil Nash74d3dfd2017-11-13 16:03:27 +00004089CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004090PASSED:
4091 REQUIRE( config.abortAfter == 1 )
4092with expansion:
4093 1 == 1
4094
4095-------------------------------------------------------------------------------
4096Process can be configured on command line
4097 abort
4098 -x 2 aborts after two failures
4099-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004100CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004101...............................................................................
4102
Phil Nash74d3dfd2017-11-13 16:03:27 +00004103CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004104PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004105 CHECK( cli.parse({"test", "-x", "2"}) )
4106with expansion:
4107 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004108
Phil Nash74d3dfd2017-11-13 16:03:27 +00004109CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004110PASSED:
4111 REQUIRE( config.abortAfter == 2 )
4112with expansion:
4113 2 == 2
4114
4115-------------------------------------------------------------------------------
4116Process can be configured on command line
4117 abort
Phil Nash79acc052016-11-29 11:32:16 +00004118 -x must be numeric
4119-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004120CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004121...............................................................................
4122
Phil Nash74d3dfd2017-11-13 16:03:27 +00004123CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004124PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004125 CHECK( !result )
Phil Nash79acc052016-11-29 11:32:16 +00004126with expansion:
Phil Nashc41a45e2017-06-12 23:13:27 +01004127 true
4128
Phil Nash74d3dfd2017-11-13 16:03:27 +00004129CmdLine.tests.cpp:<line number>:
Phil Nashc41a45e2017-06-12 23:13:27 +01004130PASSED:
4131 REQUIRE_THAT( result.errorMessage(), Contains("convert") && Contains("oops") )
4132with expansion:
4133 "Unable to convert 'oops' to destination type" ( contains: "convert" and
4134 contains: "oops" )
Phil Nash79acc052016-11-29 11:32:16 +00004135
4136-------------------------------------------------------------------------------
4137Process can be configured on command line
4138 nothrow
4139 -e
4140-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004141CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004142...............................................................................
4143
Phil Nash74d3dfd2017-11-13 16:03:27 +00004144CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004145PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004146 CHECK( cli.parse({"test", "-e"}) )
4147with expansion:
4148 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004149
Phil Nash74d3dfd2017-11-13 16:03:27 +00004150CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004151PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004152 REQUIRE( config.noThrow )
Phil Nash79acc052016-11-29 11:32:16 +00004153with expansion:
Phil Nashc41a45e2017-06-12 23:13:27 +01004154 true
Phil Nash79acc052016-11-29 11:32:16 +00004155
4156-------------------------------------------------------------------------------
4157Process can be configured on command line
4158 nothrow
4159 --nothrow
4160-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004161CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004162...............................................................................
4163
Phil Nash74d3dfd2017-11-13 16:03:27 +00004164CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004165PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004166 CHECK( cli.parse({"test", "--nothrow"}) )
4167with expansion:
4168 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004169
Phil Nash74d3dfd2017-11-13 16:03:27 +00004170CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004171PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004172 REQUIRE( config.noThrow )
Phil Nash79acc052016-11-29 11:32:16 +00004173with expansion:
Phil Nashc41a45e2017-06-12 23:13:27 +01004174 true
Phil Nash79acc052016-11-29 11:32:16 +00004175
4176-------------------------------------------------------------------------------
4177Process can be configured on command line
4178 output filename
4179 -o filename
4180-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004181CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004182...............................................................................
4183
Phil Nash74d3dfd2017-11-13 16:03:27 +00004184CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004185PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004186 CHECK( cli.parse({"test", "-o", "filename.ext"}) )
4187with expansion:
4188 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004189
Phil Nash74d3dfd2017-11-13 16:03:27 +00004190CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004191PASSED:
4192 REQUIRE( config.outputFilename == "filename.ext" )
4193with expansion:
4194 "filename.ext" == "filename.ext"
4195
4196-------------------------------------------------------------------------------
4197Process can be configured on command line
4198 output filename
4199 --out
4200-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004201CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004202...............................................................................
4203
Phil Nash74d3dfd2017-11-13 16:03:27 +00004204CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004205PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004206 CHECK( cli.parse({"test", "--out", "filename.ext"}) )
4207with expansion:
4208 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004209
Phil Nash74d3dfd2017-11-13 16:03:27 +00004210CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004211PASSED:
4212 REQUIRE( config.outputFilename == "filename.ext" )
4213with expansion:
4214 "filename.ext" == "filename.ext"
4215
4216-------------------------------------------------------------------------------
4217Process can be configured on command line
4218 combinations
4219 Single character flags can be combined
4220-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004221CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004222...............................................................................
4223
Phil Nash74d3dfd2017-11-13 16:03:27 +00004224CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004225PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004226 CHECK( cli.parse({"test", "-abe"}) )
4227with expansion:
4228 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004229
Phil Nash74d3dfd2017-11-13 16:03:27 +00004230CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004231PASSED:
4232 CHECK( config.abortAfter == 1 )
4233with expansion:
4234 1 == 1
4235
Phil Nash74d3dfd2017-11-13 16:03:27 +00004236CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004237PASSED:
4238 CHECK( config.shouldDebugBreak )
4239with expansion:
4240 true
4241
Phil Nash74d3dfd2017-11-13 16:03:27 +00004242CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004243PASSED:
4244 CHECK( config.noThrow == true )
4245with expansion:
4246 true == true
4247
4248-------------------------------------------------------------------------------
4249Process can be configured on command line
4250 use-colour
4251 without option
4252-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004253CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004254...............................................................................
4255
Phil Nash74d3dfd2017-11-13 16:03:27 +00004256CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004257PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004258 CHECK( cli.parse({"test"}) )
4259with expansion:
4260 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004261
Phil Nash74d3dfd2017-11-13 16:03:27 +00004262CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004263PASSED:
4264 REQUIRE( config.useColour == UseColour::Auto )
4265with expansion:
4266 0 == 0
4267
4268-------------------------------------------------------------------------------
4269Process can be configured on command line
4270 use-colour
4271 auto
4272-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004273CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004274...............................................................................
4275
Phil Nash74d3dfd2017-11-13 16:03:27 +00004276CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004277PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004278 CHECK( cli.parse({"test", "--use-colour", "auto"}) )
4279with expansion:
4280 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004281
Phil Nash74d3dfd2017-11-13 16:03:27 +00004282CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004283PASSED:
4284 REQUIRE( config.useColour == UseColour::Auto )
4285with expansion:
4286 0 == 0
4287
4288-------------------------------------------------------------------------------
4289Process can be configured on command line
4290 use-colour
4291 yes
4292-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004293CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004294...............................................................................
4295
Phil Nash74d3dfd2017-11-13 16:03:27 +00004296CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004297PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004298 CHECK( cli.parse({"test", "--use-colour", "yes"}) )
4299with expansion:
4300 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004301
Phil Nash74d3dfd2017-11-13 16:03:27 +00004302CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004303PASSED:
4304 REQUIRE( config.useColour == UseColour::Yes )
4305with expansion:
4306 1 == 1
4307
4308-------------------------------------------------------------------------------
4309Process can be configured on command line
4310 use-colour
4311 no
4312-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004313CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004314...............................................................................
4315
Phil Nash74d3dfd2017-11-13 16:03:27 +00004316CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004317PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004318 CHECK( cli.parse({"test", "--use-colour", "no"}) )
4319with expansion:
4320 {?}
Phil Nash79acc052016-11-29 11:32:16 +00004321
Phil Nash74d3dfd2017-11-13 16:03:27 +00004322CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004323PASSED:
4324 REQUIRE( config.useColour == UseColour::No )
4325with expansion:
4326 2 == 2
4327
4328-------------------------------------------------------------------------------
4329Process can be configured on command line
4330 use-colour
4331 error
4332-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004333CmdLine.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004334...............................................................................
4335
Phil Nash74d3dfd2017-11-13 16:03:27 +00004336CmdLine.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004337PASSED:
Phil Nashc41a45e2017-06-12 23:13:27 +01004338 CHECK( !result )
4339with expansion:
4340 true
4341
Phil Nash74d3dfd2017-11-13 16:03:27 +00004342CmdLine.tests.cpp:<line number>:
Phil Nashc41a45e2017-06-12 23:13:27 +01004343PASSED:
4344 CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) )
4345with expansion:
4346 "colour mode must be one of: auto, yes or no. 'wrong' not recognised"
4347 contains: "colour mode must be one of"
Phil Nash79acc052016-11-29 11:32:16 +00004348
4349-------------------------------------------------------------------------------
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02004350Reconstruction should be based on stringification: #914
4351-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004352Decomposition.tests.cpp:<line number>
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02004353...............................................................................
4354
Phil Nash74d3dfd2017-11-13 16:03:27 +00004355Decomposition.tests.cpp:<line number>: FAILED:
Martin Hořeňovský07ef0282017-06-06 15:07:57 +02004356 CHECK( truthy(false) )
4357with expansion:
4358 Hey, its truthy!
4359
4360-------------------------------------------------------------------------------
Martin Hořeňovskýb0857e82017-11-13 15:35:31 +01004361Regex string matcher
4362-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004363Matchers.tests.cpp:<line number>
Martin Hořeňovskýb0857e82017-11-13 15:35:31 +01004364...............................................................................
4365
Phil Nash74d3dfd2017-11-13 16:03:27 +00004366Matchers.tests.cpp:<line number>: FAILED:
Martin Hořeňovskýb0857e82017-11-13 15:35:31 +01004367 CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") )
4368with expansion:
4369 "this string contains 'abc' as a substring" matches "this STRING contains
4370 'abc' as a substring" case sensitively
4371
Phil Nash74d3dfd2017-11-13 16:03:27 +00004372Matchers.tests.cpp:<line number>: FAILED:
Martin Hořeňovskýb0857e82017-11-13 15:35:31 +01004373 CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") )
4374with expansion:
4375 "this string contains 'abc' as a substring" matches "contains 'abc' as a
4376 substring" case sensitively
4377
Phil Nash74d3dfd2017-11-13 16:03:27 +00004378Matchers.tests.cpp:<line number>: FAILED:
Martin Hořeňovskýb0857e82017-11-13 15:35:31 +01004379 CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") )
4380with expansion:
4381 "this string contains 'abc' as a substring" matches "this string contains
4382 'abc' as a" case sensitively
4383
4384-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00004385SUCCEED counts as a test pass
4386-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004387Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004388...............................................................................
4389
Phil Nash74d3dfd2017-11-13 16:03:27 +00004390Message.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004391PASSED:
4392with message:
Phil Nash79acc052016-11-29 11:32:16 +00004393 this is a success
Phil Nash2f7a2962013-09-27 19:01:14 +01004394
4395-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00004396SUCCESS does not require an argument
Phil Nash2f7a2962013-09-27 19:01:14 +01004397-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004398Message.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004399...............................................................................
4400
Phil Nash74d3dfd2017-11-13 16:03:27 +00004401Message.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004402PASSED:
Phil Nash2f7a2962013-09-27 19:01:14 +01004403
4404-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00004405Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
4406 methods
4407 Given: No operations precede me
Phil Nash2f7a2962013-09-27 19:01:14 +01004408-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004409BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004410...............................................................................
4411
Phil Nash74d3dfd2017-11-13 16:03:27 +00004412BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004413PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00004414 REQUIRE( before == 0 )
4415with expansion:
4416 0 == 0
4417
4418-------------------------------------------------------------------------------
4419Scenario: 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 Nash74d3dfd2017-11-13 16:03:27 +00004425BDD.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004426...............................................................................
4427
Phil Nash74d3dfd2017-11-13 16:03:27 +00004428BDD.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004429PASSED:
4430 REQUIRE( after > before )
4431with expansion:
4432 1 > 0
Phil Nash2f7a2962013-09-27 19:01:14 +01004433
4434-------------------------------------------------------------------------------
4435Scenario: Do that thing with the thing
4436 Given: This stuff exists
4437 When: I do this
4438 Then: it should do this
4439-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004440BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004441...............................................................................
4442
Phil Nash74d3dfd2017-11-13 16:03:27 +00004443BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004444PASSED:
4445 REQUIRE( itDoesThis() )
4446with expansion:
4447 true
4448
4449-------------------------------------------------------------------------------
4450Scenario: Do that thing with the thing
4451 Given: This stuff exists
4452 When: I do this
4453 Then: it should do this
Phil Nash2f7a2962013-09-27 19:01:14 +01004454 And: do that
4455-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004456BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004457...............................................................................
4458
Phil Nash74d3dfd2017-11-13 16:03:27 +00004459BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004460PASSED:
4461 REQUIRE( itDoesThat() )
4462with expansion:
4463 true
4464
4465-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00004466Scenario: 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 Nash74d3dfd2017-11-13 16:03:27 +00004475BDD.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004476...............................................................................
4477
Phil Nash74d3dfd2017-11-13 16:03:27 +00004478BDD.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004479PASSED:
4480with message:
4481 boo!
4482
4483-------------------------------------------------------------------------------
Phil Nash2f7a2962013-09-27 19:01:14 +01004484Scenario: Vector resizing affects size and capacity
4485 Given: an empty vector
4486-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004487BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004488...............................................................................
4489
Phil Nash74d3dfd2017-11-13 16:03:27 +00004490BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004491PASSED:
4492 REQUIRE( v.size() == 0 )
4493with expansion:
4494 0 == 0
4495
4496-------------------------------------------------------------------------------
4497Scenario: Vector resizing affects size and capacity
4498 Given: an empty vector
Phil Nash2f7a2962013-09-27 19:01:14 +01004499 When: it is made larger
4500 Then: the size and capacity go up
4501-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004502BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004503...............................................................................
4504
Phil Nash74d3dfd2017-11-13 16:03:27 +00004505BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004506PASSED:
4507 REQUIRE( v.size() == 10 )
4508with expansion:
4509 10 == 10
4510
Phil Nash74d3dfd2017-11-13 16:03:27 +00004511BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004512PASSED:
4513 REQUIRE( v.capacity() >= 10 )
4514with expansion:
4515 10 >= 10
4516
4517-------------------------------------------------------------------------------
4518Scenario: 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 Nash74d3dfd2017-11-13 16:03:27 +00004525BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004526...............................................................................
4527
Phil Nash74d3dfd2017-11-13 16:03:27 +00004528BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004529PASSED:
4530 REQUIRE( v.size() == 5 )
4531with expansion:
4532 5 == 5
4533
Phil Nash74d3dfd2017-11-13 16:03:27 +00004534BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004535PASSED:
4536 REQUIRE( v.capacity() >= 10 )
4537with expansion:
4538 10 >= 10
4539
4540-------------------------------------------------------------------------------
4541Scenario: Vector resizing affects size and capacity
4542 Given: an empty vector
4543-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004544BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004545...............................................................................
4546
Phil Nash74d3dfd2017-11-13 16:03:27 +00004547BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004548PASSED:
4549 REQUIRE( v.size() == 0 )
4550with expansion:
4551 0 == 0
4552
4553-------------------------------------------------------------------------------
4554Scenario: Vector resizing affects size and capacity
4555 Given: an empty vector
Phil Nash2f7a2962013-09-27 19:01:14 +01004556 When: we reserve more space
4557 Then: The capacity is increased but the size remains the same
4558-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004559BDD.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004560...............................................................................
4561
Phil Nash74d3dfd2017-11-13 16:03:27 +00004562BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004563PASSED:
4564 REQUIRE( v.capacity() >= 10 )
4565with expansion:
4566 10 >= 10
4567
Phil Nash74d3dfd2017-11-13 16:03:27 +00004568BDD.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01004569PASSED:
4570 REQUIRE( v.size() == 0 )
4571with expansion:
4572 0 == 0
4573
Phil Nash79acc052016-11-29 11:32:16 +00004574A string sent directly to stdout
4575A string sent directly to stderr
Phil Nash2f7a2962013-09-27 19:01:14 +01004576-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00004577Some simple comparisons between doubles
Phil Nash2f7a2962013-09-27 19:01:14 +01004578-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004579Approx.tests.cpp:<line number>
Phil Nash2f7a2962013-09-27 19:01:14 +01004580...............................................................................
4581
Phil Nash74d3dfd2017-11-13 16:03:27 +00004582Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004583PASSED:
4584 REQUIRE( d == Approx( 1.23 ) )
4585with expansion:
4586 1.23 == Approx( 1.23 )
4587
Phil Nash74d3dfd2017-11-13 16:03:27 +00004588Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004589PASSED:
4590 REQUIRE( d != Approx( 1.22 ) )
4591with expansion:
4592 1.23 != Approx( 1.22 )
4593
Phil Nash74d3dfd2017-11-13 16:03:27 +00004594Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004595PASSED:
4596 REQUIRE( d != Approx( 1.24 ) )
4597with expansion:
4598 1.23 != Approx( 1.24 )
4599
Phil Nash74d3dfd2017-11-13 16:03:27 +00004600Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004601PASSED:
4602 REQUIRE( Approx( d ) == 1.23 )
4603with expansion:
4604 Approx( 1.23 ) == 1.23
4605
Phil Nash74d3dfd2017-11-13 16:03:27 +00004606Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004607PASSED:
4608 REQUIRE( Approx( d ) != 1.22 )
4609with expansion:
4610 Approx( 1.23 ) != 1.22
4611
Phil Nash74d3dfd2017-11-13 16:03:27 +00004612Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004613PASSED:
4614 REQUIRE( Approx( d ) != 1.24 )
4615with expansion:
4616 Approx( 1.23 ) != 1.24
4617
Phil Nash74d3dfd2017-11-13 16:03:27 +00004618Approx.tests.cpp:<line number>:
Martin Hořeňovský11f716f2017-10-30 15:25:48 +01004619PASSED:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01004620 REQUIRE( INFINITY == Approx(INFINITY) )
Martin Hořeňovský11f716f2017-10-30 15:25:48 +01004621with expansion:
Martin Hořeňovský22ac9d22017-11-01 07:30:11 +01004622 inff == Approx( inf )
Martin Hořeňovský11f716f2017-10-30 15:25:48 +01004623
Phil Nash79acc052016-11-29 11:32:16 +00004624Message from section one
4625-------------------------------------------------------------------------------
4626Standard output from all sections is reported
4627 one
4628-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004629Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004630...............................................................................
4631
4632
4633No assertions in section 'one'
4634
4635Message from section two
4636-------------------------------------------------------------------------------
4637Standard output from all sections is reported
4638 two
4639-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004640Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004641...............................................................................
4642
4643
4644No assertions in section 'two'
4645
4646-------------------------------------------------------------------------------
4647StartsWith string matcher
4648-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004649Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004650...............................................................................
4651
Phil Nash74d3dfd2017-11-13 16:03:27 +00004652Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00004653 CHECK_THAT( testStringForMatching(), StartsWith("This String") )
Phil Nash79acc052016-11-29 11:32:16 +00004654with expansion:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004655 "this string contains 'abc' as a substring" starts with: "This String"
4656
Phil Nash74d3dfd2017-11-13 16:03:27 +00004657Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00004658 CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004659with expansion:
4660 "this string contains 'abc' as a substring" starts with: "string" (case
4661 insensitive)
Phil Nash79acc052016-11-29 11:32:16 +00004662
4663-------------------------------------------------------------------------------
4664String matchers
4665-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004666Matchers.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00004667...............................................................................
4668
Phil Nash74d3dfd2017-11-13 16:03:27 +00004669Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004670PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004671 REQUIRE_THAT( testStringForMatching(), Contains("string") )
Phil Nash79acc052016-11-29 11:32:16 +00004672with expansion:
4673 "this string contains 'abc' as a substring" contains: "string"
4674
Phil Nash74d3dfd2017-11-13 16:03:27 +00004675Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004676PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004677 REQUIRE_THAT( testStringForMatching(), Contains("string", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004678with expansion:
4679 "this string contains 'abc' as a substring" contains: "string" (case
4680 insensitive)
4681
Phil Nash74d3dfd2017-11-13 16:03:27 +00004682Matchers.tests.cpp:<line number>:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004683PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004684 CHECK_THAT( testStringForMatching(), Contains("abc") )
Phil Nash79acc052016-11-29 11:32:16 +00004685with expansion:
4686 "this string contains 'abc' as a substring" contains: "abc"
4687
Phil Nash74d3dfd2017-11-13 16:03:27 +00004688Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004689PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004690 CHECK_THAT( testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004691with expansion:
4692 "this string contains 'abc' as a substring" contains: "abc" (case insensitive)
4693 insensitive)
4694
Phil Nash74d3dfd2017-11-13 16:03:27 +00004695Matchers.tests.cpp:<line number>:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004696PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004697 CHECK_THAT( testStringForMatching(), StartsWith("this") )
Phil Nash79acc052016-11-29 11:32:16 +00004698with expansion:
4699 "this string contains 'abc' as a substring" starts with: "this"
4700
Phil Nash74d3dfd2017-11-13 16:03:27 +00004701Matchers.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00004702PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004703 CHECK_THAT( testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004704with expansion:
4705 "this string contains 'abc' as a substring" starts with: "this" (case
4706 insensitive)
4707
Phil Nash74d3dfd2017-11-13 16:03:27 +00004708Matchers.tests.cpp:<line number>:
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004709PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004710 CHECK_THAT( testStringForMatching(), EndsWith("substring") )
Phil Nash79acc052016-11-29 11:32:16 +00004711with expansion:
4712 "this string contains 'abc' as a substring" ends with: "substring"
4713
Phil Nash74d3dfd2017-11-13 16:03:27 +00004714Matchers.tests.cpp:<line number>:
Martin Hořeňovskýb0857e82017-11-13 15:35:31 +01004715PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00004716 CHECK_THAT( testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No) )
Martin Hořeňovský55b71be2017-11-13 15:46:33 +01004717with expansion:
4718 "this string contains 'abc' as a substring" ends with: " substring" (case
4719 insensitive)
4720
Phil Nash60f25c72017-06-29 11:19:08 +01004721-------------------------------------------------------------------------------
Phil Nash60f25c72017-06-29 11:19:08 +01004722StringRef
4723 Empty string
4724-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004725String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004726...............................................................................
4727
Phil Nash74d3dfd2017-11-13 16:03:27 +00004728String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004729PASSED:
4730 REQUIRE( empty.empty() )
4731with expansion:
4732 true
4733
Phil Nash74d3dfd2017-11-13 16:03:27 +00004734String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004735PASSED:
4736 REQUIRE( empty.size() == 0 )
4737with expansion:
4738 0 == 0
4739
Phil Nash74d3dfd2017-11-13 16:03:27 +00004740String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004741PASSED:
4742 REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 )
4743with expansion:
4744 0 == 0
4745
4746-------------------------------------------------------------------------------
4747StringRef
4748 From string literal
4749-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004750String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004751...............................................................................
4752
Phil Nash74d3dfd2017-11-13 16:03:27 +00004753String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004754PASSED:
4755 REQUIRE( s.empty() == false )
4756with expansion:
4757 false == false
4758
Phil Nash74d3dfd2017-11-13 16:03:27 +00004759String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004760PASSED:
4761 REQUIRE( s.size() == 5 )
4762with expansion:
4763 5 == 5
4764
Phil Nash74d3dfd2017-11-13 16:03:27 +00004765String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004766PASSED:
4767 REQUIRE( isSubstring( s ) == false )
4768with expansion:
4769 false == false
4770
Phil Nash74d3dfd2017-11-13 16:03:27 +00004771String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004772PASSED:
4773 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
4774with expansion:
4775 0 == 0
4776
4777-------------------------------------------------------------------------------
4778StringRef
4779 From string literal
4780 c_str() does not cause copy
4781-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004782String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004783...............................................................................
4784
Phil Nash74d3dfd2017-11-13 16:03:27 +00004785String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004786PASSED:
4787 REQUIRE( isOwned( s ) == false )
4788with expansion:
4789 false == false
4790
Phil Nash74d3dfd2017-11-13 16:03:27 +00004791String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004792PASSED:
4793 REQUIRE( s.c_str() == rawChars )
4794with expansion:
4795 "hello" == "hello"
4796
Phil Nash74d3dfd2017-11-13 16:03:27 +00004797String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004798PASSED:
4799 REQUIRE( isOwned( s ) == false )
4800with expansion:
4801 false == false
4802
4803-------------------------------------------------------------------------------
4804StringRef
4805 From sub-string
4806-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004807String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004808...............................................................................
4809
Phil Nash74d3dfd2017-11-13 16:03:27 +00004810String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004811PASSED:
4812 REQUIRE( original == "original" )
Phil Nash60f25c72017-06-29 11:19:08 +01004813
Phil Nash74d3dfd2017-11-13 16:03:27 +00004814String.tests.cpp:<line number>: FAILED:
Phil Nash60f25c72017-06-29 11:19:08 +01004815 REQUIRE( isSubstring( original ) )
4816with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01004817 false
Phil Nash60f25c72017-06-29 11:19:08 +01004818
4819-------------------------------------------------------------------------------
4820StringRef
4821 Substrings
4822 zero-based substring
4823-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004824String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004825...............................................................................
4826
Phil Nash74d3dfd2017-11-13 16:03:27 +00004827String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004828PASSED:
4829 REQUIRE( ss.empty() == false )
4830with expansion:
4831 false == false
4832
Phil Nash74d3dfd2017-11-13 16:03:27 +00004833String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004834PASSED:
4835 REQUIRE( ss.size() == 5 )
4836with expansion:
4837 5 == 5
4838
Phil Nash74d3dfd2017-11-13 16:03:27 +00004839String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004840PASSED:
4841 REQUIRE( std::strcmp( ss.c_str(), "hello" ) == 0 )
4842with expansion:
4843 0 == 0
4844
Phil Nash74d3dfd2017-11-13 16:03:27 +00004845String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004846PASSED:
4847 REQUIRE( ss == "hello" )
4848with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01004849 hello == "hello"
Phil Nash60f25c72017-06-29 11:19:08 +01004850
4851-------------------------------------------------------------------------------
4852StringRef
4853 Substrings
4854 c_str() causes copy
4855-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004856String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004857...............................................................................
4858
Phil Nash74d3dfd2017-11-13 16:03:27 +00004859String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004860PASSED:
4861 REQUIRE( isSubstring( ss ) )
4862with expansion:
4863 true
4864
Phil Nash74d3dfd2017-11-13 16:03:27 +00004865String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004866PASSED:
4867 REQUIRE( isOwned( ss ) == false )
4868with expansion:
4869 false == false
4870
Phil Nash74d3dfd2017-11-13 16:03:27 +00004871String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004872PASSED:
4873 REQUIRE( rawChars == data( s ) )
4874with expansion:
4875 "hello world!" == "hello world!"
4876
Phil Nash74d3dfd2017-11-13 16:03:27 +00004877String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004878PASSED:
4879 REQUIRE( ss.c_str() != rawChars )
4880with expansion:
4881 "hello" != "hello world!"
4882
Phil Nash74d3dfd2017-11-13 16:03:27 +00004883String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004884PASSED:
4885 REQUIRE( isSubstring( ss ) == false )
4886with expansion:
4887 false == false
4888
Phil Nash74d3dfd2017-11-13 16:03:27 +00004889String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004890PASSED:
4891 REQUIRE( isOwned( ss ) )
4892with expansion:
4893 true
4894
Phil Nash74d3dfd2017-11-13 16:03:27 +00004895String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004896PASSED:
4897 REQUIRE( data( ss ) != data( s ) )
4898with expansion:
4899 "hello" != "hello world!"
4900
4901-------------------------------------------------------------------------------
4902StringRef
4903 Substrings
4904 non-zero-based substring
4905-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004906String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004907...............................................................................
4908
Phil Nash74d3dfd2017-11-13 16:03:27 +00004909String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004910PASSED:
4911 REQUIRE( ss.size() == 6 )
4912with expansion:
4913 6 == 6
4914
Phil Nash74d3dfd2017-11-13 16:03:27 +00004915String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004916PASSED:
4917 REQUIRE( std::strcmp( ss.c_str(), "world!" ) == 0 )
4918with expansion:
4919 0 == 0
4920
4921-------------------------------------------------------------------------------
4922StringRef
4923 Substrings
4924 Pointer values of full refs should match
4925-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004926String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004927...............................................................................
4928
Phil Nash74d3dfd2017-11-13 16:03:27 +00004929String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004930PASSED:
4931 REQUIRE( s.c_str() == s2.c_str() )
4932with expansion:
4933 "hello world!" == "hello world!"
4934
4935-------------------------------------------------------------------------------
4936StringRef
4937 Substrings
4938 Pointer values of substring refs should not match
4939-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004940String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004941...............................................................................
4942
Phil Nash74d3dfd2017-11-13 16:03:27 +00004943String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004944PASSED:
4945 REQUIRE( s.c_str() != ss.c_str() )
4946with expansion:
4947 "hello world!" != "hello"
4948
4949-------------------------------------------------------------------------------
4950StringRef
4951 Comparisons
4952-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004953String.tests.cpp:<line number>
Phil Nash60f25c72017-06-29 11:19:08 +01004954...............................................................................
4955
Phil Nash74d3dfd2017-11-13 16:03:27 +00004956String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004957PASSED:
4958 REQUIRE( StringRef("hello") == StringRef("hello") )
4959with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01004960 hello == hello
Phil Nash60f25c72017-06-29 11:19:08 +01004961
Phil Nash74d3dfd2017-11-13 16:03:27 +00004962String.tests.cpp:<line number>:
Phil Nash60f25c72017-06-29 11:19:08 +01004963PASSED:
4964 REQUIRE( StringRef("hello") != StringRef("cello") )
4965with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01004966 hello != cello
Phil Nash60f25c72017-06-29 11:19:08 +01004967
4968-------------------------------------------------------------------------------
4969StringRef
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004970 from std::string
4971 implicitly constructed
4972-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004973String.tests.cpp:<line number>
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004974...............................................................................
4975
Phil Nash74d3dfd2017-11-13 16:03:27 +00004976String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004977PASSED:
4978 REQUIRE( sr == "a standard string" )
4979with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01004980 a standard string == "a standard string"
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004981
Phil Nash74d3dfd2017-11-13 16:03:27 +00004982String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004983PASSED:
4984 REQUIRE( sr.size() == stdStr.size() )
4985with expansion:
4986 17 == 17
4987
4988-------------------------------------------------------------------------------
4989StringRef
4990 from std::string
4991 explicitly constructed
4992-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00004993String.tests.cpp:<line number>
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004994...............................................................................
4995
Phil Nash74d3dfd2017-11-13 16:03:27 +00004996String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01004997PASSED:
4998 REQUIRE( sr == "a standard string" )
4999with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01005000 a standard string == "a standard string"
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005001
Phil Nash74d3dfd2017-11-13 16:03:27 +00005002String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005003PASSED:
5004 REQUIRE( sr.size() == stdStr.size() )
5005with expansion:
5006 17 == 17
5007
5008-------------------------------------------------------------------------------
5009StringRef
5010 from std::string
5011 assigned
5012-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005013String.tests.cpp:<line number>
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005014...............................................................................
5015
Phil Nash74d3dfd2017-11-13 16:03:27 +00005016String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005017PASSED:
5018 REQUIRE( sr == "a standard string" )
5019with expansion:
Phil Nashfa3535e2017-08-14 08:50:44 +01005020 a standard string == "a standard string"
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005021
Phil Nash74d3dfd2017-11-13 16:03:27 +00005022String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005023PASSED:
5024 REQUIRE( sr.size() == stdStr.size() )
5025with expansion:
5026 17 == 17
5027
5028-------------------------------------------------------------------------------
5029StringRef
5030 to std::string
5031 implicitly constructed
5032-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005033String.tests.cpp:<line number>
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005034...............................................................................
5035
Phil Nash74d3dfd2017-11-13 16:03:27 +00005036String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005037PASSED:
5038 REQUIRE( stdStr == "a stringref" )
5039with expansion:
5040 "a stringref" == "a stringref"
5041
Phil Nash74d3dfd2017-11-13 16:03:27 +00005042String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005043PASSED:
5044 REQUIRE( stdStr.size() == sr.size() )
5045with expansion:
5046 11 == 11
5047
5048-------------------------------------------------------------------------------
5049StringRef
5050 to std::string
5051 explicitly constructed
5052-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005053String.tests.cpp:<line number>
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005054...............................................................................
5055
Phil Nash74d3dfd2017-11-13 16:03:27 +00005056String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005057PASSED:
5058 REQUIRE( stdStr == "a stringref" )
5059with expansion:
5060 "a stringref" == "a stringref"
5061
Phil Nash74d3dfd2017-11-13 16:03:27 +00005062String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005063PASSED:
5064 REQUIRE( stdStr.size() == sr.size() )
5065with expansion:
5066 11 == 11
5067
5068-------------------------------------------------------------------------------
5069StringRef
5070 to std::string
5071 assigned
5072-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005073String.tests.cpp:<line number>
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005074...............................................................................
5075
Phil Nash74d3dfd2017-11-13 16:03:27 +00005076String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005077PASSED:
5078 REQUIRE( stdStr == "a stringref" )
5079with expansion:
5080 "a stringref" == "a stringref"
5081
Phil Nash74d3dfd2017-11-13 16:03:27 +00005082String.tests.cpp:<line number>:
Phil Nashbb8c1fb2017-08-14 08:43:33 +01005083PASSED:
5084 REQUIRE( stdStr.size() == sr.size() )
5085with expansion:
5086 11 == 11
5087
5088-------------------------------------------------------------------------------
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005089Stringifying std::chrono::duration helpers
5090-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005091ToStringChrono.tests.cpp:<line number>
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005092...............................................................................
5093
Phil Nash74d3dfd2017-11-13 16:03:27 +00005094ToStringChrono.tests.cpp:<line number>:
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005095PASSED:
5096 REQUIRE( minute == seconds )
5097with expansion:
5098 1 m == 60 s
5099
Phil Nash74d3dfd2017-11-13 16:03:27 +00005100ToStringChrono.tests.cpp:<line number>:
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005101PASSED:
5102 REQUIRE( hour != seconds )
5103with expansion:
5104 1 h != 60 s
5105
Phil Nash74d3dfd2017-11-13 16:03:27 +00005106ToStringChrono.tests.cpp:<line number>:
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005107PASSED:
5108 REQUIRE( micro != milli )
5109with expansion:
5110 1 us != 1 ms
5111
Phil Nash74d3dfd2017-11-13 16:03:27 +00005112ToStringChrono.tests.cpp:<line number>:
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005113PASSED:
5114 REQUIRE( nano != micro )
5115with expansion:
5116 1 ns != 1 us
5117
5118-------------------------------------------------------------------------------
5119Stringifying std::chrono::duration with weird ratios
5120-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005121ToStringChrono.tests.cpp:<line number>
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005122...............................................................................
5123
Phil Nash74d3dfd2017-11-13 16:03:27 +00005124ToStringChrono.tests.cpp:<line number>:
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005125PASSED:
5126 REQUIRE( half_minute != femto_second )
5127with expansion:
5128 1 [30/1]s != 1 fs
5129
Martin Hořeňovský8c32d0b2017-11-28 21:47:06 +01005130ToStringChrono.tests.cpp:<line number>:
5131PASSED:
5132 REQUIRE( pico_second != atto_second )
5133with expansion:
5134 1 ps != 1 as
5135
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005136-------------------------------------------------------------------------------
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005137Stringifying std::chrono::time_point<system_clock>
5138-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005139ToStringChrono.tests.cpp:<line number>
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005140...............................................................................
5141
Phil Nash74d3dfd2017-11-13 16:03:27 +00005142ToStringChrono.tests.cpp:<line number>:
Martin Hořeňovský79b405f2017-10-09 12:31:22 +02005143PASSED:
5144 REQUIRE( now != later )
5145with expansion:
5146 {iso8601-timestamp}
5147 !=
5148 {iso8601-timestamp}
5149
5150-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00005151Tabs and newlines show in output
5152-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005153Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005154...............................................................................
5155
Phil Nash74d3dfd2017-11-13 16:03:27 +00005156Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00005157 CHECK( s1 == s2 )
5158with expansion:
5159 "if ($b == 10) {
Phil Nash4a046822017-01-17 17:13:23 +00005160 $a = 20;
Phil Nash79acc052016-11-29 11:32:16 +00005161 }"
5162 ==
5163 "if ($b == 10) {
Phil Nash4a046822017-01-17 17:13:23 +00005164 $a = 20;
Phil Nash79acc052016-11-29 11:32:16 +00005165 }
5166 "
5167
5168-------------------------------------------------------------------------------
5169Tag alias can be registered against tag patterns
5170 The same tag alias can only be registered once
5171-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005172TagAlias.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005173...............................................................................
5174
Phil Nash74d3dfd2017-11-13 16:03:27 +00005175TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005176PASSED:
5177 CHECK_THAT( what, Contains( "[@zzz]" ) )
5178with expansion:
Phil Nashbada67b2017-05-05 18:25:02 +01005179 "error: tag alias, '[@zzz]' already registered.
5180 First seen at: file:2
5181 Redefined at: file:10" contains: "[@zzz]"
Phil Nash79acc052016-11-29 11:32:16 +00005182
Phil Nash74d3dfd2017-11-13 16:03:27 +00005183TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005184PASSED:
5185 CHECK_THAT( what, Contains( "file" ) )
5186with expansion:
Phil Nashbada67b2017-05-05 18:25:02 +01005187 "error: tag alias, '[@zzz]' already registered.
5188 First seen at: file:2
5189 Redefined at: file:10" contains: "file"
Phil Nash79acc052016-11-29 11:32:16 +00005190
Phil Nash74d3dfd2017-11-13 16:03:27 +00005191TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005192PASSED:
5193 CHECK_THAT( what, Contains( "2" ) )
5194with expansion:
Phil Nashbada67b2017-05-05 18:25:02 +01005195 "error: tag alias, '[@zzz]' already registered.
5196 First seen at: file:2
5197 Redefined at: file:10" contains: "2"
Phil Nash79acc052016-11-29 11:32:16 +00005198
Phil Nash74d3dfd2017-11-13 16:03:27 +00005199TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005200PASSED:
5201 CHECK_THAT( what, Contains( "10" ) )
5202with expansion:
Phil Nashbada67b2017-05-05 18:25:02 +01005203 "error: tag alias, '[@zzz]' already registered.
5204 First seen at: file:2
5205 Redefined at: file:10" contains: "10"
Phil Nash79acc052016-11-29 11:32:16 +00005206
5207-------------------------------------------------------------------------------
5208Tag alias can be registered against tag patterns
5209 Tag aliases must be of the form [@name]
5210-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005211TagAlias.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005212...............................................................................
5213
Phil Nash74d3dfd2017-11-13 16:03:27 +00005214TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005215PASSED:
5216 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
5217
Phil Nash74d3dfd2017-11-13 16:03:27 +00005218TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005219PASSED:
5220 CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
5221
Phil Nash74d3dfd2017-11-13 16:03:27 +00005222TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005223PASSED:
5224 CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
5225
Phil Nash74d3dfd2017-11-13 16:03:27 +00005226TagAlias.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005227PASSED:
5228 CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
5229
5230-------------------------------------------------------------------------------
5231Test case with one argument
5232-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005233VariadicMacros.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005234...............................................................................
5235
Phil Nash74d3dfd2017-11-13 16:03:27 +00005236VariadicMacros.tests.cpp:<line number>:
Phil Nash2f7a2962013-09-27 19:01:14 +01005237PASSED:
5238with message:
Phil Nash79acc052016-11-29 11:32:16 +00005239 no assertions
Phil Nash2f7a2962013-09-27 19:01:14 +01005240
5241-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00005242Test enum bit values
Phil Nash8b5a4e92014-08-20 08:08:13 +01005243-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005244Tricky.tests.cpp:<line number>
Phil Nash8b5a4e92014-08-20 08:08:13 +01005245...............................................................................
5246
Phil Nash74d3dfd2017-11-13 16:03:27 +00005247Tricky.tests.cpp:<line number>:
Phil Nash8b5a4e92014-08-20 08:08:13 +01005248PASSED:
Phil Nash79acc052016-11-29 11:32:16 +00005249 REQUIRE( 0x<hex digits> == bit30and31 )
5250with expansion:
5251 3221225472 (0x<hex digits>) == 3221225472
5252
5253-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00005254The NO_FAIL macro reports a failure but does not fail the test
5255-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005256Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005257...............................................................................
5258
Phil Nash74d3dfd2017-11-13 16:03:27 +00005259Message.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005260FAILED - but was ok:
5261 CHECK_NOFAIL( 1 == 2 )
5262
5263-------------------------------------------------------------------------------
5264This test 'should' fail but doesn't
5265-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005266Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005267...............................................................................
5268
Phil Nash74d3dfd2017-11-13 16:03:27 +00005269Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005270PASSED:
5271with message:
5272 oops!
5273
5274-------------------------------------------------------------------------------
5275Tracker
5276-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005277PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005278...............................................................................
5279
Phil Nash74d3dfd2017-11-13 16:03:27 +00005280PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005281PASSED:
5282 REQUIRE( testCase.isOpen() )
5283with expansion:
5284 true
5285
Phil Nash74d3dfd2017-11-13 16:03:27 +00005286PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005287PASSED:
5288 REQUIRE( s1.isOpen() )
5289with expansion:
5290 true
5291
5292-------------------------------------------------------------------------------
5293Tracker
5294 successfully close one section
5295-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005296PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005297...............................................................................
5298
Phil Nash74d3dfd2017-11-13 16:03:27 +00005299PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005300PASSED:
5301 REQUIRE( s1.isSuccessfullyCompleted() )
5302with expansion:
5303 true
5304
Phil Nash74d3dfd2017-11-13 16:03:27 +00005305PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005306PASSED:
5307 REQUIRE( testCase.isComplete() == false )
5308with expansion:
5309 false == false
5310
Phil Nash74d3dfd2017-11-13 16:03:27 +00005311PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005312PASSED:
5313 REQUIRE( ctx.completedCycle() )
5314with expansion:
5315 true
5316
Phil Nash74d3dfd2017-11-13 16:03:27 +00005317PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005318PASSED:
5319 REQUIRE( testCase.isSuccessfullyCompleted() )
5320with expansion:
5321 true
5322
5323-------------------------------------------------------------------------------
5324Tracker
5325-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005326PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005327...............................................................................
5328
Phil Nash74d3dfd2017-11-13 16:03:27 +00005329PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005330PASSED:
5331 REQUIRE( testCase.isOpen() )
5332with expansion:
5333 true
5334
Phil Nash74d3dfd2017-11-13 16:03:27 +00005335PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005336PASSED:
5337 REQUIRE( s1.isOpen() )
5338with expansion:
5339 true
5340
5341-------------------------------------------------------------------------------
5342Tracker
5343 fail one section
5344-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005345PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005346...............................................................................
5347
Phil Nash74d3dfd2017-11-13 16:03:27 +00005348PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005349PASSED:
5350 REQUIRE( s1.isComplete() )
5351with expansion:
5352 true
5353
Phil Nash74d3dfd2017-11-13 16:03:27 +00005354PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005355PASSED:
5356 REQUIRE( s1.isSuccessfullyCompleted() == false )
5357with expansion:
5358 false == false
5359
Phil Nash74d3dfd2017-11-13 16:03:27 +00005360PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005361PASSED:
5362 REQUIRE( testCase.isComplete() == false )
5363with expansion:
5364 false == false
5365
Phil Nash74d3dfd2017-11-13 16:03:27 +00005366PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005367PASSED:
5368 REQUIRE( ctx.completedCycle() )
5369with expansion:
5370 true
5371
Phil Nash74d3dfd2017-11-13 16:03:27 +00005372PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005373PASSED:
5374 REQUIRE( testCase.isSuccessfullyCompleted() == false )
5375with expansion:
5376 false == false
5377
5378-------------------------------------------------------------------------------
5379Tracker
5380 fail one section
5381 re-enter after failed section
5382-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005383PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005384...............................................................................
5385
Phil Nash74d3dfd2017-11-13 16:03:27 +00005386PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005387PASSED:
5388 REQUIRE( testCase2.isOpen() )
5389with expansion:
5390 true
5391
Phil Nash74d3dfd2017-11-13 16:03:27 +00005392PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005393PASSED:
5394 REQUIRE( s1b.isOpen() == false )
5395with expansion:
5396 false == false
5397
Phil Nash74d3dfd2017-11-13 16:03:27 +00005398PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005399PASSED:
5400 REQUIRE( ctx.completedCycle() )
5401with expansion:
5402 true
5403
Phil Nash74d3dfd2017-11-13 16:03:27 +00005404PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005405PASSED:
5406 REQUIRE( testCase.isComplete() )
5407with expansion:
5408 true
5409
Phil Nash74d3dfd2017-11-13 16:03:27 +00005410PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005411PASSED:
5412 REQUIRE( testCase.isSuccessfullyCompleted() )
5413with expansion:
5414 true
5415
5416-------------------------------------------------------------------------------
5417Tracker
5418-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005419PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005420...............................................................................
5421
Phil Nash74d3dfd2017-11-13 16:03:27 +00005422PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005423PASSED:
5424 REQUIRE( testCase.isOpen() )
5425with expansion:
5426 true
5427
Phil Nash74d3dfd2017-11-13 16:03:27 +00005428PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005429PASSED:
5430 REQUIRE( s1.isOpen() )
5431with expansion:
5432 true
5433
5434-------------------------------------------------------------------------------
5435Tracker
5436 fail one section
5437-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005438PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005439...............................................................................
5440
Phil Nash74d3dfd2017-11-13 16:03:27 +00005441PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005442PASSED:
5443 REQUIRE( s1.isComplete() )
5444with expansion:
5445 true
5446
Phil Nash74d3dfd2017-11-13 16:03:27 +00005447PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005448PASSED:
5449 REQUIRE( s1.isSuccessfullyCompleted() == false )
5450with expansion:
5451 false == false
5452
Phil Nash74d3dfd2017-11-13 16:03:27 +00005453PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005454PASSED:
5455 REQUIRE( testCase.isComplete() == false )
5456with expansion:
5457 false == false
5458
Phil Nash74d3dfd2017-11-13 16:03:27 +00005459PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005460PASSED:
5461 REQUIRE( ctx.completedCycle() )
5462with expansion:
5463 true
5464
Phil Nash74d3dfd2017-11-13 16:03:27 +00005465PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005466PASSED:
5467 REQUIRE( testCase.isSuccessfullyCompleted() == false )
5468with expansion:
5469 false == false
5470
5471-------------------------------------------------------------------------------
5472Tracker
5473 fail one section
5474 re-enter after failed section and find next section
5475-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005476PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005477...............................................................................
5478
Phil Nash74d3dfd2017-11-13 16:03:27 +00005479PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005480PASSED:
5481 REQUIRE( testCase2.isOpen() )
5482with expansion:
5483 true
5484
Phil Nash74d3dfd2017-11-13 16:03:27 +00005485PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005486PASSED:
5487 REQUIRE( s1b.isOpen() == false )
5488with expansion:
5489 false == false
5490
Phil Nash74d3dfd2017-11-13 16:03:27 +00005491PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005492PASSED:
5493 REQUIRE( s2.isOpen() )
5494with expansion:
5495 true
5496
Phil Nash74d3dfd2017-11-13 16:03:27 +00005497PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005498PASSED:
5499 REQUIRE( ctx.completedCycle() )
5500with expansion:
5501 true
5502
Phil Nash74d3dfd2017-11-13 16:03:27 +00005503PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005504PASSED:
5505 REQUIRE( testCase.isComplete() )
5506with expansion:
5507 true
5508
Phil Nash74d3dfd2017-11-13 16:03:27 +00005509PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005510PASSED:
5511 REQUIRE( testCase.isSuccessfullyCompleted() )
5512with expansion:
5513 true
5514
5515-------------------------------------------------------------------------------
5516Tracker
5517-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005518PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005519...............................................................................
5520
Phil Nash74d3dfd2017-11-13 16:03:27 +00005521PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005522PASSED:
5523 REQUIRE( testCase.isOpen() )
5524with expansion:
5525 true
5526
Phil Nash74d3dfd2017-11-13 16:03:27 +00005527PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005528PASSED:
5529 REQUIRE( s1.isOpen() )
5530with expansion:
5531 true
5532
5533-------------------------------------------------------------------------------
5534Tracker
5535 successfully close one section, then find another
5536-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005537PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005538...............................................................................
5539
Phil Nash74d3dfd2017-11-13 16:03:27 +00005540PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005541PASSED:
5542 REQUIRE( s2.isOpen() == false )
5543with expansion:
5544 false == false
5545
Phil Nash74d3dfd2017-11-13 16:03:27 +00005546PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005547PASSED:
5548 REQUIRE( testCase.isComplete() == false )
5549with expansion:
5550 false == false
5551
5552-------------------------------------------------------------------------------
5553Tracker
5554 successfully close one section, then find another
5555 Re-enter - skips S1 and enters S2
5556-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005557PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005558...............................................................................
5559
Phil Nash74d3dfd2017-11-13 16:03:27 +00005560PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005561PASSED:
5562 REQUIRE( testCase2.isOpen() )
5563with expansion:
5564 true
5565
Phil Nash74d3dfd2017-11-13 16:03:27 +00005566PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005567PASSED:
5568 REQUIRE( s1b.isOpen() == false )
5569with expansion:
5570 false == false
5571
Phil Nash74d3dfd2017-11-13 16:03:27 +00005572PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005573PASSED:
5574 REQUIRE( s2b.isOpen() )
5575with expansion:
5576 true
5577
Phil Nash74d3dfd2017-11-13 16:03:27 +00005578PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005579PASSED:
5580 REQUIRE( ctx.completedCycle() == false )
5581with expansion:
5582 false == false
5583
5584-------------------------------------------------------------------------------
5585Tracker
5586 successfully close one section, then find another
5587 Re-enter - skips S1 and enters S2
5588 Successfully close S2
5589-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005590PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005591...............................................................................
5592
Phil Nash74d3dfd2017-11-13 16:03:27 +00005593PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005594PASSED:
5595 REQUIRE( ctx.completedCycle() )
5596with expansion:
5597 true
5598
Phil Nash74d3dfd2017-11-13 16:03:27 +00005599PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005600PASSED:
5601 REQUIRE( s2b.isSuccessfullyCompleted() )
5602with expansion:
5603 true
5604
Phil Nash74d3dfd2017-11-13 16:03:27 +00005605PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005606PASSED:
5607 REQUIRE( testCase2.isComplete() == false )
5608with expansion:
5609 false == false
5610
Phil Nash74d3dfd2017-11-13 16:03:27 +00005611PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005612PASSED:
5613 REQUIRE( testCase2.isSuccessfullyCompleted() )
5614with expansion:
5615 true
5616
5617-------------------------------------------------------------------------------
5618Tracker
5619-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005620PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005621...............................................................................
5622
Phil Nash74d3dfd2017-11-13 16:03:27 +00005623PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005624PASSED:
5625 REQUIRE( testCase.isOpen() )
5626with expansion:
5627 true
5628
Phil Nash74d3dfd2017-11-13 16:03:27 +00005629PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005630PASSED:
5631 REQUIRE( s1.isOpen() )
5632with expansion:
5633 true
5634
5635-------------------------------------------------------------------------------
5636Tracker
5637 successfully close one section, then find another
5638-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005639PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005640...............................................................................
5641
Phil Nash74d3dfd2017-11-13 16:03:27 +00005642PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005643PASSED:
5644 REQUIRE( s2.isOpen() == false )
5645with expansion:
5646 false == false
5647
Phil Nash74d3dfd2017-11-13 16:03:27 +00005648PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005649PASSED:
5650 REQUIRE( testCase.isComplete() == false )
5651with expansion:
5652 false == false
5653
5654-------------------------------------------------------------------------------
5655Tracker
5656 successfully close one section, then find another
5657 Re-enter - skips S1 and enters S2
5658-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005659PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005660...............................................................................
5661
Phil Nash74d3dfd2017-11-13 16:03:27 +00005662PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005663PASSED:
5664 REQUIRE( testCase2.isOpen() )
5665with expansion:
5666 true
5667
Phil Nash74d3dfd2017-11-13 16:03:27 +00005668PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005669PASSED:
5670 REQUIRE( s1b.isOpen() == false )
5671with expansion:
5672 false == false
5673
Phil Nash74d3dfd2017-11-13 16:03:27 +00005674PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005675PASSED:
5676 REQUIRE( s2b.isOpen() )
5677with expansion:
5678 true
5679
Phil Nash74d3dfd2017-11-13 16:03:27 +00005680PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005681PASSED:
5682 REQUIRE( ctx.completedCycle() == false )
5683with expansion:
5684 false == false
5685
5686-------------------------------------------------------------------------------
5687Tracker
5688 successfully close one section, then find another
5689 Re-enter - skips S1 and enters S2
5690 fail S2
5691-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005692PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005693...............................................................................
5694
Phil Nash74d3dfd2017-11-13 16:03:27 +00005695PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005696PASSED:
5697 REQUIRE( ctx.completedCycle() )
5698with expansion:
5699 true
5700
Phil Nash74d3dfd2017-11-13 16:03:27 +00005701PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005702PASSED:
5703 REQUIRE( s2b.isComplete() )
5704with expansion:
5705 true
5706
Phil Nash74d3dfd2017-11-13 16:03:27 +00005707PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005708PASSED:
5709 REQUIRE( s2b.isSuccessfullyCompleted() == false )
5710with expansion:
5711 false == false
5712
Phil Nash74d3dfd2017-11-13 16:03:27 +00005713PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005714PASSED:
5715 REQUIRE( testCase2.isSuccessfullyCompleted() == false )
5716with expansion:
5717 false == false
5718
Phil Nash74d3dfd2017-11-13 16:03:27 +00005719PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005720PASSED:
5721 REQUIRE( testCase3.isOpen() )
5722with expansion:
5723 true
5724
Phil Nash74d3dfd2017-11-13 16:03:27 +00005725PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005726PASSED:
5727 REQUIRE( s1c.isOpen() == false )
5728with expansion:
5729 false == false
5730
Phil Nash74d3dfd2017-11-13 16:03:27 +00005731PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005732PASSED:
5733 REQUIRE( s2c.isOpen() == false )
5734with expansion:
5735 false == false
5736
Phil Nash74d3dfd2017-11-13 16:03:27 +00005737PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005738PASSED:
5739 REQUIRE( testCase3.isSuccessfullyCompleted() )
5740with expansion:
5741 true
5742
5743-------------------------------------------------------------------------------
5744Tracker
5745-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005746PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005747...............................................................................
5748
Phil Nash74d3dfd2017-11-13 16:03:27 +00005749PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005750PASSED:
5751 REQUIRE( testCase.isOpen() )
5752with expansion:
5753 true
5754
Phil Nash74d3dfd2017-11-13 16:03:27 +00005755PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005756PASSED:
5757 REQUIRE( s1.isOpen() )
5758with expansion:
5759 true
5760
5761-------------------------------------------------------------------------------
5762Tracker
5763 open a nested section
5764-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005765PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005766...............................................................................
5767
Phil Nash74d3dfd2017-11-13 16:03:27 +00005768PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005769PASSED:
5770 REQUIRE( s2.isOpen() )
5771with expansion:
5772 true
5773
Phil Nash74d3dfd2017-11-13 16:03:27 +00005774PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005775PASSED:
5776 REQUIRE( s2.isComplete() )
5777with expansion:
5778 true
5779
Phil Nash74d3dfd2017-11-13 16:03:27 +00005780PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005781PASSED:
5782 REQUIRE( s1.isComplete() == false )
5783with expansion:
5784 false == false
5785
Phil Nash74d3dfd2017-11-13 16:03:27 +00005786PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005787PASSED:
5788 REQUIRE( s1.isComplete() )
5789with expansion:
5790 true
5791
Phil Nash74d3dfd2017-11-13 16:03:27 +00005792PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005793PASSED:
5794 REQUIRE( testCase.isComplete() == false )
5795with expansion:
5796 false == false
5797
Phil Nash74d3dfd2017-11-13 16:03:27 +00005798PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005799PASSED:
5800 REQUIRE( testCase.isComplete() )
5801with expansion:
5802 true
5803
5804-------------------------------------------------------------------------------
5805Tracker
5806-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005807PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005808...............................................................................
5809
Phil Nash74d3dfd2017-11-13 16:03:27 +00005810PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005811PASSED:
5812 REQUIRE( testCase.isOpen() )
5813with expansion:
5814 true
5815
Phil Nash74d3dfd2017-11-13 16:03:27 +00005816PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005817PASSED:
5818 REQUIRE( s1.isOpen() )
5819with expansion:
5820 true
5821
5822-------------------------------------------------------------------------------
5823Tracker
5824 start a generator
5825-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005826PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005827...............................................................................
5828
Phil Nash74d3dfd2017-11-13 16:03:27 +00005829PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005830PASSED:
5831 REQUIRE( g1.isOpen() )
5832with expansion:
5833 true
5834
Phil Nash74d3dfd2017-11-13 16:03:27 +00005835PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005836PASSED:
5837 REQUIRE( g1.index() == 0 )
5838with expansion:
5839 0 == 0
5840
Phil Nash74d3dfd2017-11-13 16:03:27 +00005841PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005842PASSED:
5843 REQUIRE( g1.isComplete() == false )
5844with expansion:
5845 false == false
5846
Phil Nash74d3dfd2017-11-13 16:03:27 +00005847PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005848PASSED:
5849 REQUIRE( s1.isComplete() == false )
5850with expansion:
5851 false == false
5852
5853-------------------------------------------------------------------------------
5854Tracker
5855 start a generator
5856 close outer section
5857-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005858PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005859...............................................................................
5860
Phil Nash74d3dfd2017-11-13 16:03:27 +00005861PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005862PASSED:
5863 REQUIRE( s1.isComplete() == false )
5864with expansion:
5865 false == false
5866
Phil Nash74d3dfd2017-11-13 16:03:27 +00005867PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005868PASSED:
5869 REQUIRE( testCase.isSuccessfullyCompleted() == false )
5870with expansion:
5871 false == false
5872
5873-------------------------------------------------------------------------------
5874Tracker
5875 start a generator
5876 close outer section
5877 Re-enter for second generation
5878-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005879PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005880...............................................................................
5881
Phil Nash74d3dfd2017-11-13 16:03:27 +00005882PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005883PASSED:
5884 REQUIRE( testCase2.isOpen() )
5885with expansion:
5886 true
5887
Phil Nash74d3dfd2017-11-13 16:03:27 +00005888PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005889PASSED:
5890 REQUIRE( s1b.isOpen() )
5891with expansion:
5892 true
5893
Phil Nash74d3dfd2017-11-13 16:03:27 +00005894PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005895PASSED:
5896 REQUIRE( g1b.isOpen() )
5897with expansion:
5898 true
5899
Phil Nash74d3dfd2017-11-13 16:03:27 +00005900PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005901PASSED:
5902 REQUIRE( g1b.index() == 1 )
5903with expansion:
5904 1 == 1
5905
Phil Nash74d3dfd2017-11-13 16:03:27 +00005906PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005907PASSED:
5908 REQUIRE( s1.isComplete() == false )
5909with expansion:
5910 false == false
5911
Phil Nash74d3dfd2017-11-13 16:03:27 +00005912PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005913PASSED:
5914 REQUIRE( s1b.isComplete() )
5915with expansion:
5916 true
5917
Phil Nash74d3dfd2017-11-13 16:03:27 +00005918PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005919PASSED:
5920 REQUIRE( g1b.isComplete() )
5921with expansion:
5922 true
5923
Phil Nash74d3dfd2017-11-13 16:03:27 +00005924PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005925PASSED:
5926 REQUIRE( testCase2.isComplete() )
5927with expansion:
5928 true
5929
5930-------------------------------------------------------------------------------
5931Tracker
5932-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005933PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005934...............................................................................
5935
Phil Nash74d3dfd2017-11-13 16:03:27 +00005936PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005937PASSED:
5938 REQUIRE( testCase.isOpen() )
5939with expansion:
5940 true
5941
Phil Nash74d3dfd2017-11-13 16:03:27 +00005942PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005943PASSED:
5944 REQUIRE( s1.isOpen() )
5945with expansion:
5946 true
5947
5948-------------------------------------------------------------------------------
5949Tracker
5950 start a generator
5951-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005952PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005953...............................................................................
5954
Phil Nash74d3dfd2017-11-13 16:03:27 +00005955PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005956PASSED:
5957 REQUIRE( g1.isOpen() )
5958with expansion:
5959 true
5960
Phil Nash74d3dfd2017-11-13 16:03:27 +00005961PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005962PASSED:
5963 REQUIRE( g1.index() == 0 )
5964with expansion:
5965 0 == 0
5966
Phil Nash74d3dfd2017-11-13 16:03:27 +00005967PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005968PASSED:
5969 REQUIRE( g1.isComplete() == false )
5970with expansion:
5971 false == false
5972
Phil Nash74d3dfd2017-11-13 16:03:27 +00005973PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005974PASSED:
5975 REQUIRE( s1.isComplete() == false )
5976with expansion:
5977 false == false
5978
5979-------------------------------------------------------------------------------
5980Tracker
5981 start a generator
5982 Start a new inner section
5983-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00005984PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00005985...............................................................................
5986
Phil Nash74d3dfd2017-11-13 16:03:27 +00005987PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005988PASSED:
5989 REQUIRE( s2.isOpen() )
5990with expansion:
5991 true
5992
Phil Nash74d3dfd2017-11-13 16:03:27 +00005993PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00005994PASSED:
5995 REQUIRE( s2.isComplete() )
5996with expansion:
5997 true
5998
Phil Nash74d3dfd2017-11-13 16:03:27 +00005999PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006000PASSED:
6001 REQUIRE( s1.isComplete() == false )
6002with expansion:
6003 false == false
6004
Phil Nash74d3dfd2017-11-13 16:03:27 +00006005PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006006PASSED:
6007 REQUIRE( testCase.isComplete() == false )
6008with expansion:
6009 false == false
6010
6011-------------------------------------------------------------------------------
6012Tracker
6013 start a generator
6014 Start a new inner section
6015 Re-enter for second generation
6016-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006017PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006018...............................................................................
6019
Phil Nash74d3dfd2017-11-13 16:03:27 +00006020PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006021PASSED:
6022 REQUIRE( testCase2.isOpen() )
6023with expansion:
6024 true
6025
Phil Nash74d3dfd2017-11-13 16:03:27 +00006026PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006027PASSED:
6028 REQUIRE( s1b.isOpen() )
6029with expansion:
6030 true
6031
Phil Nash74d3dfd2017-11-13 16:03:27 +00006032PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006033PASSED:
6034 REQUIRE( g1b.isOpen() )
6035with expansion:
6036 true
6037
Phil Nash74d3dfd2017-11-13 16:03:27 +00006038PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006039PASSED:
6040 REQUIRE( g1b.index() == 1 )
6041with expansion:
6042 1 == 1
6043
Phil Nash74d3dfd2017-11-13 16:03:27 +00006044PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006045PASSED:
6046 REQUIRE( s2b.isOpen() )
6047with expansion:
6048 true
6049
Phil Nash74d3dfd2017-11-13 16:03:27 +00006050PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006051PASSED:
6052 REQUIRE( s2b.isComplete() )
6053with expansion:
6054 true
6055
Phil Nash74d3dfd2017-11-13 16:03:27 +00006056PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006057PASSED:
6058 REQUIRE( g1b.isComplete() )
6059with expansion:
6060 true
6061
Phil Nash74d3dfd2017-11-13 16:03:27 +00006062PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006063PASSED:
6064 REQUIRE( s1b.isComplete() )
6065with expansion:
6066 true
6067
Phil Nash74d3dfd2017-11-13 16:03:27 +00006068PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006069PASSED:
6070 REQUIRE( testCase2.isComplete() )
6071with expansion:
6072 true
6073
6074-------------------------------------------------------------------------------
6075Tracker
6076-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006077PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006078...............................................................................
6079
Phil Nash74d3dfd2017-11-13 16:03:27 +00006080PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006081PASSED:
6082 REQUIRE( testCase.isOpen() )
6083with expansion:
6084 true
6085
Phil Nash74d3dfd2017-11-13 16:03:27 +00006086PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006087PASSED:
6088 REQUIRE( s1.isOpen() )
6089with expansion:
6090 true
6091
6092-------------------------------------------------------------------------------
6093Tracker
6094 start a generator
6095-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006096PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006097...............................................................................
6098
Phil Nash74d3dfd2017-11-13 16:03:27 +00006099PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006100PASSED:
6101 REQUIRE( g1.isOpen() )
6102with expansion:
6103 true
6104
Phil Nash74d3dfd2017-11-13 16:03:27 +00006105PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006106PASSED:
6107 REQUIRE( g1.index() == 0 )
6108with expansion:
6109 0 == 0
6110
Phil Nash74d3dfd2017-11-13 16:03:27 +00006111PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006112PASSED:
6113 REQUIRE( g1.isComplete() == false )
6114with expansion:
6115 false == false
6116
Phil Nash74d3dfd2017-11-13 16:03:27 +00006117PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006118PASSED:
6119 REQUIRE( s1.isComplete() == false )
6120with expansion:
6121 false == false
6122
6123-------------------------------------------------------------------------------
6124Tracker
6125 start a generator
6126 Fail an inner section
6127-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006128PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006129...............................................................................
6130
Phil Nash74d3dfd2017-11-13 16:03:27 +00006131PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006132PASSED:
6133 REQUIRE( s2.isOpen() )
6134with expansion:
6135 true
6136
Phil Nash74d3dfd2017-11-13 16:03:27 +00006137PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006138PASSED:
6139 REQUIRE( s2.isComplete() )
6140with expansion:
6141 true
6142
Phil Nash74d3dfd2017-11-13 16:03:27 +00006143PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006144PASSED:
6145 REQUIRE( s2.isSuccessfullyCompleted() == false )
6146with expansion:
6147 false == false
6148
Phil Nash74d3dfd2017-11-13 16:03:27 +00006149PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006150PASSED:
6151 REQUIRE( s1.isComplete() == false )
6152with expansion:
6153 false == false
6154
Phil Nash74d3dfd2017-11-13 16:03:27 +00006155PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006156PASSED:
6157 REQUIRE( testCase.isComplete() == false )
6158with expansion:
6159 false == false
6160
6161-------------------------------------------------------------------------------
6162Tracker
6163 start a generator
6164 Fail an inner section
6165 Re-enter for second generation
6166-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006167PartTracker.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006168...............................................................................
6169
Phil Nash74d3dfd2017-11-13 16:03:27 +00006170PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006171PASSED:
6172 REQUIRE( testCase2.isOpen() )
6173with expansion:
6174 true
6175
Phil Nash74d3dfd2017-11-13 16:03:27 +00006176PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006177PASSED:
6178 REQUIRE( s1b.isOpen() )
6179with expansion:
6180 true
6181
Phil Nash74d3dfd2017-11-13 16:03:27 +00006182PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006183PASSED:
6184 REQUIRE( g1b.isOpen() )
6185with expansion:
6186 true
6187
Phil Nash74d3dfd2017-11-13 16:03:27 +00006188PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006189PASSED:
6190 REQUIRE( g1b.index() == 0 )
6191with expansion:
6192 0 == 0
6193
Phil Nash74d3dfd2017-11-13 16:03:27 +00006194PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006195PASSED:
6196 REQUIRE( s2b.isOpen() == false )
6197with expansion:
6198 false == false
6199
Phil Nash74d3dfd2017-11-13 16:03:27 +00006200PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006201PASSED:
6202 REQUIRE( g1b.isComplete() == false )
6203with expansion:
6204 false == false
6205
Phil Nash74d3dfd2017-11-13 16:03:27 +00006206PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006207PASSED:
6208 REQUIRE( s1b.isComplete() == false )
6209with expansion:
6210 false == false
6211
Phil Nash74d3dfd2017-11-13 16:03:27 +00006212PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006213PASSED:
6214 REQUIRE( testCase2.isComplete() == false )
6215with expansion:
6216 false == false
6217
Phil Nash74d3dfd2017-11-13 16:03:27 +00006218PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006219PASSED:
6220 REQUIRE( testCase3.isOpen() )
6221with expansion:
6222 true
6223
Phil Nash74d3dfd2017-11-13 16:03:27 +00006224PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006225PASSED:
6226 REQUIRE( s1c.isOpen() )
6227with expansion:
6228 true
6229
Phil Nash74d3dfd2017-11-13 16:03:27 +00006230PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006231PASSED:
6232 REQUIRE( g1c.isOpen() )
6233with expansion:
6234 true
6235
Phil Nash74d3dfd2017-11-13 16:03:27 +00006236PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006237PASSED:
6238 REQUIRE( g1c.index() == 1 )
6239with expansion:
6240 1 == 1
6241
Phil Nash74d3dfd2017-11-13 16:03:27 +00006242PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006243PASSED:
6244 REQUIRE( s2c.isOpen() )
6245with expansion:
6246 true
6247
Phil Nash74d3dfd2017-11-13 16:03:27 +00006248PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006249PASSED:
6250 REQUIRE( s2c.isComplete() )
6251with expansion:
6252 true
6253
Phil Nash74d3dfd2017-11-13 16:03:27 +00006254PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006255PASSED:
6256 REQUIRE( g1c.isComplete() )
6257with expansion:
6258 true
6259
Phil Nash74d3dfd2017-11-13 16:03:27 +00006260PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006261PASSED:
6262 REQUIRE( s1c.isComplete() )
6263with expansion:
6264 true
6265
Phil Nash74d3dfd2017-11-13 16:03:27 +00006266PartTracker.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006267PASSED:
6268 REQUIRE( testCase3.isComplete() )
6269with expansion:
6270 true
6271
6272-------------------------------------------------------------------------------
Phil Nash714d01c2017-04-09 20:40:01 +01006273Unexpected exceptions can be translated
6274-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006275Exception.tests.cpp:<line number>
Phil Nash714d01c2017-04-09 20:40:01 +01006276...............................................................................
6277
Phil Nash74d3dfd2017-11-13 16:03:27 +00006278Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +01006279due to unexpected exception with message:
6280 3.14
6281
6282-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00006283Use a custom approx
6284-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006285Approx.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006286...............................................................................
6287
Phil Nash74d3dfd2017-11-13 16:03:27 +00006288Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006289PASSED:
6290 REQUIRE( d == approx( 1.23 ) )
6291with expansion:
6292 1.23 == Approx( 1.23 )
6293
Phil Nash74d3dfd2017-11-13 16:03:27 +00006294Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006295PASSED:
6296 REQUIRE( d == approx( 1.22 ) )
6297with expansion:
6298 1.23 == Approx( 1.22 )
6299
Phil Nash74d3dfd2017-11-13 16:03:27 +00006300Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006301PASSED:
6302 REQUIRE( d == approx( 1.24 ) )
6303with expansion:
6304 1.23 == Approx( 1.24 )
6305
Phil Nash74d3dfd2017-11-13 16:03:27 +00006306Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006307PASSED:
6308 REQUIRE( d != approx( 1.25 ) )
6309with expansion:
6310 1.23 != Approx( 1.25 )
6311
Phil Nash74d3dfd2017-11-13 16:03:27 +00006312Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006313PASSED:
6314 REQUIRE( approx( d ) == 1.23 )
6315with expansion:
6316 Approx( 1.23 ) == 1.23
6317
Phil Nash74d3dfd2017-11-13 16:03:27 +00006318Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006319PASSED:
6320 REQUIRE( approx( d ) == 1.22 )
6321with expansion:
6322 Approx( 1.23 ) == 1.22
6323
Phil Nash74d3dfd2017-11-13 16:03:27 +00006324Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006325PASSED:
6326 REQUIRE( approx( d ) == 1.24 )
6327with expansion:
6328 Approx( 1.23 ) == 1.24
6329
Phil Nash74d3dfd2017-11-13 16:03:27 +00006330Approx.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006331PASSED:
6332 REQUIRE( approx( d ) != 1.25 )
6333with expansion:
6334 Approx( 1.23 ) != 1.25
6335
6336-------------------------------------------------------------------------------
6337Variadic macros
6338 Section with one argument
6339-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006340VariadicMacros.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006341...............................................................................
6342
Phil Nash74d3dfd2017-11-13 16:03:27 +00006343VariadicMacros.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006344PASSED:
6345with message:
6346 no assertions
6347
6348-------------------------------------------------------------------------------
Phil Nash10dfca32017-02-21 16:05:04 +00006349Vector matchers
6350 Contains (element)
6351-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006352Matchers.tests.cpp:<line number>
Phil Nash10dfca32017-02-21 16:05:04 +00006353...............................................................................
6354
Phil Nash74d3dfd2017-11-13 16:03:27 +00006355Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006356PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006357 CHECK_THAT( v, VectorContains(1) )
Phil Nash10dfca32017-02-21 16:05:04 +00006358with expansion:
6359 { 1, 2, 3 } Contains: 1
6360
Phil Nash74d3dfd2017-11-13 16:03:27 +00006361Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006362PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006363 CHECK_THAT( v, VectorContains(2) )
Phil Nash10dfca32017-02-21 16:05:04 +00006364with expansion:
6365 { 1, 2, 3 } Contains: 2
6366
6367-------------------------------------------------------------------------------
6368Vector matchers
6369 Contains (vector)
6370-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006371Matchers.tests.cpp:<line number>
Phil Nash10dfca32017-02-21 16:05:04 +00006372...............................................................................
6373
Phil Nash74d3dfd2017-11-13 16:03:27 +00006374Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006375PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006376 CHECK_THAT( v, Contains(v2) )
Phil Nash10dfca32017-02-21 16:05:04 +00006377with expansion:
6378 { 1, 2, 3 } Contains: { 1, 2 }
6379
Phil Nash74d3dfd2017-11-13 16:03:27 +00006380Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006381PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006382 CHECK_THAT( v, Contains(v2) )
Phil Nash10dfca32017-02-21 16:05:04 +00006383with expansion:
6384 { 1, 2, 3 } Contains: { 1, 2, 3 }
6385
Phil Nash74d3dfd2017-11-13 16:03:27 +00006386Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006387PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006388 CHECK_THAT( v, Contains(empty) )
Phil Nash10dfca32017-02-21 16:05:04 +00006389with expansion:
6390 { 1, 2, 3 } Contains: { }
6391
Phil Nash74d3dfd2017-11-13 16:03:27 +00006392Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006393PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006394 CHECK_THAT( empty, Contains(empty) )
Phil Nash10dfca32017-02-21 16:05:04 +00006395with expansion:
6396 { } Contains: { }
6397
6398-------------------------------------------------------------------------------
6399Vector matchers
Phil Nash3537b782017-11-13 10:06:26 +00006400 Contains (element), composed
6401-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006402Matchers.tests.cpp:<line number>
Phil Nash3537b782017-11-13 10:06:26 +00006403...............................................................................
6404
Phil Nash74d3dfd2017-11-13 16:03:27 +00006405Matchers.tests.cpp:<line number>:
Phil Nash3537b782017-11-13 10:06:26 +00006406PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006407 CHECK_THAT( v, VectorContains(1) && VectorContains(2) )
Phil Nash3537b782017-11-13 10:06:26 +00006408with expansion:
6409 { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
6410
6411-------------------------------------------------------------------------------
6412Vector matchers
Phil Nash10dfca32017-02-21 16:05:04 +00006413 Equals
6414-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006415Matchers.tests.cpp:<line number>
Phil Nash10dfca32017-02-21 16:05:04 +00006416...............................................................................
6417
Phil Nash74d3dfd2017-11-13 16:03:27 +00006418Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006419PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006420 CHECK_THAT( v, Equals(v) )
Phil Nash10dfca32017-02-21 16:05:04 +00006421with expansion:
6422 { 1, 2, 3 } Equals: { 1, 2, 3 }
6423
Phil Nash74d3dfd2017-11-13 16:03:27 +00006424Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006425PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006426 CHECK_THAT( empty, Equals(empty) )
Phil Nash10dfca32017-02-21 16:05:04 +00006427with expansion:
6428 { } Equals: { }
6429
Phil Nash74d3dfd2017-11-13 16:03:27 +00006430Matchers.tests.cpp:<line number>:
Phil Nash10dfca32017-02-21 16:05:04 +00006431PASSED:
Phil Nash8da84582017-11-15 07:48:43 +00006432 CHECK_THAT( v, Equals(v2) )
Phil Nash10dfca32017-02-21 16:05:04 +00006433with expansion:
6434 { 1, 2, 3 } Equals: { 1, 2, 3 }
6435
6436-------------------------------------------------------------------------------
6437Vector matchers that fail
6438 Contains (element)
6439-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006440Matchers.tests.cpp:<line number>
Phil Nash10dfca32017-02-21 16:05:04 +00006441...............................................................................
6442
Phil Nash74d3dfd2017-11-13 16:03:27 +00006443Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006444 CHECK_THAT( v, VectorContains(-1) )
Phil Nash10dfca32017-02-21 16:05:04 +00006445with expansion:
6446 { 1, 2, 3 } Contains: -1
6447
Phil Nash74d3dfd2017-11-13 16:03:27 +00006448Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006449 CHECK_THAT( empty, VectorContains(1) )
Phil Nash10dfca32017-02-21 16:05:04 +00006450with expansion:
6451 { } Contains: 1
6452
6453-------------------------------------------------------------------------------
6454Vector matchers that fail
6455 Contains (vector)
6456-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006457Matchers.tests.cpp:<line number>
Phil Nash10dfca32017-02-21 16:05:04 +00006458...............................................................................
6459
Phil Nash74d3dfd2017-11-13 16:03:27 +00006460Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006461 CHECK_THAT( empty, Contains(v) )
Phil Nash10dfca32017-02-21 16:05:04 +00006462with expansion:
6463 { } Contains: { 1, 2, 3 }
6464
Phil Nash74d3dfd2017-11-13 16:03:27 +00006465Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006466 CHECK_THAT( v, Contains(v2) )
Phil Nash10dfca32017-02-21 16:05:04 +00006467with expansion:
6468 { 1, 2, 3 } Contains: { 1, 2, 4 }
6469
6470-------------------------------------------------------------------------------
6471Vector matchers that fail
6472 Equals
6473-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006474Matchers.tests.cpp:<line number>
Phil Nash10dfca32017-02-21 16:05:04 +00006475...............................................................................
6476
Phil Nash74d3dfd2017-11-13 16:03:27 +00006477Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006478 CHECK_THAT( v, Equals(v2) )
Phil Nash10dfca32017-02-21 16:05:04 +00006479with expansion:
6480 { 1, 2, 3 } Equals: { 1, 2 }
6481
Phil Nash74d3dfd2017-11-13 16:03:27 +00006482Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006483 CHECK_THAT( v2, Equals(v) )
Phil Nash10dfca32017-02-21 16:05:04 +00006484with expansion:
6485 { 1, 2 } Equals: { 1, 2, 3 }
6486
Phil Nash74d3dfd2017-11-13 16:03:27 +00006487Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006488 CHECK_THAT( empty, Equals(v) )
Phil Nash10dfca32017-02-21 16:05:04 +00006489with expansion:
6490 { } Equals: { 1, 2, 3 }
6491
Phil Nash74d3dfd2017-11-13 16:03:27 +00006492Matchers.tests.cpp:<line number>: FAILED:
Phil Nash8da84582017-11-15 07:48:43 +00006493 CHECK_THAT( v, Equals(empty) )
Phil Nash10dfca32017-02-21 16:05:04 +00006494with expansion:
6495 { 1, 2, 3 } Equals: { }
6496
6497-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00006498When checked exceptions are thrown they can be expected or unexpected
6499-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006500Exception.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006501...............................................................................
6502
Phil Nash74d3dfd2017-11-13 16:03:27 +00006503Exception.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006504PASSED:
Martin Hořeňovský9952dda2017-02-09 12:41:16 +01006505 REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
Phil Nash79acc052016-11-29 11:32:16 +00006506
Phil Nash74d3dfd2017-11-13 16:03:27 +00006507Exception.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006508PASSED:
6509 REQUIRE_NOTHROW( thisDoesntThrow() )
6510
Phil Nash74d3dfd2017-11-13 16:03:27 +00006511Exception.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006512PASSED:
6513 REQUIRE_THROWS( thisThrows() )
6514
6515-------------------------------------------------------------------------------
Phil Nash714d01c2017-04-09 20:40:01 +01006516When unchecked exceptions are thrown directly they are always failures
6517-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006518Exception.tests.cpp:<line number>
Phil Nash714d01c2017-04-09 20:40:01 +01006519...............................................................................
6520
Phil Nash74d3dfd2017-11-13 16:03:27 +00006521Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +01006522due to unexpected exception with message:
6523 unexpected exception
6524
6525-------------------------------------------------------------------------------
Phil Nash7bcb4242017-01-23 17:56:41 +00006526When unchecked exceptions are thrown during a CHECK the test should continue
Phil Nash79acc052016-11-29 11:32:16 +00006527-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006528Exception.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006529...............................................................................
6530
Phil Nash74d3dfd2017-11-13 16:03:27 +00006531Exception.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006532 CHECK( thisThrows() == 0 )
6533due to unexpected exception with message:
6534 expected exception
6535
6536-------------------------------------------------------------------------------
6537When unchecked exceptions are thrown during a REQUIRE the test should abort
6538fail
6539-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006540Exception.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006541...............................................................................
6542
Phil Nash74d3dfd2017-11-13 16:03:27 +00006543Exception.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006544 REQUIRE( thisThrows() == 0 )
6545due to unexpected exception with message:
6546 expected exception
6547
6548-------------------------------------------------------------------------------
6549When unchecked exceptions are thrown from functions they are always failures
6550-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006551Exception.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006552...............................................................................
6553
Phil Nash74d3dfd2017-11-13 16:03:27 +00006554Exception.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006555 CHECK( thisThrows() == 0 )
6556due to unexpected exception with message:
6557 expected exception
6558
6559-------------------------------------------------------------------------------
Phil Nash714d01c2017-04-09 20:40:01 +01006560When unchecked exceptions are thrown from sections they are always failures
6561 section name
6562-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006563Exception.tests.cpp:<line number>
Phil Nash714d01c2017-04-09 20:40:01 +01006564...............................................................................
6565
Phil Nash74d3dfd2017-11-13 16:03:27 +00006566Exception.tests.cpp:<line number>: FAILED:
Phil Nash714d01c2017-04-09 20:40:01 +01006567due to unexpected exception with message:
6568 unexpected exception
6569
6570-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00006571Where the LHS is not a simple value
6572-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006573Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006574...............................................................................
6575
Phil Nash74d3dfd2017-11-13 16:03:27 +00006576Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006577warning:
6578 Uncomment the code in this test to check that it gives a sensible compiler
6579 error
6580
6581-------------------------------------------------------------------------------
6582Where there is more to the expression after the RHS
6583-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006584Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006585...............................................................................
6586
Phil Nash74d3dfd2017-11-13 16:03:27 +00006587Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006588warning:
6589 Uncomment the code in this test to check that it gives a sensible compiler
6590 error
6591
6592-------------------------------------------------------------------------------
6593X/level/0/a
6594-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006595Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006596...............................................................................
6597
Phil Nash74d3dfd2017-11-13 16:03:27 +00006598Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006599PASSED:
6600
6601-------------------------------------------------------------------------------
6602X/level/0/b
6603-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006604Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006605...............................................................................
6606
Phil Nash74d3dfd2017-11-13 16:03:27 +00006607Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006608PASSED:
6609
6610-------------------------------------------------------------------------------
6611X/level/1/a
6612-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006613Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006614...............................................................................
6615
Phil Nash74d3dfd2017-11-13 16:03:27 +00006616Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006617PASSED:
6618
6619-------------------------------------------------------------------------------
6620X/level/1/b
6621-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006622Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006623...............................................................................
6624
Phil Nash74d3dfd2017-11-13 16:03:27 +00006625Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006626PASSED:
6627
6628-------------------------------------------------------------------------------
6629XmlEncode
6630 normal string
6631-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006632Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006633...............................................................................
6634
Phil Nash74d3dfd2017-11-13 16:03:27 +00006635Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006636PASSED:
6637 REQUIRE( encode( "normal string" ) == "normal string" )
6638with expansion:
6639 "normal string" == "normal string"
6640
6641-------------------------------------------------------------------------------
6642XmlEncode
6643 empty string
6644-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006645Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006646...............................................................................
6647
Phil Nash74d3dfd2017-11-13 16:03:27 +00006648Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006649PASSED:
6650 REQUIRE( encode( "" ) == "" )
6651with expansion:
6652 "" == ""
6653
6654-------------------------------------------------------------------------------
6655XmlEncode
6656 string with ampersand
6657-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006658Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006659...............................................................................
6660
Phil Nash74d3dfd2017-11-13 16:03:27 +00006661Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006662PASSED:
6663 REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
6664with expansion:
6665 "smith &amp; jones" == "smith &amp; jones"
6666
6667-------------------------------------------------------------------------------
6668XmlEncode
6669 string with less-than
6670-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006671Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006672...............................................................................
6673
Phil Nash74d3dfd2017-11-13 16:03:27 +00006674Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006675PASSED:
6676 REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
6677with expansion:
6678 "smith &lt; jones" == "smith &lt; jones"
6679
6680-------------------------------------------------------------------------------
6681XmlEncode
6682 string with greater-than
6683-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006684Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006685...............................................................................
6686
Phil Nash74d3dfd2017-11-13 16:03:27 +00006687Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006688PASSED:
6689 REQUIRE( encode( "smith > jones" ) == "smith > jones" )
6690with expansion:
6691 "smith > jones" == "smith > jones"
6692
Phil Nash74d3dfd2017-11-13 16:03:27 +00006693Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006694PASSED:
6695 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
6696with expansion:
6697 "smith ]]&gt; jones"
6698 ==
6699 "smith ]]&gt; jones"
6700
6701-------------------------------------------------------------------------------
6702XmlEncode
6703 string with quotes
6704-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006705Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006706...............................................................................
6707
Phil Nash74d3dfd2017-11-13 16:03:27 +00006708Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006709PASSED:
6710 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
6711with expansion:
6712 "don't "quote" me on that"
6713 ==
6714 "don't "quote" me on that"
6715
Phil Nash74d3dfd2017-11-13 16:03:27 +00006716Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006717PASSED:
6718 REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
6719with expansion:
6720 "don't &quot;quote&quot; me on that"
6721 ==
6722 "don't &quot;quote&quot; me on that"
6723
6724-------------------------------------------------------------------------------
6725XmlEncode
Phil Nash197bf072017-02-06 16:25:09 +00006726 string with control char (1)
Phil Nash79acc052016-11-29 11:32:16 +00006727-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006728Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006729...............................................................................
6730
Phil Nash74d3dfd2017-11-13 16:03:27 +00006731Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006732PASSED:
Phil Nash1f271c92017-02-06 16:00:05 +00006733 REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
Phil Nash79acc052016-11-29 11:32:16 +00006734with expansion:
Phil Nash1f271c92017-02-06 16:00:05 +00006735 "[\x01]" == "[\x01]"
Phil Nash79acc052016-11-29 11:32:16 +00006736
6737-------------------------------------------------------------------------------
6738XmlEncode
Phil Nash197bf072017-02-06 16:25:09 +00006739 string with control char (x7F)
Phil Nash79acc052016-11-29 11:32:16 +00006740-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006741Xml.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006742...............................................................................
6743
Phil Nash74d3dfd2017-11-13 16:03:27 +00006744Xml.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006745PASSED:
Phil Nash1f271c92017-02-06 16:00:05 +00006746 REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
Phil Nash79acc052016-11-29 11:32:16 +00006747with expansion:
Phil Nash1f271c92017-02-06 16:00:05 +00006748 "[\x7F]" == "[\x7F]"
Phil Nash79acc052016-11-29 11:32:16 +00006749
6750-------------------------------------------------------------------------------
6751atomic if
6752-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006753Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006754...............................................................................
6755
Phil Nash74d3dfd2017-11-13 16:03:27 +00006756Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006757PASSED:
6758 REQUIRE( x == 0 )
Phil Nash8b5a4e92014-08-20 08:08:13 +01006759with expansion:
6760 0 == 0
6761
6762-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00006763boolean member
Phil Nash8b5a4e92014-08-20 08:08:13 +01006764-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006765Tricky.tests.cpp:<line number>
Phil Nash8b5a4e92014-08-20 08:08:13 +01006766...............................................................................
6767
Phil Nash74d3dfd2017-11-13 16:03:27 +00006768Tricky.tests.cpp:<line number>:
Phil Nash8b5a4e92014-08-20 08:08:13 +01006769PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00006770 REQUIRE( obj.prop != 0 )
Phil Nash8b5a4e92014-08-20 08:08:13 +01006771with expansion:
Phil Nash976a6552017-01-09 14:12:12 +00006772 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00006773
6774-------------------------------------------------------------------------------
6775checkedElse
6776-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006777Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006778...............................................................................
6779
Phil Nash74d3dfd2017-11-13 16:03:27 +00006780Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006781PASSED:
6782 CHECKED_ELSE( flag )
6783with expansion:
6784 true
6785
Phil Nash74d3dfd2017-11-13 16:03:27 +00006786Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006787PASSED:
6788 REQUIRE( testCheckedElse( true ) )
6789with expansion:
6790 true
6791
6792-------------------------------------------------------------------------------
6793checkedElse, failing
6794-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006795Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006796...............................................................................
6797
Phil Nash74d3dfd2017-11-13 16:03:27 +00006798Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006799 CHECKED_ELSE( flag )
6800with expansion:
6801 false
6802
Phil Nash74d3dfd2017-11-13 16:03:27 +00006803Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006804 REQUIRE( testCheckedElse( false ) )
6805with expansion:
6806 false
6807
6808-------------------------------------------------------------------------------
6809checkedIf
6810-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006811Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006812...............................................................................
6813
Phil Nash74d3dfd2017-11-13 16:03:27 +00006814Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006815PASSED:
6816 CHECKED_IF( flag )
6817with expansion:
6818 true
6819
Phil Nash74d3dfd2017-11-13 16:03:27 +00006820Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006821PASSED:
6822 REQUIRE( testCheckedIf( true ) )
6823with expansion:
6824 true
6825
6826-------------------------------------------------------------------------------
6827checkedIf, failing
6828-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006829Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006830...............................................................................
6831
Phil Nash74d3dfd2017-11-13 16:03:27 +00006832Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006833 CHECKED_IF( flag )
6834with expansion:
6835 false
6836
Phil Nash74d3dfd2017-11-13 16:03:27 +00006837Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006838 REQUIRE( testCheckedIf( false ) )
6839with expansion:
6840 false
6841
6842-------------------------------------------------------------------------------
6843comparisons between const int variables
6844-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006845Condition.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006846...............................................................................
6847
Phil Nash74d3dfd2017-11-13 16:03:27 +00006848Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006849PASSED:
6850 REQUIRE( unsigned_char_var == 1 )
6851with expansion:
6852 1 == 1
6853
Phil Nash74d3dfd2017-11-13 16:03:27 +00006854Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006855PASSED:
6856 REQUIRE( unsigned_short_var == 1 )
6857with expansion:
6858 1 == 1
6859
Phil Nash74d3dfd2017-11-13 16:03:27 +00006860Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006861PASSED:
6862 REQUIRE( unsigned_int_var == 1 )
6863with expansion:
6864 1 == 1
6865
Phil Nash74d3dfd2017-11-13 16:03:27 +00006866Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006867PASSED:
6868 REQUIRE( unsigned_long_var == 1 )
6869with expansion:
6870 1 == 1
6871
6872-------------------------------------------------------------------------------
6873comparisons between int variables
6874-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006875Condition.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006876...............................................................................
6877
Phil Nash74d3dfd2017-11-13 16:03:27 +00006878Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006879PASSED:
6880 REQUIRE( long_var == unsigned_char_var )
6881with expansion:
6882 1 == 1
6883
Phil Nash74d3dfd2017-11-13 16:03:27 +00006884Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006885PASSED:
6886 REQUIRE( long_var == unsigned_short_var )
6887with expansion:
6888 1 == 1
6889
Phil Nash74d3dfd2017-11-13 16:03:27 +00006890Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006891PASSED:
6892 REQUIRE( long_var == unsigned_int_var )
6893with expansion:
6894 1 == 1
6895
Phil Nash74d3dfd2017-11-13 16:03:27 +00006896Condition.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006897PASSED:
6898 REQUIRE( long_var == unsigned_long_var )
6899with expansion:
6900 1 == 1
6901
6902-------------------------------------------------------------------------------
6903even more nested SECTION tests
6904 c
6905 d (leaf)
6906-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006907Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006908...............................................................................
6909
Phil Nash74d3dfd2017-11-13 16:03:27 +00006910Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006911PASSED:
6912
6913-------------------------------------------------------------------------------
6914even more nested SECTION tests
6915 c
6916 e (leaf)
6917-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006918Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006919...............................................................................
6920
Phil Nash74d3dfd2017-11-13 16:03:27 +00006921Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006922PASSED:
6923
6924-------------------------------------------------------------------------------
6925even more nested SECTION tests
6926 f (leaf)
6927-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006928Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006929...............................................................................
6930
Phil Nash74d3dfd2017-11-13 16:03:27 +00006931Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006932PASSED:
6933
Phil Nashdf5c31b2017-08-11 10:38:29 +01006934loose text artifact
6935-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00006936just failure
6937-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006938Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006939...............................................................................
6940
Phil Nash74d3dfd2017-11-13 16:03:27 +00006941Message.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006942explicitly with message:
6943 Previous info should not be seen
6944
6945-------------------------------------------------------------------------------
Phil Nashc874a992017-07-13 08:52:51 +01006946long long
6947-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006948Misc.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01006949...............................................................................
6950
Phil Nash74d3dfd2017-11-13 16:03:27 +00006951Misc.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01006952PASSED:
6953 REQUIRE( l == std::numeric_limits<long long>::max() )
6954with expansion:
6955 9223372036854775807 (0x<hex digits>)
6956 ==
6957 9223372036854775807 (0x<hex digits>)
6958
6959-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00006960looped SECTION tests
6961 s1
6962-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006963Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006964...............................................................................
6965
Phil Nash74d3dfd2017-11-13 16:03:27 +00006966Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006967 CHECK( b > a )
6968with expansion:
6969 0 > 1
6970
6971-------------------------------------------------------------------------------
6972looped tests
6973-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00006974Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00006975...............................................................................
6976
Phil Nash74d3dfd2017-11-13 16:03:27 +00006977Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006978 CHECK( ( fib[i] % 2 ) == 0 )
6979with expansion:
6980 1 == 0
6981with message:
6982 Testing if fib[0] (1) is even
6983
Phil Nash74d3dfd2017-11-13 16:03:27 +00006984Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00006985 CHECK( ( fib[i] % 2 ) == 0 )
6986with expansion:
6987 1 == 0
6988with message:
6989 Testing if fib[1] (1) is even
6990
Phil Nash74d3dfd2017-11-13 16:03:27 +00006991Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00006992PASSED:
6993 CHECK( ( fib[i] % 2 ) == 0 )
6994with expansion:
6995 0 == 0
6996with message:
6997 Testing if fib[2] (2) is even
6998
Phil Nash74d3dfd2017-11-13 16:03:27 +00006999Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007000 CHECK( ( fib[i] % 2 ) == 0 )
7001with expansion:
7002 1 == 0
7003with message:
7004 Testing if fib[3] (3) is even
7005
Phil Nash74d3dfd2017-11-13 16:03:27 +00007006Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007007 CHECK( ( fib[i] % 2 ) == 0 )
7008with expansion:
7009 1 == 0
7010with message:
7011 Testing if fib[4] (5) is even
7012
Phil Nash74d3dfd2017-11-13 16:03:27 +00007013Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007014PASSED:
7015 CHECK( ( fib[i] % 2 ) == 0 )
7016with expansion:
7017 0 == 0
7018with message:
7019 Testing if fib[5] (8) is even
7020
Phil Nash74d3dfd2017-11-13 16:03:27 +00007021Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007022 CHECK( ( fib[i] % 2 ) == 0 )
7023with expansion:
7024 1 == 0
7025with message:
7026 Testing if fib[6] (13) is even
7027
Phil Nash74d3dfd2017-11-13 16:03:27 +00007028Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007029 CHECK( ( fib[i] % 2 ) == 0 )
7030with expansion:
7031 1 == 0
7032with message:
7033 Testing if fib[7] (21) is even
7034
7035-------------------------------------------------------------------------------
7036more nested SECTION tests
7037 s1
7038 s2
7039-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007040Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007041...............................................................................
7042
Phil Nash74d3dfd2017-11-13 16:03:27 +00007043Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007044 REQUIRE( a == b )
7045with expansion:
7046 1 == 2
7047
7048-------------------------------------------------------------------------------
7049more nested SECTION tests
7050 s1
7051 s3
7052-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007053Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007054...............................................................................
7055
Phil Nash74d3dfd2017-11-13 16:03:27 +00007056Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007057PASSED:
7058 REQUIRE( a != b )
7059with expansion:
7060 1 != 2
7061
7062-------------------------------------------------------------------------------
7063more nested SECTION tests
7064 s1
7065 s4
7066-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007067Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007068...............................................................................
7069
Phil Nash74d3dfd2017-11-13 16:03:27 +00007070Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007071PASSED:
7072 REQUIRE( a < b )
7073with expansion:
7074 1 < 2
7075
7076-------------------------------------------------------------------------------
7077nested SECTION tests
7078 s1
7079-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007080Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007081...............................................................................
7082
Phil Nash74d3dfd2017-11-13 16:03:27 +00007083Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007084PASSED:
7085 REQUIRE( a != b )
7086with expansion:
7087 1 != 2
7088
Phil Nash74d3dfd2017-11-13 16:03:27 +00007089Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007090PASSED:
7091 REQUIRE( b != a )
7092with expansion:
7093 2 != 1
7094
7095-------------------------------------------------------------------------------
7096nested SECTION tests
7097 s1
7098 s2
7099-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007100Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007101...............................................................................
7102
Phil Nash74d3dfd2017-11-13 16:03:27 +00007103Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007104PASSED:
7105 REQUIRE( a != b )
7106with expansion:
7107 1 != 2
7108
7109-------------------------------------------------------------------------------
7110non streamable - with conv. op
7111-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007112Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007113...............................................................................
7114
Phil Nash74d3dfd2017-11-13 16:03:27 +00007115Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007116PASSED:
7117 REQUIRE( s == "7" )
7118with expansion:
7119 "7" == "7"
7120
7121-------------------------------------------------------------------------------
Phil Nashb8f482b2017-08-17 16:48:46 +01007122non-copyable objects
7123-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007124Tricky.tests.cpp:<line number>
Phil Nashb8f482b2017-08-17 16:48:46 +01007125...............................................................................
7126
Phil Nash74d3dfd2017-11-13 16:03:27 +00007127Tricky.tests.cpp:<line number>:
Phil Nashb8f482b2017-08-17 16:48:46 +01007128PASSED:
7129 CHECK( ti == typeid(int) )
7130with expansion:
7131 {?} == {?}
7132
7133-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00007134not allowed
7135-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007136Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007137...............................................................................
7138
Phil Nash74d3dfd2017-11-13 16:03:27 +00007139Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007140PASSED:
7141
7142-------------------------------------------------------------------------------
7143null strings
7144-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007145Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007146...............................................................................
7147
Phil Nash74d3dfd2017-11-13 16:03:27 +00007148Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007149PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00007150 REQUIRE( makeString( false ) != static_cast<char*>(0) )
Phil Nash79acc052016-11-29 11:32:16 +00007151with expansion:
7152 "valid string" != {null string}
7153
Phil Nash74d3dfd2017-11-13 16:03:27 +00007154Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007155PASSED:
Phil Nash976a6552017-01-09 14:12:12 +00007156 REQUIRE( makeString( true ) == static_cast<char*>(0) )
Phil Nash79acc052016-11-29 11:32:16 +00007157with expansion:
7158 {null string} == {null string}
7159
7160-------------------------------------------------------------------------------
Phil Nashc874a992017-07-13 08:52:51 +01007161null_ptr
7162-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007163Tricky.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007164...............................................................................
7165
Phil Nash74d3dfd2017-11-13 16:03:27 +00007166Tricky.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007167PASSED:
7168 REQUIRE( ptr.get() == 0 )
7169with expansion:
7170 0 == 0
7171
7172-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00007173pair<pair<int,const char *,pair<std::string,int> > -> toString
7174-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007175ToStringPair.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007176...............................................................................
7177
Phil Nash74d3dfd2017-11-13 16:03:27 +00007178ToStringPair.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007179PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007180 REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
Phil Nash79acc052016-11-29 11:32:16 +00007181with expansion:
7182 "{ { 42, "Arthur" }, { "Ford", 24 } }"
7183 ==
7184 "{ { 42, "Arthur" }, { "Ford", 24 } }"
7185
7186-------------------------------------------------------------------------------
7187pointer to class
7188-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007189Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007190...............................................................................
7191
Phil Nash74d3dfd2017-11-13 16:03:27 +00007192Tricky.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007193PASSED:
7194 REQUIRE( p == 0 )
7195with expansion:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007196 0 == 0
Phil Nash79acc052016-11-29 11:32:16 +00007197
7198-------------------------------------------------------------------------------
7199random SECTION tests
7200 s1
7201-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007202Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007203...............................................................................
7204
Phil Nash74d3dfd2017-11-13 16:03:27 +00007205Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007206PASSED:
7207 REQUIRE( a != b )
7208with expansion:
7209 1 != 2
7210
Phil Nash74d3dfd2017-11-13 16:03:27 +00007211Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007212PASSED:
7213 REQUIRE( b != a )
7214with expansion:
7215 2 != 1
7216
7217-------------------------------------------------------------------------------
7218random SECTION tests
7219 s2
7220-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007221Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007222...............................................................................
7223
Phil Nash74d3dfd2017-11-13 16:03:27 +00007224Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007225PASSED:
7226 REQUIRE( a != b )
7227with expansion:
7228 1 != 2
7229
7230-------------------------------------------------------------------------------
7231replaceInPlace
7232 replace single char
7233-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007234String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007235...............................................................................
7236
Phil Nash74d3dfd2017-11-13 16:03:27 +00007237String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007238PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007239 CHECK( Catch::replaceInPlace( letters, "b", "z" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007240with expansion:
7241 true
7242
Phil Nash74d3dfd2017-11-13 16:03:27 +00007243String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007244PASSED:
7245 CHECK( letters == "azcdefcg" )
7246with expansion:
7247 "azcdefcg" == "azcdefcg"
7248
7249-------------------------------------------------------------------------------
7250replaceInPlace
7251 replace two chars
7252-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007253String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007254...............................................................................
7255
Phil Nash74d3dfd2017-11-13 16:03:27 +00007256String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007257PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007258 CHECK( Catch::replaceInPlace( letters, "c", "z" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007259with expansion:
7260 true
7261
Phil Nash74d3dfd2017-11-13 16:03:27 +00007262String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007263PASSED:
7264 CHECK( letters == "abzdefzg" )
7265with expansion:
7266 "abzdefzg" == "abzdefzg"
7267
7268-------------------------------------------------------------------------------
7269replaceInPlace
7270 replace first char
7271-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007272String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007273...............................................................................
7274
Phil Nash74d3dfd2017-11-13 16:03:27 +00007275String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007276PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007277 CHECK( Catch::replaceInPlace( letters, "a", "z" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007278with expansion:
7279 true
7280
Phil Nash74d3dfd2017-11-13 16:03:27 +00007281String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007282PASSED:
7283 CHECK( letters == "zbcdefcg" )
7284with expansion:
7285 "zbcdefcg" == "zbcdefcg"
7286
7287-------------------------------------------------------------------------------
7288replaceInPlace
7289 replace last char
7290-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007291String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007292...............................................................................
7293
Phil Nash74d3dfd2017-11-13 16:03:27 +00007294String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007295PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007296 CHECK( Catch::replaceInPlace( letters, "g", "z" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007297with expansion:
7298 true
7299
Phil Nash74d3dfd2017-11-13 16:03:27 +00007300String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007301PASSED:
7302 CHECK( letters == "abcdefcz" )
7303with expansion:
7304 "abcdefcz" == "abcdefcz"
7305
7306-------------------------------------------------------------------------------
7307replaceInPlace
7308 replace all chars
7309-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007310String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007311...............................................................................
7312
Phil Nash74d3dfd2017-11-13 16:03:27 +00007313String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007314PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007315 CHECK( Catch::replaceInPlace( letters, letters, "replaced" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007316with expansion:
7317 true
7318
Phil Nash74d3dfd2017-11-13 16:03:27 +00007319String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007320PASSED:
7321 CHECK( letters == "replaced" )
7322with expansion:
7323 "replaced" == "replaced"
7324
7325-------------------------------------------------------------------------------
7326replaceInPlace
7327 replace no chars
7328-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007329String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007330...............................................................................
7331
Phil Nash74d3dfd2017-11-13 16:03:27 +00007332String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007333PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007334 CHECK_FALSE( Catch::replaceInPlace( letters, "x", "z" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007335with expansion:
7336 !false
7337
Phil Nash74d3dfd2017-11-13 16:03:27 +00007338String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007339PASSED:
7340 CHECK( letters == letters )
7341with expansion:
7342 "abcdefcg" == "abcdefcg"
7343
7344-------------------------------------------------------------------------------
7345replaceInPlace
7346 escape '
7347-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007348String.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007349...............................................................................
7350
Phil Nash74d3dfd2017-11-13 16:03:27 +00007351String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007352PASSED:
Phil Nash58d8bc62017-07-20 23:09:50 +01007353 CHECK( Catch::replaceInPlace( s, "'", "|'" ) )
Phil Nash79acc052016-11-29 11:32:16 +00007354with expansion:
7355 true
7356
Phil Nash74d3dfd2017-11-13 16:03:27 +00007357String.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007358PASSED:
7359 CHECK( s == "didn|'t" )
7360with expansion:
7361 "didn|'t" == "didn|'t"
7362
7363-------------------------------------------------------------------------------
7364send a single char to INFO
7365-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007366Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007367...............................................................................
7368
Phil Nash74d3dfd2017-11-13 16:03:27 +00007369Misc.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007370 REQUIRE( false )
7371with message:
7372 3
7373
7374-------------------------------------------------------------------------------
7375sends information to INFO
7376-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007377Message.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007378...............................................................................
7379
Phil Nash74d3dfd2017-11-13 16:03:27 +00007380Message.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007381 REQUIRE( false )
7382with messages:
7383 hi
7384 i := 7
7385
7386-------------------------------------------------------------------------------
7387std::pair<int,const std::string> -> toString
7388-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007389ToStringPair.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007390...............................................................................
7391
Phil Nash74d3dfd2017-11-13 16:03:27 +00007392ToStringPair.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007393PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007394 REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" )
Phil Nash79acc052016-11-29 11:32:16 +00007395with expansion:
7396 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
7397
7398-------------------------------------------------------------------------------
7399std::pair<int,std::string> -> toString
7400-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007401ToStringPair.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007402...............................................................................
7403
Phil Nash74d3dfd2017-11-13 16:03:27 +00007404ToStringPair.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007405PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007406 REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
Phil Nash79acc052016-11-29 11:32:16 +00007407with expansion:
7408 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
7409
7410-------------------------------------------------------------------------------
7411std::vector<std::pair<std::string,int> > -> toString
7412-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007413ToStringPair.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007414...............................................................................
7415
Phil Nash74d3dfd2017-11-13 16:03:27 +00007416ToStringPair.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007417PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007418 REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
Phil Nash79acc052016-11-29 11:32:16 +00007419with expansion:
7420 "{ { "green", 55 } }"
7421 ==
7422 "{ { "green", 55 } }"
7423
7424-------------------------------------------------------------------------------
7425string literals of different sizes can be compared
7426-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007427Tricky.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007428...............................................................................
7429
Phil Nash74d3dfd2017-11-13 16:03:27 +00007430Tricky.tests.cpp:<line number>: FAILED:
Phil Nash79acc052016-11-29 11:32:16 +00007431 REQUIRE( std::string( "first" ) == "second" )
7432with expansion:
7433 "first" == "second"
7434
7435-------------------------------------------------------------------------------
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007436stringify( has_maker )
7437-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007438ToStringWhich.tests.cpp:<line number>
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007439...............................................................................
7440
Phil Nash74d3dfd2017-11-13 16:03:27 +00007441ToStringWhich.tests.cpp:<line number>:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007442PASSED:
7443 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
7444with expansion:
7445 "StringMaker<has_maker>"
7446 ==
7447 "StringMaker<has_maker>"
7448
7449-------------------------------------------------------------------------------
7450stringify( has_maker_and_toString )
7451-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007452ToStringWhich.tests.cpp:<line number>
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007453...............................................................................
7454
Phil Nash74d3dfd2017-11-13 16:03:27 +00007455ToStringWhich.tests.cpp:<line number>:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007456PASSED:
7457 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
7458with expansion:
7459 "StringMaker<has_maker_and_operator>"
7460 ==
7461 "StringMaker<has_maker_and_operator>"
7462
7463-------------------------------------------------------------------------------
7464stringify( has_operator )
7465-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007466ToStringWhich.tests.cpp:<line number>
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007467...............................................................................
7468
Phil Nash74d3dfd2017-11-13 16:03:27 +00007469ToStringWhich.tests.cpp:<line number>:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007470PASSED:
7471 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
7472with expansion:
7473 "operator<<( has_operator )"
7474 ==
7475 "operator<<( has_operator )"
7476
7477-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00007478toString on const wchar_t const pointer returns the string contents
7479-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007480Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007481...............................................................................
7482
Phil Nash74d3dfd2017-11-13 16:03:27 +00007483Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007484PASSED:
7485 CHECK( result == "\"wide load\"" )
7486with expansion:
7487 ""wide load"" == ""wide load""
7488
7489-------------------------------------------------------------------------------
7490toString on const wchar_t pointer returns the string contents
7491-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007492Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007493...............................................................................
7494
Phil Nash74d3dfd2017-11-13 16:03:27 +00007495Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007496PASSED:
7497 CHECK( result == "\"wide load\"" )
7498with expansion:
7499 ""wide load"" == ""wide load""
7500
7501-------------------------------------------------------------------------------
7502toString on wchar_t const pointer returns the string contents
7503-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007504Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007505...............................................................................
7506
Phil Nash74d3dfd2017-11-13 16:03:27 +00007507Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007508PASSED:
7509 CHECK( result == "\"wide load\"" )
7510with expansion:
7511 ""wide load"" == ""wide load""
7512
7513-------------------------------------------------------------------------------
7514toString on wchar_t returns the string contents
7515-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007516Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007517...............................................................................
7518
Phil Nash74d3dfd2017-11-13 16:03:27 +00007519Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007520PASSED:
7521 CHECK( result == "\"wide load\"" )
7522with expansion:
7523 ""wide load"" == ""wide load""
7524
7525-------------------------------------------------------------------------------
Martin Hořeňovský73a16232017-11-25 18:38:18 +01007526toString( vectors<has_maker> )
Phil Nash79acc052016-11-29 11:32:16 +00007527-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007528ToStringWhich.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007529...............................................................................
7530
Phil Nash74d3dfd2017-11-13 16:03:27 +00007531ToStringWhich.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007532PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007533 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
Phil Nash79acc052016-11-29 11:32:16 +00007534with expansion:
7535 "{ StringMaker<has_maker> }"
7536 ==
7537 "{ StringMaker<has_maker> }"
7538
7539-------------------------------------------------------------------------------
Martin Hořeňovský73a16232017-11-25 18:38:18 +01007540toString( vectors<has_maker_and_operator> )
7541-------------------------------------------------------------------------------
7542ToStringWhich.tests.cpp:<line number>
7543...............................................................................
7544
7545ToStringWhich.tests.cpp:<line number>:
7546PASSED:
7547 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
7548with expansion:
7549 "{ StringMaker<has_maker_and_operator> }"
7550 ==
7551 "{ StringMaker<has_maker_and_operator> }"
7552
7553-------------------------------------------------------------------------------
7554toString( vectors<has_operator> )
7555-------------------------------------------------------------------------------
7556ToStringWhich.tests.cpp:<line number>
7557...............................................................................
7558
7559ToStringWhich.tests.cpp:<line number>:
7560PASSED:
7561 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
7562with expansion:
7563 "{ operator<<( has_operator ) }"
7564 ==
7565 "{ operator<<( has_operator ) }"
7566
7567-------------------------------------------------------------------------------
Phil Nashc874a992017-07-13 08:52:51 +01007568toString(enum class w/operator<<)
7569-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007570EnumToString.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007571...............................................................................
7572
Phil Nash74d3dfd2017-11-13 16:03:27 +00007573EnumToString.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007574PASSED:
7575 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
7576with expansion:
7577 "E2/V0" == "E2/V0"
7578
Phil Nash74d3dfd2017-11-13 16:03:27 +00007579EnumToString.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007580PASSED:
7581 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
7582with expansion:
7583 "E2/V1" == "E2/V1"
7584
Phil Nash74d3dfd2017-11-13 16:03:27 +00007585EnumToString.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007586PASSED:
7587 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
7588with expansion:
7589 "Unknown enum value 10"
7590 ==
7591 "Unknown enum value 10"
7592
7593-------------------------------------------------------------------------------
7594toString(enum class)
7595-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007596EnumToString.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007597...............................................................................
7598
Phil Nash74d3dfd2017-11-13 16:03:27 +00007599EnumToString.tests.cpp:<line number>: FAILED:
Phil Nashc874a992017-07-13 08:52:51 +01007600 CHECK( ::Catch::Detail::stringify(e0) == "0" )
7601with expansion:
7602 "{?}" == "0"
7603
Phil Nash74d3dfd2017-11-13 16:03:27 +00007604EnumToString.tests.cpp:<line number>: FAILED:
Phil Nashc874a992017-07-13 08:52:51 +01007605 CHECK( ::Catch::Detail::stringify(e1) == "1" )
7606with expansion:
7607 "{?}" == "1"
7608
7609-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00007610toString(enum w/operator<<)
7611-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007612EnumToString.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007613...............................................................................
7614
Phil Nash74d3dfd2017-11-13 16:03:27 +00007615EnumToString.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007616PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007617 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
Phil Nash79acc052016-11-29 11:32:16 +00007618with expansion:
7619 "E2{0}" == "E2{0}"
7620
Phil Nash74d3dfd2017-11-13 16:03:27 +00007621EnumToString.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007622PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007623 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
Phil Nash79acc052016-11-29 11:32:16 +00007624with expansion:
7625 "E2{1}" == "E2{1}"
7626
7627-------------------------------------------------------------------------------
7628toString(enum)
7629-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007630EnumToString.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007631...............................................................................
7632
Phil Nash74d3dfd2017-11-13 16:03:27 +00007633EnumToString.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007634PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007635 CHECK( ::Catch::Detail::stringify(e0) == "0" )
Phil Nash79acc052016-11-29 11:32:16 +00007636with expansion:
7637 "0" == "0"
7638
Phil Nash74d3dfd2017-11-13 16:03:27 +00007639EnumToString.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007640PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007641 CHECK( ::Catch::Detail::stringify(e1) == "1" )
Phil Nash79acc052016-11-29 11:32:16 +00007642with expansion:
7643 "1" == "1"
7644
7645-------------------------------------------------------------------------------
Phil Nashc874a992017-07-13 08:52:51 +01007646tuple<>
7647-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007648ToStringTuple.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007649...............................................................................
7650
Phil Nash74d3dfd2017-11-13 16:03:27 +00007651ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007652PASSED:
7653 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
7654with expansion:
7655 "{ }" == "{ }"
7656
Phil Nash74d3dfd2017-11-13 16:03:27 +00007657ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007658PASSED:
7659 CHECK( "{ }" == ::Catch::Detail::stringify(value) )
7660with expansion:
7661 "{ }" == "{ }"
7662
7663-------------------------------------------------------------------------------
7664tuple<float,int>
7665-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007666ToStringTuple.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007667...............................................................................
7668
Phil Nash74d3dfd2017-11-13 16:03:27 +00007669ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007670PASSED:
7671 CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) )
7672with expansion:
7673 "1.2f" == "1.2f"
7674
Phil Nash74d3dfd2017-11-13 16:03:27 +00007675ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007676PASSED:
7677 CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) )
7678with expansion:
7679 "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
7680
7681-------------------------------------------------------------------------------
7682tuple<int>
7683-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007684ToStringTuple.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007685...............................................................................
7686
Phil Nash74d3dfd2017-11-13 16:03:27 +00007687ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007688PASSED:
7689 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
7690with expansion:
7691 "{ 0 }" == "{ 0 }"
7692
7693-------------------------------------------------------------------------------
7694tuple<0,int,const char *>
7695-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007696ToStringTuple.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007697...............................................................................
7698
Phil Nash74d3dfd2017-11-13 16:03:27 +00007699ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007700PASSED:
7701 CHECK( "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) )
7702with expansion:
7703 "{ 0, 42, "Catch me" }"
7704 ==
7705 "{ 0, 42, "Catch me" }"
7706
7707-------------------------------------------------------------------------------
7708tuple<string,string>
7709-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007710ToStringTuple.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007711...............................................................................
7712
Phil Nash74d3dfd2017-11-13 16:03:27 +00007713ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007714PASSED:
7715 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
7716with expansion:
7717 "{ "hello", "world" }"
7718 ==
7719 "{ "hello", "world" }"
7720
7721-------------------------------------------------------------------------------
7722tuple<tuple<int>,tuple<>,float>
7723-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007724ToStringTuple.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007725...............................................................................
7726
Phil Nash74d3dfd2017-11-13 16:03:27 +00007727ToStringTuple.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007728PASSED:
7729 CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) )
7730with expansion:
7731 "{ { 42 }, { }, 1.2f }"
7732 ==
7733 "{ { 42 }, { }, 1.2f }"
7734
7735-------------------------------------------------------------------------------
7736vec<vec<string,alloc>> -> toString
7737-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007738ToStringVector.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007739...............................................................................
7740
Phil Nash74d3dfd2017-11-13 16:03:27 +00007741ToStringVector.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007742PASSED:
7743 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
7744with expansion:
7745 "{ }" == "{ }"
7746
Phil Nash74d3dfd2017-11-13 16:03:27 +00007747ToStringVector.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007748PASSED:
7749 REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
7750with expansion:
7751 "{ { "hello" }, { "world" } }"
7752 ==
7753 "{ { "hello" }, { "world" } }"
7754
7755-------------------------------------------------------------------------------
7756vector<int,allocator> -> toString
7757-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007758ToStringVector.tests.cpp:<line number>
Phil Nashc874a992017-07-13 08:52:51 +01007759...............................................................................
7760
Phil Nash74d3dfd2017-11-13 16:03:27 +00007761ToStringVector.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007762PASSED:
7763 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
7764with expansion:
7765 "{ }" == "{ }"
7766
Phil Nash74d3dfd2017-11-13 16:03:27 +00007767ToStringVector.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007768PASSED:
7769 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
7770with expansion:
7771 "{ 42 }" == "{ 42 }"
7772
Phil Nash74d3dfd2017-11-13 16:03:27 +00007773ToStringVector.tests.cpp:<line number>:
Phil Nashc874a992017-07-13 08:52:51 +01007774PASSED:
7775 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
7776with expansion:
7777 "{ 42, 250 }" == "{ 42, 250 }"
7778
7779-------------------------------------------------------------------------------
Phil Nash79acc052016-11-29 11:32:16 +00007780vector<int> -> toString
7781-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007782ToStringVector.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007783...............................................................................
7784
Phil Nash74d3dfd2017-11-13 16:03:27 +00007785ToStringVector.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007786PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007787 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
Phil Nash79acc052016-11-29 11:32:16 +00007788with expansion:
7789 "{ }" == "{ }"
7790
Phil Nash74d3dfd2017-11-13 16:03:27 +00007791ToStringVector.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007792PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007793 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
Phil Nash79acc052016-11-29 11:32:16 +00007794with expansion:
7795 "{ 42 }" == "{ 42 }"
7796
Phil Nash74d3dfd2017-11-13 16:03:27 +00007797ToStringVector.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007798PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007799 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
Phil Nash79acc052016-11-29 11:32:16 +00007800with expansion:
7801 "{ 42, 250 }" == "{ 42, 250 }"
7802
7803-------------------------------------------------------------------------------
7804vector<string> -> toString
7805-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007806ToStringVector.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007807...............................................................................
7808
Phil Nash74d3dfd2017-11-13 16:03:27 +00007809ToStringVector.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007810PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007811 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
Phil Nash79acc052016-11-29 11:32:16 +00007812with expansion:
7813 "{ }" == "{ }"
7814
Phil Nash74d3dfd2017-11-13 16:03:27 +00007815ToStringVector.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007816PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007817 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
Phil Nash79acc052016-11-29 11:32:16 +00007818with expansion:
7819 "{ "hello" }" == "{ "hello" }"
7820
Phil Nash74d3dfd2017-11-13 16:03:27 +00007821ToStringVector.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007822PASSED:
Martin Hořeňovský33ed1772017-05-02 23:51:03 +02007823 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
Phil Nash79acc052016-11-29 11:32:16 +00007824with expansion:
7825 "{ "hello", "world" }"
7826 ==
7827 "{ "hello", "world" }"
7828
7829-------------------------------------------------------------------------------
7830vectors can be sized and resized
7831-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007832Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007833...............................................................................
7834
Phil Nash74d3dfd2017-11-13 16:03:27 +00007835Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007836PASSED:
7837 REQUIRE( v.size() == 5 )
7838with expansion:
7839 5 == 5
7840
Phil Nash74d3dfd2017-11-13 16:03:27 +00007841Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007842PASSED:
7843 REQUIRE( v.capacity() >= 5 )
7844with expansion:
7845 5 >= 5
7846
7847-------------------------------------------------------------------------------
7848vectors can be sized and resized
7849 resizing bigger changes size and capacity
7850-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007851Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007852...............................................................................
7853
Phil Nash74d3dfd2017-11-13 16:03:27 +00007854Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007855PASSED:
7856 REQUIRE( v.size() == 10 )
7857with expansion:
7858 10 == 10
7859
Phil Nash74d3dfd2017-11-13 16:03:27 +00007860Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007861PASSED:
7862 REQUIRE( v.capacity() >= 10 )
7863with expansion:
7864 10 >= 10
7865
7866-------------------------------------------------------------------------------
7867vectors can be sized and resized
7868-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007869Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007870...............................................................................
7871
Phil Nash74d3dfd2017-11-13 16:03:27 +00007872Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007873PASSED:
7874 REQUIRE( v.size() == 5 )
7875with expansion:
7876 5 == 5
7877
Phil Nash74d3dfd2017-11-13 16:03:27 +00007878Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007879PASSED:
7880 REQUIRE( v.capacity() >= 5 )
7881with expansion:
7882 5 >= 5
7883
7884-------------------------------------------------------------------------------
7885vectors can be sized and resized
7886 resizing smaller changes size but not capacity
7887-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007888Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007889...............................................................................
7890
Phil Nash74d3dfd2017-11-13 16:03:27 +00007891Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007892PASSED:
7893 REQUIRE( v.size() == 0 )
7894with expansion:
7895 0 == 0
7896
Phil Nash74d3dfd2017-11-13 16:03:27 +00007897Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007898PASSED:
7899 REQUIRE( v.capacity() >= 5 )
7900with expansion:
7901 5 >= 5
7902
7903-------------------------------------------------------------------------------
7904vectors 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 Nash74d3dfd2017-11-13 16:03:27 +00007908Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007909...............................................................................
7910
Phil Nash74d3dfd2017-11-13 16:03:27 +00007911Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007912PASSED:
7913 REQUIRE( v.capacity() == 0 )
7914with expansion:
7915 0 == 0
7916
7917-------------------------------------------------------------------------------
7918vectors can be sized and resized
7919-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007920Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007921...............................................................................
7922
Phil Nash74d3dfd2017-11-13 16:03:27 +00007923Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007924PASSED:
7925 REQUIRE( v.size() == 5 )
7926with expansion:
7927 5 == 5
7928
Phil Nash74d3dfd2017-11-13 16:03:27 +00007929Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007930PASSED:
7931 REQUIRE( v.capacity() >= 5 )
7932with expansion:
7933 5 >= 5
7934
7935-------------------------------------------------------------------------------
7936vectors can be sized and resized
7937 reserving bigger changes capacity but not size
7938-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007939Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007940...............................................................................
7941
Phil Nash74d3dfd2017-11-13 16:03:27 +00007942Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007943PASSED:
7944 REQUIRE( v.size() == 5 )
7945with expansion:
7946 5 == 5
7947
Phil Nash74d3dfd2017-11-13 16:03:27 +00007948Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007949PASSED:
7950 REQUIRE( v.capacity() >= 10 )
7951with expansion:
7952 10 >= 10
7953
7954-------------------------------------------------------------------------------
7955vectors can be sized and resized
7956-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007957Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007958...............................................................................
7959
Phil Nash74d3dfd2017-11-13 16:03:27 +00007960Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007961PASSED:
7962 REQUIRE( v.size() == 5 )
7963with expansion:
7964 5 == 5
7965
Phil Nash74d3dfd2017-11-13 16:03:27 +00007966Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007967PASSED:
7968 REQUIRE( v.capacity() >= 5 )
7969with expansion:
7970 5 >= 5
7971
7972-------------------------------------------------------------------------------
7973vectors can be sized and resized
7974 reserving smaller does not change size or capacity
7975-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007976Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007977...............................................................................
7978
Phil Nash74d3dfd2017-11-13 16:03:27 +00007979Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007980PASSED:
7981 REQUIRE( v.size() == 5 )
7982with expansion:
7983 5 == 5
7984
Phil Nash74d3dfd2017-11-13 16:03:27 +00007985Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007986PASSED:
7987 REQUIRE( v.capacity() >= 5 )
7988with expansion:
7989 5 >= 5
7990
7991-------------------------------------------------------------------------------
7992xmlentitycheck
7993 embedded xml
7994-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00007995Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00007996...............................................................................
7997
Phil Nash74d3dfd2017-11-13 16:03:27 +00007998Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00007999PASSED:
8000
8001-------------------------------------------------------------------------------
8002xmlentitycheck
8003 encoded chars
8004-------------------------------------------------------------------------------
Phil Nash74d3dfd2017-11-13 16:03:27 +00008005Misc.tests.cpp:<line number>
Phil Nash79acc052016-11-29 11:32:16 +00008006...............................................................................
8007
Phil Nash74d3dfd2017-11-13 16:03:27 +00008008Misc.tests.cpp:<line number>:
Phil Nash79acc052016-11-29 11:32:16 +00008009PASSED:
Phil Nash8b5a4e92014-08-20 08:08:13 +01008010
Phil Nash2f7a2962013-09-27 19:01:14 +01008011===============================================================================
Martin Hořeňovský73a16232017-11-25 18:38:18 +01008012test cases: 191 | 137 passed | 50 failed | 4 failed as expected
Martin Hořeňovský8c32d0b2017-11-28 21:47:06 +01008013assertions: 954 | 827 passed | 106 failed | 21 failed as expected
Phil Nash2f7a2962013-09-27 19:01:14 +01008014