blob: b031e4d9c562883caf3ba6f6458aa39bd11ea3f6 [file] [log] [blame]
Phil Nash31861bb2016-09-27 10:28:11 +01001<?xml version="1.1" encoding="UTF-8"?>
Phil Nash2f7a2962013-09-27 19:01:14 +01002<Catch name="CatchSelfTest">
Phil Nash85c80742015-07-28 18:26:09 +01003 <Group name="CatchSelfTest">
Phil Nash79acc052016-11-29 11:32:16 +00004 <TestCase name="# A test name that starts with a #">
5 <OverallResult success="true"/>
6 </TestCase>
7 <TestCase name="'Not' checks that should fail">
8 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01009 <Original>
Phil Nash79acc052016-11-29 11:32:16 +000010 false != false
Phil Nash5ea32662014-09-03 19:22:47 +010011 </Original>
12 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +000013 false != false
Phil Nash5ea32662014-09-03 19:22:47 +010014 </Expanded>
15 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +000016 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010017 <Original>
Phil Nash79acc052016-11-29 11:32:16 +000018 true != true
Phil Nash5ea32662014-09-03 19:22:47 +010019 </Original>
20 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +000021 true != true
22 </Expanded>
23 </Expression>
24 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
25 <Original>
26 !true
27 </Original>
28 <Expanded>
29 false
30 </Expanded>
31 </Expression>
32 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
33 <Original>
34 !true
35 </Original>
36 <Expanded>
37 !true
38 </Expanded>
39 </Expression>
40 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
41 <Original>
42 !trueValue
43 </Original>
44 <Expanded>
45 false
46 </Expanded>
47 </Expression>
48 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
49 <Original>
50 !trueValue
51 </Original>
52 <Expanded>
53 !true
54 </Expanded>
55 </Expression>
56 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
57 <Original>
58 !(1 == 1)
59 </Original>
60 <Expanded>
61 false
62 </Expanded>
63 </Expression>
64 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
65 <Original>
66 !1 == 1
67 </Original>
68 <Expanded>
69 !(1 == 1)
70 </Expanded>
71 </Expression>
72 <OverallResult success="false"/>
73 </TestCase>
74 <TestCase name="'Not' checks that should succeed">
75 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
76 <Original>
77 false == false
78 </Original>
79 <Expanded>
80 false == false
81 </Expanded>
82 </Expression>
83 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
84 <Original>
85 true == true
86 </Original>
87 <Expanded>
88 true == true
89 </Expanded>
90 </Expression>
91 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
92 <Original>
93 !false
94 </Original>
95 <Expanded>
96 true
97 </Expanded>
98 </Expression>
99 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
100 <Original>
101 !false
102 </Original>
103 <Expanded>
104 !false
105 </Expanded>
106 </Expression>
107 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
108 <Original>
109 !falseValue
110 </Original>
111 <Expanded>
112 true
113 </Expanded>
114 </Expression>
115 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
116 <Original>
117 !falseValue
118 </Original>
119 <Expanded>
120 !false
121 </Expanded>
122 </Expression>
123 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
124 <Original>
125 !(1 == 2)
126 </Original>
127 <Expanded>
128 true
129 </Expanded>
130 </Expression>
131 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
132 <Original>
133 !1 == 2
134 </Original>
135 <Expanded>
136 !(1 == 2)
Phil Nash5ea32662014-09-03 19:22:47 +0100137 </Expanded>
138 </Expression>
139 <OverallResult success="true"/>
140 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000141 <TestCase name="(unimplemented) static bools can be evaluated">
142 <Section name="compare to true">
143 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
144 <Original>
145 is_true&lt;true>::value == true
146 </Original>
147 <Expanded>
148 true == true
149 </Expanded>
150 </Expression>
151 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
152 <Original>
153 true == is_true&lt;true>::value
154 </Original>
155 <Expanded>
156 true == true
157 </Expanded>
158 </Expression>
159 <OverallResults successes="2" failures="0" expectedFailures="0"/>
160 </Section>
161 <Section name="compare to false">
162 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
163 <Original>
164 is_true&lt;false>::value == false
165 </Original>
166 <Expanded>
167 false == false
168 </Expanded>
169 </Expression>
170 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
171 <Original>
172 false == is_true&lt;false>::value
173 </Original>
174 <Expanded>
175 false == false
176 </Expanded>
177 </Expression>
178 <OverallResults successes="2" failures="0" expectedFailures="0"/>
179 </Section>
180 <Section name="negation">
181 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
182 <Original>
183 !is_true&lt;false>::value
184 </Original>
185 <Expanded>
186 true
187 </Expanded>
188 </Expression>
189 <OverallResults successes="1" failures="0" expectedFailures="0"/>
190 </Section>
191 <Section name="double negation">
192 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
193 <Original>
194 !!is_true&lt;true>::value
195 </Original>
196 <Expanded>
197 true
198 </Expanded>
199 </Expression>
200 <OverallResults successes="1" failures="0" expectedFailures="0"/>
201 </Section>
202 <Section name="direct">
203 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
204 <Original>
205 is_true&lt;true>::value
206 </Original>
207 <Expanded>
208 true
209 </Expanded>
210 </Expression>
211 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
212 <Original>
213 !is_true&lt;false>::value
214 </Original>
215 <Expanded>
216 !false
217 </Expanded>
218 </Expression>
219 <OverallResults successes="2" failures="0" expectedFailures="0"/>
220 </Section>
221 <OverallResult success="true"/>
222 </TestCase>
223 <TestCase name="A METHOD_AS_TEST_CASE based test run that fails">
224 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +0100225 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000226 s == "world"
Phil Nash5ea32662014-09-03 19:22:47 +0100227 </Original>
228 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000229 "hello" == "world"
Phil Nash5ea32662014-09-03 19:22:47 +0100230 </Expanded>
231 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000232 <OverallResult success="false"/>
233 </TestCase>
234 <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds">
235 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +0100236 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000237 s == "hello"
Phil Nash5ea32662014-09-03 19:22:47 +0100238 </Original>
239 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000240 "hello" == "hello"
Phil Nash5ea32662014-09-03 19:22:47 +0100241 </Expanded>
242 </Expression>
243 <OverallResult success="true"/>
244 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000245 <TestCase name="A TEST_CASE_METHOD based test run that fails">
246 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +0100247 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000248 m_a == 2
Phil Nash5ea32662014-09-03 19:22:47 +0100249 </Original>
250 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000251 1 == 2
Phil Nash5ea32662014-09-03 19:22:47 +0100252 </Expanded>
253 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000254 <OverallResult success="false"/>
255 </TestCase>
256 <TestCase name="A TEST_CASE_METHOD based test run that succeeds">
257 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +0100258 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000259 m_a == 1
Phil Nash5ea32662014-09-03 19:22:47 +0100260 </Original>
261 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000262 1 == 1
Phil Nash5ea32662014-09-03 19:22:47 +0100263 </Expanded>
264 </Expression>
265 <OverallResult success="true"/>
266 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000267 <TestCase name="A couple of nested sections followed by a failure">
268 <Section name="Outer">
269 <Section name="Inner">
270 <OverallResults successes="1" failures="0" expectedFailures="0"/>
271 </Section>
272 <OverallResults successes="1" failures="0" expectedFailures="0"/>
273 </Section>
274 <Failure>
275 to infinity and beyond
276 </Failure>
277 <OverallResult success="false"/>
278 </TestCase>
279 <TestCase name="A failing expression with a non streamable type is still captured">
280 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +0100281 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000282 &amp;o1 == &amp;o2
Phil Nash5ea32662014-09-03 19:22:47 +0100283 </Original>
284 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000285 0x<hex digits> == 0x<hex digits>
Phil Nash5ea32662014-09-03 19:22:47 +0100286 </Expanded>
287 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000288 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +0100289 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000290 o1 == o2
Phil Nash5ea32662014-09-03 19:22:47 +0100291 </Original>
292 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000293 {?} == {?}
Phil Nash5ea32662014-09-03 19:22:47 +0100294 </Expanded>
295 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000296 <OverallResult success="false"/>
297 </TestCase>
298 <TestCase name="AllOf matcher">
299 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash886ef162014-09-04 07:27:09 +0100300 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000301 testStringForMatching(), AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) )
Phil Nash886ef162014-09-04 07:27:09 +0100302 </Original>
303 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000304 "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" )
Phil Nash886ef162014-09-04 07:27:09 +0100305 </Expanded>
306 </Expression>
Phil Nash5ea32662014-09-03 19:22:47 +0100307 <OverallResult success="true"/>
308 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000309 <TestCase name="An empty test with no assertions">
310 <OverallResult success="true"/>
311 </TestCase>
312 <TestCase name="An expression with side-effects should only be evaluated once">
313 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100314 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000315 i++ == 7
Phil Nash2f7a2962013-09-27 19:01:14 +0100316 </Original>
317 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000318 7 == 7
319 </Expanded>
320 </Expression>
321 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
322 <Original>
323 i++ == 8
324 </Original>
325 <Expanded>
326 8 == 8
327 </Expanded>
328 </Expression>
329 <OverallResult success="true"/>
330 </TestCase>
331 <TestCase name="An unchecked exception reports the line of the last assertion">
332 <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
333 <Original>
334 1 == 1
335 </Original>
336 <Expanded>
337 1 == 1
338 </Expanded>
339 </Expression>
340 <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" >
341 <Original>
342 {Unknown expression after the reported line}
343 </Original>
344 <Expanded>
345 {Unknown expression after the reported line}
346 </Expanded>
347 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
348 unexpected exception
349 </Exception>
350 </Expression>
351 <OverallResult success="false"/>
352 </TestCase>
353 <TestCase name="Anonymous test case 1">
354 <OverallResult success="true"/>
355 </TestCase>
356 <TestCase name="AnyOf matcher">
357 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
358 <Original>
359 testStringForMatching(), AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) )
360 </Original>
361 <Expanded>
362 "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" )
363 </Expanded>
364 </Expression>
365 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
366 <Original>
367 testStringForMatching(), AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) )
368 </Original>
369 <Expanded>
370 "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" )
371 </Expanded>
372 </Expression>
373 <OverallResult success="true"/>
374 </TestCase>
375 <TestCase name="Approximate PI">
376 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
377 <Original>
378 divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 )
379 </Original>
380 <Expanded>
381 3.1428571429 == Approx( 3.141 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100382 </Expanded>
383 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000384 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100385 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000386 divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100387 </Original>
388 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000389 3.1428571429 != Approx( 3.141 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100390 </Expanded>
391 </Expression>
392 <OverallResult success="true"/>
393 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000394 <TestCase name="Approximate comparisons with different epsilons">
Phil Nashc6635a72014-12-30 18:25:27 +0000395 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100396 <Original>
397 d != Approx( 1.231 )
398 </Original>
399 <Expanded>
400 1.23 != Approx( 1.231 )
401 </Expanded>
402 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000403 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100404 <Original>
405 d == Approx( 1.231 ).epsilon( 0.1 )
406 </Original>
407 <Expanded>
408 1.23 == Approx( 1.231 )
409 </Expanded>
410 </Expression>
411 <OverallResult success="true"/>
412 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000413 <TestCase name="Approximate comparisons with floats">
Phil Nashc6635a72014-12-30 18:25:27 +0000414 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100415 <Original>
416 1.23f == Approx( 1.23f )
417 </Original>
418 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100419 1.23f == Approx( 1.2300000191 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100420 </Expanded>
421 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000422 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100423 <Original>
424 0.0f == Approx( 0.0f )
425 </Original>
426 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100427 0.0f == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100428 </Expanded>
429 </Expression>
430 <OverallResult success="true"/>
431 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000432 <TestCase name="Approximate comparisons with ints">
Phil Nashc6635a72014-12-30 18:25:27 +0000433 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100434 <Original>
435 1 == Approx( 1 )
436 </Original>
437 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000438 1 == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100439 </Expanded>
440 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000441 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100442 <Original>
443 0 == Approx( 0 )
444 </Original>
445 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000446 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100447 </Expanded>
448 </Expression>
449 <OverallResult success="true"/>
450 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000451 <TestCase name="Approximate comparisons with mixed numeric types">
Phil Nashc6635a72014-12-30 18:25:27 +0000452 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100453 <Original>
454 1.0f == Approx( 1 )
455 </Original>
456 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100457 1.0f == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100458 </Expanded>
459 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000460 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100461 <Original>
462 0 == Approx( dZero)
463 </Original>
464 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000465 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100466 </Expanded>
467 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000468 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100469 <Original>
470 0 == Approx( dSmall ).epsilon( 0.001 )
471 </Original>
472 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000473 0 == Approx( 0.00001 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100474 </Expanded>
475 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000476 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100477 <Original>
478 1.234f == Approx( dMedium )
479 </Original>
480 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100481 1.234f == Approx( 1.234 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100482 </Expanded>
483 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000484 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100485 <Original>
486 dMedium == Approx( 1.234f )
487 </Original>
488 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000489 1.234 == Approx( 1.2339999676 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100490 </Expanded>
491 </Expression>
492 <OverallResult success="true"/>
493 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000494 <TestCase name="Assertions then sections">
495 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100496 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000497 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +0100498 </Original>
499 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000500 true
Phil Nash2f7a2962013-09-27 19:01:14 +0100501 </Expanded>
502 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000503 <Section name="A section">
504 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
505 <Original>
506 Catch::alwaysTrue()
507 </Original>
508 <Expanded>
509 true
510 </Expanded>
511 </Expression>
512 <Section name="Another section">
513 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
514 <Original>
515 Catch::alwaysTrue()
516 </Original>
517 <Expanded>
518 true
519 </Expanded>
520 </Expression>
521 <OverallResults successes="1" failures="0" expectedFailures="0"/>
522 </Section>
523 <OverallResults successes="2" failures="0" expectedFailures="0"/>
524 </Section>
525 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100526 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000527 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +0100528 </Original>
529 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000530 true
Phil Nash2f7a2962013-09-27 19:01:14 +0100531 </Expanded>
532 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000533 <Section name="A section">
534 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
535 <Original>
536 Catch::alwaysTrue()
537 </Original>
538 <Expanded>
539 true
540 </Expanded>
541 </Expression>
542 <Section name="Another other section">
543 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
544 <Original>
545 Catch::alwaysTrue()
546 </Original>
547 <Expanded>
548 true
549 </Expanded>
550 </Expression>
551 <OverallResults successes="1" failures="0" expectedFailures="0"/>
552 </Section>
553 <OverallResults successes="2" failures="0" expectedFailures="0"/>
554 </Section>
555 <OverallResult success="true"/>
556 </TestCase>
557 <TestCase name="Comparing function pointers">
558 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100559 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000560 a
Phil Nash2f7a2962013-09-27 19:01:14 +0100561 </Original>
562 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000563 true
Phil Nash2f7a2962013-09-27 19:01:14 +0100564 </Expanded>
565 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000566 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100567 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000568 a == &amp;foo
Phil Nash2f7a2962013-09-27 19:01:14 +0100569 </Original>
570 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000571 0x<hex digits> == 0x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +0100572 </Expanded>
573 </Expression>
574 <OverallResult success="true"/>
575 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000576 <TestCase name="Comparing member function pointers">
577 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100578 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000579 m == &amp;S::f
Phil Nash2f7a2962013-09-27 19:01:14 +0100580 </Original>
581 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000582 0x<hex digits>
583==
5840x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +0100585 </Expanded>
586 </Expression>
587 <OverallResult success="true"/>
588 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000589 <TestCase name="Comparisons between ints where one side is computed">
590 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100591 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000592 54 == 6*9
Phil Nash2f7a2962013-09-27 19:01:14 +0100593 </Original>
594 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000595 54 == 54
Phil Nash2f7a2962013-09-27 19:01:14 +0100596 </Expanded>
597 </Expression>
598 <OverallResult success="true"/>
599 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000600 <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour">
601 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100602 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000603 ( -1 > 2u )
Phil Nash2f7a2962013-09-27 19:01:14 +0100604 </Original>
605 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000606 true
Phil Nash2f7a2962013-09-27 19:01:14 +0100607 </Expanded>
608 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +0000609 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100610 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000611 -1 > 2u
Phil Nash2f7a2962013-09-27 19:01:14 +0100612 </Original>
613 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000614 -1 > 2
615 </Expanded>
616 </Expression>
617 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
618 <Original>
619 ( 2u &lt; -1 )
620 </Original>
621 <Expanded>
622 true
623 </Expanded>
624 </Expression>
625 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
626 <Original>
627 2u &lt; -1
628 </Original>
629 <Expanded>
630 2 &lt; -1
631 </Expanded>
632 </Expression>
633 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
634 <Original>
635 ( minInt > 2u )
636 </Original>
637 <Expanded>
638 true
639 </Expanded>
640 </Expression>
641 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
642 <Original>
643 minInt > 2u
644 </Original>
645 <Expanded>
646 -2147483648 > 2
Phil Nash2f7a2962013-09-27 19:01:14 +0100647 </Expanded>
648 </Expression>
649 <OverallResult success="true"/>
650 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000651 <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned">
Phil Nashc6635a72014-12-30 18:25:27 +0000652 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100653 <Original>
654 i == 1
655 </Original>
656 <Expanded>
657 1 == 1
658 </Expanded>
659 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000660 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100661 <Original>
662 ui == 2
663 </Original>
664 <Expanded>
665 2 == 2
666 </Expanded>
667 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000668 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100669 <Original>
670 l == 3
671 </Original>
672 <Expanded>
673 3 == 3
674 </Expanded>
675 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000676 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100677 <Original>
678 ul == 4
679 </Original>
680 <Expanded>
681 4 == 4
682 </Expanded>
683 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000684 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100685 <Original>
686 c == 5
687 </Original>
688 <Expanded>
689 5 == 5
690 </Expanded>
691 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000692 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100693 <Original>
694 uc == 6
695 </Original>
696 <Expanded>
697 6 == 6
698 </Expanded>
699 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000700 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100701 <Original>
702 1 == i
703 </Original>
704 <Expanded>
705 1 == 1
706 </Expanded>
707 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000708 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100709 <Original>
710 2 == ui
711 </Original>
712 <Expanded>
713 2 == 2
714 </Expanded>
715 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000716 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100717 <Original>
718 3 == l
719 </Original>
720 <Expanded>
721 3 == 3
722 </Expanded>
723 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000724 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100725 <Original>
726 4 == ul
727 </Original>
728 <Expanded>
729 4 == 4
730 </Expanded>
731 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000732 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100733 <Original>
734 5 == c
735 </Original>
736 <Expanded>
737 5 == 5
738 </Expanded>
739 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000740 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100741 <Original>
742 6 == uc
743 </Original>
744 <Expanded>
745 6 == 6
746 </Expanded>
747 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000748 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100749 <Original>
750 (std::numeric_limits&lt;unsigned long>::max)() > ul
751 </Original>
752 <Expanded>
Phil Nash0edebf42015-07-28 18:24:20 +0100753 18446744073709551615 (0x<hex digits>)
754>
7554
Phil Nash2f7a2962013-09-27 19:01:14 +0100756 </Expanded>
757 </Expression>
758 <OverallResult success="true"/>
759 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000760 <TestCase name="Contains string matcher">
761 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100762 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000763 testStringForMatching(), Contains( "not there" )
Phil Nash2f7a2962013-09-27 19:01:14 +0100764 </Original>
765 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000766 "this string contains 'abc' as a substring" contains: "not there"
Phil Nash2f7a2962013-09-27 19:01:14 +0100767 </Expanded>
768 </Expression>
Phil Nasha49f0882015-11-18 08:39:21 +0000769 <OverallResult success="false"/>
770 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000771 <TestCase name="Custom exceptions can be translated when testing for nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +0000772 <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100773 <Original>
774 throwCustom()
775 </Original>
776 <Expanded>
777 throwCustom()
778 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +0000779 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100780 custom exception - not std
781 </Exception>
782 </Expression>
783 <OverallResult success="false"/>
784 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000785 <TestCase name="Custom exceptions can be translated when testing for throwing as something else">
Phil Nashc6635a72014-12-30 18:25:27 +0000786 <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100787 <Original>
788 throwCustom()
789 </Original>
790 <Expanded>
791 throwCustom()
792 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +0000793 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100794 custom exception - not std
795 </Exception>
796 </Expression>
797 <OverallResult success="false"/>
798 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000799 <TestCase name="Custom std-exceptions can be custom translated">
Phil Nasha99e75b2014-12-11 23:40:29 +0000800 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash79acc052016-11-29 11:32:16 +0000801 custom std exception
Phil Nash2f7a2962013-09-27 19:01:14 +0100802 </Exception>
803 <OverallResult success="false"/>
804 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +0000805 <TestCase name="Demonstrate that a non-const == is not used">
806 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100807 <Original>
Phil Nash79acc052016-11-29 11:32:16 +0000808 t == 1u
Phil Nash2f7a2962013-09-27 19:01:14 +0100809 </Original>
810 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +0000811 {?} == 1
812 </Expanded>
813 </Expression>
814 <OverallResult success="true"/>
815 </TestCase>
816 <TestCase name="EndsWith string matcher">
817 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
818 <Original>
819 testStringForMatching(), EndsWith( "this" )
820 </Original>
821 <Expanded>
822 "this string contains 'abc' as a substring" ends with: "this"
823 </Expanded>
824 </Expression>
825 <OverallResult success="false"/>
826 </TestCase>
827 <TestCase name="Equality checks that should fail">
828 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
829 <Original>
830 data.int_seven == 6
831 </Original>
832 <Expanded>
833 7 == 6
834 </Expanded>
835 </Expression>
836 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
837 <Original>
838 data.int_seven == 8
839 </Original>
840 <Expanded>
841 7 == 8
842 </Expanded>
843 </Expression>
844 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
845 <Original>
846 data.int_seven == 0
847 </Original>
848 <Expanded>
849 7 == 0
850 </Expanded>
851 </Expression>
852 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
853 <Original>
854 data.float_nine_point_one == Approx( 9.11f )
855 </Original>
856 <Expanded>
857 9.1f == Approx( 9.1099996567 )
858 </Expanded>
859 </Expression>
860 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
861 <Original>
862 data.float_nine_point_one == Approx( 9.0f )
863 </Original>
864 <Expanded>
865 9.1f == Approx( 9.0 )
866 </Expanded>
867 </Expression>
868 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
869 <Original>
870 data.float_nine_point_one == Approx( 1 )
871 </Original>
872 <Expanded>
873 9.1f == Approx( 1.0 )
874 </Expanded>
875 </Expression>
876 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
877 <Original>
878 data.float_nine_point_one == Approx( 0 )
879 </Original>
880 <Expanded>
881 9.1f == Approx( 0.0 )
882 </Expanded>
883 </Expression>
884 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
885 <Original>
886 data.double_pi == Approx( 3.1415 )
887 </Original>
888 <Expanded>
889 3.1415926535 == Approx( 3.1415 )
890 </Expanded>
891 </Expression>
892 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
893 <Original>
894 data.str_hello == "goodbye"
895 </Original>
896 <Expanded>
897 "hello" == "goodbye"
898 </Expanded>
899 </Expression>
900 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
901 <Original>
902 data.str_hello == "hell"
903 </Original>
904 <Expanded>
905 "hello" == "hell"
906 </Expanded>
907 </Expression>
908 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
909 <Original>
910 data.str_hello == "hello1"
911 </Original>
912 <Expanded>
913 "hello" == "hello1"
914 </Expanded>
915 </Expression>
916 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
917 <Original>
918 data.str_hello.size() == 6
919 </Original>
920 <Expanded>
921 5 == 6
922 </Expanded>
923 </Expression>
924 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
925 <Original>
926 x == Approx( 1.301 )
927 </Original>
928 <Expanded>
929 1.3 == Approx( 1.301 )
930 </Expanded>
931 </Expression>
932 <OverallResult success="true"/>
933 </TestCase>
934 <TestCase name="Equality checks that should succeed">
935 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
936 <Original>
937 data.int_seven == 7
938 </Original>
939 <Expanded>
940 7 == 7
941 </Expanded>
942 </Expression>
943 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
944 <Original>
945 data.float_nine_point_one == Approx( 9.1f )
946 </Original>
947 <Expanded>
948 9.1f == Approx( 9.1000003815 )
949 </Expanded>
950 </Expression>
951 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
952 <Original>
953 data.double_pi == Approx( 3.1415926535 )
954 </Original>
955 <Expanded>
956 3.1415926535 == Approx( 3.1415926535 )
957 </Expanded>
958 </Expression>
959 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
960 <Original>
961 data.str_hello == "hello"
962 </Original>
963 <Expanded>
964 "hello" == "hello"
965 </Expanded>
966 </Expression>
967 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
968 <Original>
969 "hello" == data.str_hello
970 </Original>
971 <Expanded>
972 "hello" == "hello"
973 </Expanded>
974 </Expression>
975 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
976 <Original>
977 data.str_hello.size() == 5
978 </Original>
979 <Expanded>
980 5 == 5
981 </Expanded>
982 </Expression>
983 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
984 <Original>
985 x == Approx( 1.3 )
986 </Original>
987 <Expanded>
988 1.3 == Approx( 1.3 )
989 </Expanded>
990 </Expression>
991 <OverallResult success="true"/>
992 </TestCase>
993 <TestCase name="Equals">
994 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
995 <Original>
996 testStringForMatching(), Equals( "this string contains 'abc' as a substring" )
997 </Original>
998 <Expanded>
999 "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
1000 </Expanded>
1001 </Expression>
1002 <OverallResult success="true"/>
1003 </TestCase>
1004 <TestCase name="Equals string matcher">
1005 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
1006 <Original>
1007 testStringForMatching(), Equals( "something else" )
1008 </Original>
1009 <Expanded>
1010 "this string contains 'abc' as a substring" equals: "something else"
1011 </Expanded>
1012 </Expression>
1013 <OverallResult success="false"/>
1014 </TestCase>
1015 <TestCase name="Equals string matcher, with NULL">
1016 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
1017 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00001018 "", Equals(0)
Phil Nash79acc052016-11-29 11:32:16 +00001019 </Original>
1020 <Expanded>
1021 "" equals: ""
Phil Nash2f7a2962013-09-27 19:01:14 +01001022 </Expanded>
1023 </Expression>
1024 <OverallResult success="true"/>
1025 </TestCase>
Phil Nash85de7432015-07-13 06:34:41 +01001026 <TestCase name="Exception messages can be tested for">
Phil Nash2104ca22015-07-13 15:03:04 +01001027 <Section name="exact match">
1028 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1029 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001030 thisThrows(), "expected exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001031 </Original>
1032 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001033 thisThrows(), "expected exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001034 </Expanded>
1035 </Expression>
1036 <OverallResults successes="1" failures="0" expectedFailures="0"/>
1037 </Section>
1038 <Section name="different case">
1039 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1040 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001041 thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001042 </Original>
1043 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001044 thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001045 </Expanded>
1046 </Expression>
1047 <OverallResults successes="1" failures="0" expectedFailures="0"/>
1048 </Section>
1049 <Section name="wildcarded">
1050 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1051 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001052 thisThrows(), StartsWith( "expected" )
Phil Nash2104ca22015-07-13 15:03:04 +01001053 </Original>
1054 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001055 thisThrows(), StartsWith( "expected" )
Phil Nash2104ca22015-07-13 15:03:04 +01001056 </Expanded>
1057 </Expression>
1058 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1059 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001060 thisThrows(), EndsWith( "exception" )
Phil Nash2104ca22015-07-13 15:03:04 +01001061 </Original>
1062 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001063 thisThrows(), EndsWith( "exception" )
Phil Nash2104ca22015-07-13 15:03:04 +01001064 </Expanded>
1065 </Expression>
1066 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1067 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001068 thisThrows(), Contains( "except" )
Phil Nash2104ca22015-07-13 15:03:04 +01001069 </Original>
1070 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001071 thisThrows(), Contains( "except" )
Phil Nash2104ca22015-07-13 15:03:04 +01001072 </Expanded>
1073 </Expression>
1074 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1075 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001076 thisThrows(), Contains( "exCept", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001077 </Original>
1078 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001079 thisThrows(), Contains( "exCept", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001080 </Expanded>
1081 </Expression>
1082 <OverallResults successes="4" failures="0" expectedFailures="0"/>
1083 </Section>
1084 <OverallResult success="true"/>
1085 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00001086 <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test">
1087 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2104ca22015-07-13 15:03:04 +01001088 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00001089 thisThrows()
Phil Nash2104ca22015-07-13 15:03:04 +01001090 </Original>
1091 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00001092 thisThrows()
1093 </Expanded>
1094 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
1095 expected exception
1096 </Exception>
1097 </Expression>
1098 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
1099 <Original>
1100 thisDoesntThrow()
1101 </Original>
1102 <Expanded>
1103 thisDoesntThrow()
Phil Nash2104ca22015-07-13 15:03:04 +01001104 </Expanded>
1105 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00001106 <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash85de7432015-07-13 06:34:41 +01001107 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00001108 thisThrows()
Phil Nash85de7432015-07-13 06:34:41 +01001109 </Original>
1110 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00001111 thisThrows()
Phil Nash85de7432015-07-13 06:34:41 +01001112 </Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00001113 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
1114 expected exception
1115 </Exception>
Phil Nash85de7432015-07-13 06:34:41 +01001116 </Expression>
1117 <OverallResult success="false"/>
1118 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00001119 <TestCase name="FAIL aborts the test">
1120 <Failure>
1121 This is a failure
1122 </Failure>
1123 <OverallResult success="false"/>
1124 </TestCase>
1125 <TestCase name="FAIL does not require an argument">
1126 <Failure/>
1127 <OverallResult success="false"/>
1128 </TestCase>
1129 <TestCase name="Factorials are computed">
1130 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
1131 <Original>
1132 Factorial(0) == 1
1133 </Original>
1134 <Expanded>
1135 1 == 1
1136 </Expanded>
1137 </Expression>
1138 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
1139 <Original>
1140 Factorial(1) == 1
1141 </Original>
1142 <Expanded>
1143 1 == 1
1144 </Expanded>
1145 </Expression>
1146 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
1147 <Original>
1148 Factorial(2) == 2
1149 </Original>
1150 <Expanded>
1151 2 == 2
1152 </Expanded>
1153 </Expression>
1154 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
1155 <Original>
1156 Factorial(3) == 6
1157 </Original>
1158 <Expanded>
1159 6 == 6
1160 </Expanded>
1161 </Expression>
1162 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
1163 <Original>
1164 Factorial(10) == 3628800
1165 </Original>
1166 <Expanded>
1167 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
1168 </Expanded>
1169 </Expression>
1170 <OverallResult success="true"/>
1171 </TestCase>
1172 <TestCase name="Generator over a range of pairs">
1173 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
1174 <Original>
1175 i->first == i->second-1
1176 </Original>
1177 <Expanded>
1178 0 == 0
1179 </Expanded>
1180 </Expression>
1181 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
1182 <Original>
1183 i->first == i->second-1
1184 </Original>
1185 <Expanded>
1186 2 == 2
1187 </Expanded>
1188 </Expression>
1189 <OverallResult success="true"/>
1190 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001191 <TestCase name="Generators over two ranges">
Phil Nashc6635a72014-12-30 18:25:27 +00001192 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001193 <Original>
1194 multiply( i, 2 ) == i*2
1195 </Original>
1196 <Expanded>
1197 2 == 2
1198 </Expanded>
1199 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001200 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001201 <Original>
1202 multiply( j, 2 ) == j*2
1203 </Original>
1204 <Expanded>
1205 200 == 200
1206 </Expanded>
1207 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001208 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001209 <Original>
1210 multiply( i, 2 ) == i*2
1211 </Original>
1212 <Expanded>
1213 4 == 4
1214 </Expanded>
1215 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001216 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001217 <Original>
1218 multiply( j, 2 ) == j*2
1219 </Original>
1220 <Expanded>
1221 200 == 200
1222 </Expanded>
1223 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001224 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001225 <Original>
1226 multiply( i, 2 ) == i*2
1227 </Original>
1228 <Expanded>
1229 6 == 6
1230 </Expanded>
1231 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001232 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001233 <Original>
1234 multiply( j, 2 ) == j*2
1235 </Original>
1236 <Expanded>
1237 200 == 200
1238 </Expanded>
1239 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001240 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001241 <Original>
1242 multiply( i, 2 ) == i*2
1243 </Original>
1244 <Expanded>
1245 8 == 8
1246 </Expanded>
1247 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001248 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001249 <Original>
1250 multiply( j, 2 ) == j*2
1251 </Original>
1252 <Expanded>
1253 200 == 200
1254 </Expanded>
1255 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001256 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001257 <Original>
1258 multiply( i, 2 ) == i*2
1259 </Original>
1260 <Expanded>
1261 10 == 10
1262 </Expanded>
1263 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001264 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001265 <Original>
1266 multiply( j, 2 ) == j*2
1267 </Original>
1268 <Expanded>
1269 200 == 200
1270 </Expanded>
1271 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001272 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001273 <Original>
1274 multiply( i, 2 ) == i*2
1275 </Original>
1276 <Expanded>
1277 30 == 30
1278 </Expanded>
1279 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001280 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001281 <Original>
1282 multiply( j, 2 ) == j*2
1283 </Original>
1284 <Expanded>
1285 200 == 200
1286 </Expanded>
1287 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001288 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001289 <Original>
1290 multiply( i, 2 ) == i*2
1291 </Original>
1292 <Expanded>
1293 40 == 40
1294 </Expanded>
1295 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001296 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001297 <Original>
1298 multiply( j, 2 ) == j*2
1299 </Original>
1300 <Expanded>
1301 200 == 200
1302 </Expanded>
1303 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001304 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001305 <Original>
1306 multiply( i, 2 ) == i*2
1307 </Original>
1308 <Expanded>
1309 42 == 42
1310 </Expanded>
1311 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001312 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001313 <Original>
1314 multiply( j, 2 ) == j*2
1315 </Original>
1316 <Expanded>
1317 200 == 200
1318 </Expanded>
1319 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001320 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001321 <Original>
1322 multiply( i, 2 ) == i*2
1323 </Original>
1324 <Expanded>
1325 72 == 72
1326 </Expanded>
1327 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001328 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001329 <Original>
1330 multiply( j, 2 ) == j*2
1331 </Original>
1332 <Expanded>
1333 200 == 200
1334 </Expanded>
1335 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001336 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001337 <Original>
1338 multiply( i, 2 ) == i*2
1339 </Original>
1340 <Expanded>
1341 2 == 2
1342 </Expanded>
1343 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001344 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001345 <Original>
1346 multiply( j, 2 ) == j*2
1347 </Original>
1348 <Expanded>
1349 202 == 202
1350 </Expanded>
1351 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001352 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001353 <Original>
1354 multiply( i, 2 ) == i*2
1355 </Original>
1356 <Expanded>
1357 4 == 4
1358 </Expanded>
1359 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001360 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001361 <Original>
1362 multiply( j, 2 ) == j*2
1363 </Original>
1364 <Expanded>
1365 202 == 202
1366 </Expanded>
1367 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001368 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001369 <Original>
1370 multiply( i, 2 ) == i*2
1371 </Original>
1372 <Expanded>
1373 6 == 6
1374 </Expanded>
1375 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001376 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001377 <Original>
1378 multiply( j, 2 ) == j*2
1379 </Original>
1380 <Expanded>
1381 202 == 202
1382 </Expanded>
1383 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001384 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001385 <Original>
1386 multiply( i, 2 ) == i*2
1387 </Original>
1388 <Expanded>
1389 8 == 8
1390 </Expanded>
1391 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001392 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001393 <Original>
1394 multiply( j, 2 ) == j*2
1395 </Original>
1396 <Expanded>
1397 202 == 202
1398 </Expanded>
1399 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001400 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001401 <Original>
1402 multiply( i, 2 ) == i*2
1403 </Original>
1404 <Expanded>
1405 10 == 10
1406 </Expanded>
1407 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001408 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001409 <Original>
1410 multiply( j, 2 ) == j*2
1411 </Original>
1412 <Expanded>
1413 202 == 202
1414 </Expanded>
1415 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001416 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001417 <Original>
1418 multiply( i, 2 ) == i*2
1419 </Original>
1420 <Expanded>
1421 30 == 30
1422 </Expanded>
1423 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001424 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001425 <Original>
1426 multiply( j, 2 ) == j*2
1427 </Original>
1428 <Expanded>
1429 202 == 202
1430 </Expanded>
1431 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001432 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001433 <Original>
1434 multiply( i, 2 ) == i*2
1435 </Original>
1436 <Expanded>
1437 40 == 40
1438 </Expanded>
1439 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001440 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001441 <Original>
1442 multiply( j, 2 ) == j*2
1443 </Original>
1444 <Expanded>
1445 202 == 202
1446 </Expanded>
1447 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001448 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001449 <Original>
1450 multiply( i, 2 ) == i*2
1451 </Original>
1452 <Expanded>
1453 42 == 42
1454 </Expanded>
1455 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001456 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001457 <Original>
1458 multiply( j, 2 ) == j*2
1459 </Original>
1460 <Expanded>
1461 202 == 202
1462 </Expanded>
1463 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001464 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001465 <Original>
1466 multiply( i, 2 ) == i*2
1467 </Original>
1468 <Expanded>
1469 72 == 72
1470 </Expanded>
1471 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001472 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001473 <Original>
1474 multiply( j, 2 ) == j*2
1475 </Original>
1476 <Expanded>
1477 202 == 202
1478 </Expanded>
1479 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001480 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001481 <Original>
1482 multiply( i, 2 ) == i*2
1483 </Original>
1484 <Expanded>
1485 2 == 2
1486 </Expanded>
1487 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001488 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001489 <Original>
1490 multiply( j, 2 ) == j*2
1491 </Original>
1492 <Expanded>
1493 204 == 204
1494 </Expanded>
1495 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001496 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001497 <Original>
1498 multiply( i, 2 ) == i*2
1499 </Original>
1500 <Expanded>
1501 4 == 4
1502 </Expanded>
1503 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001504 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001505 <Original>
1506 multiply( j, 2 ) == j*2
1507 </Original>
1508 <Expanded>
1509 204 == 204
1510 </Expanded>
1511 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001512 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001513 <Original>
1514 multiply( i, 2 ) == i*2
1515 </Original>
1516 <Expanded>
1517 6 == 6
1518 </Expanded>
1519 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001520 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001521 <Original>
1522 multiply( j, 2 ) == j*2
1523 </Original>
1524 <Expanded>
1525 204 == 204
1526 </Expanded>
1527 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001528 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001529 <Original>
1530 multiply( i, 2 ) == i*2
1531 </Original>
1532 <Expanded>
1533 8 == 8
1534 </Expanded>
1535 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001536 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001537 <Original>
1538 multiply( j, 2 ) == j*2
1539 </Original>
1540 <Expanded>
1541 204 == 204
1542 </Expanded>
1543 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001544 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001545 <Original>
1546 multiply( i, 2 ) == i*2
1547 </Original>
1548 <Expanded>
1549 10 == 10
1550 </Expanded>
1551 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001552 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001553 <Original>
1554 multiply( j, 2 ) == j*2
1555 </Original>
1556 <Expanded>
1557 204 == 204
1558 </Expanded>
1559 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001560 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001561 <Original>
1562 multiply( i, 2 ) == i*2
1563 </Original>
1564 <Expanded>
1565 30 == 30
1566 </Expanded>
1567 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001568 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001569 <Original>
1570 multiply( j, 2 ) == j*2
1571 </Original>
1572 <Expanded>
1573 204 == 204
1574 </Expanded>
1575 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001576 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001577 <Original>
1578 multiply( i, 2 ) == i*2
1579 </Original>
1580 <Expanded>
1581 40 == 40
1582 </Expanded>
1583 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001584 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001585 <Original>
1586 multiply( j, 2 ) == j*2
1587 </Original>
1588 <Expanded>
1589 204 == 204
1590 </Expanded>
1591 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001592 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001593 <Original>
1594 multiply( i, 2 ) == i*2
1595 </Original>
1596 <Expanded>
1597 42 == 42
1598 </Expanded>
1599 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001600 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001601 <Original>
1602 multiply( j, 2 ) == j*2
1603 </Original>
1604 <Expanded>
1605 204 == 204
1606 </Expanded>
1607 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001608 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001609 <Original>
1610 multiply( i, 2 ) == i*2
1611 </Original>
1612 <Expanded>
1613 72 == 72
1614 </Expanded>
1615 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001616 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001617 <Original>
1618 multiply( j, 2 ) == j*2
1619 </Original>
1620 <Expanded>
1621 204 == 204
1622 </Expanded>
1623 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001624 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001625 <Original>
1626 multiply( i, 2 ) == i*2
1627 </Original>
1628 <Expanded>
1629 2 == 2
1630 </Expanded>
1631 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001632 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001633 <Original>
1634 multiply( j, 2 ) == j*2
1635 </Original>
1636 <Expanded>
1637 206 == 206
1638 </Expanded>
1639 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001640 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001641 <Original>
1642 multiply( i, 2 ) == i*2
1643 </Original>
1644 <Expanded>
1645 4 == 4
1646 </Expanded>
1647 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001648 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001649 <Original>
1650 multiply( j, 2 ) == j*2
1651 </Original>
1652 <Expanded>
1653 206 == 206
1654 </Expanded>
1655 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001656 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001657 <Original>
1658 multiply( i, 2 ) == i*2
1659 </Original>
1660 <Expanded>
1661 6 == 6
1662 </Expanded>
1663 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001664 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001665 <Original>
1666 multiply( j, 2 ) == j*2
1667 </Original>
1668 <Expanded>
1669 206 == 206
1670 </Expanded>
1671 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001672 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001673 <Original>
1674 multiply( i, 2 ) == i*2
1675 </Original>
1676 <Expanded>
1677 8 == 8
1678 </Expanded>
1679 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001680 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001681 <Original>
1682 multiply( j, 2 ) == j*2
1683 </Original>
1684 <Expanded>
1685 206 == 206
1686 </Expanded>
1687 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001688 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001689 <Original>
1690 multiply( i, 2 ) == i*2
1691 </Original>
1692 <Expanded>
1693 10 == 10
1694 </Expanded>
1695 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001696 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001697 <Original>
1698 multiply( j, 2 ) == j*2
1699 </Original>
1700 <Expanded>
1701 206 == 206
1702 </Expanded>
1703 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001704 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001705 <Original>
1706 multiply( i, 2 ) == i*2
1707 </Original>
1708 <Expanded>
1709 30 == 30
1710 </Expanded>
1711 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001712 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001713 <Original>
1714 multiply( j, 2 ) == j*2
1715 </Original>
1716 <Expanded>
1717 206 == 206
1718 </Expanded>
1719 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001720 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001721 <Original>
1722 multiply( i, 2 ) == i*2
1723 </Original>
1724 <Expanded>
1725 40 == 40
1726 </Expanded>
1727 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001728 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001729 <Original>
1730 multiply( j, 2 ) == j*2
1731 </Original>
1732 <Expanded>
1733 206 == 206
1734 </Expanded>
1735 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001736 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001737 <Original>
1738 multiply( i, 2 ) == i*2
1739 </Original>
1740 <Expanded>
1741 42 == 42
1742 </Expanded>
1743 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001744 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001745 <Original>
1746 multiply( j, 2 ) == j*2
1747 </Original>
1748 <Expanded>
1749 206 == 206
1750 </Expanded>
1751 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001752 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001753 <Original>
1754 multiply( i, 2 ) == i*2
1755 </Original>
1756 <Expanded>
1757 72 == 72
1758 </Expanded>
1759 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001760 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001761 <Original>
1762 multiply( j, 2 ) == j*2
1763 </Original>
1764 <Expanded>
1765 206 == 206
1766 </Expanded>
1767 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001768 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001769 <Original>
1770 multiply( i, 2 ) == i*2
1771 </Original>
1772 <Expanded>
1773 2 == 2
1774 </Expanded>
1775 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001776 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001777 <Original>
1778 multiply( j, 2 ) == j*2
1779 </Original>
1780 <Expanded>
1781 208 == 208
1782 </Expanded>
1783 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001784 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001785 <Original>
1786 multiply( i, 2 ) == i*2
1787 </Original>
1788 <Expanded>
1789 4 == 4
1790 </Expanded>
1791 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001792 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001793 <Original>
1794 multiply( j, 2 ) == j*2
1795 </Original>
1796 <Expanded>
1797 208 == 208
1798 </Expanded>
1799 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001800 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001801 <Original>
1802 multiply( i, 2 ) == i*2
1803 </Original>
1804 <Expanded>
1805 6 == 6
1806 </Expanded>
1807 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001808 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001809 <Original>
1810 multiply( j, 2 ) == j*2
1811 </Original>
1812 <Expanded>
1813 208 == 208
1814 </Expanded>
1815 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001816 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001817 <Original>
1818 multiply( i, 2 ) == i*2
1819 </Original>
1820 <Expanded>
1821 8 == 8
1822 </Expanded>
1823 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001824 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001825 <Original>
1826 multiply( j, 2 ) == j*2
1827 </Original>
1828 <Expanded>
1829 208 == 208
1830 </Expanded>
1831 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001832 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001833 <Original>
1834 multiply( i, 2 ) == i*2
1835 </Original>
1836 <Expanded>
1837 10 == 10
1838 </Expanded>
1839 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001840 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001841 <Original>
1842 multiply( j, 2 ) == j*2
1843 </Original>
1844 <Expanded>
1845 208 == 208
1846 </Expanded>
1847 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001848 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001849 <Original>
1850 multiply( i, 2 ) == i*2
1851 </Original>
1852 <Expanded>
1853 30 == 30
1854 </Expanded>
1855 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001856 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001857 <Original>
1858 multiply( j, 2 ) == j*2
1859 </Original>
1860 <Expanded>
1861 208 == 208
1862 </Expanded>
1863 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001864 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001865 <Original>
1866 multiply( i, 2 ) == i*2
1867 </Original>
1868 <Expanded>
1869 40 == 40
1870 </Expanded>
1871 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001872 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001873 <Original>
1874 multiply( j, 2 ) == j*2
1875 </Original>
1876 <Expanded>
1877 208 == 208
1878 </Expanded>
1879 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001880 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001881 <Original>
1882 multiply( i, 2 ) == i*2
1883 </Original>
1884 <Expanded>
1885 42 == 42
1886 </Expanded>
1887 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001888 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001889 <Original>
1890 multiply( j, 2 ) == j*2
1891 </Original>
1892 <Expanded>
1893 208 == 208
1894 </Expanded>
1895 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001896 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001897 <Original>
1898 multiply( i, 2 ) == i*2
1899 </Original>
1900 <Expanded>
1901 72 == 72
1902 </Expanded>
1903 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001904 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001905 <Original>
1906 multiply( j, 2 ) == j*2
1907 </Original>
1908 <Expanded>
1909 208 == 208
1910 </Expanded>
1911 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001912 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001913 <Original>
1914 multiply( i, 2 ) == i*2
1915 </Original>
1916 <Expanded>
1917 2 == 2
1918 </Expanded>
1919 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001920 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001921 <Original>
1922 multiply( j, 2 ) == j*2
1923 </Original>
1924 <Expanded>
1925 210 == 210
1926 </Expanded>
1927 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001928 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001929 <Original>
1930 multiply( i, 2 ) == i*2
1931 </Original>
1932 <Expanded>
1933 4 == 4
1934 </Expanded>
1935 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001936 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001937 <Original>
1938 multiply( j, 2 ) == j*2
1939 </Original>
1940 <Expanded>
1941 210 == 210
1942 </Expanded>
1943 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001944 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001945 <Original>
1946 multiply( i, 2 ) == i*2
1947 </Original>
1948 <Expanded>
1949 6 == 6
1950 </Expanded>
1951 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001952 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001953 <Original>
1954 multiply( j, 2 ) == j*2
1955 </Original>
1956 <Expanded>
1957 210 == 210
1958 </Expanded>
1959 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001960 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001961 <Original>
1962 multiply( i, 2 ) == i*2
1963 </Original>
1964 <Expanded>
1965 8 == 8
1966 </Expanded>
1967 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001968 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001969 <Original>
1970 multiply( j, 2 ) == j*2
1971 </Original>
1972 <Expanded>
1973 210 == 210
1974 </Expanded>
1975 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001976 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001977 <Original>
1978 multiply( i, 2 ) == i*2
1979 </Original>
1980 <Expanded>
1981 10 == 10
1982 </Expanded>
1983 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001984 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001985 <Original>
1986 multiply( j, 2 ) == j*2
1987 </Original>
1988 <Expanded>
1989 210 == 210
1990 </Expanded>
1991 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001992 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001993 <Original>
1994 multiply( i, 2 ) == i*2
1995 </Original>
1996 <Expanded>
1997 30 == 30
1998 </Expanded>
1999 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002000 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002001 <Original>
2002 multiply( j, 2 ) == j*2
2003 </Original>
2004 <Expanded>
2005 210 == 210
2006 </Expanded>
2007 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002008 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002009 <Original>
2010 multiply( i, 2 ) == i*2
2011 </Original>
2012 <Expanded>
2013 40 == 40
2014 </Expanded>
2015 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002016 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002017 <Original>
2018 multiply( j, 2 ) == j*2
2019 </Original>
2020 <Expanded>
2021 210 == 210
2022 </Expanded>
2023 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002024 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002025 <Original>
2026 multiply( i, 2 ) == i*2
2027 </Original>
2028 <Expanded>
2029 42 == 42
2030 </Expanded>
2031 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002032 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002033 <Original>
2034 multiply( j, 2 ) == j*2
2035 </Original>
2036 <Expanded>
2037 210 == 210
2038 </Expanded>
2039 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002040 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002041 <Original>
2042 multiply( i, 2 ) == i*2
2043 </Original>
2044 <Expanded>
2045 72 == 72
2046 </Expanded>
2047 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002048 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002049 <Original>
2050 multiply( j, 2 ) == j*2
2051 </Original>
2052 <Expanded>
2053 210 == 210
2054 </Expanded>
2055 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002056 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002057 <Original>
2058 multiply( i, 2 ) == i*2
2059 </Original>
2060 <Expanded>
2061 2 == 2
2062 </Expanded>
2063 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002064 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002065 <Original>
2066 multiply( j, 2 ) == j*2
2067 </Original>
2068 <Expanded>
2069 212 == 212
2070 </Expanded>
2071 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002072 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002073 <Original>
2074 multiply( i, 2 ) == i*2
2075 </Original>
2076 <Expanded>
2077 4 == 4
2078 </Expanded>
2079 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002080 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002081 <Original>
2082 multiply( j, 2 ) == j*2
2083 </Original>
2084 <Expanded>
2085 212 == 212
2086 </Expanded>
2087 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002088 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002089 <Original>
2090 multiply( i, 2 ) == i*2
2091 </Original>
2092 <Expanded>
2093 6 == 6
2094 </Expanded>
2095 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002096 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002097 <Original>
2098 multiply( j, 2 ) == j*2
2099 </Original>
2100 <Expanded>
2101 212 == 212
2102 </Expanded>
2103 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002104 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002105 <Original>
2106 multiply( i, 2 ) == i*2
2107 </Original>
2108 <Expanded>
2109 8 == 8
2110 </Expanded>
2111 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002112 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002113 <Original>
2114 multiply( j, 2 ) == j*2
2115 </Original>
2116 <Expanded>
2117 212 == 212
2118 </Expanded>
2119 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002120 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002121 <Original>
2122 multiply( i, 2 ) == i*2
2123 </Original>
2124 <Expanded>
2125 10 == 10
2126 </Expanded>
2127 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002128 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002129 <Original>
2130 multiply( j, 2 ) == j*2
2131 </Original>
2132 <Expanded>
2133 212 == 212
2134 </Expanded>
2135 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002136 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002137 <Original>
2138 multiply( i, 2 ) == i*2
2139 </Original>
2140 <Expanded>
2141 30 == 30
2142 </Expanded>
2143 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002144 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002145 <Original>
2146 multiply( j, 2 ) == j*2
2147 </Original>
2148 <Expanded>
2149 212 == 212
2150 </Expanded>
2151 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002152 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002153 <Original>
2154 multiply( i, 2 ) == i*2
2155 </Original>
2156 <Expanded>
2157 40 == 40
2158 </Expanded>
2159 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002160 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002161 <Original>
2162 multiply( j, 2 ) == j*2
2163 </Original>
2164 <Expanded>
2165 212 == 212
2166 </Expanded>
2167 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002168 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002169 <Original>
2170 multiply( i, 2 ) == i*2
2171 </Original>
2172 <Expanded>
2173 42 == 42
2174 </Expanded>
2175 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002176 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002177 <Original>
2178 multiply( j, 2 ) == j*2
2179 </Original>
2180 <Expanded>
2181 212 == 212
2182 </Expanded>
2183 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002184 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002185 <Original>
2186 multiply( i, 2 ) == i*2
2187 </Original>
2188 <Expanded>
2189 72 == 72
2190 </Expanded>
2191 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002192 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002193 <Original>
2194 multiply( j, 2 ) == j*2
2195 </Original>
2196 <Expanded>
2197 212 == 212
2198 </Expanded>
2199 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002200 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002201 <Original>
2202 multiply( i, 2 ) == i*2
2203 </Original>
2204 <Expanded>
2205 2 == 2
2206 </Expanded>
2207 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002208 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002209 <Original>
2210 multiply( j, 2 ) == j*2
2211 </Original>
2212 <Expanded>
2213 214 == 214
2214 </Expanded>
2215 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002216 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002217 <Original>
2218 multiply( i, 2 ) == i*2
2219 </Original>
2220 <Expanded>
2221 4 == 4
2222 </Expanded>
2223 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002224 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002225 <Original>
2226 multiply( j, 2 ) == j*2
2227 </Original>
2228 <Expanded>
2229 214 == 214
2230 </Expanded>
2231 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002232 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002233 <Original>
2234 multiply( i, 2 ) == i*2
2235 </Original>
2236 <Expanded>
2237 6 == 6
2238 </Expanded>
2239 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002240 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002241 <Original>
2242 multiply( j, 2 ) == j*2
2243 </Original>
2244 <Expanded>
2245 214 == 214
2246 </Expanded>
2247 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002248 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002249 <Original>
2250 multiply( i, 2 ) == i*2
2251 </Original>
2252 <Expanded>
2253 8 == 8
2254 </Expanded>
2255 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002256 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002257 <Original>
2258 multiply( j, 2 ) == j*2
2259 </Original>
2260 <Expanded>
2261 214 == 214
2262 </Expanded>
2263 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002264 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002265 <Original>
2266 multiply( i, 2 ) == i*2
2267 </Original>
2268 <Expanded>
2269 10 == 10
2270 </Expanded>
2271 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002272 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002273 <Original>
2274 multiply( j, 2 ) == j*2
2275 </Original>
2276 <Expanded>
2277 214 == 214
2278 </Expanded>
2279 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002280 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002281 <Original>
2282 multiply( i, 2 ) == i*2
2283 </Original>
2284 <Expanded>
2285 30 == 30
2286 </Expanded>
2287 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002288 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002289 <Original>
2290 multiply( j, 2 ) == j*2
2291 </Original>
2292 <Expanded>
2293 214 == 214
2294 </Expanded>
2295 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002296 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002297 <Original>
2298 multiply( i, 2 ) == i*2
2299 </Original>
2300 <Expanded>
2301 40 == 40
2302 </Expanded>
2303 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002304 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002305 <Original>
2306 multiply( j, 2 ) == j*2
2307 </Original>
2308 <Expanded>
2309 214 == 214
2310 </Expanded>
2311 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002312 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002313 <Original>
2314 multiply( i, 2 ) == i*2
2315 </Original>
2316 <Expanded>
2317 42 == 42
2318 </Expanded>
2319 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002320 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002321 <Original>
2322 multiply( j, 2 ) == j*2
2323 </Original>
2324 <Expanded>
2325 214 == 214
2326 </Expanded>
2327 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002328 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002329 <Original>
2330 multiply( i, 2 ) == i*2
2331 </Original>
2332 <Expanded>
2333 72 == 72
2334 </Expanded>
2335 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002336 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002337 <Original>
2338 multiply( j, 2 ) == j*2
2339 </Original>
2340 <Expanded>
2341 214 == 214
2342 </Expanded>
2343 </Expression>
2344 <OverallResult success="true"/>
2345 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002346 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002347 <Info>
2348 this is a message
2349 </Info>
2350 <Warning>
2351 this is a warning
2352 </Warning>
Phil Nash471bd252015-11-03 07:33:43 +00002353 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002354 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002355 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002356 <Info>
2357 this message should be logged
2358 </Info>
2359 <Info>
2360 so should this
2361 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002362 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002363 <Original>
2364 a == 1
2365 </Original>
2366 <Expanded>
2367 2 == 1
2368 </Expanded>
2369 </Expression>
2370 <OverallResult success="false"/>
2371 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002372 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nashc6635a72014-12-30 18:25:27 +00002373 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002374 <Original>
2375 a == 2
2376 </Original>
2377 <Expanded>
2378 2 == 2
2379 </Expanded>
2380 </Expression>
2381 <Info>
2382 this message should be logged
2383 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002384 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002385 <Original>
2386 a == 1
2387 </Original>
2388 <Expanded>
2389 2 == 1
2390 </Expanded>
2391 </Expression>
2392 <Info>
2393 and this, but later
2394 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002395 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002396 <Original>
2397 a == 0
2398 </Original>
2399 <Expanded>
2400 2 == 0
2401 </Expanded>
2402 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002403 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002404 <Original>
2405 a == 2
2406 </Original>
2407 <Expanded>
2408 2 == 2
2409 </Expanded>
2410 </Expression>
2411 <OverallResult success="false"/>
2412 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00002413 <TestCase name="Inequality checks that should fail">
2414 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002415 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002416 data.int_seven != 7
Phil Nash2f7a2962013-09-27 19:01:14 +01002417 </Original>
2418 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002419 7 != 7
Phil Nash2f7a2962013-09-27 19:01:14 +01002420 </Expanded>
2421 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002422 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002423 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002424 data.float_nine_point_one != Approx( 9.1f )
Phil Nash2f7a2962013-09-27 19:01:14 +01002425 </Original>
2426 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002427 9.1f != Approx( 9.1000003815 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002428 </Expanded>
2429 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002430 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002431 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002432 data.double_pi != Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002433 </Original>
2434 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002435 3.1415926535 != Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002436 </Expanded>
2437 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002438 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002439 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002440 data.str_hello != "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +01002441 </Original>
2442 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002443 "hello" != "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +01002444 </Expanded>
2445 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002446 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002447 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002448 data.str_hello.size() != 5
Phil Nash2f7a2962013-09-27 19:01:14 +01002449 </Original>
2450 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002451 5 != 5
Phil Nash2f7a2962013-09-27 19:01:14 +01002452 </Expanded>
2453 </Expression>
Phil Nash471bd252015-11-03 07:33:43 +00002454 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002455 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00002456 <TestCase name="Inequality checks that should succeed">
2457 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash337dc252013-11-19 07:21:03 +00002458 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002459 data.int_seven != 6
Phil Nash337dc252013-11-19 07:21:03 +00002460 </Original>
2461 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002462 7 != 6
Phil Nash337dc252013-11-19 07:21:03 +00002463 </Expanded>
2464 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002465 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002466 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002467 data.int_seven != 8
Phil Nash2f7a2962013-09-27 19:01:14 +01002468 </Original>
2469 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002470 7 != 8
Phil Nash2f7a2962013-09-27 19:01:14 +01002471 </Expanded>
2472 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002473 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002474 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002475 data.float_nine_point_one != Approx( 9.11f )
Phil Nash2f7a2962013-09-27 19:01:14 +01002476 </Original>
2477 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002478 9.1f != Approx( 9.1099996567 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002479 </Expanded>
2480 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002481 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002482 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002483 data.float_nine_point_one != Approx( 9.0f )
Phil Nash2f7a2962013-09-27 19:01:14 +01002484 </Original>
2485 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002486 9.1f != Approx( 9.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002487 </Expanded>
2488 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002489 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002490 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002491 data.float_nine_point_one != Approx( 1 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002492 </Original>
2493 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002494 9.1f != Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002495 </Expanded>
2496 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002497 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002498 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002499 data.float_nine_point_one != Approx( 0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002500 </Original>
2501 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002502 9.1f != Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002503 </Expanded>
2504 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002505 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002506 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002507 data.double_pi != Approx( 3.1415 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002508 </Original>
2509 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002510 3.1415926535 != Approx( 3.1415 )
Phil Nash2f7a2962013-09-27 19:01:14 +01002511 </Expanded>
2512 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002513 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002514 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002515 data.str_hello != "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +01002516 </Original>
2517 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002518 "hello" != "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +01002519 </Expanded>
2520 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002521 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002522 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002523 data.str_hello != "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +01002524 </Original>
2525 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002526 "hello" != "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +01002527 </Expanded>
2528 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002529 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002530 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002531 data.str_hello != "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +01002532 </Original>
2533 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002534 "hello" != "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +01002535 </Expanded>
2536 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00002537 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002538 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00002539 data.str_hello.size() != 6
Phil Nash2f7a2962013-09-27 19:01:14 +01002540 </Original>
2541 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00002542 5 != 6
Phil Nash2f7a2962013-09-27 19:01:14 +01002543 </Expanded>
2544 </Expression>
2545 <OverallResult success="true"/>
2546 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01002547 <TestCase name="Long strings can be wrapped">
2548 <Section name="plain string">
Phil Nash2f7a2962013-09-27 19:01:14 +01002549 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00002550 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002551 <Original>
2552 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
2553 </Original>
2554 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002555 "one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002556==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002557"one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002558 </Expanded>
2559 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002560 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002561 <Original>
2562 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
2563 </Original>
2564 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002565 "one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002566==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002567"one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002568 </Expanded>
2569 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002570 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002571 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002572 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002573 </Section>
2574 <Section name="plain string">
2575 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00002576 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002577 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002578 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002579 </Original>
2580 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002581 "one two three
2582four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002583==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002584"one two three
2585four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002586 </Expanded>
2587 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002588 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002589 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002590 Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002591 </Original>
2592 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002593 "one two three
2594four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002595==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002596"one two three
2597four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002598 </Expanded>
2599 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002600 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002601 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002602 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002603 </Original>
2604 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002605 "one two three
2606four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002607==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002608"one two three
2609four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002610 </Expanded>
2611 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002612 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002613 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002614 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002615 </Original>
2616 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002617 "one two three
2618four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002619==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002620"one two three
2621four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002622 </Expanded>
2623 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002624 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002625 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002626 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002627 </Original>
2628 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002629 "one two
2630three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002631==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002632"one two
2633three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002634 </Expanded>
2635 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002636 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002637 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002638 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002639 </Section>
2640 <Section name="plain string">
2641 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00002642 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002643 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002644 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002645 </Original>
2646 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002647 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002648three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002649four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002650==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002651"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002652three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002653four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002654 </Expanded>
2655 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002656 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002657 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002658 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002659 </Original>
2660 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002661 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002662three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002663four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002664==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002665"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002666three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002667four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002668 </Expanded>
2669 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002670 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002671 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002672 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002673 </Original>
2674 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002675 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002676three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002677four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002678==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002679"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002680three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002681four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002682 </Expanded>
2683 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002684 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002685 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002686 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002687 </Section>
2688 <Section name="plain string">
2689 <Section name="Wrapped three times">
Phil Nashc6635a72014-12-30 18:25:27 +00002690 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002691 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002692 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002693 </Original>
2694 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002695 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01002696two
2697three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002698four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002699==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002700"one
Phil Nash2f7a2962013-09-27 19:01:14 +01002701two
2702three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002703four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002704 </Expanded>
2705 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002706 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002707 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002708 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002709 </Original>
2710 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002711 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01002712two
2713three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002714four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002715==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002716"one
Phil Nash2f7a2962013-09-27 19:01:14 +01002717two
2718three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002719four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002720 </Expanded>
2721 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002722 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002723 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002724 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002725 </Section>
2726 <Section name="plain string">
2727 <Section name="Short wrap">
Phil Nashc6635a72014-12-30 18:25:27 +00002728 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002729 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002730 Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef"
Phil Nash2f7a2962013-09-27 19:01:14 +01002731 </Original>
2732 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002733 "abc-
2734def"
Phil Nash2f7a2962013-09-27 19:01:14 +01002735==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002736"abc-
2737def"
Phil Nash2f7a2962013-09-27 19:01:14 +01002738 </Expanded>
2739 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002740 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002741 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002742 Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg"
Phil Nash2f7a2962013-09-27 19:01:14 +01002743 </Original>
2744 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002745 "abc-
2746defg"
Phil Nash2f7a2962013-09-27 19:01:14 +01002747==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002748"abc-
2749defg"
Phil Nash2f7a2962013-09-27 19:01:14 +01002750 </Expanded>
2751 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002752 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002753 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002754 Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh"
Phil Nash2f7a2962013-09-27 19:01:14 +01002755 </Original>
2756 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002757 "abc-
Phil Nash2f7a2962013-09-27 19:01:14 +01002758def-
Phil Nashd6e59cd2015-07-23 18:45:31 +01002759gh"
Phil Nash2f7a2962013-09-27 19:01:14 +01002760==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002761"abc-
Phil Nash2f7a2962013-09-27 19:01:14 +01002762def-
Phil Nashd6e59cd2015-07-23 18:45:31 +01002763gh"
Phil Nash2f7a2962013-09-27 19:01:14 +01002764 </Expanded>
2765 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002766 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002767 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002768 Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002769 </Original>
2770 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002771 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01002772two
2773thr-
2774ee
Phil Nashd6e59cd2015-07-23 18:45:31 +01002775four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002776==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002777"one
Phil Nash2f7a2962013-09-27 19:01:14 +01002778two
2779thr-
2780ee
Phil Nashd6e59cd2015-07-23 18:45:31 +01002781four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002782 </Expanded>
2783 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002784 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002785 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002786 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur"
Phil Nash2f7a2962013-09-27 19:01:14 +01002787 </Original>
2788 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002789 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01002790two
2791th-
2792ree
2793fo-
Phil Nashd6e59cd2015-07-23 18:45:31 +01002794ur"
Phil Nash2f7a2962013-09-27 19:01:14 +01002795==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002796"one
Phil Nash2f7a2962013-09-27 19:01:14 +01002797two
2798th-
2799ree
2800fo-
Phil Nashd6e59cd2015-07-23 18:45:31 +01002801ur"
Phil Nash2f7a2962013-09-27 19:01:14 +01002802 </Expanded>
2803 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002804 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002805 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002806 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002807 </Section>
2808 <Section name="plain string">
2809 <Section name="As container">
Phil Nashc6635a72014-12-30 18:25:27 +00002810 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002811 <Original>
2812 text.size() == 4
2813 </Original>
2814 <Expanded>
2815 4 == 4
2816 </Expanded>
2817 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002818 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002819 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002820 text[0] == "one"
Phil Nash2f7a2962013-09-27 19:01:14 +01002821 </Original>
2822 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002823 "one" == "one"
Phil Nash2f7a2962013-09-27 19:01:14 +01002824 </Expanded>
2825 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002826 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002827 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002828 text[1] == "two"
Phil Nash2f7a2962013-09-27 19:01:14 +01002829 </Original>
2830 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002831 "two" == "two"
Phil Nash2f7a2962013-09-27 19:01:14 +01002832 </Expanded>
2833 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002834 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002835 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002836 text[2] == "three"
Phil Nash2f7a2962013-09-27 19:01:14 +01002837 </Original>
2838 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002839 "three" == "three"
Phil Nash2f7a2962013-09-27 19:01:14 +01002840 </Expanded>
2841 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002842 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002843 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002844 text[3] == "four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002845 </Original>
2846 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002847 "four" == "four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002848 </Expanded>
2849 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002850 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002851 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002852 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002853 </Section>
2854 <Section name="plain string">
2855 <Section name="Indent first line differently">
Phil Nashc6635a72014-12-30 18:25:27 +00002856 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002857 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002858 text.toString() == " one two\n three\n four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002859 </Original>
2860 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002861 " one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002862 three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002863 four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002864==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002865" one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002866 three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002867 four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002868 </Expanded>
2869 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002870 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002871 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002872 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002873 </Section>
2874 <Section name="With newlines">
Phil Nash2f7a2962013-09-27 19:01:14 +01002875 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00002876 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002877 <Original>
2878 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
2879 </Original>
2880 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002881 "one two
2882three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002883==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002884"one two
2885three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002886 </Expanded>
2887 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002888 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002889 <Original>
2890 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
2891 </Original>
2892 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002893 "one two
2894three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002895==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002896"one two
2897three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002898 </Expanded>
2899 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002900 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002901 <Original>
2902 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
2903 </Original>
2904 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002905 "one two
2906three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002907==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002908"one two
2909three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002910 </Expanded>
2911 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002912 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002913 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002914 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002915 </Section>
2916 <Section name="With newlines">
2917 <Section name="Trailing newline">
Phil Nashc6635a72014-12-30 18:25:27 +00002918 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002919 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002920 Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n"
Phil Nash2f7a2962013-09-27 19:01:14 +01002921 </Original>
2922 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002923 "abcdef
2924"
Phil Nash2f7a2962013-09-27 19:01:14 +01002925==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002926"abcdef
2927"
Phil Nash2f7a2962013-09-27 19:01:14 +01002928 </Expanded>
2929 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002930 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002931 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002932 Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef"
Phil Nash2f7a2962013-09-27 19:01:14 +01002933 </Original>
2934 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002935 "abcdef" == "abcdef"
Phil Nash2f7a2962013-09-27 19:01:14 +01002936 </Expanded>
2937 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002938 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002939 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002940 Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n"
Phil Nash2f7a2962013-09-27 19:01:14 +01002941 </Original>
2942 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002943 "abcdef
2944"
Phil Nash2f7a2962013-09-27 19:01:14 +01002945==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002946"abcdef
2947"
Phil Nash2f7a2962013-09-27 19:01:14 +01002948 </Expanded>
2949 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002950 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002951 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002952 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002953 </Section>
2954 <Section name="With newlines">
2955 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00002956 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002957 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002958 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002959 </Original>
2960 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002961 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002962three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002963four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002964==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002965"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002966three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002967four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002968 </Expanded>
2969 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002970 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002971 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002972 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002973 </Original>
2974 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002975 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002976three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002977four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002978==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002979"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002980three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002981four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002982 </Expanded>
2983 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002984 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002985 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002986 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01002987 </Original>
2988 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01002989 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002990three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002991four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002992==
Phil Nashd6e59cd2015-07-23 18:45:31 +01002993"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01002994three
Phil Nashd6e59cd2015-07-23 18:45:31 +01002995four"
Phil Nash2f7a2962013-09-27 19:01:14 +01002996 </Expanded>
2997 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002998 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002999 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003000 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003001 </Section>
3002 <Section name="With newlines">
3003 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00003004 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003005 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003006 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01003007 </Original>
3008 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003009 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01003010two
3011three
Phil Nashd6e59cd2015-07-23 18:45:31 +01003012four"
Phil Nash2f7a2962013-09-27 19:01:14 +01003013==
Phil Nashd6e59cd2015-07-23 18:45:31 +01003014"one
Phil Nash2f7a2962013-09-27 19:01:14 +01003015two
3016three
Phil Nashd6e59cd2015-07-23 18:45:31 +01003017four"
Phil Nash2f7a2962013-09-27 19:01:14 +01003018 </Expanded>
3019 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003020 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003021 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003022 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003023 </Section>
3024 <Section name="With tabs">
Phil Nashc6635a72014-12-30 18:25:27 +00003025 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003026 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003027 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six"
Phil Nash2f7a2962013-09-27 19:01:14 +01003028 </Original>
3029 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003030 "one two three
Phil Nash2f7a2962013-09-27 19:01:14 +01003031 four
3032 five
Phil Nashd6e59cd2015-07-23 18:45:31 +01003033 six"
Phil Nash2f7a2962013-09-27 19:01:14 +01003034==
Phil Nashd6e59cd2015-07-23 18:45:31 +01003035"one two three
Phil Nash2f7a2962013-09-27 19:01:14 +01003036 four
3037 five
Phil Nashd6e59cd2015-07-23 18:45:31 +01003038 six"
Phil Nash2f7a2962013-09-27 19:01:14 +01003039 </Expanded>
3040 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003041 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003042 </Section>
3043 <OverallResult success="true"/>
3044 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01003045 <TestCase name="Long text is truncted">
Phil Nashc6635a72014-12-30 18:25:27 +00003046 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash93a945c2013-10-23 15:35:07 +01003047 <Original>
Phil Nash5262e612015-12-10 18:43:29 +00003048 t.toString(), EndsWith( "... message truncated due to excessive size" )
Phil Nash93a945c2013-10-23 15:35:07 +01003049 </Original>
3050 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003051 "******************************************************************************-
Phil Nash93a945c2013-10-23 15:35:07 +01003052******************************************************************************-
3053************************
3054******************************************************************************-
3055******************************************************************************-
3056************************
3057******************************************************************************-
3058******************************************************************************-
3059************************
3060******************************************************************************-
3061******************************************************************************-
3062************************
3063******************************************************************************-
3064******************************************************************************-
3065************************
3066******************************************************************************-
3067******************************************************************************-
3068************************
3069******************************************************************************-
3070******************************************************************************-
3071************************
3072******************************************************************************-
3073******************************************************************************-
3074************************
3075******************************************************************************-
3076******************************************************************************-
3077************************
3078******************************************************************************-
3079******************************************************************************-
3080************************
3081******************************************************************************-
3082******************************************************************************-
3083************************
3084******************************************************************************-
3085******************************************************************************-
3086************************
3087******************************************************************************-
3088******************************************************************************-
3089************************
3090******************************************************************************-
3091******************************************************************************-
3092************************
3093******************************************************************************-
3094******************************************************************************-
3095************************
3096******************************************************************************-
3097******************************************************************************-
3098************************
3099******************************************************************************-
3100******************************************************************************-
3101************************
3102******************************************************************************-
3103******************************************************************************-
3104************************
3105******************************************************************************-
3106******************************************************************************-
3107************************
3108******************************************************************************-
3109******************************************************************************-
3110************************
3111******************************************************************************-
3112******************************************************************************-
3113************************
3114******************************************************************************-
3115******************************************************************************-
3116************************
3117******************************************************************************-
3118******************************************************************************-
3119************************
3120******************************************************************************-
3121******************************************************************************-
3122************************
3123******************************************************************************-
3124******************************************************************************-
3125************************
3126******************************************************************************-
3127******************************************************************************-
3128************************
3129******************************************************************************-
3130******************************************************************************-
3131************************
3132******************************************************************************-
3133******************************************************************************-
3134************************
3135******************************************************************************-
3136******************************************************************************-
3137************************
3138******************************************************************************-
3139******************************************************************************-
3140************************
3141******************************************************************************-
3142******************************************************************************-
3143************************
3144******************************************************************************-
3145******************************************************************************-
3146************************
3147******************************************************************************-
3148******************************************************************************-
3149************************
3150******************************************************************************-
3151******************************************************************************-
3152************************
3153******************************************************************************-
3154******************************************************************************-
3155************************
3156******************************************************************************-
3157******************************************************************************-
3158************************
3159******************************************************************************-
3160******************************************************************************-
3161************************
3162******************************************************************************-
3163******************************************************************************-
3164************************
3165******************************************************************************-
3166******************************************************************************-
3167************************
3168******************************************************************************-
3169******************************************************************************-
3170************************
3171******************************************************************************-
3172******************************************************************************-
3173************************
3174******************************************************************************-
3175******************************************************************************-
3176************************
3177******************************************************************************-
3178******************************************************************************-
3179************************
3180******************************************************************************-
3181******************************************************************************-
3182************************
3183******************************************************************************-
3184******************************************************************************-
3185************************
3186******************************************************************************-
3187******************************************************************************-
3188************************
3189******************************************************************************-
3190******************************************************************************-
3191************************
3192******************************************************************************-
3193******************************************************************************-
3194************************
3195******************************************************************************-
3196******************************************************************************-
3197************************
3198******************************************************************************-
3199******************************************************************************-
3200************************
3201******************************************************************************-
3202******************************************************************************-
3203************************
3204******************************************************************************-
3205******************************************************************************-
3206************************
3207******************************************************************************-
3208******************************************************************************-
3209************************
3210******************************************************************************-
3211******************************************************************************-
3212************************
3213******************************************************************************-
3214******************************************************************************-
3215************************
3216******************************************************************************-
3217******************************************************************************-
3218************************
3219******************************************************************************-
3220******************************************************************************-
3221************************
3222******************************************************************************-
3223******************************************************************************-
3224************************
3225******************************************************************************-
3226******************************************************************************-
3227************************
3228******************************************************************************-
3229******************************************************************************-
3230************************
3231******************************************************************************-
3232******************************************************************************-
3233************************
3234******************************************************************************-
3235******************************************************************************-
3236************************
3237******************************************************************************-
3238******************************************************************************-
3239************************
3240******************************************************************************-
3241******************************************************************************-
3242************************
3243******************************************************************************-
3244******************************************************************************-
3245************************
3246******************************************************************************-
3247******************************************************************************-
3248************************
3249******************************************************************************-
3250******************************************************************************-
3251************************
3252******************************************************************************-
3253******************************************************************************-
3254************************
3255******************************************************************************-
3256******************************************************************************-
3257************************
3258******************************************************************************-
3259******************************************************************************-
3260************************
3261******************************************************************************-
3262******************************************************************************-
3263************************
3264******************************************************************************-
3265******************************************************************************-
3266************************
3267******************************************************************************-
3268******************************************************************************-
3269************************
3270******************************************************************************-
3271******************************************************************************-
3272************************
3273******************************************************************************-
3274******************************************************************************-
3275************************
3276******************************************************************************-
3277******************************************************************************-
3278************************
3279******************************************************************************-
3280******************************************************************************-
3281************************
3282******************************************************************************-
3283******************************************************************************-
3284************************
3285******************************************************************************-
3286******************************************************************************-
3287************************
3288******************************************************************************-
3289******************************************************************************-
3290************************
3291******************************************************************************-
3292******************************************************************************-
3293************************
3294******************************************************************************-
3295******************************************************************************-
3296************************
3297******************************************************************************-
3298******************************************************************************-
3299************************
3300******************************************************************************-
3301******************************************************************************-
3302************************
3303******************************************************************************-
3304******************************************************************************-
3305************************
3306******************************************************************************-
3307******************************************************************************-
3308************************
3309******************************************************************************-
3310******************************************************************************-
3311************************
3312******************************************************************************-
3313******************************************************************************-
3314************************
3315******************************************************************************-
3316******************************************************************************-
3317************************
3318******************************************************************************-
3319******************************************************************************-
3320************************
3321******************************************************************************-
3322******************************************************************************-
3323************************
3324******************************************************************************-
3325******************************************************************************-
3326************************
3327******************************************************************************-
3328******************************************************************************-
3329************************
3330******************************************************************************-
3331******************************************************************************-
3332************************
3333******************************************************************************-
3334******************************************************************************-
3335************************
3336******************************************************************************-
3337******************************************************************************-
3338************************
3339******************************************************************************-
3340******************************************************************************-
3341************************
3342******************************************************************************-
3343******************************************************************************-
3344************************
3345******************************************************************************-
3346******************************************************************************-
3347************************
3348******************************************************************************-
3349******************************************************************************-
3350************************
3351******************************************************************************-
3352******************************************************************************-
3353************************
3354******************************************************************************-
3355******************************************************************************-
3356************************
3357******************************************************************************-
3358******************************************************************************-
3359************************
3360******************************************************************************-
3361******************************************************************************-
3362************************
3363******************************************************************************-
3364******************************************************************************-
3365************************
3366******************************************************************************-
3367******************************************************************************-
3368************************
3369******************************************************************************-
3370******************************************************************************-
3371************************
3372******************************************************************************-
3373******************************************************************************-
3374************************
3375******************************************************************************-
3376******************************************************************************-
3377************************
3378******************************************************************************-
3379******************************************************************************-
3380************************
3381******************************************************************************-
3382******************************************************************************-
3383************************
3384******************************************************************************-
3385******************************************************************************-
3386************************
3387******************************************************************************-
3388******************************************************************************-
3389************************
3390******************************************************************************-
3391******************************************************************************-
3392************************
3393******************************************************************************-
3394******************************************************************************-
3395************************
3396******************************************************************************-
3397******************************************************************************-
3398************************
3399******************************************************************************-
3400******************************************************************************-
3401************************
3402******************************************************************************-
3403******************************************************************************-
3404************************
3405******************************************************************************-
3406******************************************************************************-
3407************************
3408******************************************************************************-
3409******************************************************************************-
3410************************
3411******************************************************************************-
3412******************************************************************************-
3413************************
3414******************************************************************************-
3415******************************************************************************-
3416************************
3417******************************************************************************-
3418******************************************************************************-
3419************************
3420******************************************************************************-
3421******************************************************************************-
3422************************
3423******************************************************************************-
3424******************************************************************************-
3425************************
3426******************************************************************************-
3427******************************************************************************-
3428************************
3429******************************************************************************-
3430******************************************************************************-
3431************************
3432******************************************************************************-
3433******************************************************************************-
3434************************
3435******************************************************************************-
3436******************************************************************************-
3437************************
3438******************************************************************************-
3439******************************************************************************-
3440************************
3441******************************************************************************-
3442******************************************************************************-
3443************************
3444******************************************************************************-
3445******************************************************************************-
3446************************
3447******************************************************************************-
3448******************************************************************************-
3449************************
3450******************************************************************************-
3451******************************************************************************-
3452************************
3453******************************************************************************-
3454******************************************************************************-
3455************************
3456******************************************************************************-
3457******************************************************************************-
3458************************
3459******************************************************************************-
3460******************************************************************************-
3461************************
3462******************************************************************************-
3463******************************************************************************-
3464************************
3465******************************************************************************-
3466******************************************************************************-
3467************************
3468******************************************************************************-
3469******************************************************************************-
3470************************
3471******************************************************************************-
3472******************************************************************************-
3473************************
3474******************************************************************************-
3475******************************************************************************-
3476************************
3477******************************************************************************-
3478******************************************************************************-
3479************************
3480******************************************************************************-
3481******************************************************************************-
3482************************
3483******************************************************************************-
3484******************************************************************************-
3485************************
3486******************************************************************************-
3487******************************************************************************-
3488************************
3489******************************************************************************-
3490******************************************************************************-
3491************************
3492******************************************************************************-
3493******************************************************************************-
3494************************
3495******************************************************************************-
3496******************************************************************************-
3497************************
3498******************************************************************************-
3499******************************************************************************-
3500************************
3501******************************************************************************-
3502******************************************************************************-
3503************************
3504******************************************************************************-
3505******************************************************************************-
3506************************
3507******************************************************************************-
3508******************************************************************************-
3509************************
3510******************************************************************************-
3511******************************************************************************-
3512************************
3513******************************************************************************-
3514******************************************************************************-
3515************************
3516******************************************************************************-
3517******************************************************************************-
3518************************
3519******************************************************************************-
3520******************************************************************************-
3521************************
3522******************************************************************************-
3523******************************************************************************-
3524************************
3525******************************************************************************-
3526******************************************************************************-
3527************************
3528******************************************************************************-
3529******************************************************************************-
3530************************
3531******************************************************************************-
3532******************************************************************************-
3533************************
3534******************************************************************************-
3535******************************************************************************-
3536************************
3537******************************************************************************-
3538******************************************************************************-
3539************************
3540******************************************************************************-
3541******************************************************************************-
3542************************
3543******************************************************************************-
3544******************************************************************************-
3545************************
3546******************************************************************************-
3547******************************************************************************-
3548************************
3549******************************************************************************-
3550******************************************************************************-
3551************************
3552******************************************************************************-
3553******************************************************************************-
3554************************
3555******************************************************************************-
3556******************************************************************************-
3557************************
3558******************************************************************************-
3559******************************************************************************-
3560************************
3561******************************************************************************-
3562******************************************************************************-
3563************************
3564******************************************************************************-
3565******************************************************************************-
3566************************
3567******************************************************************************-
3568******************************************************************************-
3569************************
3570******************************************************************************-
3571******************************************************************************-
3572************************
3573******************************************************************************-
3574******************************************************************************-
3575************************
3576******************************************************************************-
3577******************************************************************************-
3578************************
3579******************************************************************************-
3580******************************************************************************-
3581************************
3582******************************************************************************-
3583******************************************************************************-
3584************************
3585******************************************************************************-
3586******************************************************************************-
3587************************
3588******************************************************************************-
3589******************************************************************************-
3590************************
3591******************************************************************************-
3592******************************************************************************-
3593************************
3594******************************************************************************-
3595******************************************************************************-
3596************************
3597******************************************************************************-
3598******************************************************************************-
3599************************
3600******************************************************************************-
3601******************************************************************************-
3602************************
3603******************************************************************************-
3604******************************************************************************-
3605************************
3606******************************************************************************-
3607******************************************************************************-
3608************************
3609******************************************************************************-
3610******************************************************************************-
3611************************
3612******************************************************************************-
3613******************************************************************************-
3614************************
3615******************************************************************************-
3616******************************************************************************-
3617************************
3618******************************************************************************-
3619******************************************************************************-
3620************************
3621******************************************************************************-
3622******************************************************************************-
3623************************
3624******************************************************************************-
3625******************************************************************************-
3626************************
3627******************************************************************************-
3628******************************************************************************-
3629************************
3630******************************************************************************-
3631******************************************************************************-
3632************************
3633******************************************************************************-
3634******************************************************************************-
3635************************
3636******************************************************************************-
3637******************************************************************************-
3638************************
3639******************************************************************************-
3640******************************************************************************-
3641************************
3642******************************************************************************-
3643******************************************************************************-
3644************************
3645******************************************************************************-
3646******************************************************************************-
3647************************
3648******************************************************************************-
3649******************************************************************************-
3650************************
3651******************************************************************************-
3652******************************************************************************-
3653************************
3654******************************************************************************-
3655******************************************************************************-
3656************************
3657******************************************************************************-
3658******************************************************************************-
3659************************
3660******************************************************************************-
3661******************************************************************************-
3662************************
3663******************************************************************************-
3664******************************************************************************-
3665************************
3666******************************************************************************-
3667******************************************************************************-
3668************************
3669******************************************************************************-
3670******************************************************************************-
3671************************
3672******************************************************************************-
3673******************************************************************************-
3674************************
3675******************************************************************************-
3676******************************************************************************-
3677************************
3678******************************************************************************-
3679******************************************************************************-
3680************************
3681******************************************************************************-
3682******************************************************************************-
3683************************
3684******************************************************************************-
3685******************************************************************************-
3686************************
3687******************************************************************************-
3688******************************************************************************-
3689************************
3690******************************************************************************-
3691******************************************************************************-
3692************************
3693******************************************************************************-
3694******************************************************************************-
3695************************
3696******************************************************************************-
3697******************************************************************************-
3698************************
3699******************************************************************************-
3700******************************************************************************-
3701************************
3702******************************************************************************-
3703******************************************************************************-
3704************************
3705******************************************************************************-
3706******************************************************************************-
3707************************
3708******************************************************************************-
3709******************************************************************************-
3710************************
3711******************************************************************************-
3712******************************************************************************-
3713************************
3714******************************************************************************-
3715******************************************************************************-
3716************************
3717******************************************************************************-
3718******************************************************************************-
3719************************
3720******************************************************************************-
3721******************************************************************************-
3722************************
3723******************************************************************************-
3724******************************************************************************-
3725************************
3726******************************************************************************-
3727******************************************************************************-
3728************************
3729******************************************************************************-
3730******************************************************************************-
3731************************
3732******************************************************************************-
3733******************************************************************************-
3734************************
3735******************************************************************************-
3736******************************************************************************-
3737************************
3738******************************************************************************-
3739******************************************************************************-
3740************************
3741******************************************************************************-
3742******************************************************************************-
3743************************
3744******************************************************************************-
3745******************************************************************************-
3746************************
3747******************************************************************************-
3748******************************************************************************-
3749************************
3750******************************************************************************-
3751******************************************************************************-
3752************************
3753******************************************************************************-
3754******************************************************************************-
3755************************
3756******************************************************************************-
3757******************************************************************************-
3758************************
3759******************************************************************************-
3760******************************************************************************-
3761************************
3762******************************************************************************-
3763******************************************************************************-
3764************************
3765******************************************************************************-
3766******************************************************************************-
3767************************
3768******************************************************************************-
3769******************************************************************************-
3770************************
3771******************************************************************************-
3772******************************************************************************-
3773************************
3774******************************************************************************-
3775******************************************************************************-
3776************************
3777******************************************************************************-
3778******************************************************************************-
3779************************
3780******************************************************************************-
3781******************************************************************************-
3782************************
3783******************************************************************************-
3784******************************************************************************-
3785************************
3786******************************************************************************-
3787******************************************************************************-
3788************************
3789******************************************************************************-
3790******************************************************************************-
3791************************
3792******************************************************************************-
3793******************************************************************************-
3794************************
3795******************************************************************************-
3796******************************************************************************-
3797************************
3798******************************************************************************-
3799******************************************************************************-
3800************************
3801******************************************************************************-
3802******************************************************************************-
3803************************
3804******************************************************************************-
3805******************************************************************************-
3806************************
3807******************************************************************************-
3808******************************************************************************-
3809************************
3810******************************************************************************-
3811******************************************************************************-
3812************************
3813******************************************************************************-
3814******************************************************************************-
3815************************
3816******************************************************************************-
3817******************************************************************************-
3818************************
3819******************************************************************************-
3820******************************************************************************-
3821************************
3822******************************************************************************-
3823******************************************************************************-
3824************************
3825******************************************************************************-
3826******************************************************************************-
3827************************
3828******************************************************************************-
3829******************************************************************************-
3830************************
3831******************************************************************************-
3832******************************************************************************-
3833************************
3834******************************************************************************-
3835******************************************************************************-
3836************************
3837******************************************************************************-
3838******************************************************************************-
3839************************
3840******************************************************************************-
3841******************************************************************************-
3842************************
3843******************************************************************************-
3844******************************************************************************-
3845************************
3846******************************************************************************-
3847******************************************************************************-
3848************************
3849******************************************************************************-
3850******************************************************************************-
3851************************
3852******************************************************************************-
3853******************************************************************************-
3854************************
3855******************************************************************************-
3856******************************************************************************-
3857************************
3858******************************************************************************-
3859******************************************************************************-
3860************************
3861******************************************************************************-
3862******************************************************************************-
3863************************
3864******************************************************************************-
3865******************************************************************************-
3866************************
3867******************************************************************************-
3868******************************************************************************-
3869************************
3870******************************************************************************-
3871******************************************************************************-
3872************************
3873******************************************************************************-
3874******************************************************************************-
3875************************
3876******************************************************************************-
3877******************************************************************************-
3878************************
3879******************************************************************************-
3880******************************************************************************-
3881************************
3882******************************************************************************-
3883******************************************************************************-
3884************************
3885******************************************************************************-
3886******************************************************************************-
3887************************
3888******************************************************************************-
3889******************************************************************************-
3890************************
3891******************************************************************************-
3892******************************************************************************-
3893************************
3894******************************************************************************-
3895******************************************************************************-
3896************************
3897******************************************************************************-
3898******************************************************************************-
3899************************
3900******************************************************************************-
3901******************************************************************************-
3902************************
3903******************************************************************************-
3904******************************************************************************-
3905************************
3906******************************************************************************-
3907******************************************************************************-
3908************************
3909******************************************************************************-
3910******************************************************************************-
3911************************
3912******************************************************************************-
3913******************************************************************************-
3914************************
3915******************************************************************************-
3916******************************************************************************-
3917************************
3918******************************************************************************-
3919******************************************************************************-
3920************************
3921******************************************************************************-
3922******************************************************************************-
3923************************
3924******************************************************************************-
3925******************************************************************************-
3926************************
3927******************************************************************************-
3928******************************************************************************-
3929************************
3930******************************************************************************-
3931******************************************************************************-
3932************************
3933******************************************************************************-
3934******************************************************************************-
3935************************
3936******************************************************************************-
3937******************************************************************************-
3938************************
3939******************************************************************************-
3940******************************************************************************-
3941************************
3942******************************************************************************-
3943******************************************************************************-
3944************************
3945******************************************************************************-
3946******************************************************************************-
3947************************
3948******************************************************************************-
3949******************************************************************************-
3950************************
3951******************************************************************************-
3952******************************************************************************-
3953************************
3954******************************************************************************-
3955******************************************************************************-
3956************************
3957******************************************************************************-
3958******************************************************************************-
3959************************
3960******************************************************************************-
3961******************************************************************************-
3962************************
3963******************************************************************************-
3964******************************************************************************-
3965************************
3966******************************************************************************-
3967******************************************************************************-
3968************************
3969******************************************************************************-
3970******************************************************************************-
3971************************
3972******************************************************************************-
3973******************************************************************************-
3974************************
3975******************************************************************************-
3976******************************************************************************-
3977************************
3978******************************************************************************-
3979******************************************************************************-
3980************************
3981******************************************************************************-
3982******************************************************************************-
3983************************
3984******************************************************************************-
3985******************************************************************************-
3986************************
3987******************************************************************************-
3988******************************************************************************-
3989************************
3990******************************************************************************-
3991******************************************************************************-
3992************************
3993******************************************************************************-
3994******************************************************************************-
3995************************
3996******************************************************************************-
3997******************************************************************************-
3998************************
3999******************************************************************************-
4000******************************************************************************-
4001************************
4002******************************************************************************-
4003******************************************************************************-
4004************************
4005******************************************************************************-
4006******************************************************************************-
4007************************
4008******************************************************************************-
4009******************************************************************************-
4010************************
4011******************************************************************************-
4012******************************************************************************-
4013************************
4014******************************************************************************-
4015******************************************************************************-
4016************************
4017******************************************************************************-
4018******************************************************************************-
4019************************
4020******************************************************************************-
4021******************************************************************************-
4022************************
4023******************************************************************************-
4024******************************************************************************-
4025************************
4026******************************************************************************-
4027******************************************************************************-
4028************************
4029******************************************************************************-
4030******************************************************************************-
4031************************
4032******************************************************************************-
4033******************************************************************************-
4034************************
4035******************************************************************************-
4036******************************************************************************-
4037************************
4038******************************************************************************-
4039******************************************************************************-
4040************************
4041******************************************************************************-
4042******************************************************************************-
4043************************
4044******************************************************************************-
4045******************************************************************************-
4046************************
4047******************************************************************************-
4048******************************************************************************-
4049************************
4050******************************************************************************-
Phil Nashd6e59cd2015-07-23 18:45:31 +01004051... message truncated due to excessive size" ends with: "... message truncated due to excessive size"
Phil Nash93a945c2013-10-23 15:35:07 +01004052 </Expanded>
4053 </Expression>
4054 <OverallResult success="true"/>
4055 </TestCase>
Phil Nash0e649732015-11-20 16:54:07 +00004056 <TestCase name="ManuallyRegistered">
4057 <OverallResult success="true"/>
4058 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00004059 <TestCase name="Matchers can be (AllOf) composed with the &amp;&amp; operator">
4060 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004061 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004062 testStringForMatching(), Contains( "string" ) &amp;&amp; Contains( "abc" ) &amp;&amp; Contains( "substring" ) &amp;&amp; Contains( "contains" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004063 </Original>
4064 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004065 "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004066 </Expanded>
4067 </Expression>
4068 <OverallResult success="true"/>
4069 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00004070 <TestCase name="Matchers can be (AnyOf) composed with the || operator">
4071 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004072 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004073 testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004074 </Original>
4075 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004076 "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004077 </Expanded>
4078 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00004079 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004080 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004081 testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004082 </Original>
4083 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004084 "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
4085 </Expanded>
4086 </Expression>
4087 <OverallResult success="true"/>
4088 </TestCase>
4089 <TestCase name="Matchers can be composed with both &amp;&amp; and ||">
4090 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
4091 <Original>
4092 testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) &amp;&amp; Contains( "substring" )
4093 </Original>
4094 <Expanded>
4095 "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
4096 </Expanded>
4097 </Expression>
4098 <OverallResult success="true"/>
4099 </TestCase>
4100 <TestCase name="Matchers can be composed with both &amp;&amp; and || - failing">
4101 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
4102 <Original>
4103 testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) &amp;&amp; Contains( "random" )
4104 </Original>
4105 <Expanded>
4106 "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004107 </Expanded>
4108 </Expression>
4109 <OverallResult success="false"/>
4110 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00004111 <TestCase name="Matchers can be negated (Not) with the ! operator">
4112 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004113 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004114 testStringForMatching(), !Contains( "different" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004115 </Original>
4116 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004117 "this string contains 'abc' as a substring" not contains: "different"
4118 </Expanded>
4119 </Expression>
4120 <OverallResult success="true"/>
4121 </TestCase>
4122 <TestCase name="Matchers can be negated (Not) with the ! operator - failing">
4123 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
4124 <Original>
4125 testStringForMatching(), !Contains( "substring" )
4126 </Original>
4127 <Expanded>
4128 "this string contains 'abc' as a substring" not contains: "substring"
Phil Nash2f7a2962013-09-27 19:01:14 +01004129 </Expanded>
4130 </Expression>
4131 <OverallResult success="false"/>
4132 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00004133 <TestCase name="Mismatching exception messages failing the test">
4134 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004135 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004136 thisThrows(), "expected exception"
Phil Nash2f7a2962013-09-27 19:01:14 +01004137 </Original>
4138 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004139 thisThrows(), "expected exception"
Phil Nash2f7a2962013-09-27 19:01:14 +01004140 </Expanded>
4141 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00004142 <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004143 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004144 thisThrows(), "should fail"
Phil Nash2f7a2962013-09-27 19:01:14 +01004145 </Original>
4146 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004147 expected exception
Phil Nash2f7a2962013-09-27 19:01:14 +01004148 </Expanded>
4149 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00004150 <OverallResult success="false"/>
4151 </TestCase>
4152 <TestCase name="Nice descriptive name">
4153 <Warning>
4154 This one ran
4155 </Warning>
Phil Nash2f7a2962013-09-27 19:01:14 +01004156 <OverallResult success="true"/>
4157 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00004158 <TestCase name="Non-std exceptions can be translated">
4159 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
4160 custom exception
4161 </Exception>
4162 <OverallResult success="false"/>
4163 </TestCase>
4164 <TestCase name="NotImplemented exception">
4165 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004166 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004167 thisFunctionNotImplemented( 7 )
Phil Nash2f7a2962013-09-27 19:01:14 +01004168 </Original>
4169 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004170 thisFunctionNotImplemented( 7 )
Phil Nash2f7a2962013-09-27 19:01:14 +01004171 </Expanded>
4172 </Expression>
4173 <OverallResult success="true"/>
4174 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00004175 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nashc6635a72014-12-30 18:25:27 +00004176 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004177 <Original>
4178 True
4179 </Original>
4180 <Expanded>
4181 true
4182 </Expanded>
4183 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004184 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004185 <Original>
4186 !False
4187 </Original>
4188 <Expanded>
4189 true
4190 </Expanded>
4191 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004192 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004193 <Original>
4194 !False
4195 </Original>
4196 <Expanded>
4197 !false
4198 </Expanded>
4199 </Expression>
4200 <OverallResult success="true"/>
4201 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00004202 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nashc6635a72014-12-30 18:25:27 +00004203 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004204 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00004205 0x<hex digits> == o
Phil Nash2f7a2962013-09-27 19:01:14 +01004206 </Original>
4207 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00004208 3221225472 (0x<hex digits>) == {?}
Phil Nash2f7a2962013-09-27 19:01:14 +01004209 </Expanded>
4210 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00004211 <OverallResult success="true"/>
4212 </TestCase>
4213 <TestCase name="Ordering comparison checks that should fail">
4214 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4215 <Original>
4216 data.int_seven > 7
4217 </Original>
4218 <Expanded>
4219 7 > 7
4220 </Expanded>
4221 </Expression>
4222 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4223 <Original>
4224 data.int_seven &lt; 7
4225 </Original>
4226 <Expanded>
4227 7 &lt; 7
4228 </Expanded>
4229 </Expression>
4230 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4231 <Original>
4232 data.int_seven > 8
4233 </Original>
4234 <Expanded>
4235 7 > 8
4236 </Expanded>
4237 </Expression>
4238 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4239 <Original>
4240 data.int_seven &lt; 6
4241 </Original>
4242 <Expanded>
4243 7 &lt; 6
4244 </Expanded>
4245 </Expression>
4246 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4247 <Original>
4248 data.int_seven &lt; 0
4249 </Original>
4250 <Expanded>
4251 7 &lt; 0
4252 </Expanded>
4253 </Expression>
4254 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4255 <Original>
4256 data.int_seven &lt; -1
4257 </Original>
4258 <Expanded>
4259 7 &lt; -1
4260 </Expanded>
4261 </Expression>
4262 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4263 <Original>
4264 data.int_seven >= 8
4265 </Original>
4266 <Expanded>
4267 7 >= 8
4268 </Expanded>
4269 </Expression>
4270 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4271 <Original>
4272 data.int_seven &lt;= 6
4273 </Original>
4274 <Expanded>
4275 7 &lt;= 6
4276 </Expanded>
4277 </Expression>
4278 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4279 <Original>
4280 data.float_nine_point_one &lt; 9
4281 </Original>
4282 <Expanded>
4283 9.1f &lt; 9
4284 </Expanded>
4285 </Expression>
4286 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4287 <Original>
4288 data.float_nine_point_one > 10
4289 </Original>
4290 <Expanded>
4291 9.1f > 10
4292 </Expanded>
4293 </Expression>
4294 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4295 <Original>
4296 data.float_nine_point_one > 9.2
4297 </Original>
4298 <Expanded>
4299 9.1f > 9.2
4300 </Expanded>
4301 </Expression>
4302 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4303 <Original>
4304 data.str_hello > "hello"
4305 </Original>
4306 <Expanded>
4307 "hello" > "hello"
4308 </Expanded>
4309 </Expression>
4310 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4311 <Original>
4312 data.str_hello &lt; "hello"
4313 </Original>
4314 <Expanded>
4315 "hello" &lt; "hello"
4316 </Expanded>
4317 </Expression>
4318 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4319 <Original>
4320 data.str_hello > "hellp"
4321 </Original>
4322 <Expanded>
4323 "hello" > "hellp"
4324 </Expanded>
4325 </Expression>
4326 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4327 <Original>
4328 data.str_hello > "z"
4329 </Original>
4330 <Expanded>
4331 "hello" > "z"
4332 </Expanded>
4333 </Expression>
4334 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4335 <Original>
4336 data.str_hello &lt; "hellm"
4337 </Original>
4338 <Expanded>
4339 "hello" &lt; "hellm"
4340 </Expanded>
4341 </Expression>
4342 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4343 <Original>
4344 data.str_hello &lt; "a"
4345 </Original>
4346 <Expanded>
4347 "hello" &lt; "a"
4348 </Expanded>
4349 </Expression>
4350 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4351 <Original>
4352 data.str_hello >= "z"
4353 </Original>
4354 <Expanded>
4355 "hello" >= "z"
4356 </Expanded>
4357 </Expression>
4358 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
4359 <Original>
4360 data.str_hello &lt;= "a"
4361 </Original>
4362 <Expanded>
4363 "hello" &lt;= "a"
4364 </Expanded>
4365 </Expression>
4366 <OverallResult success="false"/>
4367 </TestCase>
4368 <TestCase name="Ordering comparison checks that should succeed">
4369 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4370 <Original>
4371 data.int_seven &lt; 8
4372 </Original>
4373 <Expanded>
4374 7 &lt; 8
4375 </Expanded>
4376 </Expression>
4377 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4378 <Original>
4379 data.int_seven > 6
4380 </Original>
4381 <Expanded>
4382 7 > 6
4383 </Expanded>
4384 </Expression>
4385 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4386 <Original>
4387 data.int_seven > 0
4388 </Original>
4389 <Expanded>
4390 7 > 0
4391 </Expanded>
4392 </Expression>
4393 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4394 <Original>
4395 data.int_seven > -1
4396 </Original>
4397 <Expanded>
4398 7 > -1
4399 </Expanded>
4400 </Expression>
4401 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4402 <Original>
4403 data.int_seven >= 7
4404 </Original>
4405 <Expanded>
4406 7 >= 7
4407 </Expanded>
4408 </Expression>
4409 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4410 <Original>
4411 data.int_seven >= 6
4412 </Original>
4413 <Expanded>
4414 7 >= 6
4415 </Expanded>
4416 </Expression>
4417 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4418 <Original>
4419 data.int_seven &lt;= 7
4420 </Original>
4421 <Expanded>
4422 7 &lt;= 7
4423 </Expanded>
4424 </Expression>
4425 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4426 <Original>
4427 data.int_seven &lt;= 8
4428 </Original>
4429 <Expanded>
4430 7 &lt;= 8
4431 </Expanded>
4432 </Expression>
4433 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4434 <Original>
4435 data.float_nine_point_one > 9
4436 </Original>
4437 <Expanded>
4438 9.1f > 9
4439 </Expanded>
4440 </Expression>
4441 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4442 <Original>
4443 data.float_nine_point_one &lt; 10
4444 </Original>
4445 <Expanded>
4446 9.1f &lt; 10
4447 </Expanded>
4448 </Expression>
4449 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4450 <Original>
4451 data.float_nine_point_one &lt; 9.2
4452 </Original>
4453 <Expanded>
4454 9.1f &lt; 9.2
4455 </Expanded>
4456 </Expression>
4457 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4458 <Original>
4459 data.str_hello &lt;= "hello"
4460 </Original>
4461 <Expanded>
4462 "hello" &lt;= "hello"
4463 </Expanded>
4464 </Expression>
4465 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4466 <Original>
4467 data.str_hello >= "hello"
4468 </Original>
4469 <Expanded>
4470 "hello" >= "hello"
4471 </Expanded>
4472 </Expression>
4473 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4474 <Original>
4475 data.str_hello &lt; "hellp"
4476 </Original>
4477 <Expanded>
4478 "hello" &lt; "hellp"
4479 </Expanded>
4480 </Expression>
4481 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4482 <Original>
4483 data.str_hello &lt; "zebra"
4484 </Original>
4485 <Expanded>
4486 "hello" &lt; "zebra"
4487 </Expanded>
4488 </Expression>
4489 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4490 <Original>
4491 data.str_hello > "hellm"
4492 </Original>
4493 <Expanded>
4494 "hello" > "hellm"
4495 </Expanded>
4496 </Expression>
4497 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
4498 <Original>
4499 data.str_hello > "a"
4500 </Original>
4501 <Expanded>
4502 "hello" > "a"
4503 </Expanded>
4504 </Expression>
4505 <OverallResult success="true"/>
4506 </TestCase>
4507 <TestCase name="Output from all sections is reported">
4508 <Section name="one">
4509 <Failure>
4510 Message from section one
4511 </Failure>
4512 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004513 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00004514 <Section name="two">
4515 <Failure>
4516 Message from section two
4517 </Failure>
4518 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004519 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00004520 <OverallResult success="false"/>
Phil Nash5ea32662014-09-03 19:22:47 +01004521 </TestCase>
Phil Nash766491a2014-05-16 18:31:15 +01004522 <TestCase name="Parse test names and tags">
4523 <Section name="Empty test spec should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00004524 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004525 <Original>
4526 spec.hasFilters() == false
4527 </Original>
4528 <Expanded>
4529 false == false
4530 </Expanded>
4531 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004532 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004533 <Original>
4534 spec.matches( tcA ) == false
4535 </Original>
4536 <Expanded>
4537 false == false
4538 </Expanded>
4539 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004540 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004541 <Original>
4542 spec.matches( tcB ) == false
4543 </Original>
4544 <Expanded>
4545 false == false
4546 </Expanded>
4547 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004548 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004549 </Section>
4550 <Section name="Test spec from empty string should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00004551 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004552 <Original>
4553 spec.hasFilters() == false
4554 </Original>
4555 <Expanded>
4556 false == false
4557 </Expanded>
4558 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004559 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004560 <Original>
4561 spec.matches(tcA ) == false
4562 </Original>
4563 <Expanded>
4564 false == false
4565 </Expanded>
4566 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004567 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004568 <Original>
4569 spec.matches( tcB ) == false
4570 </Original>
4571 <Expanded>
4572 false == false
4573 </Expanded>
4574 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004575 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004576 </Section>
4577 <Section name="Test spec from just a comma should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00004578 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004579 <Original>
4580 spec.hasFilters() == false
4581 </Original>
4582 <Expanded>
4583 false == false
4584 </Expanded>
4585 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004586 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004587 <Original>
4588 spec.matches( tcA ) == false
4589 </Original>
4590 <Expanded>
4591 false == false
4592 </Expanded>
4593 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004594 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004595 <Original>
4596 spec.matches( tcB ) == false
4597 </Original>
4598 <Expanded>
4599 false == false
4600 </Expanded>
4601 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004602 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004603 </Section>
4604 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00004605 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004606 <Original>
4607 spec.hasFilters() == true
4608 </Original>
4609 <Expanded>
4610 true == true
4611 </Expanded>
4612 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004613 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004614 <Original>
4615 spec.matches( tcA ) == false
4616 </Original>
4617 <Expanded>
4618 false == false
4619 </Expanded>
4620 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004621 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004622 <Original>
4623 spec.matches( tcB ) == true
4624 </Original>
4625 <Expanded>
4626 true == true
4627 </Expanded>
4628 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004629 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004630 </Section>
4631 <Section name="Test spec from quoted name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00004632 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004633 <Original>
4634 spec.hasFilters() == true
4635 </Original>
4636 <Expanded>
4637 true == true
4638 </Expanded>
4639 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004640 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004641 <Original>
4642 spec.matches( tcA ) == false
4643 </Original>
4644 <Expanded>
4645 false == false
4646 </Expanded>
4647 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004648 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004649 <Original>
4650 spec.matches( tcB ) == true
4651 </Original>
4652 <Expanded>
4653 true == true
4654 </Expanded>
4655 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004656 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004657 </Section>
4658 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00004659 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004660 <Original>
4661 spec.hasFilters() == true
4662 </Original>
4663 <Expanded>
4664 true == true
4665 </Expanded>
4666 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004667 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004668 <Original>
4669 spec.matches( tcA ) == false
4670 </Original>
4671 <Expanded>
4672 false == false
4673 </Expanded>
4674 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004675 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004676 <Original>
4677 spec.matches( tcB ) == true
4678 </Original>
4679 <Expanded>
4680 true == true
4681 </Expanded>
4682 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004683 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004684 <Original>
4685 spec.matches( tcC ) == false
4686 </Original>
4687 <Expanded>
4688 false == false
4689 </Expanded>
4690 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004691 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004692 </Section>
4693 <Section name="Wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00004694 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004695 <Original>
4696 spec.hasFilters() == true
4697 </Original>
4698 <Expanded>
4699 true == true
4700 </Expanded>
4701 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004702 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004703 <Original>
4704 spec.matches( tcA ) == false
4705 </Original>
4706 <Expanded>
4707 false == false
4708 </Expanded>
4709 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004710 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004711 <Original>
4712 spec.matches( tcB ) == false
4713 </Original>
4714 <Expanded>
4715 false == false
4716 </Expanded>
4717 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004718 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004719 <Original>
4720 spec.matches( tcC ) == true
4721 </Original>
4722 <Expanded>
4723 true == true
4724 </Expanded>
4725 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004726 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004727 <Original>
4728 spec.matches( tcD ) == false
4729 </Original>
4730 <Expanded>
4731 false == false
4732 </Expanded>
4733 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004734 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004735 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004736 parseTestSpec( "*a" ).matches( tcA ) == true
Phil Nash766491a2014-05-16 18:31:15 +01004737 </Original>
4738 <Expanded>
4739 true == true
4740 </Expanded>
4741 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004742 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004743 </Section>
4744 <Section name="Wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00004745 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004746 <Original>
4747 spec.hasFilters() == true
4748 </Original>
4749 <Expanded>
4750 true == true
4751 </Expanded>
4752 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004753 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004754 <Original>
4755 spec.matches( tcA ) == false
4756 </Original>
4757 <Expanded>
4758 false == false
4759 </Expanded>
4760 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004761 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004762 <Original>
4763 spec.matches( tcB ) == false
4764 </Original>
4765 <Expanded>
4766 false == false
4767 </Expanded>
4768 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004769 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004770 <Original>
4771 spec.matches( tcC ) == true
4772 </Original>
4773 <Expanded>
4774 true == true
4775 </Expanded>
4776 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004777 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004778 <Original>
4779 spec.matches( tcD ) == false
4780 </Original>
4781 <Expanded>
4782 false == false
4783 </Expanded>
4784 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004785 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004786 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004787 parseTestSpec( "a*" ).matches( tcA ) == true
Phil Nash766491a2014-05-16 18:31:15 +01004788 </Original>
4789 <Expanded>
4790 true == true
4791 </Expanded>
4792 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004793 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004794 </Section>
4795 <Section name="Wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00004796 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004797 <Original>
4798 spec.hasFilters() == true
4799 </Original>
4800 <Expanded>
4801 true == true
4802 </Expanded>
4803 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004804 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004805 <Original>
4806 spec.matches( tcA ) == false
4807 </Original>
4808 <Expanded>
4809 false == false
4810 </Expanded>
4811 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004812 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004813 <Original>
4814 spec.matches( tcB ) == false
4815 </Original>
4816 <Expanded>
4817 false == false
4818 </Expanded>
4819 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004820 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004821 <Original>
4822 spec.matches( tcC ) == true
4823 </Original>
4824 <Expanded>
4825 true == true
4826 </Expanded>
4827 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004828 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004829 <Original>
4830 spec.matches( tcD ) == true
4831 </Original>
4832 <Expanded>
4833 true == true
4834 </Expanded>
4835 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004836 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004837 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004838 parseTestSpec( "*a*" ).matches( tcA ) == true
Phil Nash766491a2014-05-16 18:31:15 +01004839 </Original>
4840 <Expanded>
4841 true == true
4842 </Expanded>
4843 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004844 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01004845 </Section>
Phil Nash71390352014-05-19 18:21:01 +01004846 <Section name="Redundant wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00004847 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004848 <Original>
4849 spec.hasFilters() == true
4850 </Original>
4851 <Expanded>
4852 true == true
4853 </Expanded>
4854 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004855 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004856 <Original>
4857 spec.matches( tcA ) == true
4858 </Original>
4859 <Expanded>
4860 true == true
4861 </Expanded>
4862 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004863 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004864 <Original>
4865 spec.matches( tcB ) == false
4866 </Original>
4867 <Expanded>
4868 false == false
4869 </Expanded>
4870 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004871 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01004872 </Section>
4873 <Section name="Redundant wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00004874 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004875 <Original>
4876 spec.hasFilters() == true
4877 </Original>
4878 <Expanded>
4879 true == true
4880 </Expanded>
4881 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004882 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004883 <Original>
4884 spec.matches( tcA ) == true
4885 </Original>
4886 <Expanded>
4887 true == true
4888 </Expanded>
4889 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004890 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004891 <Original>
4892 spec.matches( tcB ) == false
4893 </Original>
4894 <Expanded>
4895 false == false
4896 </Expanded>
4897 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004898 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01004899 </Section>
4900 <Section name="Redundant wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00004901 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004902 <Original>
4903 spec.hasFilters() == true
4904 </Original>
4905 <Expanded>
4906 true == true
4907 </Expanded>
4908 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004909 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004910 <Original>
4911 spec.matches( tcA ) == true
4912 </Original>
4913 <Expanded>
4914 true == true
4915 </Expanded>
4916 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004917 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004918 <Original>
4919 spec.matches( tcB ) == false
4920 </Original>
4921 <Expanded>
4922 false == false
4923 </Expanded>
4924 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004925 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01004926 </Section>
4927 <Section name="Wildcard at both ends, redundant at start">
Phil Nashc6635a72014-12-30 18:25:27 +00004928 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004929 <Original>
4930 spec.hasFilters() == true
4931 </Original>
4932 <Expanded>
4933 true == true
4934 </Expanded>
4935 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004936 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004937 <Original>
4938 spec.matches( tcA ) == false
4939 </Original>
4940 <Expanded>
4941 false == false
4942 </Expanded>
4943 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004944 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004945 <Original>
4946 spec.matches( tcB ) == false
4947 </Original>
4948 <Expanded>
4949 false == false
4950 </Expanded>
4951 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004952 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004953 <Original>
4954 spec.matches( tcC ) == true
4955 </Original>
4956 <Expanded>
4957 true == true
4958 </Expanded>
4959 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004960 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01004961 <Original>
4962 spec.matches( tcD ) == true
4963 </Original>
4964 <Expanded>
4965 true == true
4966 </Expanded>
4967 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004968 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01004969 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01004970 <Section name="Just wildcard">
Phil Nashc6635a72014-12-30 18:25:27 +00004971 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004972 <Original>
4973 spec.hasFilters() == true
4974 </Original>
4975 <Expanded>
4976 true == true
4977 </Expanded>
4978 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004979 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004980 <Original>
4981 spec.matches( tcA ) == true
4982 </Original>
4983 <Expanded>
4984 true == true
4985 </Expanded>
4986 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004987 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004988 <Original>
4989 spec.matches( tcB ) == true
4990 </Original>
4991 <Expanded>
4992 true == true
4993 </Expanded>
4994 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004995 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01004996 <Original>
4997 spec.matches( tcC ) == true
4998 </Original>
4999 <Expanded>
5000 true == true
5001 </Expanded>
5002 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005003 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005004 <Original>
5005 spec.matches( tcD ) == true
5006 </Original>
5007 <Expanded>
5008 true == true
5009 </Expanded>
5010 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005011 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005012 </Section>
5013 <Section name="Single tag">
Phil Nashc6635a72014-12-30 18:25:27 +00005014 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005015 <Original>
5016 spec.hasFilters() == true
5017 </Original>
5018 <Expanded>
5019 true == true
5020 </Expanded>
5021 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005022 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005023 <Original>
5024 spec.matches( tcA ) == false
5025 </Original>
5026 <Expanded>
5027 false == false
5028 </Expanded>
5029 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005030 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005031 <Original>
5032 spec.matches( tcB ) == true
5033 </Original>
5034 <Expanded>
5035 true == true
5036 </Expanded>
5037 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005038 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005039 <Original>
5040 spec.matches( tcC ) == false
5041 </Original>
5042 <Expanded>
5043 false == false
5044 </Expanded>
5045 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005046 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005047 </Section>
5048 <Section name="Single tag, two matches">
Phil Nashc6635a72014-12-30 18:25:27 +00005049 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005050 <Original>
5051 spec.hasFilters() == true
5052 </Original>
5053 <Expanded>
5054 true == true
5055 </Expanded>
5056 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005057 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005058 <Original>
5059 spec.matches( tcA ) == false
5060 </Original>
5061 <Expanded>
5062 false == false
5063 </Expanded>
5064 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005065 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005066 <Original>
5067 spec.matches( tcB ) == true
5068 </Original>
5069 <Expanded>
5070 true == true
5071 </Expanded>
5072 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005073 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005074 <Original>
5075 spec.matches( tcC ) == true
5076 </Original>
5077 <Expanded>
5078 true == true
5079 </Expanded>
5080 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005081 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005082 </Section>
5083 <Section name="Two tags">
Phil Nashc6635a72014-12-30 18:25:27 +00005084 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005085 <Original>
5086 spec.hasFilters() == true
5087 </Original>
5088 <Expanded>
5089 true == true
5090 </Expanded>
5091 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005092 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005093 <Original>
5094 spec.matches( tcA ) == false
5095 </Original>
5096 <Expanded>
5097 false == false
5098 </Expanded>
5099 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005100 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005101 <Original>
5102 spec.matches( tcB ) == false
5103 </Original>
5104 <Expanded>
5105 false == false
5106 </Expanded>
5107 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005108 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005109 <Original>
5110 spec.matches( tcC ) == true
5111 </Original>
5112 <Expanded>
5113 true == true
5114 </Expanded>
5115 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005116 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005117 </Section>
Phil Nasha2d8f772014-05-20 18:28:48 +01005118 <Section name="Two tags, spare separated">
Phil Nashc6635a72014-12-30 18:25:27 +00005119 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01005120 <Original>
5121 spec.hasFilters() == true
5122 </Original>
5123 <Expanded>
5124 true == true
5125 </Expanded>
5126 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005127 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01005128 <Original>
5129 spec.matches( tcA ) == false
5130 </Original>
5131 <Expanded>
5132 false == false
5133 </Expanded>
5134 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005135 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01005136 <Original>
5137 spec.matches( tcB ) == false
5138 </Original>
5139 <Expanded>
5140 false == false
5141 </Expanded>
5142 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005143 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01005144 <Original>
5145 spec.matches( tcC ) == true
5146 </Original>
5147 <Expanded>
5148 true == true
5149 </Expanded>
5150 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005151 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nasha2d8f772014-05-20 18:28:48 +01005152 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01005153 <Section name="Wildcarded name and tag">
Phil Nashc6635a72014-12-30 18:25:27 +00005154 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005155 <Original>
5156 spec.hasFilters() == true
5157 </Original>
5158 <Expanded>
5159 true == true
5160 </Expanded>
5161 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005162 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005163 <Original>
5164 spec.matches( tcA ) == false
5165 </Original>
5166 <Expanded>
5167 false == false
5168 </Expanded>
5169 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005170 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005171 <Original>
5172 spec.matches( tcB ) == false
5173 </Original>
5174 <Expanded>
5175 false == false
5176 </Expanded>
5177 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005178 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005179 <Original>
5180 spec.matches( tcC ) == true
5181 </Original>
5182 <Expanded>
5183 true == true
5184 </Expanded>
5185 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005186 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005187 <Original>
5188 spec.matches( tcD ) == false
5189 </Original>
5190 <Expanded>
5191 false == false
5192 </Expanded>
5193 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005194 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005195 </Section>
5196 <Section name="Single tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005197 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005198 <Original>
5199 spec.hasFilters() == true
5200 </Original>
5201 <Expanded>
5202 true == true
5203 </Expanded>
5204 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005205 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005206 <Original>
5207 spec.matches( tcA ) == true
5208 </Original>
5209 <Expanded>
5210 true == true
5211 </Expanded>
5212 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005213 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005214 <Original>
5215 spec.matches( tcB ) == false
5216 </Original>
5217 <Expanded>
5218 false == false
5219 </Expanded>
5220 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005221 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005222 <Original>
5223 spec.matches( tcC ) == true
5224 </Original>
5225 <Expanded>
5226 true == true
5227 </Expanded>
5228 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005229 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005230 </Section>
5231 <Section name="One tag exclusion and one tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005232 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005233 <Original>
5234 spec.hasFilters() == true
5235 </Original>
5236 <Expanded>
5237 true == true
5238 </Expanded>
5239 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005240 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005241 <Original>
5242 spec.matches( tcA ) == false
5243 </Original>
5244 <Expanded>
5245 false == false
5246 </Expanded>
5247 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005248 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005249 <Original>
5250 spec.matches( tcB ) == true
5251 </Original>
5252 <Expanded>
5253 true == true
5254 </Expanded>
5255 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005256 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005257 <Original>
5258 spec.matches( tcC ) == false
5259 </Original>
5260 <Expanded>
5261 false == false
5262 </Expanded>
5263 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005264 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005265 </Section>
5266 <Section name="One tag exclusion and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005267 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005268 <Original>
5269 spec.hasFilters() == true
5270 </Original>
5271 <Expanded>
5272 true == true
5273 </Expanded>
5274 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005275 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005276 <Original>
5277 spec.matches( tcA ) == false
5278 </Original>
5279 <Expanded>
5280 false == false
5281 </Expanded>
5282 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005283 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005284 <Original>
5285 spec.matches( tcB ) == false
5286 </Original>
5287 <Expanded>
5288 false == false
5289 </Expanded>
5290 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005291 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005292 <Original>
5293 spec.matches( tcC ) == false
5294 </Original>
5295 <Expanded>
5296 false == false
5297 </Expanded>
5298 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005299 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005300 <Original>
5301 spec.matches( tcD ) == true
5302 </Original>
5303 <Expanded>
5304 true == true
5305 </Expanded>
5306 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005307 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005308 </Section>
5309 <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005310 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005311 <Original>
5312 spec.hasFilters() == true
5313 </Original>
5314 <Expanded>
5315 true == true
5316 </Expanded>
5317 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005318 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005319 <Original>
5320 spec.matches( tcA ) == false
5321 </Original>
5322 <Expanded>
5323 false == false
5324 </Expanded>
5325 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005326 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005327 <Original>
5328 spec.matches( tcB ) == false
5329 </Original>
5330 <Expanded>
5331 false == false
5332 </Expanded>
5333 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005334 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005335 <Original>
5336 spec.matches( tcC ) == false
5337 </Original>
5338 <Expanded>
5339 false == false
5340 </Expanded>
5341 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005342 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005343 <Original>
5344 spec.matches( tcD ) == true
5345 </Original>
5346 <Expanded>
5347 true == true
5348 </Expanded>
5349 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005350 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005351 </Section>
5352 <Section name="name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005353 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005354 <Original>
5355 spec.hasFilters() == true
5356 </Original>
5357 <Expanded>
5358 true == true
5359 </Expanded>
5360 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005361 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005362 <Original>
5363 spec.matches( tcA ) == true
5364 </Original>
5365 <Expanded>
5366 true == true
5367 </Expanded>
5368 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005369 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005370 <Original>
5371 spec.matches( tcB ) == false
5372 </Original>
5373 <Expanded>
5374 false == false
5375 </Expanded>
5376 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005377 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005378 <Original>
5379 spec.matches( tcC ) == true
5380 </Original>
5381 <Expanded>
5382 true == true
5383 </Expanded>
5384 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005385 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005386 <Original>
5387 spec.matches( tcD ) == true
5388 </Original>
5389 <Expanded>
5390 true == true
5391 </Expanded>
5392 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005393 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005394 </Section>
5395 <Section name="wildcarded name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005396 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005397 <Original>
5398 spec.hasFilters() == true
5399 </Original>
5400 <Expanded>
5401 true == true
5402 </Expanded>
5403 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005404 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005405 <Original>
5406 spec.matches( tcA ) == true
5407 </Original>
5408 <Expanded>
5409 true == true
5410 </Expanded>
5411 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005412 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005413 <Original>
5414 spec.matches( tcB ) == true
5415 </Original>
5416 <Expanded>
5417 true == true
5418 </Expanded>
5419 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005420 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005421 <Original>
5422 spec.matches( tcC ) == false
5423 </Original>
5424 <Expanded>
5425 false == false
5426 </Expanded>
5427 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005428 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005429 <Original>
5430 spec.matches( tcD ) == false
5431 </Original>
5432 <Expanded>
5433 false == false
5434 </Expanded>
5435 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005436 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005437 </Section>
5438 <Section name="wildcarded name exclusion with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005439 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005440 <Original>
5441 spec.hasFilters() == true
5442 </Original>
5443 <Expanded>
5444 true == true
5445 </Expanded>
5446 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005447 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005448 <Original>
5449 spec.matches( tcA ) == true
5450 </Original>
5451 <Expanded>
5452 true == true
5453 </Expanded>
5454 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005455 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005456 <Original>
5457 spec.matches( tcB ) == true
5458 </Original>
5459 <Expanded>
5460 true == true
5461 </Expanded>
5462 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005463 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005464 <Original>
5465 spec.matches( tcC ) == true
5466 </Original>
5467 <Expanded>
5468 true == true
5469 </Expanded>
5470 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005471 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005472 <Original>
5473 spec.matches( tcD ) == false
5474 </Original>
5475 <Expanded>
5476 false == false
5477 </Expanded>
5478 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005479 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005480 </Section>
5481 <Section name="wildcarded name exclusion, using exclude:, with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005482 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005483 <Original>
5484 spec.hasFilters() == true
5485 </Original>
5486 <Expanded>
5487 true == true
5488 </Expanded>
5489 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005490 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005491 <Original>
5492 spec.matches( tcA ) == true
5493 </Original>
5494 <Expanded>
5495 true == true
5496 </Expanded>
5497 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005498 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005499 <Original>
5500 spec.matches( tcB ) == true
5501 </Original>
5502 <Expanded>
5503 true == true
5504 </Expanded>
5505 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005506 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005507 <Original>
5508 spec.matches( tcC ) == true
5509 </Original>
5510 <Expanded>
5511 true == true
5512 </Expanded>
5513 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005514 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005515 <Original>
5516 spec.matches( tcD ) == false
5517 </Original>
5518 <Expanded>
5519 false == false
5520 </Expanded>
5521 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005522 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005523 </Section>
5524 <Section name="two wildcarded names">
Phil Nashc6635a72014-12-30 18:25:27 +00005525 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005526 <Original>
5527 spec.hasFilters() == true
5528 </Original>
5529 <Expanded>
5530 true == true
5531 </Expanded>
5532 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005533 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005534 <Original>
5535 spec.matches( tcA ) == false
5536 </Original>
5537 <Expanded>
5538 false == false
5539 </Expanded>
5540 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005541 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005542 <Original>
5543 spec.matches( tcB ) == false
5544 </Original>
5545 <Expanded>
5546 false == false
5547 </Expanded>
5548 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005549 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005550 <Original>
5551 spec.matches( tcC ) == true
5552 </Original>
5553 <Expanded>
5554 true == true
5555 </Expanded>
5556 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005557 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005558 <Original>
5559 spec.matches( tcD ) == false
5560 </Original>
5561 <Expanded>
5562 false == false
5563 </Expanded>
5564 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005565 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005566 </Section>
5567 <Section name="empty tag">
Phil Nashc6635a72014-12-30 18:25:27 +00005568 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005569 <Original>
5570 spec.hasFilters() == false
5571 </Original>
5572 <Expanded>
5573 false == false
5574 </Expanded>
5575 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005576 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005577 <Original>
5578 spec.matches( tcA ) == false
5579 </Original>
5580 <Expanded>
5581 false == false
5582 </Expanded>
5583 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005584 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005585 <Original>
5586 spec.matches( tcB ) == false
5587 </Original>
5588 <Expanded>
5589 false == false
5590 </Expanded>
5591 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005592 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005593 <Original>
5594 spec.matches( tcC ) == false
5595 </Original>
5596 <Expanded>
5597 false == false
5598 </Expanded>
5599 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005600 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005601 <Original>
5602 spec.matches( tcD ) == false
5603 </Original>
5604 <Expanded>
5605 false == false
5606 </Expanded>
5607 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005608 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005609 </Section>
5610 <Section name="empty quoted name">
Phil Nashc6635a72014-12-30 18:25:27 +00005611 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005612 <Original>
5613 spec.hasFilters() == false
5614 </Original>
5615 <Expanded>
5616 false == false
5617 </Expanded>
5618 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005619 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005620 <Original>
5621 spec.matches( tcA ) == false
5622 </Original>
5623 <Expanded>
5624 false == false
5625 </Expanded>
5626 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005627 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005628 <Original>
5629 spec.matches( tcB ) == false
5630 </Original>
5631 <Expanded>
5632 false == false
5633 </Expanded>
5634 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005635 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005636 <Original>
5637 spec.matches( tcC ) == false
5638 </Original>
5639 <Expanded>
5640 false == false
5641 </Expanded>
5642 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005643 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005644 <Original>
5645 spec.matches( tcD ) == false
5646 </Original>
5647 <Expanded>
5648 false == false
5649 </Expanded>
5650 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005651 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005652 </Section>
5653 <Section name="quoted string followed by tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00005654 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005655 <Original>
5656 spec.hasFilters() == true
5657 </Original>
5658 <Expanded>
5659 true == true
5660 </Expanded>
5661 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005662 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005663 <Original>
5664 spec.matches( tcA ) == false
5665 </Original>
5666 <Expanded>
5667 false == false
5668 </Expanded>
5669 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005670 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005671 <Original>
5672 spec.matches( tcB ) == false
5673 </Original>
5674 <Expanded>
5675 false == false
5676 </Expanded>
5677 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005678 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005679 <Original>
5680 spec.matches( tcC ) == false
5681 </Original>
5682 <Expanded>
5683 false == false
5684 </Expanded>
5685 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005686 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01005687 <Original>
5688 spec.matches( tcD ) == true
5689 </Original>
5690 <Expanded>
5691 true == true
5692 </Expanded>
5693 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005694 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01005695 </Section>
5696 <OverallResult success="true"/>
5697 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00005698 <TestCase name="Parsing a std::pair">
5699 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash50183202014-12-30 18:47:01 +00005700 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00005701 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
Phil Nash50183202014-12-30 18:47:01 +00005702 </Original>
5703 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00005704 std::pair( 1, 2 ) == std::pair( 1, 2 )
Phil Nash50183202014-12-30 18:47:01 +00005705 </Expanded>
5706 </Expression>
5707 <OverallResult success="true"/>
5708 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00005709 <TestCase name="Pointers can be compared to null">
5710 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash50183202014-12-30 18:47:01 +00005711 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005712 p == 0
Phil Nash50183202014-12-30 18:47:01 +00005713 </Original>
5714 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005715 NULL == 0
Phil Nash79acc052016-11-29 11:32:16 +00005716 </Expanded>
5717 </Expression>
5718 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5719 <Original>
5720 p == pNULL
5721 </Original>
5722 <Expanded>
5723 NULL == NULL
5724 </Expanded>
5725 </Expression>
5726 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5727 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005728 p != 0
Phil Nash79acc052016-11-29 11:32:16 +00005729 </Original>
5730 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005731 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00005732 </Expanded>
5733 </Expression>
5734 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5735 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005736 cp != 0
Phil Nash79acc052016-11-29 11:32:16 +00005737 </Original>
5738 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005739 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00005740 </Expanded>
5741 </Expression>
5742 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5743 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005744 cpc != 0
Phil Nash79acc052016-11-29 11:32:16 +00005745 </Original>
5746 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005747 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00005748 </Expanded>
5749 </Expression>
5750 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5751 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005752 returnsNull() == 0
Phil Nash79acc052016-11-29 11:32:16 +00005753 </Original>
5754 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005755 {null string} == 0
Phil Nash79acc052016-11-29 11:32:16 +00005756 </Expanded>
5757 </Expression>
5758 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5759 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005760 returnsConstNull() == 0
Phil Nash79acc052016-11-29 11:32:16 +00005761 </Original>
5762 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005763 {null string} == 0
Phil Nash79acc052016-11-29 11:32:16 +00005764 </Expanded>
5765 </Expression>
5766 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
5767 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00005768 0 != p
Phil Nash79acc052016-11-29 11:32:16 +00005769 </Original>
5770 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00005771 0 != 0x<hex digits>
Phil Nash50183202014-12-30 18:47:01 +00005772 </Expanded>
5773 </Expression>
5774 <OverallResult success="true"/>
5775 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00005776 <TestCase name="Pointers can be converted to strings">
5777 <Warning>
5778 actual address of p: 0x<hex digits>
5779 </Warning>
5780 <Warning>
5781 toString(p): 0x<hex digits>
5782 </Warning>
Phil Nash50183202014-12-30 18:47:01 +00005783 <OverallResult success="true"/>
5784 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00005785 <TestCase name="Process can be configured on command line">
5786 <Section name="default - no arguments">
5787 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01005788 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00005789 parseIntoConfig( argv, config )
Phil Nash061861d2014-06-30 07:34:27 +01005790 </Original>
5791 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00005792 parseIntoConfig( argv, config )
Phil Nash061861d2014-06-30 07:34:27 +01005793 </Expanded>
5794 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00005795 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01005796 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00005797 config.shouldDebugBreak == false
Phil Nash061861d2014-06-30 07:34:27 +01005798 </Original>
5799 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00005800 false == false
Phil Nash061861d2014-06-30 07:34:27 +01005801 </Expanded>
5802 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00005803 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01005804 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00005805 config.abortAfter == -1
Phil Nash061861d2014-06-30 07:34:27 +01005806 </Original>
5807 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00005808 -1 == -1
Phil Nash061861d2014-06-30 07:34:27 +01005809 </Expanded>
5810 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00005811 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01005812 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00005813 config.noThrow == false
Phil Nash061861d2014-06-30 07:34:27 +01005814 </Original>
5815 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00005816 false == false
Phil Nash061861d2014-06-30 07:34:27 +01005817 </Expanded>
5818 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00005819 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
5820 <Original>
5821 config.reporterNames.empty()
5822 </Original>
5823 <Expanded>
5824 true
5825 </Expanded>
5826 </Expression>
5827 <OverallResults successes="5" failures="0" expectedFailures="0"/>
5828 </Section>
5829 <Section name="test lists">
5830 <Section name="1 test" description="Specify one test case using">
5831 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
5832 <Original>
5833 parseIntoConfig( argv, config )
5834 </Original>
5835 <Expanded>
5836 parseIntoConfig( argv, config )
5837 </Expanded>
5838 </Expression>
5839 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5840 <Original>
5841 cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false
5842 </Original>
5843 <Expanded>
5844 false == false
5845 </Expanded>
5846 </Expression>
5847 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5848 <Original>
5849 cfg.testSpec().matches( fakeTestCase( "test1" ) )
5850 </Original>
5851 <Expanded>
5852 true
5853 </Expanded>
5854 </Expression>
5855 <OverallResults successes="3" failures="0" expectedFailures="0"/>
5856 </Section>
5857 <OverallResults successes="3" failures="0" expectedFailures="0"/>
5858 </Section>
5859 <Section name="test lists">
5860 <Section name="Specify one test case exclusion using exclude:">
5861 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
5862 <Original>
5863 parseIntoConfig( argv, config )
5864 </Original>
5865 <Expanded>
5866 parseIntoConfig( argv, config )
5867 </Expanded>
5868 </Expression>
5869 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5870 <Original>
5871 cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false
5872 </Original>
5873 <Expanded>
5874 false == false
5875 </Expanded>
5876 </Expression>
5877 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5878 <Original>
5879 cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) )
5880 </Original>
5881 <Expanded>
5882 true
5883 </Expanded>
5884 </Expression>
5885 <OverallResults successes="3" failures="0" expectedFailures="0"/>
5886 </Section>
5887 <OverallResults successes="3" failures="0" expectedFailures="0"/>
5888 </Section>
5889 <Section name="test lists">
5890 <Section name="Specify one test case exclusion using ~">
5891 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
5892 <Original>
5893 parseIntoConfig( argv, config )
5894 </Original>
5895 <Expanded>
5896 parseIntoConfig( argv, config )
5897 </Expanded>
5898 </Expression>
5899 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5900 <Original>
5901 cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false
5902 </Original>
5903 <Expanded>
5904 false == false
5905 </Expanded>
5906 </Expression>
5907 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5908 <Original>
5909 cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) )
5910 </Original>
5911 <Expanded>
5912 true
5913 </Expanded>
5914 </Expression>
5915 <OverallResults successes="3" failures="0" expectedFailures="0"/>
5916 </Section>
5917 <OverallResults successes="3" failures="0" expectedFailures="0"/>
5918 </Section>
5919 <Section name="reporter">
5920 <Section name="-r/console">
5921 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
5922 <Original>
5923 parseIntoConfig( argv, config )
5924 </Original>
5925 <Expanded>
5926 parseIntoConfig( argv, config )
5927 </Expanded>
5928 </Expression>
5929 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5930 <Original>
5931 config.reporterNames[0] == "console"
5932 </Original>
5933 <Expanded>
5934 "console" == "console"
5935 </Expanded>
5936 </Expression>
5937 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5938 </Section>
5939 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5940 </Section>
5941 <Section name="reporter">
5942 <Section name="-r/xml">
5943 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
5944 <Original>
5945 parseIntoConfig( argv, config )
5946 </Original>
5947 <Expanded>
5948 parseIntoConfig( argv, config )
5949 </Expanded>
5950 </Expression>
5951 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5952 <Original>
5953 config.reporterNames[0] == "xml"
5954 </Original>
5955 <Expanded>
5956 "xml" == "xml"
5957 </Expanded>
5958 </Expression>
5959 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5960 </Section>
5961 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5962 </Section>
5963 <Section name="reporter">
5964 <Section name="-r xml and junit">
5965 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
5966 <Original>
5967 parseIntoConfig( argv, config )
5968 </Original>
5969 <Expanded>
5970 parseIntoConfig( argv, config )
5971 </Expanded>
5972 </Expression>
5973 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5974 <Original>
5975 config.reporterNames.size() == 2
5976 </Original>
5977 <Expanded>
5978 2 == 2
5979 </Expanded>
5980 </Expression>
5981 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5982 <Original>
5983 config.reporterNames[0] == "xml"
5984 </Original>
5985 <Expanded>
5986 "xml" == "xml"
5987 </Expanded>
5988 </Expression>
5989 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
5990 <Original>
5991 config.reporterNames[1] == "junit"
5992 </Original>
5993 <Expanded>
5994 "junit" == "junit"
5995 </Expanded>
5996 </Expression>
5997 <OverallResults successes="4" failures="0" expectedFailures="0"/>
5998 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005999 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01006000 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00006001 <Section name="reporter">
6002 <Section name="--reporter/junit">
6003 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6004 <Original>
6005 parseIntoConfig( argv, config )
6006 </Original>
6007 <Expanded>
6008 parseIntoConfig( argv, config )
6009 </Expanded>
6010 </Expression>
6011 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6012 <Original>
6013 config.reporterNames[0] == "junit"
6014 </Original>
6015 <Expanded>
6016 "junit" == "junit"
6017 </Expanded>
6018 </Expression>
6019 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6020 </Section>
6021 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01006022 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00006023 <Section name="debugger">
6024 <Section name="-b">
6025 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6026 <Original>
6027 parseIntoConfig( argv, config )
6028 </Original>
6029 <Expanded>
6030 parseIntoConfig( argv, config )
6031 </Expanded>
6032 </Expression>
6033 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6034 <Original>
6035 config.shouldDebugBreak == true
6036 </Original>
6037 <Expanded>
6038 true == true
6039 </Expanded>
6040 </Expression>
6041 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6042 </Section>
6043 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6044 </Section>
6045 <Section name="debugger">
6046 <Section name="--break">
6047 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6048 <Original>
6049 parseIntoConfig( argv, config )
6050 </Original>
6051 <Expanded>
6052 parseIntoConfig( argv, config )
6053 </Expanded>
6054 </Expression>
6055 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6056 <Original>
6057 config.shouldDebugBreak
6058 </Original>
6059 <Expanded>
6060 true
6061 </Expanded>
6062 </Expression>
6063 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6064 </Section>
6065 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6066 </Section>
6067 <Section name="abort">
6068 <Section name="-a aborts after first failure">
6069 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6070 <Original>
6071 parseIntoConfig( argv, config )
6072 </Original>
6073 <Expanded>
6074 parseIntoConfig( argv, config )
6075 </Expanded>
6076 </Expression>
6077 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6078 <Original>
6079 config.abortAfter == 1
6080 </Original>
6081 <Expanded>
6082 1 == 1
6083 </Expanded>
6084 </Expression>
6085 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6086 </Section>
6087 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6088 </Section>
6089 <Section name="abort">
6090 <Section name="-x 2 aborts after two failures">
6091 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6092 <Original>
6093 parseIntoConfig( argv, config )
6094 </Original>
6095 <Expanded>
6096 parseIntoConfig( argv, config )
6097 </Expanded>
6098 </Expression>
6099 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6100 <Original>
6101 config.abortAfter == 2
6102 </Original>
6103 <Expanded>
6104 2 == 2
6105 </Expanded>
6106 </Expression>
6107 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6108 </Section>
6109 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6110 </Section>
6111 <Section name="abort">
6112 <Section name="-x must be greater than zero">
6113 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
6114 <Original>
6115 parseIntoConfigAndReturnError( argv, config ), Contains( "greater than zero" )
6116 </Original>
6117 <Expanded>
6118 "Value after -x or --abortAfter must be greater than zero
6119- while parsing: (-x, --abortx &lt;no. failures>)" contains: "greater than zero"
6120 </Expanded>
6121 </Expression>
6122 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6123 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006124 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006125 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00006126 <Section name="abort">
6127 <Section name="-x must be numeric">
6128 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
6129 <Original>
6130 parseIntoConfigAndReturnError( argv, config ), Contains( "-x" )
6131 </Original>
6132 <Expanded>
6133 "Unable to convert oops to destination type
6134- while parsing: (-x, --abortx &lt;no. failures>)" contains: "-x"
6135 </Expanded>
6136 </Expression>
6137 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6138 </Section>
6139 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6140 </Section>
6141 <Section name="nothrow">
6142 <Section name="-e">
6143 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6144 <Original>
6145 parseIntoConfig( argv, config )
6146 </Original>
6147 <Expanded>
6148 parseIntoConfig( argv, config )
6149 </Expanded>
6150 </Expression>
6151 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6152 <Original>
6153 config.noThrow == true
6154 </Original>
6155 <Expanded>
6156 true == true
6157 </Expanded>
6158 </Expression>
6159 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6160 </Section>
6161 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6162 </Section>
6163 <Section name="nothrow">
6164 <Section name="--nothrow">
6165 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6166 <Original>
6167 parseIntoConfig( argv, config )
6168 </Original>
6169 <Expanded>
6170 parseIntoConfig( argv, config )
6171 </Expanded>
6172 </Expression>
6173 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6174 <Original>
6175 config.noThrow == true
6176 </Original>
6177 <Expanded>
6178 true == true
6179 </Expanded>
6180 </Expression>
6181 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6182 </Section>
6183 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6184 </Section>
6185 <Section name="output filename">
6186 <Section name="-o filename">
6187 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6188 <Original>
6189 parseIntoConfig( argv, config )
6190 </Original>
6191 <Expanded>
6192 parseIntoConfig( argv, config )
6193 </Expanded>
6194 </Expression>
6195 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6196 <Original>
6197 config.outputFilename == "filename.ext"
6198 </Original>
6199 <Expanded>
6200 "filename.ext" == "filename.ext"
6201 </Expanded>
6202 </Expression>
6203 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6204 </Section>
6205 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6206 </Section>
6207 <Section name="output filename">
6208 <Section name="--out">
6209 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6210 <Original>
6211 parseIntoConfig( argv, config )
6212 </Original>
6213 <Expanded>
6214 parseIntoConfig( argv, config )
6215 </Expanded>
6216 </Expression>
6217 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6218 <Original>
6219 config.outputFilename == "filename.ext"
6220 </Original>
6221 <Expanded>
6222 "filename.ext" == "filename.ext"
6223 </Expanded>
6224 </Expression>
6225 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6226 </Section>
6227 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6228 </Section>
6229 <Section name="combinations">
6230 <Section name="Single character flags can be combined">
6231 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6232 <Original>
6233 parseIntoConfig( argv, config )
6234 </Original>
6235 <Expanded>
6236 parseIntoConfig( argv, config )
6237 </Expanded>
6238 </Expression>
6239 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
6240 <Original>
6241 config.abortAfter == 1
6242 </Original>
6243 <Expanded>
6244 1 == 1
6245 </Expanded>
6246 </Expression>
6247 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
6248 <Original>
6249 config.shouldDebugBreak
6250 </Original>
6251 <Expanded>
6252 true
6253 </Expanded>
6254 </Expression>
6255 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
6256 <Original>
6257 config.noThrow == true
6258 </Original>
6259 <Expanded>
6260 true == true
6261 </Expanded>
6262 </Expression>
6263 <OverallResults successes="4" failures="0" expectedFailures="0"/>
6264 </Section>
6265 <OverallResults successes="4" failures="0" expectedFailures="0"/>
6266 </Section>
6267 <Section name="use-colour">
6268 <Section name="without option">
6269 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6270 <Original>
6271 parseIntoConfig( argv, config )
6272 </Original>
6273 <Expanded>
6274 parseIntoConfig( argv, config )
6275 </Expanded>
6276 </Expression>
6277 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6278 <Original>
6279 config.useColour == UseColour::Auto
6280 </Original>
6281 <Expanded>
6282 0 == 0
6283 </Expanded>
6284 </Expression>
6285 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6286 </Section>
6287 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6288 </Section>
6289 <Section name="use-colour">
6290 <Section name="auto">
6291 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6292 <Original>
6293 parseIntoConfig( argv, config )
6294 </Original>
6295 <Expanded>
6296 parseIntoConfig( argv, config )
6297 </Expanded>
6298 </Expression>
6299 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6300 <Original>
6301 config.useColour == UseColour::Auto
6302 </Original>
6303 <Expanded>
6304 0 == 0
6305 </Expanded>
6306 </Expression>
6307 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6308 </Section>
6309 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6310 </Section>
6311 <Section name="use-colour">
6312 <Section name="yes">
6313 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6314 <Original>
6315 parseIntoConfig( argv, config )
6316 </Original>
6317 <Expanded>
6318 parseIntoConfig( argv, config )
6319 </Expanded>
6320 </Expression>
6321 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6322 <Original>
6323 config.useColour == UseColour::Yes
6324 </Original>
6325 <Expanded>
6326 1 == 1
6327 </Expanded>
6328 </Expression>
6329 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6330 </Section>
6331 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6332 </Section>
6333 <Section name="use-colour">
6334 <Section name="no">
6335 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
6336 <Original>
6337 parseIntoConfig( argv, config )
6338 </Original>
6339 <Expanded>
6340 parseIntoConfig( argv, config )
6341 </Expanded>
6342 </Expression>
6343 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
6344 <Original>
6345 config.useColour == UseColour::No
6346 </Original>
6347 <Expanded>
6348 2 == 2
6349 </Expanded>
6350 </Expression>
6351 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6352 </Section>
6353 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6354 </Section>
6355 <Section name="use-colour">
6356 <Section name="error">
6357 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/TestMain.cpp" >
6358 <Original>
6359 parseIntoConfig( argv, config ), Contains( "colour mode must be one of" )
6360 </Original>
6361 <Expanded>
6362 parseIntoConfig( argv, config ), Contains( "colour mode must be one of" )
6363 </Expanded>
6364 </Expression>
6365 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6366 </Section>
6367 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6368 </Section>
6369 <OverallResult success="true"/>
6370 </TestCase>
6371 <TestCase name="SCOPED_INFO is reset for each loop">
6372 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6373 <Original>
6374 i &lt; 10
6375 </Original>
6376 <Expanded>
6377 0 &lt; 10
6378 </Expanded>
6379 </Expression>
6380 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6381 <Original>
6382 i &lt; 10
6383 </Original>
6384 <Expanded>
6385 1 &lt; 10
6386 </Expanded>
6387 </Expression>
6388 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6389 <Original>
6390 i &lt; 10
6391 </Original>
6392 <Expanded>
6393 2 &lt; 10
6394 </Expanded>
6395 </Expression>
6396 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6397 <Original>
6398 i &lt; 10
6399 </Original>
6400 <Expanded>
6401 3 &lt; 10
6402 </Expanded>
6403 </Expression>
6404 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6405 <Original>
6406 i &lt; 10
6407 </Original>
6408 <Expanded>
6409 4 &lt; 10
6410 </Expanded>
6411 </Expression>
6412 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6413 <Original>
6414 i &lt; 10
6415 </Original>
6416 <Expanded>
6417 5 &lt; 10
6418 </Expanded>
6419 </Expression>
6420 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6421 <Original>
6422 i &lt; 10
6423 </Original>
6424 <Expanded>
6425 6 &lt; 10
6426 </Expanded>
6427 </Expression>
6428 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6429 <Original>
6430 i &lt; 10
6431 </Original>
6432 <Expanded>
6433 7 &lt; 10
6434 </Expanded>
6435 </Expression>
6436 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6437 <Original>
6438 i &lt; 10
6439 </Original>
6440 <Expanded>
6441 8 &lt; 10
6442 </Expanded>
6443 </Expression>
6444 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6445 <Original>
6446 i &lt; 10
6447 </Original>
6448 <Expanded>
6449 9 &lt; 10
6450 </Expanded>
6451 </Expression>
6452 <Info>
6453 current counter 10
6454 </Info>
6455 <Info>
6456 i := 10
6457 </Info>
6458 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
6459 <Original>
6460 i &lt; 10
6461 </Original>
6462 <Expanded>
6463 10 &lt; 10
6464 </Expanded>
6465 </Expression>
6466 <OverallResult success="false"/>
6467 </TestCase>
6468 <TestCase name="SUCCEED counts as a test pass">
6469 <OverallResult success="true"/>
6470 </TestCase>
6471 <TestCase name="SUCCESS does not require an argument">
6472 <OverallResult success="true"/>
6473 </TestCase>
6474 <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods">
6475 <Section name="Given: No operations precede me">
6476 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
6477 <Original>
6478 before == 0
6479 </Original>
6480 <Expanded>
6481 0 == 0
6482 </Expanded>
6483 </Expression>
6484 <Section name="When: We get the count">
6485 <Section name="Then: Subsequently values are higher">
6486 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
6487 <Original>
6488 after > before
6489 </Original>
6490 <Expanded>
6491 1 > 0
6492 </Expanded>
6493 </Expression>
6494 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6495 </Section>
6496 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6497 </Section>
6498 <OverallResults successes="2" failures="0" expectedFailures="0"/>
6499 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01006500 <OverallResult success="true"/>
6501 </TestCase>
6502 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00006503 <Section name="Given: This stuff exists">
Phil Nasha1e87a42013-12-10 08:20:46 +00006504 <Section name="When: I do this">
6505 <Section name="Then: it should do this">
Phil Nashc6635a72014-12-30 18:25:27 +00006506 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006507 <Original>
6508 itDoesThis()
6509 </Original>
6510 <Expanded>
6511 true
6512 </Expanded>
6513 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006514 <Section name="And: do that">
Phil Nashc6635a72014-12-30 18:25:27 +00006515 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006516 <Original>
6517 itDoesThat()
6518 </Original>
6519 <Expanded>
6520 true
6521 </Expanded>
6522 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006523 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006524 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006525 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006526 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006527 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006528 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006529 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006530 </Section>
6531 <OverallResult success="true"/>
6532 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00006533 <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping">
6534 <Section name="Given: A section name that is so long that it cannot fit in a single console width">
6535 <Section name="When: The test headers are printed as part of the normal running of the scenario">
6536 <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent">
6537 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6538 </Section>
6539 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6540 </Section>
6541 <OverallResults successes="1" failures="0" expectedFailures="0"/>
6542 </Section>
6543 <OverallResult success="true"/>
6544 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01006545 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00006546 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00006547 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006548 <Original>
6549 v.size() == 0
6550 </Original>
6551 <Expanded>
6552 0 == 0
6553 </Expanded>
6554 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006555 <Section name="When: it is made larger">
6556 <Section name="Then: the size and capacity go up">
Phil Nashc6635a72014-12-30 18:25:27 +00006557 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006558 <Original>
6559 v.size() == 10
6560 </Original>
6561 <Expanded>
6562 10 == 10
6563 </Expanded>
6564 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006565 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006566 <Original>
6567 v.capacity() >= 10
6568 </Original>
6569 <Expanded>
6570 10 >= 10
6571 </Expanded>
6572 </Expression>
6573 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00006574 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nashc6635a72014-12-30 18:25:27 +00006575 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006576 <Original>
6577 v.size() == 5
6578 </Original>
6579 <Expanded>
6580 5 == 5
6581 </Expanded>
6582 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006583 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006584 <Original>
6585 v.capacity() >= 10
6586 </Original>
6587 <Expanded>
6588 10 >= 10
6589 </Expanded>
6590 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006591 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006592 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006593 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006594 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006595 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006596 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006597 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006598 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006599 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006600 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006601 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00006602 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006603 <Original>
6604 v.size() == 0
6605 </Original>
6606 <Expanded>
6607 0 == 0
6608 </Expanded>
6609 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006610 <Section name="When: we reserve more space">
Phil Nasha1e87a42013-12-10 08:20:46 +00006611 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nashc6635a72014-12-30 18:25:27 +00006612 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006613 <Original>
6614 v.capacity() >= 10
6615 </Original>
6616 <Expanded>
6617 10 >= 10
6618 </Expanded>
6619 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006620 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006621 <Original>
6622 v.size() == 0
6623 </Original>
6624 <Expanded>
6625 0 == 0
6626 </Expanded>
6627 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006628 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006629 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006630 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006631 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006632 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006633 </Section>
6634 <OverallResult success="true"/>
6635 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00006636 <TestCase name="Sends stuff to stdout and stderr">
6637 <OverallResult success="true"/>
6638 </TestCase>
6639 <TestCase name="Some simple comparisons between doubles">
6640 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
6641 <Original>
6642 d == Approx( 1.23 )
6643 </Original>
6644 <Expanded>
6645 1.23 == Approx( 1.23 )
6646 </Expanded>
6647 </Expression>
6648 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
6649 <Original>
6650 d != Approx( 1.22 )
6651 </Original>
6652 <Expanded>
6653 1.23 != Approx( 1.22 )
6654 </Expanded>
6655 </Expression>
6656 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
6657 <Original>
6658 d != Approx( 1.24 )
6659 </Original>
6660 <Expanded>
6661 1.23 != Approx( 1.24 )
6662 </Expanded>
6663 </Expression>
6664 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
6665 <Original>
6666 Approx( d ) == 1.23
6667 </Original>
6668 <Expanded>
6669 Approx( 1.23 ) == 1.23
6670 </Expanded>
6671 </Expression>
6672 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
6673 <Original>
6674 Approx( d ) != 1.22
6675 </Original>
6676 <Expanded>
6677 Approx( 1.23 ) != 1.22
6678 </Expanded>
6679 </Expression>
6680 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
6681 <Original>
6682 Approx( d ) != 1.24
6683 </Original>
6684 <Expanded>
6685 Approx( 1.23 ) != 1.24
6686 </Expanded>
6687 </Expression>
6688 <OverallResult success="true"/>
6689 </TestCase>
6690 <TestCase name="Standard output from all sections is reported">
6691 <Section name="one">
6692 <OverallResults successes="0" failures="1" expectedFailures="0"/>
6693 </Section>
6694 <Section name="two">
6695 <OverallResults successes="0" failures="1" expectedFailures="0"/>
6696 </Section>
6697 <OverallResult success="false"/>
6698 </TestCase>
6699 <TestCase name="StartsWith string matcher">
6700 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
6701 <Original>
6702 testStringForMatching(), StartsWith( "string" )
6703 </Original>
6704 <Expanded>
6705 "this string contains 'abc' as a substring" starts with: "string"
6706 </Expanded>
6707 </Expression>
6708 <OverallResult success="false"/>
6709 </TestCase>
6710 <TestCase name="String matchers">
6711 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
6712 <Original>
6713 testStringForMatching(), Contains( "string" )
6714 </Original>
6715 <Expanded>
6716 "this string contains 'abc' as a substring" contains: "string"
6717 </Expanded>
6718 </Expression>
6719 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
6720 <Original>
6721 testStringForMatching(), Contains( "abc" )
6722 </Original>
6723 <Expanded>
6724 "this string contains 'abc' as a substring" contains: "abc"
6725 </Expanded>
6726 </Expression>
6727 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
6728 <Original>
6729 testStringForMatching(), StartsWith( "this" )
6730 </Original>
6731 <Expanded>
6732 "this string contains 'abc' as a substring" starts with: "this"
6733 </Expanded>
6734 </Expression>
6735 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
6736 <Original>
6737 testStringForMatching(), EndsWith( "substring" )
6738 </Original>
6739 <Expanded>
6740 "this string contains 'abc' as a substring" ends with: "substring"
6741 </Expanded>
6742 </Expression>
6743 <OverallResult success="true"/>
6744 </TestCase>
6745 <TestCase name="Strings can be rendered with colour">
6746 <OverallResult success="true"/>
6747 </TestCase>
6748 <TestCase name="Tabs and newlines show in output">
6749 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
6750 <Original>
6751 s1 == s2
6752 </Original>
6753 <Expanded>
6754 "if ($b == 10) {
6755 $a = 20;
6756}"
6757==
6758"if ($b == 10) {
6759 $a = 20;
6760}
6761"
6762 </Expanded>
6763 </Expression>
6764 <OverallResult success="false"/>
6765 </TestCase>
6766 <TestCase name="Tag alias can be registered against tag patterns">
6767 <Section name="The same tag alias can only be registered once">
6768 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
6769 <Original>
6770 what, Contains( "[@zzz]" )
6771 </Original>
6772 <Expanded>
6773 "error: tag alias, "[@zzz]" already registered.
6774 First seen at file:2
6775 Redefined at file:10" contains: "[@zzz]"
6776 </Expanded>
6777 </Expression>
6778 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
6779 <Original>
6780 what, Contains( "file" )
6781 </Original>
6782 <Expanded>
6783 "error: tag alias, "[@zzz]" already registered.
6784 First seen at file:2
6785 Redefined at file:10" contains: "file"
6786 </Expanded>
6787 </Expression>
6788 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
6789 <Original>
6790 what, Contains( "2" )
6791 </Original>
6792 <Expanded>
6793 "error: tag alias, "[@zzz]" already registered.
6794 First seen at file:2
6795 Redefined at file:10" contains: "2"
6796 </Expanded>
6797 </Expression>
6798 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
6799 <Original>
6800 what, Contains( "10" )
6801 </Original>
6802 <Expanded>
6803 "error: tag alias, "[@zzz]" already registered.
6804 First seen at file:2
6805 Redefined at file:10" contains: "10"
6806 </Expanded>
6807 </Expression>
6808 <OverallResults successes="4" failures="0" expectedFailures="0"/>
6809 </Section>
6810 <Section name="Tag aliases must be of the form [@name]">
6811 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
6812 <Original>
6813 registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
6814 </Original>
6815 <Expanded>
6816 registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
6817 </Expanded>
6818 </Expression>
6819 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
6820 <Original>
6821 registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
6822 </Original>
6823 <Expanded>
6824 registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
6825 </Expanded>
6826 </Expression>
6827 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
6828 <Original>
6829 registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
6830 </Original>
6831 <Expanded>
6832 registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
6833 </Expanded>
6834 </Expression>
6835 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
6836 <Original>
6837 registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
6838 </Original>
6839 <Expanded>
6840 registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
6841 </Expanded>
6842 </Expression>
6843 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006844 </Section>
6845 <OverallResult success="true"/>
6846 </TestCase>
Phil Nash79acc052016-11-29 11:32:16 +00006847 <TestCase name="Test case with one argument">
6848 <OverallResult success="true"/>
6849 </TestCase>
6850 <TestCase name="Test enum bit values">
6851 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
6852 <Original>
6853 0x<hex digits> == bit30and31
6854 </Original>
6855 <Expanded>
6856 3221225472 (0x<hex digits>) == 3221225472
6857 </Expanded>
6858 </Expression>
6859 <OverallResult success="true"/>
6860 </TestCase>
6861 <TestCase name="Text can be formatted using the Text class">
6862 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
6863 <Original>
6864 Text( "hi there" ).toString() == "hi there"
6865 </Original>
6866 <Expanded>
6867 "hi there" == "hi there"
6868 </Expanded>
6869 </Expression>
6870 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
6871 <Original>
6872 Text( "hi there", narrow ).toString() == "hi\nthere"
6873 </Original>
6874 <Expanded>
6875 "hi
6876there"
6877==
6878"hi
6879there"
6880 </Expanded>
6881 </Expression>
6882 <OverallResult success="true"/>
6883 </TestCase>
6884 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
6885 <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" >
6886 <Original>
6887 1 == 2
6888 </Original>
6889 <Expanded>
6890 1 == 2
6891 </Expanded>
6892 </Expression>
6893 <OverallResult success="true"/>
6894 </TestCase>
6895 <TestCase name="This test 'should' fail but doesn't">
6896 <OverallResult success="false"/>
6897 </TestCase>
6898 <TestCase name="Tracker">
6899 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6900 <Original>
6901 testCase.isOpen()
6902 </Original>
6903 <Expanded>
6904 true
6905 </Expanded>
6906 </Expression>
6907 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6908 <Original>
6909 s1.isOpen()
6910 </Original>
6911 <Expanded>
6912 true
6913 </Expanded>
6914 </Expression>
6915 <Section name="successfully close one section">
6916 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01006917 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00006918 s1.isSuccessfullyCompleted()
6919 </Original>
6920 <Expanded>
6921 true
6922 </Expanded>
6923 </Expression>
6924 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6925 <Original>
6926 testCase.isComplete() == false
6927 </Original>
6928 <Expanded>
6929 false == false
6930 </Expanded>
6931 </Expression>
6932 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6933 <Original>
6934 ctx.completedCycle()
6935 </Original>
6936 <Expanded>
6937 true
6938 </Expanded>
6939 </Expression>
6940 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6941 <Original>
6942 testCase.isSuccessfullyCompleted()
6943 </Original>
6944 <Expanded>
6945 true
6946 </Expanded>
6947 </Expression>
6948 <OverallResults successes="4" failures="0" expectedFailures="0"/>
6949 </Section>
6950 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6951 <Original>
6952 testCase.isOpen()
6953 </Original>
6954 <Expanded>
6955 true
6956 </Expanded>
6957 </Expression>
6958 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6959 <Original>
6960 s1.isOpen()
6961 </Original>
6962 <Expanded>
6963 true
6964 </Expanded>
6965 </Expression>
6966 <Section name="fail one section">
6967 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6968 <Original>
6969 s1.isComplete()
6970 </Original>
6971 <Expanded>
6972 true
6973 </Expanded>
6974 </Expression>
6975 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6976 <Original>
6977 s1.isSuccessfullyCompleted() == false
6978 </Original>
6979 <Expanded>
6980 false == false
6981 </Expanded>
6982 </Expression>
6983 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6984 <Original>
6985 testCase.isComplete() == false
6986 </Original>
6987 <Expanded>
6988 false == false
6989 </Expanded>
6990 </Expression>
6991 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6992 <Original>
6993 ctx.completedCycle()
6994 </Original>
6995 <Expanded>
6996 true
6997 </Expanded>
6998 </Expression>
6999 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7000 <Original>
7001 testCase.isSuccessfullyCompleted() == false
7002 </Original>
7003 <Expanded>
7004 false == false
7005 </Expanded>
7006 </Expression>
7007 <Section name="re-enter after failed section">
7008 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7009 <Original>
7010 testCase2.isOpen()
7011 </Original>
7012 <Expanded>
7013 true
7014 </Expanded>
7015 </Expression>
7016 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7017 <Original>
7018 s1b.isOpen() == false
7019 </Original>
7020 <Expanded>
7021 false == false
7022 </Expanded>
7023 </Expression>
7024 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7025 <Original>
7026 ctx.completedCycle()
7027 </Original>
7028 <Expanded>
7029 true
7030 </Expanded>
7031 </Expression>
7032 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7033 <Original>
7034 testCase.isComplete()
7035 </Original>
7036 <Expanded>
7037 true
7038 </Expanded>
7039 </Expression>
7040 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7041 <Original>
7042 testCase.isSuccessfullyCompleted()
7043 </Original>
7044 <Expanded>
7045 true
7046 </Expanded>
7047 </Expression>
7048 <OverallResults successes="5" failures="0" expectedFailures="0"/>
7049 </Section>
7050 <OverallResults successes="10" failures="0" expectedFailures="0"/>
7051 </Section>
7052 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7053 <Original>
7054 testCase.isOpen()
7055 </Original>
7056 <Expanded>
7057 true
7058 </Expanded>
7059 </Expression>
7060 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7061 <Original>
7062 s1.isOpen()
7063 </Original>
7064 <Expanded>
7065 true
7066 </Expanded>
7067 </Expression>
7068 <Section name="fail one section">
7069 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7070 <Original>
7071 s1.isComplete()
7072 </Original>
7073 <Expanded>
7074 true
7075 </Expanded>
7076 </Expression>
7077 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7078 <Original>
7079 s1.isSuccessfullyCompleted() == false
7080 </Original>
7081 <Expanded>
7082 false == false
7083 </Expanded>
7084 </Expression>
7085 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7086 <Original>
7087 testCase.isComplete() == false
7088 </Original>
7089 <Expanded>
7090 false == false
7091 </Expanded>
7092 </Expression>
7093 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7094 <Original>
7095 ctx.completedCycle()
7096 </Original>
7097 <Expanded>
7098 true
7099 </Expanded>
7100 </Expression>
7101 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7102 <Original>
7103 testCase.isSuccessfullyCompleted() == false
7104 </Original>
7105 <Expanded>
7106 false == false
7107 </Expanded>
7108 </Expression>
7109 <Section name="re-enter after failed section and find next section">
7110 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7111 <Original>
7112 testCase2.isOpen()
7113 </Original>
7114 <Expanded>
7115 true
7116 </Expanded>
7117 </Expression>
7118 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7119 <Original>
7120 s1b.isOpen() == false
7121 </Original>
7122 <Expanded>
7123 false == false
7124 </Expanded>
7125 </Expression>
7126 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7127 <Original>
7128 s2.isOpen()
7129 </Original>
7130 <Expanded>
7131 true
7132 </Expanded>
7133 </Expression>
7134 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7135 <Original>
7136 ctx.completedCycle()
7137 </Original>
7138 <Expanded>
7139 true
7140 </Expanded>
7141 </Expression>
7142 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7143 <Original>
7144 testCase.isComplete()
7145 </Original>
7146 <Expanded>
7147 true
7148 </Expanded>
7149 </Expression>
7150 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7151 <Original>
7152 testCase.isSuccessfullyCompleted()
7153 </Original>
7154 <Expanded>
7155 true
7156 </Expanded>
7157 </Expression>
7158 <OverallResults successes="6" failures="0" expectedFailures="0"/>
7159 </Section>
7160 <OverallResults successes="11" failures="0" expectedFailures="0"/>
7161 </Section>
7162 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7163 <Original>
7164 testCase.isOpen()
7165 </Original>
7166 <Expanded>
7167 true
7168 </Expanded>
7169 </Expression>
7170 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7171 <Original>
7172 s1.isOpen()
7173 </Original>
7174 <Expanded>
7175 true
7176 </Expanded>
7177 </Expression>
7178 <Section name="successfully close one section, then find another">
7179 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7180 <Original>
7181 s2.isOpen() == false
7182 </Original>
7183 <Expanded>
7184 false == false
7185 </Expanded>
7186 </Expression>
7187 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7188 <Original>
7189 testCase.isComplete() == false
7190 </Original>
7191 <Expanded>
7192 false == false
7193 </Expanded>
7194 </Expression>
7195 <Section name="Re-enter - skips S1 and enters S2">
7196 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7197 <Original>
7198 testCase2.isOpen()
7199 </Original>
7200 <Expanded>
7201 true
7202 </Expanded>
7203 </Expression>
7204 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7205 <Original>
7206 s1b.isOpen() == false
7207 </Original>
7208 <Expanded>
7209 false == false
7210 </Expanded>
7211 </Expression>
7212 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7213 <Original>
7214 s2b.isOpen()
7215 </Original>
7216 <Expanded>
7217 true
7218 </Expanded>
7219 </Expression>
7220 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7221 <Original>
7222 ctx.completedCycle() == false
7223 </Original>
7224 <Expanded>
7225 false == false
7226 </Expanded>
7227 </Expression>
7228 <Section name="Successfully close S2">
7229 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7230 <Original>
7231 ctx.completedCycle()
7232 </Original>
7233 <Expanded>
7234 true
7235 </Expanded>
7236 </Expression>
7237 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7238 <Original>
7239 s2b.isSuccessfullyCompleted()
7240 </Original>
7241 <Expanded>
7242 true
7243 </Expanded>
7244 </Expression>
7245 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7246 <Original>
7247 testCase2.isComplete() == false
7248 </Original>
7249 <Expanded>
7250 false == false
7251 </Expanded>
7252 </Expression>
7253 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7254 <Original>
7255 testCase2.isSuccessfullyCompleted()
7256 </Original>
7257 <Expanded>
7258 true
7259 </Expanded>
7260 </Expression>
7261 <OverallResults successes="4" failures="0" expectedFailures="0"/>
7262 </Section>
7263 <OverallResults successes="8" failures="0" expectedFailures="0"/>
7264 </Section>
7265 <OverallResults successes="10" failures="0" expectedFailures="0"/>
7266 </Section>
7267 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7268 <Original>
7269 testCase.isOpen()
7270 </Original>
7271 <Expanded>
7272 true
7273 </Expanded>
7274 </Expression>
7275 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7276 <Original>
7277 s1.isOpen()
7278 </Original>
7279 <Expanded>
7280 true
7281 </Expanded>
7282 </Expression>
7283 <Section name="successfully close one section, then find another">
7284 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7285 <Original>
7286 s2.isOpen() == false
7287 </Original>
7288 <Expanded>
7289 false == false
7290 </Expanded>
7291 </Expression>
7292 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7293 <Original>
7294 testCase.isComplete() == false
7295 </Original>
7296 <Expanded>
7297 false == false
7298 </Expanded>
7299 </Expression>
7300 <Section name="Re-enter - skips S1 and enters S2">
7301 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7302 <Original>
7303 testCase2.isOpen()
7304 </Original>
7305 <Expanded>
7306 true
7307 </Expanded>
7308 </Expression>
7309 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7310 <Original>
7311 s1b.isOpen() == false
7312 </Original>
7313 <Expanded>
7314 false == false
7315 </Expanded>
7316 </Expression>
7317 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7318 <Original>
7319 s2b.isOpen()
7320 </Original>
7321 <Expanded>
7322 true
7323 </Expanded>
7324 </Expression>
7325 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7326 <Original>
7327 ctx.completedCycle() == false
7328 </Original>
7329 <Expanded>
7330 false == false
7331 </Expanded>
7332 </Expression>
7333 <Section name="fail S2">
7334 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7335 <Original>
7336 ctx.completedCycle()
7337 </Original>
7338 <Expanded>
7339 true
7340 </Expanded>
7341 </Expression>
7342 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7343 <Original>
7344 s2b.isComplete()
7345 </Original>
7346 <Expanded>
7347 true
7348 </Expanded>
7349 </Expression>
7350 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7351 <Original>
7352 s2b.isSuccessfullyCompleted() == false
7353 </Original>
7354 <Expanded>
7355 false == false
7356 </Expanded>
7357 </Expression>
7358 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7359 <Original>
7360 testCase2.isSuccessfullyCompleted() == false
7361 </Original>
7362 <Expanded>
7363 false == false
7364 </Expanded>
7365 </Expression>
7366 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7367 <Original>
7368 testCase3.isOpen()
7369 </Original>
7370 <Expanded>
7371 true
7372 </Expanded>
7373 </Expression>
7374 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7375 <Original>
7376 s1c.isOpen() == false
7377 </Original>
7378 <Expanded>
7379 false == false
7380 </Expanded>
7381 </Expression>
7382 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7383 <Original>
7384 s2c.isOpen() == false
7385 </Original>
7386 <Expanded>
7387 false == false
7388 </Expanded>
7389 </Expression>
7390 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7391 <Original>
7392 testCase3.isSuccessfullyCompleted()
7393 </Original>
7394 <Expanded>
7395 true
7396 </Expanded>
7397 </Expression>
7398 <OverallResults successes="8" failures="0" expectedFailures="0"/>
7399 </Section>
7400 <OverallResults successes="12" failures="0" expectedFailures="0"/>
7401 </Section>
7402 <OverallResults successes="14" failures="0" expectedFailures="0"/>
7403 </Section>
7404 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7405 <Original>
7406 testCase.isOpen()
7407 </Original>
7408 <Expanded>
7409 true
7410 </Expanded>
7411 </Expression>
7412 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7413 <Original>
7414 s1.isOpen()
7415 </Original>
7416 <Expanded>
7417 true
7418 </Expanded>
7419 </Expression>
7420 <Section name="open a nested section">
7421 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7422 <Original>
7423 s2.isOpen()
7424 </Original>
7425 <Expanded>
7426 true
7427 </Expanded>
7428 </Expression>
7429 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7430 <Original>
7431 s2.isComplete()
7432 </Original>
7433 <Expanded>
7434 true
7435 </Expanded>
7436 </Expression>
7437 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7438 <Original>
7439 s1.isComplete() == false
7440 </Original>
7441 <Expanded>
7442 false == false
7443 </Expanded>
7444 </Expression>
7445 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7446 <Original>
7447 s1.isComplete()
7448 </Original>
7449 <Expanded>
7450 true
7451 </Expanded>
7452 </Expression>
7453 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7454 <Original>
7455 testCase.isComplete() == false
7456 </Original>
7457 <Expanded>
7458 false == false
7459 </Expanded>
7460 </Expression>
7461 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7462 <Original>
7463 testCase.isComplete()
7464 </Original>
7465 <Expanded>
7466 true
7467 </Expanded>
7468 </Expression>
7469 <OverallResults successes="6" failures="0" expectedFailures="0"/>
7470 </Section>
7471 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7472 <Original>
7473 testCase.isOpen()
7474 </Original>
7475 <Expanded>
7476 true
7477 </Expanded>
7478 </Expression>
7479 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7480 <Original>
7481 s1.isOpen()
7482 </Original>
7483 <Expanded>
7484 true
7485 </Expanded>
7486 </Expression>
7487 <Section name="start a generator">
7488 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7489 <Original>
7490 g1.isOpen()
7491 </Original>
7492 <Expanded>
7493 true
7494 </Expanded>
7495 </Expression>
7496 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7497 <Original>
7498 g1.index() == 0
Phil Nash8b5a4e92014-08-20 08:08:13 +01007499 </Original>
7500 <Expanded>
7501 0 == 0
7502 </Expanded>
7503 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00007504 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7505 <Original>
7506 g1.isComplete() == false
7507 </Original>
7508 <Expanded>
7509 false == false
7510 </Expanded>
7511 </Expression>
7512 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7513 <Original>
7514 s1.isComplete() == false
7515 </Original>
7516 <Expanded>
7517 false == false
7518 </Expanded>
7519 </Expression>
7520 <Section name="close outer section">
7521 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7522 <Original>
7523 s1.isComplete() == false
7524 </Original>
7525 <Expanded>
7526 false == false
7527 </Expanded>
7528 </Expression>
7529 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7530 <Original>
7531 testCase.isSuccessfullyCompleted() == false
7532 </Original>
7533 <Expanded>
7534 false == false
7535 </Expanded>
7536 </Expression>
7537 <Section name="Re-enter for second generation">
7538 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01007539 <Original>
Phil Nash79acc052016-11-29 11:32:16 +00007540 testCase2.isOpen()
Phil Nash8b5a4e92014-08-20 08:08:13 +01007541 </Original>
7542 <Expanded>
Phil Nash79acc052016-11-29 11:32:16 +00007543 true
Phil Nash8b5a4e92014-08-20 08:08:13 +01007544 </Expanded>
7545 </Expression>
Phil Nash79acc052016-11-29 11:32:16 +00007546 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7547 <Original>
7548 s1b.isOpen()
7549 </Original>
7550 <Expanded>
7551 true
7552 </Expanded>
7553 </Expression>
7554 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7555 <Original>
7556 g1b.isOpen()
7557 </Original>
7558 <Expanded>
7559 true
7560 </Expanded>
7561 </Expression>
7562 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7563 <Original>
7564 g1b.index() == 1
7565 </Original>
7566 <Expanded>
7567 1 == 1
7568 </Expanded>
7569 </Expression>
7570 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7571 <Original>
7572 s1.isComplete() == false
7573 </Original>
7574 <Expanded>
7575 false == false
7576 </Expanded>
7577 </Expression>
7578 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7579 <Original>
7580 s1b.isComplete()
7581 </Original>
7582 <Expanded>
7583 true
7584 </Expanded>
7585 </Expression>
7586 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7587 <Original>
7588 g1b.isComplete()
7589 </Original>
7590 <Expanded>
7591 true
7592 </Expanded>
7593 </Expression>
7594 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7595 <Original>
7596 testCase2.isComplete()
7597 </Original>
7598 <Expanded>
7599 true
7600 </Expanded>
7601 </Expression>
7602 <OverallResults successes="8" failures="0" expectedFailures="0"/>
Phil Nash8b5a4e92014-08-20 08:08:13 +01007603 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00007604 <OverallResults successes="10" failures="0" expectedFailures="0"/>
7605 </Section>
7606 <OverallResults successes="14" failures="0" expectedFailures="0"/>
7607 </Section>
7608 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7609 <Original>
7610 testCase.isOpen()
7611 </Original>
7612 <Expanded>
7613 true
7614 </Expanded>
7615 </Expression>
7616 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7617 <Original>
7618 s1.isOpen()
7619 </Original>
7620 <Expanded>
7621 true
7622 </Expanded>
7623 </Expression>
7624 <Section name="start a generator">
7625 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7626 <Original>
7627 g1.isOpen()
7628 </Original>
7629 <Expanded>
7630 true
7631 </Expanded>
7632 </Expression>
7633 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7634 <Original>
7635 g1.index() == 0
7636 </Original>
7637 <Expanded>
7638 0 == 0
7639 </Expanded>
7640 </Expression>
7641 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7642 <Original>
7643 g1.isComplete() == false
7644 </Original>
7645 <Expanded>
7646 false == false
7647 </Expanded>
7648 </Expression>
7649 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7650 <Original>
7651 s1.isComplete() == false
7652 </Original>
7653 <Expanded>
7654 false == false
7655 </Expanded>
7656 </Expression>
7657 <Section name="Start a new inner section">
7658 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7659 <Original>
7660 s2.isOpen()
7661 </Original>
7662 <Expanded>
7663 true
7664 </Expanded>
7665 </Expression>
7666 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7667 <Original>
7668 s2.isComplete()
7669 </Original>
7670 <Expanded>
7671 true
7672 </Expanded>
7673 </Expression>
7674 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7675 <Original>
7676 s1.isComplete() == false
7677 </Original>
7678 <Expanded>
7679 false == false
7680 </Expanded>
7681 </Expression>
7682 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7683 <Original>
7684 testCase.isComplete() == false
7685 </Original>
7686 <Expanded>
7687 false == false
7688 </Expanded>
7689 </Expression>
7690 <Section name="Re-enter for second generation">
7691 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7692 <Original>
7693 testCase2.isOpen()
7694 </Original>
7695 <Expanded>
7696 true
7697 </Expanded>
7698 </Expression>
7699 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7700 <Original>
7701 s1b.isOpen()
7702 </Original>
7703 <Expanded>
7704 true
7705 </Expanded>
7706 </Expression>
7707 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7708 <Original>
7709 g1b.isOpen()
7710 </Original>
7711 <Expanded>
7712 true
7713 </Expanded>
7714 </Expression>
7715 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7716 <Original>
7717 g1b.index() == 1
7718 </Original>
7719 <Expanded>
7720 1 == 1
7721 </Expanded>
7722 </Expression>
7723 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7724 <Original>
7725 s2b.isOpen()
7726 </Original>
7727 <Expanded>
7728 true
7729 </Expanded>
7730 </Expression>
7731 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7732 <Original>
7733 s2b.isComplete()
7734 </Original>
7735 <Expanded>
7736 true
7737 </Expanded>
7738 </Expression>
7739 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7740 <Original>
7741 g1b.isComplete()
7742 </Original>
7743 <Expanded>
7744 true
7745 </Expanded>
7746 </Expression>
7747 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7748 <Original>
7749 s1b.isComplete()
7750 </Original>
7751 <Expanded>
7752 true
7753 </Expanded>
7754 </Expression>
7755 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7756 <Original>
7757 testCase2.isComplete()
7758 </Original>
7759 <Expanded>
7760 true
7761 </Expanded>
7762 </Expression>
7763 <OverallResults successes="9" failures="0" expectedFailures="0"/>
7764 </Section>
7765 <OverallResults successes="13" failures="0" expectedFailures="0"/>
7766 </Section>
7767 <OverallResults successes="17" failures="0" expectedFailures="0"/>
7768 </Section>
7769 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7770 <Original>
7771 testCase.isOpen()
7772 </Original>
7773 <Expanded>
7774 true
7775 </Expanded>
7776 </Expression>
7777 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7778 <Original>
7779 s1.isOpen()
7780 </Original>
7781 <Expanded>
7782 true
7783 </Expanded>
7784 </Expression>
7785 <Section name="start a generator">
7786 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7787 <Original>
7788 g1.isOpen()
7789 </Original>
7790 <Expanded>
7791 true
7792 </Expanded>
7793 </Expression>
7794 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7795 <Original>
7796 g1.index() == 0
7797 </Original>
7798 <Expanded>
7799 0 == 0
7800 </Expanded>
7801 </Expression>
7802 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7803 <Original>
7804 g1.isComplete() == false
7805 </Original>
7806 <Expanded>
7807 false == false
7808 </Expanded>
7809 </Expression>
7810 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7811 <Original>
7812 s1.isComplete() == false
7813 </Original>
7814 <Expanded>
7815 false == false
7816 </Expanded>
7817 </Expression>
7818 <Section name="Fail an inner section">
7819 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7820 <Original>
7821 s2.isOpen()
7822 </Original>
7823 <Expanded>
7824 true
7825 </Expanded>
7826 </Expression>
7827 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7828 <Original>
7829 s2.isComplete()
7830 </Original>
7831 <Expanded>
7832 true
7833 </Expanded>
7834 </Expression>
7835 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7836 <Original>
7837 s2.isSuccessfullyCompleted() == false
7838 </Original>
7839 <Expanded>
7840 false == false
7841 </Expanded>
7842 </Expression>
7843 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7844 <Original>
7845 s1.isComplete() == false
7846 </Original>
7847 <Expanded>
7848 false == false
7849 </Expanded>
7850 </Expression>
7851 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7852 <Original>
7853 testCase.isComplete() == false
7854 </Original>
7855 <Expanded>
7856 false == false
7857 </Expanded>
7858 </Expression>
7859 <Section name="Re-enter for second generation">
7860 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7861 <Original>
7862 testCase2.isOpen()
7863 </Original>
7864 <Expanded>
7865 true
7866 </Expanded>
7867 </Expression>
7868 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7869 <Original>
7870 s1b.isOpen()
7871 </Original>
7872 <Expanded>
7873 true
7874 </Expanded>
7875 </Expression>
7876 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7877 <Original>
7878 g1b.isOpen()
7879 </Original>
7880 <Expanded>
7881 true
7882 </Expanded>
7883 </Expression>
7884 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7885 <Original>
7886 g1b.index() == 0
7887 </Original>
7888 <Expanded>
7889 0 == 0
7890 </Expanded>
7891 </Expression>
7892 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7893 <Original>
7894 s2b.isOpen() == false
7895 </Original>
7896 <Expanded>
7897 false == false
7898 </Expanded>
7899 </Expression>
7900 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7901 <Original>
7902 g1b.isComplete() == false
7903 </Original>
7904 <Expanded>
7905 false == false
7906 </Expanded>
7907 </Expression>
7908 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7909 <Original>
7910 s1b.isComplete() == false
7911 </Original>
7912 <Expanded>
7913 false == false
7914 </Expanded>
7915 </Expression>
7916 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7917 <Original>
7918 testCase2.isComplete() == false
7919 </Original>
7920 <Expanded>
7921 false == false
7922 </Expanded>
7923 </Expression>
7924 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7925 <Original>
7926 testCase3.isOpen()
7927 </Original>
7928 <Expanded>
7929 true
7930 </Expanded>
7931 </Expression>
7932 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7933 <Original>
7934 s1c.isOpen()
7935 </Original>
7936 <Expanded>
7937 true
7938 </Expanded>
7939 </Expression>
7940 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7941 <Original>
7942 g1c.isOpen()
7943 </Original>
7944 <Expanded>
7945 true
7946 </Expanded>
7947 </Expression>
7948 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7949 <Original>
7950 g1c.index() == 1
7951 </Original>
7952 <Expanded>
7953 1 == 1
7954 </Expanded>
7955 </Expression>
7956 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7957 <Original>
7958 s2c.isOpen()
7959 </Original>
7960 <Expanded>
7961 true
7962 </Expanded>
7963 </Expression>
7964 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7965 <Original>
7966 s2c.isComplete()
7967 </Original>
7968 <Expanded>
7969 true
7970 </Expanded>
7971 </Expression>
7972 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7973 <Original>
7974 g1c.isComplete()
7975 </Original>
7976 <Expanded>
7977 true
7978 </Expanded>
7979 </Expression>
7980 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7981 <Original>
7982 s1c.isComplete()
7983 </Original>
7984 <Expanded>
7985 true
7986 </Expanded>
7987 </Expression>
7988 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7989 <Original>
7990 testCase3.isComplete()
7991 </Original>
7992 <Expanded>
7993 true
7994 </Expanded>
7995 </Expression>
7996 <OverallResults successes="17" failures="0" expectedFailures="0"/>
7997 </Section>
7998 <OverallResults successes="22" failures="0" expectedFailures="0"/>
7999 </Section>
8000 <OverallResults successes="26" failures="0" expectedFailures="0"/>
8001 </Section>
8002 <OverallResult success="true"/>
8003 </TestCase>
8004 <TestCase name="Unexpected exceptions can be translated">
8005 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
8006 3.14
8007 </Exception>
8008 <OverallResult success="false"/>
8009 </TestCase>
8010 <TestCase name="Use a custom approx">
8011 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8012 <Original>
8013 d == approx( 1.23 )
8014 </Original>
8015 <Expanded>
8016 1.23 == Approx( 1.23 )
8017 </Expanded>
8018 </Expression>
8019 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8020 <Original>
8021 d == approx( 1.22 )
8022 </Original>
8023 <Expanded>
8024 1.23 == Approx( 1.22 )
8025 </Expanded>
8026 </Expression>
8027 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8028 <Original>
8029 d == approx( 1.24 )
8030 </Original>
8031 <Expanded>
8032 1.23 == Approx( 1.24 )
8033 </Expanded>
8034 </Expression>
8035 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8036 <Original>
8037 d != approx( 1.25 )
8038 </Original>
8039 <Expanded>
8040 1.23 != Approx( 1.25 )
8041 </Expanded>
8042 </Expression>
8043 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8044 <Original>
8045 approx( d ) == 1.23
8046 </Original>
8047 <Expanded>
8048 Approx( 1.23 ) == 1.23
8049 </Expanded>
8050 </Expression>
8051 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8052 <Original>
8053 approx( d ) == 1.22
8054 </Original>
8055 <Expanded>
8056 Approx( 1.23 ) == 1.22
8057 </Expanded>
8058 </Expression>
8059 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8060 <Original>
8061 approx( d ) == 1.24
8062 </Original>
8063 <Expanded>
8064 Approx( 1.23 ) == 1.24
8065 </Expanded>
8066 </Expression>
8067 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
8068 <Original>
8069 approx( d ) != 1.25
8070 </Original>
8071 <Expanded>
8072 Approx( 1.23 ) != 1.25
8073 </Expanded>
8074 </Expression>
8075 <OverallResult success="true"/>
8076 </TestCase>
8077 <TestCase name="Variadic macros">
8078 <Section name="Section with one argument">
8079 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8080 </Section>
8081 <OverallResult success="true"/>
8082 </TestCase>
8083 <TestCase name="When checked exceptions are thrown they can be expected or unexpected">
8084 <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
8085 <Original>
8086 thisThrows()
8087 </Original>
8088 <Expanded>
8089 thisThrows()
8090 </Expanded>
8091 </Expression>
8092 <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
8093 <Original>
8094 thisDoesntThrow()
8095 </Original>
8096 <Expanded>
8097 thisDoesntThrow()
8098 </Expanded>
8099 </Expression>
8100 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
8101 <Original>
8102 thisThrows()
8103 </Original>
8104 <Expanded>
8105 thisThrows()
8106 </Expanded>
8107 </Expression>
8108 <OverallResult success="true"/>
8109 </TestCase>
8110 <TestCase name="When unchecked exceptions are thrown directly they are always failures">
8111 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
8112 unexpected exception
8113 </Exception>
8114 <OverallResult success="false"/>
8115 </TestCase>
8116 <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail">
8117 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
8118 <Original>
8119 thisThrows() == 0
8120 </Original>
8121 <Expanded>
8122 thisThrows() == 0
8123 </Expanded>
8124 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
8125 expected exception
8126 </Exception>
8127 </Expression>
8128 <OverallResult success="false"/>
8129 </TestCase>
8130 <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail">
8131 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" >
8132 <Original>
8133 thisThrows() == 0
8134 </Original>
8135 <Expanded>
8136 thisThrows() == 0
8137 </Expanded>
8138 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
8139 expected exception
8140 </Exception>
8141 </Expression>
8142 <OverallResult success="false"/>
8143 </TestCase>
8144 <TestCase name="When unchecked exceptions are thrown from functions they are always failures">
8145 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
8146 <Original>
8147 thisThrows() == 0
8148 </Original>
8149 <Expanded>
8150 thisThrows() == 0
8151 </Expanded>
8152 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
8153 expected exception
8154 </Exception>
8155 </Expression>
8156 <OverallResult success="false"/>
8157 </TestCase>
8158 <TestCase name="When unchecked exceptions are thrown from sections they are always failures">
8159 <Section name="section name">
8160 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
8161 unexpected exception
8162 </Exception>
8163 <OverallResults successes="0" failures="1" expectedFailures="0"/>
8164 </Section>
8165 <OverallResult success="false"/>
8166 </TestCase>
8167 <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test">
8168 <OverallResult success="true"/>
8169 </TestCase>
8170 <TestCase name="Where the LHS is not a simple value">
8171 <Warning>
8172 Uncomment the code in this test to check that it gives a sensible compiler error
8173 </Warning>
8174 <OverallResult success="true"/>
8175 </TestCase>
8176 <TestCase name="Where there is more to the expression after the RHS">
8177 <Warning>
8178 Uncomment the code in this test to check that it gives a sensible compiler error
8179 </Warning>
8180 <OverallResult success="true"/>
8181 </TestCase>
8182 <TestCase name="X/level/0/a">
8183 <OverallResult success="true"/>
8184 </TestCase>
8185 <TestCase name="X/level/0/b">
8186 <OverallResult success="true"/>
8187 </TestCase>
8188 <TestCase name="X/level/1/a">
8189 <OverallResult success="true"/>
8190 </TestCase>
8191 <TestCase name="X/level/1/b">
8192 <OverallResult success="true"/>
8193 </TestCase>
8194 <TestCase name="XmlEncode">
8195 <Section name="normal string">
8196 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8197 <Original>
8198 encode( "normal string" ) == "normal string"
8199 </Original>
8200 <Expanded>
8201 "normal string" == "normal string"
8202 </Expanded>
8203 </Expression>
8204 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8205 </Section>
8206 <Section name="empty string">
8207 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8208 <Original>
8209 encode( "" ) == ""
8210 </Original>
8211 <Expanded>
8212 "" == ""
8213 </Expanded>
8214 </Expression>
8215 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8216 </Section>
8217 <Section name="string with ampersand">
8218 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8219 <Original>
8220 encode( "smith &amp; jones" ) == "smith &amp;amp; jones"
8221 </Original>
8222 <Expanded>
8223 "smith &amp;amp; jones" == "smith &amp;amp; jones"
8224 </Expanded>
8225 </Expression>
8226 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8227 </Section>
8228 <Section name="string with less-than">
8229 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8230 <Original>
8231 encode( "smith &lt; jones" ) == "smith &amp;lt; jones"
8232 </Original>
8233 <Expanded>
8234 "smith &amp;lt; jones" == "smith &amp;lt; jones"
8235 </Expanded>
8236 </Expression>
8237 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8238 </Section>
8239 <Section name="string with greater-than">
8240 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8241 <Original>
8242 encode( "smith > jones" ) == "smith > jones"
8243 </Original>
8244 <Expanded>
8245 "smith > jones" == "smith > jones"
8246 </Expanded>
8247 </Expression>
8248 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8249 <Original>
8250 encode( "smith ]]&gt; jones" ) == "smith ]]&amp;gt; jones"
8251 </Original>
8252 <Expanded>
8253 "smith ]]&amp;gt; jones"
8254==
8255"smith ]]&amp;gt; jones"
8256 </Expanded>
8257 </Expression>
8258 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8259 </Section>
8260 <Section name="string with quotes">
8261 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8262 <Original>
8263 encode( stringWithQuotes ) == stringWithQuotes
8264 </Original>
8265 <Expanded>
8266 "don't "quote" me on that"
8267==
8268"don't "quote" me on that"
8269 </Expanded>
8270 </Expression>
8271 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8272 <Original>
8273 encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &amp;quot;quote&amp;quot; me on that"
8274 </Original>
8275 <Expanded>
8276 "don't &amp;quot;quote&amp;quot; me on that"
8277==
8278"don't &amp;quot;quote&amp;quot; me on that"
8279 </Expanded>
8280 </Expression>
8281 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8282 </Section>
8283 <Section name="string with control char (1)">
8284 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8285 <Original>
8286 encode( "[\x01]" ) == "[&amp;#x01;]"
8287 </Original>
8288 <Expanded>
8289 "[&amp;#x01;]" == "[&amp;#x01;]"
8290 </Expanded>
8291 </Expression>
8292 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8293 </Section>
8294 <Section name="string with control char (x7F)">
8295 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8296 <Original>
8297 encode( "[\x7F]" ) == "[&amp;#x7F;]"
8298 </Original>
8299 <Expanded>
8300 "[&amp;#x7F;]" == "[&amp;#x7F;]"
8301 </Expanded>
8302 </Expression>
8303 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8304 </Section>
8305 <OverallResult success="true"/>
8306 </TestCase>
8307 <TestCase name="atomic if">
8308 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8309 <Original>
8310 x == 0
8311 </Original>
8312 <Expanded>
8313 0 == 0
8314 </Expanded>
8315 </Expression>
8316 <OverallResult success="true"/>
8317 </TestCase>
8318 <TestCase name="boolean member">
8319 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
8320 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00008321 obj.prop != 0
Phil Nash79acc052016-11-29 11:32:16 +00008322 </Original>
8323 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00008324 0x<hex digits> != 0
Phil Nash79acc052016-11-29 11:32:16 +00008325 </Expanded>
8326 </Expression>
8327 <OverallResult success="true"/>
8328 </TestCase>
8329 <TestCase name="checkedElse">
8330 <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
8331 <Original>
8332 flag
8333 </Original>
8334 <Expanded>
8335 true
8336 </Expanded>
8337 </Expression>
8338 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8339 <Original>
8340 testCheckedElse( true )
8341 </Original>
8342 <Expanded>
8343 true
8344 </Expanded>
8345 </Expression>
8346 <OverallResult success="true"/>
8347 </TestCase>
8348 <TestCase name="checkedElse, failing">
8349 <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
8350 <Original>
8351 flag
8352 </Original>
8353 <Expanded>
8354 false
8355 </Expanded>
8356 </Expression>
8357 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8358 <Original>
8359 testCheckedElse( false )
8360 </Original>
8361 <Expanded>
8362 false
8363 </Expanded>
8364 </Expression>
8365 <OverallResult success="false"/>
8366 </TestCase>
8367 <TestCase name="checkedIf">
8368 <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
8369 <Original>
8370 flag
8371 </Original>
8372 <Expanded>
8373 true
8374 </Expanded>
8375 </Expression>
8376 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8377 <Original>
8378 testCheckedIf( true )
8379 </Original>
8380 <Expanded>
8381 true
8382 </Expanded>
8383 </Expression>
8384 <OverallResult success="true"/>
8385 </TestCase>
8386 <TestCase name="checkedIf, failing">
8387 <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
8388 <Original>
8389 flag
8390 </Original>
8391 <Expanded>
8392 false
8393 </Expanded>
8394 </Expression>
8395 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8396 <Original>
8397 testCheckedIf( false )
8398 </Original>
8399 <Expanded>
8400 false
8401 </Expanded>
8402 </Expression>
8403 <OverallResult success="false"/>
8404 </TestCase>
8405 <TestCase name="comparisons between const int variables">
8406 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8407 <Original>
8408 unsigned_char_var == 1
8409 </Original>
8410 <Expanded>
8411 1 == 1
8412 </Expanded>
8413 </Expression>
8414 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8415 <Original>
8416 unsigned_short_var == 1
8417 </Original>
8418 <Expanded>
8419 1 == 1
8420 </Expanded>
8421 </Expression>
8422 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8423 <Original>
8424 unsigned_int_var == 1
8425 </Original>
8426 <Expanded>
8427 1 == 1
8428 </Expanded>
8429 </Expression>
8430 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8431 <Original>
8432 unsigned_long_var == 1
8433 </Original>
8434 <Expanded>
8435 1 == 1
8436 </Expanded>
8437 </Expression>
8438 <OverallResult success="true"/>
8439 </TestCase>
8440 <TestCase name="comparisons between int variables">
8441 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8442 <Original>
8443 long_var == unsigned_char_var
8444 </Original>
8445 <Expanded>
8446 1 == 1
8447 </Expanded>
8448 </Expression>
8449 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8450 <Original>
8451 long_var == unsigned_short_var
8452 </Original>
8453 <Expanded>
8454 1 == 1
8455 </Expanded>
8456 </Expression>
8457 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8458 <Original>
8459 long_var == unsigned_int_var
8460 </Original>
8461 <Expanded>
8462 1 == 1
8463 </Expanded>
8464 </Expression>
8465 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
8466 <Original>
8467 long_var == unsigned_long_var
8468 </Original>
8469 <Expanded>
8470 1 == 1
8471 </Expanded>
8472 </Expression>
8473 <OverallResult success="true"/>
8474 </TestCase>
8475 <TestCase name="even more nested SECTION tests">
8476 <Section name="c">
8477 <Section name="d (leaf)">
Phil Nash8b5a4e92014-08-20 08:08:13 +01008478 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8479 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00008480 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8481 </Section>
8482 <Section name="c">
8483 <Section name="e (leaf)">
8484 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8485 </Section>
8486 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8487 </Section>
8488 <Section name="f (leaf)">
8489 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8490 </Section>
8491 <OverallResult success="true"/>
8492 </TestCase>
8493 <TestCase name="first tag">
8494 <OverallResult success="true"/>
8495 </TestCase>
8496 <TestCase name="just failure">
8497 <Failure>
8498 Previous info should not be seen
8499 </Failure>
8500 <OverallResult success="false"/>
8501 </TestCase>
8502 <TestCase name="just info">
8503 <OverallResult success="true"/>
8504 </TestCase>
8505 <TestCase name="long long">
8506 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8507 <Original>
8508 l == std::numeric_limits&lt;long long>::max()
8509 </Original>
8510 <Expanded>
8511 9223372036854775807 (0x<hex digits>)
8512==
85139223372036854775807 (0x<hex digits>)
8514 </Expanded>
8515 </Expression>
8516 <OverallResult success="true"/>
8517 </TestCase>
8518 <TestCase name="looped SECTION tests">
8519 <Section name="s1" description="b is currently: 0">
8520 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8521 <Original>
8522 b > a
8523 </Original>
8524 <Expanded>
8525 0 > 1
8526 </Expanded>
8527 </Expression>
8528 <OverallResults successes="0" failures="1" expectedFailures="0"/>
8529 </Section>
8530 <OverallResult success="false"/>
8531 </TestCase>
8532 <TestCase name="looped tests">
8533 <Info>
8534 Testing if fib[0] (1) is even
8535 </Info>
8536 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8537 <Original>
8538 ( fib[i] % 2 ) == 0
8539 </Original>
8540 <Expanded>
8541 1 == 0
8542 </Expanded>
8543 </Expression>
8544 <Info>
8545 Testing if fib[1] (1) is even
8546 </Info>
8547 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8548 <Original>
8549 ( fib[i] % 2 ) == 0
8550 </Original>
8551 <Expanded>
8552 1 == 0
8553 </Expanded>
8554 </Expression>
8555 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8556 <Original>
8557 ( fib[i] % 2 ) == 0
8558 </Original>
8559 <Expanded>
8560 0 == 0
8561 </Expanded>
8562 </Expression>
8563 <Info>
8564 Testing if fib[3] (3) is even
8565 </Info>
8566 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8567 <Original>
8568 ( fib[i] % 2 ) == 0
8569 </Original>
8570 <Expanded>
8571 1 == 0
8572 </Expanded>
8573 </Expression>
8574 <Info>
8575 Testing if fib[4] (5) is even
8576 </Info>
8577 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8578 <Original>
8579 ( fib[i] % 2 ) == 0
8580 </Original>
8581 <Expanded>
8582 1 == 0
8583 </Expanded>
8584 </Expression>
8585 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8586 <Original>
8587 ( fib[i] % 2 ) == 0
8588 </Original>
8589 <Expanded>
8590 0 == 0
8591 </Expanded>
8592 </Expression>
8593 <Info>
8594 Testing if fib[6] (13) is even
8595 </Info>
8596 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8597 <Original>
8598 ( fib[i] % 2 ) == 0
8599 </Original>
8600 <Expanded>
8601 1 == 0
8602 </Expanded>
8603 </Expression>
8604 <Info>
8605 Testing if fib[7] (21) is even
8606 </Info>
8607 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
8608 <Original>
8609 ( fib[i] % 2 ) == 0
8610 </Original>
8611 <Expanded>
8612 1 == 0
8613 </Expanded>
8614 </Expression>
8615 <OverallResult success="false"/>
8616 </TestCase>
8617 <TestCase name="more nested SECTION tests">
8618 <Section name="s1" description="doesn't equal">
8619 <Section name="s2" description="equal">
8620 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8621 <Original>
8622 a == b
8623 </Original>
8624 <Expanded>
8625 1 == 2
8626 </Expanded>
8627 </Expression>
8628 <OverallResults successes="0" failures="1" expectedFailures="0"/>
8629 </Section>
8630 <OverallResults successes="0" failures="1" expectedFailures="0"/>
8631 </Section>
8632 <Section name="s1" description="doesn't equal">
8633 <Section name="s3" description="not equal">
8634 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8635 <Original>
8636 a != b
8637 </Original>
8638 <Expanded>
8639 1 != 2
8640 </Expanded>
8641 </Expression>
8642 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8643 </Section>
8644 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8645 </Section>
8646 <Section name="s1" description="doesn't equal">
8647 <Section name="s4" description="less than">
8648 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8649 <Original>
8650 a &lt; b
8651 </Original>
8652 <Expanded>
8653 1 &lt; 2
8654 </Expanded>
8655 </Expression>
8656 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8657 </Section>
8658 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8659 </Section>
8660 <OverallResult success="false"/>
8661 </TestCase>
8662 <TestCase name="nested SECTION tests">
8663 <Section name="s1" description="doesn't equal">
8664 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8665 <Original>
8666 a != b
8667 </Original>
8668 <Expanded>
8669 1 != 2
8670 </Expanded>
8671 </Expression>
8672 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8673 <Original>
8674 b != a
8675 </Original>
8676 <Expanded>
8677 2 != 1
8678 </Expanded>
8679 </Expression>
8680 <Section name="s2" description="not equal">
8681 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8682 <Original>
8683 a != b
8684 </Original>
8685 <Expanded>
8686 1 != 2
8687 </Expanded>
8688 </Expression>
8689 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8690 </Section>
8691 <OverallResults successes="3" failures="0" expectedFailures="0"/>
8692 </Section>
8693 <OverallResult success="true"/>
8694 </TestCase>
8695 <TestCase name="non streamable - with conv. op">
8696 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
8697 <Original>
8698 s == "7"
8699 </Original>
8700 <Expanded>
8701 "7" == "7"
8702 </Expanded>
8703 </Expression>
8704 <OverallResult success="true"/>
8705 </TestCase>
8706 <TestCase name="not allowed">
8707 <OverallResult success="true"/>
8708 </TestCase>
8709 <TestCase name="null strings">
8710 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8711 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00008712 makeString( false ) != static_cast&lt;char*>(0)
Phil Nash79acc052016-11-29 11:32:16 +00008713 </Original>
8714 <Expanded>
8715 "valid string" != {null string}
8716 </Expanded>
8717 </Expression>
8718 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8719 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00008720 makeString( true ) == static_cast&lt;char*>(0)
Phil Nash79acc052016-11-29 11:32:16 +00008721 </Original>
8722 <Expanded>
8723 {null string} == {null string}
8724 </Expanded>
8725 </Expression>
8726 <OverallResult success="true"/>
8727 </TestCase>
8728 <TestCase name="null_ptr">
8729 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
8730 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00008731 ptr.get() == 0
Phil Nash79acc052016-11-29 11:32:16 +00008732 </Original>
8733 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00008734 NULL == 0
Phil Nash79acc052016-11-29 11:32:16 +00008735 </Expanded>
8736 </Expression>
8737 <OverallResult success="true"/>
8738 </TestCase>
8739 <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString">
8740 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
8741 <Original>
8742 Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }"
8743 </Original>
8744 <Expanded>
8745 "{ { 42, "Arthur" }, { "Ford", 24 } }"
8746==
8747"{ { 42, "Arthur" }, { "Ford", 24 } }"
8748 </Expanded>
8749 </Expression>
8750 <OverallResult success="true"/>
8751 </TestCase>
8752 <TestCase name="pointer to class">
8753 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
8754 <Original>
8755 p == 0
8756 </Original>
8757 <Expanded>
8758 NULL == 0
8759 </Expanded>
8760 </Expression>
8761 <OverallResult success="true"/>
8762 </TestCase>
8763 <TestCase name="random SECTION tests">
8764 <Section name="s1" description="doesn't equal">
8765 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8766 <Original>
8767 a != b
8768 </Original>
8769 <Expanded>
8770 1 != 2
8771 </Expanded>
8772 </Expression>
8773 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8774 <Original>
8775 b != a
8776 </Original>
8777 <Expanded>
8778 2 != 1
8779 </Expanded>
8780 </Expression>
Phil Nash8b5a4e92014-08-20 08:08:13 +01008781 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8782 </Section>
Phil Nash79acc052016-11-29 11:32:16 +00008783 <Section name="s2" description="not equal">
8784 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8785 <Original>
8786 a != b
8787 </Original>
8788 <Expanded>
8789 1 != 2
8790 </Expanded>
8791 </Expression>
8792 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8793 </Section>
8794 <OverallResult success="true"/>
8795 </TestCase>
8796 <TestCase name="replaceInPlace">
8797 <Section name="replace single char">
8798 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8799 <Original>
8800 replaceInPlace( letters, "b", "z" )
8801 </Original>
8802 <Expanded>
8803 true
8804 </Expanded>
8805 </Expression>
8806 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8807 <Original>
8808 letters == "azcdefcg"
8809 </Original>
8810 <Expanded>
8811 "azcdefcg" == "azcdefcg"
8812 </Expanded>
8813 </Expression>
8814 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8815 </Section>
8816 <Section name="replace two chars">
8817 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8818 <Original>
8819 replaceInPlace( letters, "c", "z" )
8820 </Original>
8821 <Expanded>
8822 true
8823 </Expanded>
8824 </Expression>
8825 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8826 <Original>
8827 letters == "abzdefzg"
8828 </Original>
8829 <Expanded>
8830 "abzdefzg" == "abzdefzg"
8831 </Expanded>
8832 </Expression>
8833 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8834 </Section>
8835 <Section name="replace first char">
8836 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8837 <Original>
8838 replaceInPlace( letters, "a", "z" )
8839 </Original>
8840 <Expanded>
8841 true
8842 </Expanded>
8843 </Expression>
8844 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8845 <Original>
8846 letters == "zbcdefcg"
8847 </Original>
8848 <Expanded>
8849 "zbcdefcg" == "zbcdefcg"
8850 </Expanded>
8851 </Expression>
8852 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8853 </Section>
8854 <Section name="replace last char">
8855 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8856 <Original>
8857 replaceInPlace( letters, "g", "z" )
8858 </Original>
8859 <Expanded>
8860 true
8861 </Expanded>
8862 </Expression>
8863 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8864 <Original>
8865 letters == "abcdefcz"
8866 </Original>
8867 <Expanded>
8868 "abcdefcz" == "abcdefcz"
8869 </Expanded>
8870 </Expression>
8871 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8872 </Section>
8873 <Section name="replace all chars">
8874 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8875 <Original>
8876 replaceInPlace( letters, letters, "replaced" )
8877 </Original>
8878 <Expanded>
8879 true
8880 </Expanded>
8881 </Expression>
8882 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8883 <Original>
8884 letters == "replaced"
8885 </Original>
8886 <Expanded>
8887 "replaced" == "replaced"
8888 </Expanded>
8889 </Expression>
8890 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8891 </Section>
8892 <Section name="replace no chars">
8893 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" >
8894 <Original>
8895 !replaceInPlace( letters, "x", "z" )
8896 </Original>
8897 <Expanded>
8898 !false
8899 </Expanded>
8900 </Expression>
8901 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8902 <Original>
8903 letters == letters
8904 </Original>
8905 <Expanded>
8906 "abcdefcg" == "abcdefcg"
8907 </Expanded>
8908 </Expression>
8909 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8910 </Section>
8911 <Section name="escape '">
8912 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8913 <Original>
8914 replaceInPlace( s, "'", "|'" )
8915 </Original>
8916 <Expanded>
8917 true
8918 </Expanded>
8919 </Expression>
8920 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
8921 <Original>
8922 s == "didn|'t"
8923 </Original>
8924 <Expanded>
8925 "didn|'t" == "didn|'t"
8926 </Expanded>
8927 </Expression>
8928 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8929 </Section>
8930 <OverallResult success="true"/>
8931 </TestCase>
8932 <TestCase name="second tag">
8933 <OverallResult success="true"/>
8934 </TestCase>
8935 <TestCase name="send a single char to INFO">
8936 <Info>
8937 3
8938 </Info>
8939 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
8940 <Original>
8941 false
8942 </Original>
8943 <Expanded>
8944 false
8945 </Expanded>
8946 </Expression>
8947 <OverallResult success="false"/>
8948 </TestCase>
8949 <TestCase name="sends information to INFO">
8950 <Info>
8951 hi
8952 </Info>
8953 <Info>
8954 i := 7
8955 </Info>
8956 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
8957 <Original>
8958 false
8959 </Original>
8960 <Expanded>
8961 false
8962 </Expanded>
8963 </Expression>
8964 <OverallResult success="false"/>
8965 </TestCase>
8966 <TestCase name="std::pair&lt;int,const std::string> -> toString">
8967 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
8968 <Original>
8969 Catch::toString(value) == "{ 34, \"xyzzy\" }"
8970 </Original>
8971 <Expanded>
8972 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
8973 </Expanded>
8974 </Expression>
8975 <OverallResult success="true"/>
8976 </TestCase>
8977 <TestCase name="std::pair&lt;int,std::string> -> toString">
8978 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
8979 <Original>
8980 Catch::toString( value ) == "{ 34, \"xyzzy\" }"
8981 </Original>
8982 <Expanded>
8983 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
8984 </Expanded>
8985 </Expression>
8986 <OverallResult success="true"/>
8987 </TestCase>
8988 <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString">
8989 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
8990 <Original>
8991 Catch::toString( pr ) == "{ { \"green\", 55 } }"
8992 </Original>
8993 <Expanded>
8994 "{ { "green", 55 } }"
8995==
8996"{ { "green", 55 } }"
8997 </Expanded>
8998 </Expression>
8999 <OverallResult success="true"/>
9000 </TestCase>
9001 <TestCase name="string literals of different sizes can be compared">
9002 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
9003 <Original>
9004 std::string( "first" ) == "second"
9005 </Original>
9006 <Expanded>
9007 "first" == "second"
9008 </Expanded>
9009 </Expression>
9010 <OverallResult success="false"/>
9011 </TestCase>
9012 <TestCase name="toString on const wchar_t const pointer returns the string contents">
9013 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
9014 <Original>
9015 result == "\"wide load\""
9016 </Original>
9017 <Expanded>
9018 ""wide load"" == ""wide load""
9019 </Expanded>
9020 </Expression>
9021 <OverallResult success="true"/>
9022 </TestCase>
9023 <TestCase name="toString on const wchar_t pointer returns the string contents">
9024 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
9025 <Original>
9026 result == "\"wide load\""
9027 </Original>
9028 <Expanded>
9029 ""wide load"" == ""wide load""
9030 </Expanded>
9031 </Expression>
9032 <OverallResult success="true"/>
9033 </TestCase>
9034 <TestCase name="toString on wchar_t const pointer returns the string contents">
9035 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
9036 <Original>
9037 result == "\"wide load\""
9038 </Original>
9039 <Expanded>
9040 ""wide load"" == ""wide load""
9041 </Expanded>
9042 </Expression>
9043 <OverallResult success="true"/>
9044 </TestCase>
9045 <TestCase name="toString on wchar_t returns the string contents">
9046 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
9047 <Original>
9048 result == "\"wide load\""
9049 </Original>
9050 <Expanded>
9051 ""wide load"" == ""wide load""
9052 </Expanded>
9053 </Expression>
9054 <OverallResult success="true"/>
9055 </TestCase>
9056 <TestCase name="toString( has_maker )">
9057 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
9058 <Original>
9059 Catch::toString( item ) == "StringMaker&lt;has_maker>"
9060 </Original>
9061 <Expanded>
9062 "StringMaker&lt;has_maker>"
9063==
9064"StringMaker&lt;has_maker>"
9065 </Expanded>
9066 </Expression>
9067 <OverallResult success="true"/>
9068 </TestCase>
9069 <TestCase name="toString( has_maker_and_toString )">
9070 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
9071 <Original>
9072 Catch::toString( item ) == "toString( has_maker_and_toString )"
9073 </Original>
9074 <Expanded>
9075 "toString( has_maker_and_toString )"
9076==
9077"toString( has_maker_and_toString )"
9078 </Expanded>
9079 </Expression>
9080 <OverallResult success="true"/>
9081 </TestCase>
9082 <TestCase name="toString( has_toString )">
9083 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
9084 <Original>
9085 Catch::toString( item ) == "toString( has_toString )"
9086 </Original>
9087 <Expanded>
9088 "toString( has_toString )"
9089==
9090"toString( has_toString )"
9091 </Expanded>
9092 </Expression>
9093 <OverallResult success="true"/>
9094 </TestCase>
9095 <TestCase name="toString( vectors&lt;has_maker )">
9096 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
9097 <Original>
9098 Catch::toString( v ) == "{ StringMaker&lt;has_maker> }"
9099 </Original>
9100 <Expanded>
9101 "{ StringMaker&lt;has_maker> }"
9102==
9103"{ StringMaker&lt;has_maker> }"
9104 </Expanded>
9105 </Expression>
9106 <OverallResult success="true"/>
9107 </TestCase>
9108 <TestCase name="toString( vectors&lt;has_maker_and_toString )">
9109 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
9110 <Original>
9111 Catch::toString( v ) == "{ StringMaker&lt;has_maker_and_toString> }"
9112 </Original>
9113 <Expanded>
9114 "{ StringMaker&lt;has_maker_and_toString> }"
9115==
9116"{ StringMaker&lt;has_maker_and_toString> }"
9117 </Expanded>
9118 </Expression>
9119 <OverallResult success="true"/>
9120 </TestCase>
9121 <TestCase name="toString( vectors&lt;has_toString )">
9122 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
9123 <Original>
9124 Catch::toString( v ) == "{ {?} }"
9125 </Original>
9126 <Expanded>
9127 "{ {?} }" == "{ {?} }"
9128 </Expanded>
9129 </Expression>
9130 <OverallResult success="true"/>
9131 </TestCase>
9132 <TestCase name="toString(enum class w/operator&lt;&lt;)">
9133 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9134 <Original>
9135 Catch::toString(e0) == "E2/V0"
9136 </Original>
9137 <Expanded>
9138 "E2/V0" == "E2/V0"
9139 </Expanded>
9140 </Expression>
9141 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9142 <Original>
9143 Catch::toString(e1) == "E2/V1"
9144 </Original>
9145 <Expanded>
9146 "E2/V1" == "E2/V1"
9147 </Expanded>
9148 </Expression>
9149 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9150 <Original>
9151 Catch::toString(e3) == "Unknown enum value 10"
9152 </Original>
9153 <Expanded>
9154 "Unknown enum value 10"
9155==
9156"Unknown enum value 10"
9157 </Expanded>
9158 </Expression>
9159 <OverallResult success="true"/>
9160 </TestCase>
9161 <TestCase name="toString(enum class)">
9162 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9163 <Original>
9164 Catch::toString(e0) == "0"
9165 </Original>
9166 <Expanded>
9167 "0" == "0"
9168 </Expanded>
9169 </Expression>
9170 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9171 <Original>
9172 Catch::toString(e1) == "1"
9173 </Original>
9174 <Expanded>
9175 "1" == "1"
9176 </Expanded>
9177 </Expression>
9178 <OverallResult success="true"/>
9179 </TestCase>
9180 <TestCase name="toString(enum w/operator&lt;&lt;)">
9181 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9182 <Original>
9183 Catch::toString(e0) == "E2{0}"
9184 </Original>
9185 <Expanded>
9186 "E2{0}" == "E2{0}"
9187 </Expanded>
9188 </Expression>
9189 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9190 <Original>
9191 Catch::toString(e1) == "E2{1}"
9192 </Original>
9193 <Expanded>
9194 "E2{1}" == "E2{1}"
9195 </Expanded>
9196 </Expression>
9197 <OverallResult success="true"/>
9198 </TestCase>
9199 <TestCase name="toString(enum)">
9200 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9201 <Original>
9202 Catch::toString(e0) == "0"
9203 </Original>
9204 <Expanded>
9205 "0" == "0"
9206 </Expanded>
9207 </Expression>
9208 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
9209 <Original>
9210 Catch::toString(e1) == "1"
9211 </Original>
9212 <Expanded>
9213 "1" == "1"
9214 </Expanded>
9215 </Expression>
9216 <OverallResult success="true"/>
9217 </TestCase>
9218 <TestCase name="tuple&lt;>">
9219 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9220 <Original>
9221 "{ }" == Catch::toString(type{})
9222 </Original>
9223 <Expanded>
9224 "{ }" == "{ }"
9225 </Expanded>
9226 </Expression>
9227 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9228 <Original>
9229 "{ }" == Catch::toString(value)
9230 </Original>
9231 <Expanded>
9232 "{ }" == "{ }"
9233 </Expanded>
9234 </Expression>
9235 <OverallResult success="true"/>
9236 </TestCase>
9237 <TestCase name="tuple&lt;float,int>">
9238 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9239 <Original>
9240 "1.2f" == Catch::toString(float(1.2))
9241 </Original>
9242 <Expanded>
9243 "1.2f" == "1.2f"
9244 </Expanded>
9245 </Expression>
9246 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9247 <Original>
9248 "{ 1.2f, 0 }" == Catch::toString(type{1.2,0})
9249 </Original>
9250 <Expanded>
9251 "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
9252 </Expanded>
9253 </Expression>
9254 <OverallResult success="true"/>
9255 </TestCase>
9256 <TestCase name="tuple&lt;int>">
9257 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9258 <Original>
9259 "{ 0 }" == Catch::toString(type{0})
9260 </Original>
9261 <Expanded>
9262 "{ 0 }" == "{ 0 }"
9263 </Expanded>
9264 </Expression>
9265 <OverallResult success="true"/>
9266 </TestCase>
Phil Nash976a6552017-01-09 14:12:12 +00009267 <TestCase name="tuple&lt;0,int,const char *>">
Phil Nash79acc052016-11-29 11:32:16 +00009268 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9269 <Original>
Phil Nash976a6552017-01-09 14:12:12 +00009270 "{ 0, 42, \"Catch me\" }" == Catch::toString(value)
Phil Nash79acc052016-11-29 11:32:16 +00009271 </Original>
9272 <Expanded>
Phil Nash976a6552017-01-09 14:12:12 +00009273 "{ 0, 42, "Catch me" }"
Phil Nash79acc052016-11-29 11:32:16 +00009274==
Phil Nash976a6552017-01-09 14:12:12 +00009275"{ 0, 42, "Catch me" }"
Phil Nash79acc052016-11-29 11:32:16 +00009276 </Expanded>
9277 </Expression>
9278 <OverallResult success="true"/>
9279 </TestCase>
9280 <TestCase name="tuple&lt;string,string>">
9281 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9282 <Original>
9283 "{ \"hello\", \"world\" }" == Catch::toString(type{"hello","world"})
9284 </Original>
9285 <Expanded>
9286 "{ "hello", "world" }"
9287==
9288"{ "hello", "world" }"
9289 </Expanded>
9290 </Expression>
9291 <OverallResult success="true"/>
9292 </TestCase>
9293 <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>">
9294 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9295 <Original>
9296 "{ { 42 }, { }, 1.2f }" == Catch::toString(value)
9297 </Original>
9298 <Expanded>
9299 "{ { 42 }, { }, 1.2f }"
9300==
9301"{ { 42 }, { }, 1.2f }"
9302 </Expanded>
9303 </Expression>
9304 <OverallResult success="true"/>
9305 </TestCase>
9306 <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString">
9307 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9308 <Original>
9309 Catch::toString(v) == "{ }"
9310 </Original>
9311 <Expanded>
9312 "{ }" == "{ }"
9313 </Expanded>
9314 </Expression>
9315 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9316 <Original>
9317 Catch::toString(v) == "{ { \"hello\" }, { \"world\" } }"
9318 </Original>
9319 <Expanded>
9320 "{ { "hello" }, { "world" } }"
9321==
9322"{ { "hello" }, { "world" } }"
9323 </Expanded>
9324 </Expression>
9325 <OverallResult success="true"/>
9326 </TestCase>
9327 <TestCase name="vector&lt;int,allocator> -> toString">
9328 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9329 <Original>
9330 Catch::toString(vv) == "{ }"
9331 </Original>
9332 <Expanded>
9333 "{ }" == "{ }"
9334 </Expanded>
9335 </Expression>
9336 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9337 <Original>
9338 Catch::toString(vv) == "{ 42 }"
9339 </Original>
9340 <Expanded>
9341 "{ 42 }" == "{ 42 }"
9342 </Expanded>
9343 </Expression>
9344 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9345 <Original>
9346 Catch::toString(vv) == "{ 42, 250 }"
9347 </Original>
9348 <Expanded>
9349 "{ 42, 250 }" == "{ 42, 250 }"
9350 </Expanded>
9351 </Expression>
9352 <OverallResult success="true"/>
9353 </TestCase>
9354 <TestCase name="vector&lt;int> -> toString">
9355 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9356 <Original>
9357 Catch::toString(vv) == "{ }"
9358 </Original>
9359 <Expanded>
9360 "{ }" == "{ }"
9361 </Expanded>
9362 </Expression>
9363 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9364 <Original>
9365 Catch::toString(vv) == "{ 42 }"
9366 </Original>
9367 <Expanded>
9368 "{ 42 }" == "{ 42 }"
9369 </Expanded>
9370 </Expression>
9371 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9372 <Original>
9373 Catch::toString(vv) == "{ 42, 250 }"
9374 </Original>
9375 <Expanded>
9376 "{ 42, 250 }" == "{ 42, 250 }"
9377 </Expanded>
9378 </Expression>
9379 <OverallResult success="true"/>
9380 </TestCase>
9381 <TestCase name="vector&lt;string> -> toString">
9382 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9383 <Original>
9384 Catch::toString(vv) == "{ }"
9385 </Original>
9386 <Expanded>
9387 "{ }" == "{ }"
9388 </Expanded>
9389 </Expression>
9390 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9391 <Original>
9392 Catch::toString(vv) == "{ \"hello\" }"
9393 </Original>
9394 <Expanded>
9395 "{ "hello" }" == "{ "hello" }"
9396 </Expanded>
9397 </Expression>
9398 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
9399 <Original>
9400 Catch::toString(vv) == "{ \"hello\", \"world\" }"
9401 </Original>
9402 <Expanded>
9403 "{ "hello", "world" }"
9404==
9405"{ "hello", "world" }"
9406 </Expanded>
9407 </Expression>
9408 <OverallResult success="true"/>
9409 </TestCase>
9410 <TestCase name="vectors can be sized and resized">
9411 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9412 <Original>
9413 v.size() == 5
9414 </Original>
9415 <Expanded>
9416 5 == 5
9417 </Expanded>
9418 </Expression>
9419 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9420 <Original>
9421 v.capacity() >= 5
9422 </Original>
9423 <Expanded>
9424 5 >= 5
9425 </Expanded>
9426 </Expression>
9427 <Section name="resizing bigger changes size and capacity">
9428 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9429 <Original>
9430 v.size() == 10
9431 </Original>
9432 <Expanded>
9433 10 == 10
9434 </Expanded>
9435 </Expression>
9436 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9437 <Original>
9438 v.capacity() >= 10
9439 </Original>
9440 <Expanded>
9441 10 >= 10
9442 </Expanded>
9443 </Expression>
9444 <OverallResults successes="2" failures="0" expectedFailures="0"/>
9445 </Section>
9446 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9447 <Original>
9448 v.size() == 5
9449 </Original>
9450 <Expanded>
9451 5 == 5
9452 </Expanded>
9453 </Expression>
9454 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9455 <Original>
9456 v.capacity() >= 5
9457 </Original>
9458 <Expanded>
9459 5 >= 5
9460 </Expanded>
9461 </Expression>
9462 <Section name="resizing smaller changes size but not capacity">
9463 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9464 <Original>
9465 v.size() == 0
9466 </Original>
9467 <Expanded>
9468 0 == 0
9469 </Expanded>
9470 </Expression>
9471 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9472 <Original>
9473 v.capacity() >= 5
9474 </Original>
9475 <Expanded>
9476 5 >= 5
9477 </Expanded>
9478 </Expression>
9479 <Section name="We can use the 'swap trick' to reset the capacity">
9480 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9481 <Original>
9482 v.capacity() == 0
9483 </Original>
9484 <Expanded>
9485 0 == 0
9486 </Expanded>
9487 </Expression>
9488 <OverallResults successes="1" failures="0" expectedFailures="0"/>
9489 </Section>
9490 <OverallResults successes="3" failures="0" expectedFailures="0"/>
9491 </Section>
9492 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9493 <Original>
9494 v.size() == 5
9495 </Original>
9496 <Expanded>
9497 5 == 5
9498 </Expanded>
9499 </Expression>
9500 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9501 <Original>
9502 v.capacity() >= 5
9503 </Original>
9504 <Expanded>
9505 5 >= 5
9506 </Expanded>
9507 </Expression>
9508 <Section name="reserving bigger changes capacity but not size">
9509 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9510 <Original>
9511 v.size() == 5
9512 </Original>
9513 <Expanded>
9514 5 == 5
9515 </Expanded>
9516 </Expression>
9517 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9518 <Original>
9519 v.capacity() >= 10
9520 </Original>
9521 <Expanded>
9522 10 >= 10
9523 </Expanded>
9524 </Expression>
9525 <OverallResults successes="2" failures="0" expectedFailures="0"/>
9526 </Section>
9527 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9528 <Original>
9529 v.size() == 5
9530 </Original>
9531 <Expanded>
9532 5 == 5
9533 </Expanded>
9534 </Expression>
9535 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9536 <Original>
9537 v.capacity() >= 5
9538 </Original>
9539 <Expanded>
9540 5 >= 5
9541 </Expanded>
9542 </Expression>
9543 <Section name="reserving smaller does not change size or capacity">
9544 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9545 <Original>
9546 v.size() == 5
9547 </Original>
9548 <Expanded>
9549 5 == 5
9550 </Expanded>
9551 </Expression>
9552 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
9553 <Original>
9554 v.capacity() >= 5
9555 </Original>
9556 <Expanded>
9557 5 >= 5
9558 </Expanded>
9559 </Expression>
9560 <OverallResults successes="2" failures="0" expectedFailures="0"/>
9561 </Section>
9562 <OverallResult success="true"/>
9563 </TestCase>
9564 <TestCase name="xmlentitycheck">
9565 <Section name="embedded xml" description="&lt;test>it should be possible to embed xml characters, such as &lt;, &quot; or &amp;, or even whole &lt;xml>documents&lt;/xml> within an attribute&lt;/test>">
9566 <OverallResults successes="1" failures="0" expectedFailures="0"/>
9567 </Section>
9568 <Section name="encoded chars" description="these should all be encoded: &amp;&amp;&amp;&quot;&quot;&quot;&lt;&lt;&lt;&amp;&quot;&lt;&lt;&amp;&quot;">
9569 <OverallResults successes="1" failures="0" expectedFailures="0"/>
9570 </Section>
Phil Nash8b5a4e92014-08-20 08:08:13 +01009571 <OverallResult success="true"/>
9572 </TestCase>
Phil Nash31861bb2016-09-27 10:28:11 +01009573 <OverallResults successes="825" failures="81" expectedFailures="18"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009574 </Group>
Phil Nash31861bb2016-09-27 10:28:11 +01009575 <OverallResults successes="825" failures="80" expectedFailures="18"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009576</Catch>