blob: 66a0e09ed25edf605f48518c8e49145ff19ab8be [file] [log] [blame]
Phil Nash2f7a2962013-09-27 19:01:14 +01001<Catch name="CatchSelfTest">
Phil Nash766491a2014-05-16 18:31:15 +01002 <Group>
Phil Nash337dc252013-11-19 07:21:03 +00003 <TestCase name="Some simple comparisons between doubles">
Phil Nash2f7a2962013-09-27 19:01:14 +01004 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
5 <Original>
6 d == Approx( 1.23 )
7 </Original>
8 <Expanded>
9 1.23 == Approx( 1.23 )
10 </Expanded>
11 </Expression>
12 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
13 <Original>
14 d != Approx( 1.22 )
15 </Original>
16 <Expanded>
17 1.23 != Approx( 1.22 )
18 </Expanded>
19 </Expression>
20 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
21 <Original>
22 d != Approx( 1.24 )
23 </Original>
24 <Expanded>
25 1.23 != Approx( 1.24 )
26 </Expanded>
27 </Expression>
28 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
29 <Original>
30 Approx( d ) == 1.23
31 </Original>
32 <Expanded>
33 Approx( 1.23 ) == 1.23
34 </Expanded>
35 </Expression>
36 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
37 <Original>
38 Approx( d ) != 1.22
39 </Original>
40 <Expanded>
41 Approx( 1.23 ) != 1.22
42 </Expanded>
43 </Expression>
44 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
45 <Original>
46 Approx( d ) != 1.24
47 </Original>
48 <Expanded>
49 Approx( 1.23 ) != 1.24
50 </Expanded>
51 </Expression>
52 <OverallResult success="true"/>
53 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +000054 <TestCase name="Approximate comparisons with different epsilons">
Phil Nash2f7a2962013-09-27 19:01:14 +010055 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
56 <Original>
57 d != Approx( 1.231 )
58 </Original>
59 <Expanded>
60 1.23 != Approx( 1.231 )
61 </Expanded>
62 </Expression>
63 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
64 <Original>
65 d == Approx( 1.231 ).epsilon( 0.1 )
66 </Original>
67 <Expanded>
68 1.23 == Approx( 1.231 )
69 </Expanded>
70 </Expression>
71 <OverallResult success="true"/>
72 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +000073 <TestCase name="Approximate comparisons with floats">
Phil Nash2f7a2962013-09-27 19:01:14 +010074 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
75 <Original>
76 1.23f == Approx( 1.23f )
77 </Original>
78 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +000079 1.23 == Approx( 1.2300000191 )
Phil Nash2f7a2962013-09-27 19:01:14 +010080 </Expanded>
81 </Expression>
82 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
83 <Original>
84 0.0f == Approx( 0.0f )
85 </Original>
86 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +000087 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +010088 </Expanded>
89 </Expression>
90 <OverallResult success="true"/>
91 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +000092 <TestCase name="Approximate comparisons with ints">
Phil Nash2f7a2962013-09-27 19:01:14 +010093 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
94 <Original>
95 1 == Approx( 1 )
96 </Original>
97 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +000098 1 == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +010099 </Expanded>
100 </Expression>
101 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
102 <Original>
103 0 == Approx( 0 )
104 </Original>
105 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000106 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100107 </Expanded>
108 </Expression>
109 <OverallResult success="true"/>
110 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000111 <TestCase name="Approximate comparisons with mixed numeric types">
Phil Nash2f7a2962013-09-27 19:01:14 +0100112 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
113 <Original>
114 1.0f == Approx( 1 )
115 </Original>
116 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000117 1 == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100118 </Expanded>
119 </Expression>
120 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
121 <Original>
122 0 == Approx( dZero)
123 </Original>
124 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000125 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100126 </Expanded>
127 </Expression>
128 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
129 <Original>
130 0 == Approx( dSmall ).epsilon( 0.001 )
131 </Original>
132 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000133 0 == Approx( 0.00001 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100134 </Expanded>
135 </Expression>
136 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
137 <Original>
138 1.234f == Approx( dMedium )
139 </Original>
140 <Expanded>
141 1.234 == Approx( 1.234 )
142 </Expanded>
143 </Expression>
144 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
145 <Original>
146 dMedium == Approx( 1.234f )
147 </Original>
148 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000149 1.234 == Approx( 1.2339999676 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100150 </Expanded>
151 </Expression>
152 <OverallResult success="true"/>
153 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000154 <TestCase name="Use a custom approx">
Phil Nash2f7a2962013-09-27 19:01:14 +0100155 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
156 <Original>
157 d == approx( 1.23 )
158 </Original>
159 <Expanded>
160 1.23 == Approx( 1.23 )
161 </Expanded>
162 </Expression>
163 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
164 <Original>
165 d == approx( 1.22 )
166 </Original>
167 <Expanded>
168 1.23 == Approx( 1.22 )
169 </Expanded>
170 </Expression>
171 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
172 <Original>
173 d == approx( 1.24 )
174 </Original>
175 <Expanded>
176 1.23 == Approx( 1.24 )
177 </Expanded>
178 </Expression>
179 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
180 <Original>
181 d != approx( 1.25 )
182 </Original>
183 <Expanded>
184 1.23 != Approx( 1.25 )
185 </Expanded>
186 </Expression>
187 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
188 <Original>
189 approx( d ) == 1.23
190 </Original>
191 <Expanded>
192 Approx( 1.23 ) == 1.23
193 </Expanded>
194 </Expression>
195 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
196 <Original>
197 approx( d ) == 1.22
198 </Original>
199 <Expanded>
200 Approx( 1.23 ) == 1.22
201 </Expanded>
202 </Expression>
203 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
204 <Original>
205 approx( d ) == 1.24
206 </Original>
207 <Expanded>
208 Approx( 1.23 ) == 1.24
209 </Expanded>
210 </Expression>
211 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
212 <Original>
213 approx( d ) != 1.25
214 </Original>
215 <Expanded>
216 Approx( 1.23 ) != 1.25
217 </Expanded>
218 </Expression>
219 <OverallResult success="true"/>
220 </TestCase>
221 <TestCase name="Approximate PI">
222 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
223 <Original>
224 divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 )
225 </Original>
226 <Expanded>
227 3.1428571429 == Approx( 3.141 )
228 </Expanded>
229 </Expression>
230 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp" >
231 <Original>
232 divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 )
233 </Original>
234 <Expanded>
235 3.1428571429 != Approx( 3.141 )
236 </Expanded>
237 </Expression>
238 <OverallResult success="true"/>
239 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000240 <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds">
Phil Nash2f7a2962013-09-27 19:01:14 +0100241 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp" >
242 <Original>
243 s == &quot;hello&quot;
244 </Original>
245 <Expanded>
246 &quot;hello&quot; == &quot;hello&quot;
247 </Expanded>
248 </Expression>
249 <OverallResult success="true"/>
250 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000251 <TestCase name="A METHOD_AS_TEST_CASE based test run that fails">
Phil Nash2f7a2962013-09-27 19:01:14 +0100252 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp" >
253 <Original>
254 s == &quot;world&quot;
255 </Original>
256 <Expanded>
257 &quot;hello&quot; == &quot;world&quot;
258 </Expanded>
259 </Expression>
260 <OverallResult success="false"/>
261 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000262 <TestCase name="A TEST_CASE_METHOD based test run that succeeds">
Phil Nash2f7a2962013-09-27 19:01:14 +0100263 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp" >
264 <Original>
265 m_a == 1
266 </Original>
267 <Expanded>
268 1 == 1
269 </Expanded>
270 </Expression>
271 <OverallResult success="true"/>
272 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000273 <TestCase name="A TEST_CASE_METHOD based test run that fails">
Phil Nash2f7a2962013-09-27 19:01:14 +0100274 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp" >
275 <Original>
276 m_a == 2
277 </Original>
278 <Expanded>
279 1 == 2
280 </Expanded>
281 </Expression>
282 <OverallResult success="false"/>
283 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000284 <TestCase name="Equality checks that should succeed">
Phil Nash2f7a2962013-09-27 19:01:14 +0100285 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
286 <Original>
287 data.int_seven == 7
288 </Original>
289 <Expanded>
290 7 == 7
291 </Expanded>
292 </Expression>
293 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
294 <Original>
295 data.float_nine_point_one == Approx( 9.1f )
296 </Original>
297 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000298 9.1 == Approx( 9.1000003815 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100299 </Expanded>
300 </Expression>
301 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
302 <Original>
303 data.double_pi == Approx( 3.1415926535 )
304 </Original>
305 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000306 3.1415926535 == Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100307 </Expanded>
308 </Expression>
309 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
310 <Original>
311 data.str_hello == &quot;hello&quot;
312 </Original>
313 <Expanded>
314 &quot;hello&quot; == &quot;hello&quot;
315 </Expanded>
316 </Expression>
317 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
318 <Original>
319 &quot;hello&quot; == data.str_hello
320 </Original>
321 <Expanded>
322 &quot;hello&quot; == &quot;hello&quot;
323 </Expanded>
324 </Expression>
325 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
326 <Original>
327 data.str_hello.size() == 5
328 </Original>
329 <Expanded>
330 5 == 5
331 </Expanded>
332 </Expression>
333 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
334 <Original>
335 x == Approx( 1.3 )
336 </Original>
337 <Expanded>
338 1.3 == Approx( 1.3 )
339 </Expanded>
340 </Expression>
341 <OverallResult success="true"/>
342 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000343 <TestCase name="Equality checks that should fail]">
Phil Nash2f7a2962013-09-27 19:01:14 +0100344 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
345 <Original>
346 data.int_seven == 6
347 </Original>
348 <Expanded>
349 7 == 6
350 </Expanded>
351 </Expression>
352 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
353 <Original>
354 data.int_seven == 8
355 </Original>
356 <Expanded>
357 7 == 8
358 </Expanded>
359 </Expression>
360 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
361 <Original>
362 data.int_seven == 0
363 </Original>
364 <Expanded>
365 7 == 0
366 </Expanded>
367 </Expression>
368 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
369 <Original>
370 data.float_nine_point_one == Approx( 9.11f )
371 </Original>
372 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000373 9.1 == Approx( 9.1099996567 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100374 </Expanded>
375 </Expression>
376 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
377 <Original>
378 data.float_nine_point_one == Approx( 9.0f )
379 </Original>
380 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000381 9.1 == Approx( 9.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100382 </Expanded>
383 </Expression>
384 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
385 <Original>
386 data.float_nine_point_one == Approx( 1 )
387 </Original>
388 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000389 9.1 == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100390 </Expanded>
391 </Expression>
392 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
393 <Original>
394 data.float_nine_point_one == Approx( 0 )
395 </Original>
396 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000397 9.1 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100398 </Expanded>
399 </Expression>
400 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
401 <Original>
402 data.double_pi == Approx( 3.1415 )
403 </Original>
404 <Expanded>
405 3.1415926535 == Approx( 3.1415 )
406 </Expanded>
407 </Expression>
408 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
409 <Original>
410 data.str_hello == &quot;goodbye&quot;
411 </Original>
412 <Expanded>
413 &quot;hello&quot; == &quot;goodbye&quot;
414 </Expanded>
415 </Expression>
416 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
417 <Original>
418 data.str_hello == &quot;hell&quot;
419 </Original>
420 <Expanded>
421 &quot;hello&quot; == &quot;hell&quot;
422 </Expanded>
423 </Expression>
424 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
425 <Original>
426 data.str_hello == &quot;hello1&quot;
427 </Original>
428 <Expanded>
429 &quot;hello&quot; == &quot;hello1&quot;
430 </Expanded>
431 </Expression>
432 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
433 <Original>
434 data.str_hello.size() == 6
435 </Original>
436 <Expanded>
437 5 == 6
438 </Expanded>
439 </Expression>
440 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
441 <Original>
442 x == Approx( 1.301 )
443 </Original>
444 <Expanded>
445 1.3 == Approx( 1.301 )
446 </Expanded>
447 </Expression>
448 <OverallResult success="false"/>
449 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000450 <TestCase name="Inequality checks that should succeed">
Phil Nash2f7a2962013-09-27 19:01:14 +0100451 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
452 <Original>
453 data.int_seven != 6
454 </Original>
455 <Expanded>
456 7 != 6
457 </Expanded>
458 </Expression>
459 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
460 <Original>
461 data.int_seven != 8
462 </Original>
463 <Expanded>
464 7 != 8
465 </Expanded>
466 </Expression>
467 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
468 <Original>
469 data.float_nine_point_one != Approx( 9.11f )
470 </Original>
471 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000472 9.1 != Approx( 9.1099996567 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100473 </Expanded>
474 </Expression>
475 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
476 <Original>
477 data.float_nine_point_one != Approx( 9.0f )
478 </Original>
479 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000480 9.1 != Approx( 9.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100481 </Expanded>
482 </Expression>
483 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
484 <Original>
485 data.float_nine_point_one != Approx( 1 )
486 </Original>
487 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000488 9.1 != Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100489 </Expanded>
490 </Expression>
491 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
492 <Original>
493 data.float_nine_point_one != Approx( 0 )
494 </Original>
495 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000496 9.1 != Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100497 </Expanded>
498 </Expression>
499 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
500 <Original>
501 data.double_pi != Approx( 3.1415 )
502 </Original>
503 <Expanded>
504 3.1415926535 != Approx( 3.1415 )
505 </Expanded>
506 </Expression>
507 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
508 <Original>
509 data.str_hello != &quot;goodbye&quot;
510 </Original>
511 <Expanded>
512 &quot;hello&quot; != &quot;goodbye&quot;
513 </Expanded>
514 </Expression>
515 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
516 <Original>
517 data.str_hello != &quot;hell&quot;
518 </Original>
519 <Expanded>
520 &quot;hello&quot; != &quot;hell&quot;
521 </Expanded>
522 </Expression>
523 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
524 <Original>
525 data.str_hello != &quot;hello1&quot;
526 </Original>
527 <Expanded>
528 &quot;hello&quot; != &quot;hello1&quot;
529 </Expanded>
530 </Expression>
531 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
532 <Original>
533 data.str_hello.size() != 6
534 </Original>
535 <Expanded>
536 5 != 6
537 </Expanded>
538 </Expression>
539 <OverallResult success="true"/>
540 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000541 <TestCase name="Inequality checks that should fails">
Phil Nash2f7a2962013-09-27 19:01:14 +0100542 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
543 <Original>
544 data.int_seven != 7
545 </Original>
546 <Expanded>
547 7 != 7
548 </Expanded>
549 </Expression>
550 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
551 <Original>
552 data.float_nine_point_one != Approx( 9.1f )
553 </Original>
554 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000555 9.1 != Approx( 9.1000003815 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100556 </Expanded>
557 </Expression>
558 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
559 <Original>
560 data.double_pi != Approx( 3.1415926535 )
561 </Original>
562 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000563 3.1415926535 != Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100564 </Expanded>
565 </Expression>
566 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
567 <Original>
568 data.str_hello != &quot;hello&quot;
569 </Original>
570 <Expanded>
571 &quot;hello&quot; != &quot;hello&quot;
572 </Expanded>
573 </Expression>
574 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
575 <Original>
576 data.str_hello.size() != 5
577 </Original>
578 <Expanded>
579 5 != 5
580 </Expanded>
581 </Expression>
582 <OverallResult success="false"/>
583 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000584 <TestCase name="Ordering comparison checks that should succeed">
Phil Nash2f7a2962013-09-27 19:01:14 +0100585 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
586 <Original>
587 data.int_seven &lt; 8
588 </Original>
589 <Expanded>
590 7 &lt; 8
591 </Expanded>
592 </Expression>
593 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
594 <Original>
595 data.int_seven > 6
596 </Original>
597 <Expanded>
598 7 > 6
599 </Expanded>
600 </Expression>
601 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
602 <Original>
603 data.int_seven > 0
604 </Original>
605 <Expanded>
606 7 > 0
607 </Expanded>
608 </Expression>
609 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
610 <Original>
611 data.int_seven > -1
612 </Original>
613 <Expanded>
614 7 > -1
615 </Expanded>
616 </Expression>
617 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
618 <Original>
619 data.int_seven >= 7
620 </Original>
621 <Expanded>
622 7 >= 7
623 </Expanded>
624 </Expression>
625 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
626 <Original>
627 data.int_seven >= 6
628 </Original>
629 <Expanded>
630 7 >= 6
631 </Expanded>
632 </Expression>
633 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
634 <Original>
635 data.int_seven &lt;= 7
636 </Original>
637 <Expanded>
638 7 &lt;= 7
639 </Expanded>
640 </Expression>
641 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
642 <Original>
643 data.int_seven &lt;= 8
644 </Original>
645 <Expanded>
646 7 &lt;= 8
647 </Expanded>
648 </Expression>
649 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
650 <Original>
651 data.float_nine_point_one > 9
652 </Original>
653 <Expanded>
654 9.1 > 9
655 </Expanded>
656 </Expression>
657 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
658 <Original>
659 data.float_nine_point_one &lt; 10
660 </Original>
661 <Expanded>
662 9.1 &lt; 10
663 </Expanded>
664 </Expression>
665 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
666 <Original>
667 data.float_nine_point_one &lt; 9.2
668 </Original>
669 <Expanded>
670 9.1 &lt; 9.2
671 </Expanded>
672 </Expression>
673 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
674 <Original>
675 data.str_hello &lt;= &quot;hello&quot;
676 </Original>
677 <Expanded>
678 &quot;hello&quot; &lt;= &quot;hello&quot;
679 </Expanded>
680 </Expression>
681 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
682 <Original>
683 data.str_hello >= &quot;hello&quot;
684 </Original>
685 <Expanded>
686 &quot;hello&quot; >= &quot;hello&quot;
687 </Expanded>
688 </Expression>
689 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
690 <Original>
691 data.str_hello &lt; &quot;hellp&quot;
692 </Original>
693 <Expanded>
694 &quot;hello&quot; &lt; &quot;hellp&quot;
695 </Expanded>
696 </Expression>
697 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
698 <Original>
699 data.str_hello &lt; &quot;zebra&quot;
700 </Original>
701 <Expanded>
702 &quot;hello&quot; &lt; &quot;zebra&quot;
703 </Expanded>
704 </Expression>
705 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
706 <Original>
707 data.str_hello > &quot;hellm&quot;
708 </Original>
709 <Expanded>
710 &quot;hello&quot; > &quot;hellm&quot;
711 </Expanded>
712 </Expression>
713 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
714 <Original>
715 data.str_hello > &quot;a&quot;
716 </Original>
717 <Expanded>
718 &quot;hello&quot; > &quot;a&quot;
719 </Expanded>
720 </Expression>
721 <OverallResult success="true"/>
722 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000723 <TestCase name="Ordering comparison checks that should fail">
Phil Nash2f7a2962013-09-27 19:01:14 +0100724 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
725 <Original>
726 data.int_seven > 7
727 </Original>
728 <Expanded>
729 7 > 7
730 </Expanded>
731 </Expression>
732 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
733 <Original>
734 data.int_seven &lt; 7
735 </Original>
736 <Expanded>
737 7 &lt; 7
738 </Expanded>
739 </Expression>
740 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
741 <Original>
742 data.int_seven > 8
743 </Original>
744 <Expanded>
745 7 > 8
746 </Expanded>
747 </Expression>
748 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
749 <Original>
750 data.int_seven &lt; 6
751 </Original>
752 <Expanded>
753 7 &lt; 6
754 </Expanded>
755 </Expression>
756 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
757 <Original>
758 data.int_seven &lt; 0
759 </Original>
760 <Expanded>
761 7 &lt; 0
762 </Expanded>
763 </Expression>
764 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
765 <Original>
766 data.int_seven &lt; -1
767 </Original>
768 <Expanded>
769 7 &lt; -1
770 </Expanded>
771 </Expression>
772 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
773 <Original>
774 data.int_seven >= 8
775 </Original>
776 <Expanded>
777 7 >= 8
778 </Expanded>
779 </Expression>
780 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
781 <Original>
782 data.int_seven &lt;= 6
783 </Original>
784 <Expanded>
785 7 &lt;= 6
786 </Expanded>
787 </Expression>
788 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
789 <Original>
790 data.float_nine_point_one &lt; 9
791 </Original>
792 <Expanded>
793 9.1 &lt; 9
794 </Expanded>
795 </Expression>
796 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
797 <Original>
798 data.float_nine_point_one > 10
799 </Original>
800 <Expanded>
801 9.1 > 10
802 </Expanded>
803 </Expression>
804 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
805 <Original>
806 data.float_nine_point_one > 9.2
807 </Original>
808 <Expanded>
809 9.1 > 9.2
810 </Expanded>
811 </Expression>
812 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
813 <Original>
814 data.str_hello > &quot;hello&quot;
815 </Original>
816 <Expanded>
817 &quot;hello&quot; > &quot;hello&quot;
818 </Expanded>
819 </Expression>
820 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
821 <Original>
822 data.str_hello &lt; &quot;hello&quot;
823 </Original>
824 <Expanded>
825 &quot;hello&quot; &lt; &quot;hello&quot;
826 </Expanded>
827 </Expression>
828 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
829 <Original>
830 data.str_hello > &quot;hellp&quot;
831 </Original>
832 <Expanded>
833 &quot;hello&quot; > &quot;hellp&quot;
834 </Expanded>
835 </Expression>
836 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
837 <Original>
838 data.str_hello > &quot;z&quot;
839 </Original>
840 <Expanded>
841 &quot;hello&quot; > &quot;z&quot;
842 </Expanded>
843 </Expression>
844 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
845 <Original>
846 data.str_hello &lt; &quot;hellm&quot;
847 </Original>
848 <Expanded>
849 &quot;hello&quot; &lt; &quot;hellm&quot;
850 </Expanded>
851 </Expression>
852 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
853 <Original>
854 data.str_hello &lt; &quot;a&quot;
855 </Original>
856 <Expanded>
857 &quot;hello&quot; &lt; &quot;a&quot;
858 </Expanded>
859 </Expression>
860 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
861 <Original>
862 data.str_hello >= &quot;z&quot;
863 </Original>
864 <Expanded>
865 &quot;hello&quot; >= &quot;z&quot;
866 </Expanded>
867 </Expression>
868 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
869 <Original>
870 data.str_hello &lt;= &quot;a&quot;
871 </Original>
872 <Expanded>
873 &quot;hello&quot; &lt;= &quot;a&quot;
874 </Expanded>
875 </Expression>
876 <OverallResult success="false"/>
877 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000878 <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned">
Phil Nash2f7a2962013-09-27 19:01:14 +0100879 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
880 <Original>
881 i == 1
882 </Original>
883 <Expanded>
884 1 == 1
885 </Expanded>
886 </Expression>
887 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
888 <Original>
889 ui == 2
890 </Original>
891 <Expanded>
892 2 == 2
893 </Expanded>
894 </Expression>
895 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
896 <Original>
897 l == 3
898 </Original>
899 <Expanded>
900 3 == 3
901 </Expanded>
902 </Expression>
903 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
904 <Original>
905 ul == 4
906 </Original>
907 <Expanded>
908 4 == 4
909 </Expanded>
910 </Expression>
911 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
912 <Original>
913 c == 5
914 </Original>
915 <Expanded>
916 5 == 5
917 </Expanded>
918 </Expression>
919 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
920 <Original>
921 uc == 6
922 </Original>
923 <Expanded>
924 6 == 6
925 </Expanded>
926 </Expression>
927 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
928 <Original>
929 1 == i
930 </Original>
931 <Expanded>
932 1 == 1
933 </Expanded>
934 </Expression>
935 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
936 <Original>
937 2 == ui
938 </Original>
939 <Expanded>
940 2 == 2
941 </Expanded>
942 </Expression>
943 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
944 <Original>
945 3 == l
946 </Original>
947 <Expanded>
948 3 == 3
949 </Expanded>
950 </Expression>
951 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
952 <Original>
953 4 == ul
954 </Original>
955 <Expanded>
956 4 == 4
957 </Expanded>
958 </Expression>
959 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
960 <Original>
961 5 == c
962 </Original>
963 <Expanded>
964 5 == 5
965 </Expanded>
966 </Expression>
967 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
968 <Original>
969 6 == uc
970 </Original>
971 <Expanded>
972 6 == 6
973 </Expanded>
974 </Expression>
975 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
976 <Original>
977 (std::numeric_limits&lt;unsigned long>::max)() > ul
978 </Original>
979 <Expanded>
980 0x<hex digits> > 4
981 </Expanded>
982 </Expression>
983 <OverallResult success="true"/>
984 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000985 <TestCase name="comparisons between int variables">
Phil Nash2f7a2962013-09-27 19:01:14 +0100986 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
987 <Original>
988 long_var == unsigned_char_var
989 </Original>
990 <Expanded>
991 1 == 1
992 </Expanded>
993 </Expression>
994 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
995 <Original>
996 long_var == unsigned_short_var
997 </Original>
998 <Expanded>
999 1 == 1
1000 </Expanded>
1001 </Expression>
1002 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1003 <Original>
1004 long_var == unsigned_int_var
1005 </Original>
1006 <Expanded>
1007 1 == 1
1008 </Expanded>
1009 </Expression>
1010 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1011 <Original>
1012 long_var == unsigned_long_var
1013 </Original>
1014 <Expanded>
1015 1 == 1
1016 </Expanded>
1017 </Expression>
1018 <OverallResult success="true"/>
1019 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001020 <TestCase name="comparisons between const int variables">
Phil Nash2f7a2962013-09-27 19:01:14 +01001021 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1022 <Original>
1023 unsigned_char_var == 1
1024 </Original>
1025 <Expanded>
1026 1 == 1
1027 </Expanded>
1028 </Expression>
1029 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1030 <Original>
1031 unsigned_short_var == 1
1032 </Original>
1033 <Expanded>
1034 1 == 1
1035 </Expanded>
1036 </Expression>
1037 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1038 <Original>
1039 unsigned_int_var == 1
1040 </Original>
1041 <Expanded>
1042 1 == 1
1043 </Expanded>
1044 </Expression>
1045 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1046 <Original>
1047 unsigned_long_var == 1
1048 </Original>
1049 <Expanded>
1050 1 == 1
1051 </Expanded>
1052 </Expression>
1053 <OverallResult success="true"/>
1054 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001055 <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour">
Phil Nash2f7a2962013-09-27 19:01:14 +01001056 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1057 <Original>
1058 ( -1 > 2u )
1059 </Original>
1060 <Expanded>
1061 true
1062 </Expanded>
1063 </Expression>
1064 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1065 <Original>
1066 -1 > 2u
1067 </Original>
1068 <Expanded>
1069 -1 > 2
1070 </Expanded>
1071 </Expression>
1072 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1073 <Original>
1074 ( 2u &lt; -1 )
1075 </Original>
1076 <Expanded>
1077 true
1078 </Expanded>
1079 </Expression>
1080 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1081 <Original>
1082 2u &lt; -1
1083 </Original>
1084 <Expanded>
1085 2 &lt; -1
1086 </Expanded>
1087 </Expression>
1088 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1089 <Original>
1090 ( minInt > 2u )
1091 </Original>
1092 <Expanded>
1093 true
1094 </Expanded>
1095 </Expression>
1096 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1097 <Original>
1098 minInt > 2u
1099 </Original>
1100 <Expanded>
1101 -2147483648 > 2
1102 </Expanded>
1103 </Expression>
1104 <OverallResult success="true"/>
1105 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001106 <TestCase name="Comparisons between ints where one side is computed">
Phil Nash2f7a2962013-09-27 19:01:14 +01001107 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1108 <Original>
1109 54 == 6*9
1110 </Original>
1111 <Expanded>
1112 54 == 54
1113 </Expanded>
1114 </Expression>
1115 <OverallResult success="true"/>
1116 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001117 <TestCase name="Pointers can be compared to null">
Phil Nash2f7a2962013-09-27 19:01:14 +01001118 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1119 <Original>
1120 p == __null
1121 </Original>
1122 <Expanded>
1123 __null == 0
1124 </Expanded>
1125 </Expression>
1126 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1127 <Original>
1128 p == pNULL
1129 </Original>
1130 <Expanded>
1131 __null == __null
1132 </Expanded>
1133 </Expression>
1134 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1135 <Original>
1136 p != __null
1137 </Original>
1138 <Expanded>
1139 0x<hex digits> != 0
1140 </Expanded>
1141 </Expression>
1142 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1143 <Original>
1144 cp != __null
1145 </Original>
1146 <Expanded>
1147 0x<hex digits> != 0
1148 </Expanded>
1149 </Expression>
1150 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1151 <Original>
1152 cpc != __null
1153 </Original>
1154 <Expanded>
1155 0x<hex digits> != 0
1156 </Expanded>
1157 </Expression>
1158 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1159 <Original>
1160 returnsNull() == __null
1161 </Original>
1162 <Expanded>
1163 {null string} == 0
1164 </Expanded>
1165 </Expression>
1166 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1167 <Original>
1168 returnsConstNull() == __null
1169 </Original>
1170 <Expanded>
1171 {null string} == 0
1172 </Expanded>
1173 </Expression>
1174 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1175 <Original>
1176 __null != p
1177 </Original>
1178 <Expanded>
1179 0 != 0x<hex digits>
1180 </Expanded>
1181 </Expression>
1182 <OverallResult success="true"/>
1183 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001184 <TestCase name="'Not' checks that should succeed">
Phil Nash2f7a2962013-09-27 19:01:14 +01001185 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1186 <Original>
1187 false == false
1188 </Original>
1189 <Expanded>
1190 false == false
1191 </Expanded>
1192 </Expression>
1193 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1194 <Original>
1195 true == true
1196 </Original>
1197 <Expanded>
1198 true == true
1199 </Expanded>
1200 </Expression>
1201 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1202 <Original>
1203 !false
1204 </Original>
1205 <Expanded>
1206 true
1207 </Expanded>
1208 </Expression>
1209 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1210 <Original>
1211 !false
1212 </Original>
1213 <Expanded>
1214 !false
1215 </Expanded>
1216 </Expression>
1217 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1218 <Original>
1219 !falseValue
1220 </Original>
1221 <Expanded>
1222 true
1223 </Expanded>
1224 </Expression>
1225 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1226 <Original>
1227 !falseValue
1228 </Original>
1229 <Expanded>
1230 !false
1231 </Expanded>
1232 </Expression>
1233 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1234 <Original>
1235 !(1 == 2)
1236 </Original>
1237 <Expanded>
1238 true
1239 </Expanded>
1240 </Expression>
1241 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1242 <Original>
1243 !1 == 2
1244 </Original>
1245 <Expanded>
1246 !(1 == 2)
1247 </Expanded>
1248 </Expression>
1249 <OverallResult success="true"/>
1250 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001251 <TestCase name="'Not' checks that should fail">
Phil Nash2f7a2962013-09-27 19:01:14 +01001252 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1253 <Original>
1254 false != false
1255 </Original>
1256 <Expanded>
1257 false != false
1258 </Expanded>
1259 </Expression>
1260 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1261 <Original>
1262 true != true
1263 </Original>
1264 <Expanded>
1265 true != true
1266 </Expanded>
1267 </Expression>
1268 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1269 <Original>
1270 !true
1271 </Original>
1272 <Expanded>
1273 false
1274 </Expanded>
1275 </Expression>
1276 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1277 <Original>
1278 !true
1279 </Original>
1280 <Expanded>
1281 !true
1282 </Expanded>
1283 </Expression>
1284 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1285 <Original>
1286 !trueValue
1287 </Original>
1288 <Expanded>
1289 false
1290 </Expanded>
1291 </Expression>
1292 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1293 <Original>
1294 !trueValue
1295 </Original>
1296 <Expanded>
1297 !true
1298 </Expanded>
1299 </Expression>
1300 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1301 <Original>
1302 !(1 == 1)
1303 </Original>
1304 <Expanded>
1305 false
1306 </Expanded>
1307 </Expression>
1308 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp" >
1309 <Original>
1310 !1 == 1
1311 </Original>
1312 <Expanded>
1313 !(1 == 1)
1314 </Expanded>
1315 </Expression>
1316 <OverallResult success="false"/>
1317 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001318 <TestCase name="When checked exceptions are thrown they can be expected or unexpected">
Phil Nash2f7a2962013-09-27 19:01:14 +01001319 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1320 <Original>
1321 thisThrows()
1322 </Original>
1323 <Expanded>
1324 thisThrows()
1325 </Expanded>
1326 </Expression>
1327 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1328 <Original>
1329 thisDoesntThrow()
1330 </Original>
1331 <Expanded>
1332 thisDoesntThrow()
1333 </Expanded>
1334 </Expression>
1335 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1336 <Original>
1337 thisThrows()
1338 </Original>
1339 <Expanded>
1340 thisThrows()
1341 </Expanded>
1342 </Expression>
1343 <OverallResult success="true"/>
1344 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001345 <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01001346 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1347 <Original>
1348 thisThrows()
1349 </Original>
1350 <Expanded>
1351 thisThrows()
1352 </Expanded>
1353 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1354 expected exception
1355 </Exception>
1356 </Expression>
1357 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1358 <Original>
1359 thisDoesntThrow()
1360 </Original>
1361 <Expanded>
1362 thisDoesntThrow()
1363 </Expanded>
1364 </Expression>
1365 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1366 <Original>
1367 thisThrows()
1368 </Original>
1369 <Expanded>
1370 thisThrows()
1371 </Expanded>
1372 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1373 expected exception
1374 </Exception>
1375 </Expression>
1376 <OverallResult success="false"/>
1377 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001378 <TestCase name="When unchecked exceptions are thrown directly they are always failures">
Phil Nash2f7a2962013-09-27 19:01:14 +01001379 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1380 unexpected exception
1381 </Exception>
1382 <OverallResult success="false"/>
1383 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001384 <TestCase name="An unchecked exception reports the line of the last assertion">
Phil Nash2f7a2962013-09-27 19:01:14 +01001385 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1386 <Original>
1387 1 == 1
1388 </Original>
1389 <Expanded>
1390 1 == 1
1391 </Expanded>
1392 </Expression>
1393 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1394 <Original>
1395 {Unknown expression after the reported line}
1396 </Original>
1397 <Expanded>
1398 {Unknown expression after the reported line}
1399 </Expanded>
1400 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1401 unexpected exception
1402 </Exception>
1403 </Expression>
1404 <OverallResult success="false"/>
1405 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001406 <TestCase name="When unchecked exceptions are thrown from sections they are always failures">
Phil Nash2f7a2962013-09-27 19:01:14 +01001407 <Section name="section name">
1408 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1409 unexpected exception
1410 </Exception>
1411 <OverallResults successes="0" failures="1"/>
1412 </Section>
1413 <OverallResult success="false"/>
1414 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001415 <TestCase name="When unchecked exceptions are thrown from functions they are always failures">
Phil Nash2f7a2962013-09-27 19:01:14 +01001416 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1417 <Original>
1418 thisThrows() == 0
1419 </Original>
1420 <Expanded>
1421 thisThrows() == 0
1422 </Expanded>
1423 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1424 expected exception
1425 </Exception>
1426 </Expression>
1427 <OverallResult success="false"/>
1428 </TestCase>
Phil Nash1bccc032014-04-12 19:20:46 +01001429 <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail">
1430 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1431 <Original>
1432 thisThrows() == 0
1433 </Original>
1434 <Expanded>
1435 thisThrows() == 0
1436 </Expanded>
1437 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1438 expected exception
1439 </Exception>
1440 </Expression>
1441 <OverallResult success="false"/>
1442 </TestCase>
1443 <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail">
Phil Nasha176b932014-04-12 19:07:24 +01001444 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1445 <Original>
1446 thisThrows() == 0
1447 </Original>
1448 <Expanded>
1449 thisThrows() == 0
1450 </Expanded>
1451 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1452 expected exception
1453 </Exception>
1454 </Expression>
1455 <OverallResult success="false"/>
1456 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001457 <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01001458 <OverallResult success="true"/>
1459 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001460 <TestCase name="Unexpected custom exceptions can be translated">
Phil Nash2f7a2962013-09-27 19:01:14 +01001461 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1462 custom exception
1463 </Exception>
1464 <OverallResult success="false"/>
1465 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001466 <TestCase name="Custom exceptions can be translated when testing for nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01001467 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1468 <Original>
1469 throwCustom()
1470 </Original>
1471 <Expanded>
1472 throwCustom()
1473 </Expanded>
1474 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1475 custom exception - not std
1476 </Exception>
1477 </Expression>
1478 <OverallResult success="false"/>
1479 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001480 <TestCase name="Custom exceptions can be translated when testing for throwing as something else">
Phil Nash2f7a2962013-09-27 19:01:14 +01001481 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1482 <Original>
1483 throwCustom()
1484 </Original>
1485 <Expanded>
1486 throwCustom()
1487 </Expanded>
1488 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1489 custom exception - not std
1490 </Exception>
1491 </Expression>
1492 <OverallResult success="false"/>
1493 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001494 <TestCase name="Unexpected exceptions can be translated">
Phil Nash2f7a2962013-09-27 19:01:14 +01001495 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1496 3.14
1497 </Exception>
1498 <OverallResult success="false"/>
1499 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001500 <TestCase name="NotImplemented exception">
Phil Nash2f7a2962013-09-27 19:01:14 +01001501 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1502 <Original>
1503 thisFunctionNotImplemented( 7 )
1504 </Original>
1505 <Expanded>
1506 thisFunctionNotImplemented( 7 )
1507 </Expanded>
1508 </Expression>
1509 <OverallResult success="true"/>
1510 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001511 <TestCase name="Generators over two ranges">
Phil Nash2f7a2962013-09-27 19:01:14 +01001512 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1513 <Original>
1514 multiply( i, 2 ) == i*2
1515 </Original>
1516 <Expanded>
1517 2 == 2
1518 </Expanded>
1519 </Expression>
1520 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1521 <Original>
1522 multiply( j, 2 ) == j*2
1523 </Original>
1524 <Expanded>
1525 200 == 200
1526 </Expanded>
1527 </Expression>
1528 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1529 <Original>
1530 multiply( i, 2 ) == i*2
1531 </Original>
1532 <Expanded>
1533 4 == 4
1534 </Expanded>
1535 </Expression>
1536 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1537 <Original>
1538 multiply( j, 2 ) == j*2
1539 </Original>
1540 <Expanded>
1541 200 == 200
1542 </Expanded>
1543 </Expression>
1544 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1545 <Original>
1546 multiply( i, 2 ) == i*2
1547 </Original>
1548 <Expanded>
1549 6 == 6
1550 </Expanded>
1551 </Expression>
1552 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1553 <Original>
1554 multiply( j, 2 ) == j*2
1555 </Original>
1556 <Expanded>
1557 200 == 200
1558 </Expanded>
1559 </Expression>
1560 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1561 <Original>
1562 multiply( i, 2 ) == i*2
1563 </Original>
1564 <Expanded>
1565 8 == 8
1566 </Expanded>
1567 </Expression>
1568 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1569 <Original>
1570 multiply( j, 2 ) == j*2
1571 </Original>
1572 <Expanded>
1573 200 == 200
1574 </Expanded>
1575 </Expression>
1576 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1577 <Original>
1578 multiply( i, 2 ) == i*2
1579 </Original>
1580 <Expanded>
1581 10 == 10
1582 </Expanded>
1583 </Expression>
1584 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1585 <Original>
1586 multiply( j, 2 ) == j*2
1587 </Original>
1588 <Expanded>
1589 200 == 200
1590 </Expanded>
1591 </Expression>
1592 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1593 <Original>
1594 multiply( i, 2 ) == i*2
1595 </Original>
1596 <Expanded>
1597 30 == 30
1598 </Expanded>
1599 </Expression>
1600 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1601 <Original>
1602 multiply( j, 2 ) == j*2
1603 </Original>
1604 <Expanded>
1605 200 == 200
1606 </Expanded>
1607 </Expression>
1608 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1609 <Original>
1610 multiply( i, 2 ) == i*2
1611 </Original>
1612 <Expanded>
1613 40 == 40
1614 </Expanded>
1615 </Expression>
1616 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1617 <Original>
1618 multiply( j, 2 ) == j*2
1619 </Original>
1620 <Expanded>
1621 200 == 200
1622 </Expanded>
1623 </Expression>
1624 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1625 <Original>
1626 multiply( i, 2 ) == i*2
1627 </Original>
1628 <Expanded>
1629 42 == 42
1630 </Expanded>
1631 </Expression>
1632 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1633 <Original>
1634 multiply( j, 2 ) == j*2
1635 </Original>
1636 <Expanded>
1637 200 == 200
1638 </Expanded>
1639 </Expression>
1640 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1641 <Original>
1642 multiply( i, 2 ) == i*2
1643 </Original>
1644 <Expanded>
1645 72 == 72
1646 </Expanded>
1647 </Expression>
1648 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1649 <Original>
1650 multiply( j, 2 ) == j*2
1651 </Original>
1652 <Expanded>
1653 200 == 200
1654 </Expanded>
1655 </Expression>
1656 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1657 <Original>
1658 multiply( i, 2 ) == i*2
1659 </Original>
1660 <Expanded>
1661 2 == 2
1662 </Expanded>
1663 </Expression>
1664 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1665 <Original>
1666 multiply( j, 2 ) == j*2
1667 </Original>
1668 <Expanded>
1669 202 == 202
1670 </Expanded>
1671 </Expression>
1672 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1673 <Original>
1674 multiply( i, 2 ) == i*2
1675 </Original>
1676 <Expanded>
1677 4 == 4
1678 </Expanded>
1679 </Expression>
1680 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1681 <Original>
1682 multiply( j, 2 ) == j*2
1683 </Original>
1684 <Expanded>
1685 202 == 202
1686 </Expanded>
1687 </Expression>
1688 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1689 <Original>
1690 multiply( i, 2 ) == i*2
1691 </Original>
1692 <Expanded>
1693 6 == 6
1694 </Expanded>
1695 </Expression>
1696 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1697 <Original>
1698 multiply( j, 2 ) == j*2
1699 </Original>
1700 <Expanded>
1701 202 == 202
1702 </Expanded>
1703 </Expression>
1704 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1705 <Original>
1706 multiply( i, 2 ) == i*2
1707 </Original>
1708 <Expanded>
1709 8 == 8
1710 </Expanded>
1711 </Expression>
1712 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1713 <Original>
1714 multiply( j, 2 ) == j*2
1715 </Original>
1716 <Expanded>
1717 202 == 202
1718 </Expanded>
1719 </Expression>
1720 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1721 <Original>
1722 multiply( i, 2 ) == i*2
1723 </Original>
1724 <Expanded>
1725 10 == 10
1726 </Expanded>
1727 </Expression>
1728 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1729 <Original>
1730 multiply( j, 2 ) == j*2
1731 </Original>
1732 <Expanded>
1733 202 == 202
1734 </Expanded>
1735 </Expression>
1736 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1737 <Original>
1738 multiply( i, 2 ) == i*2
1739 </Original>
1740 <Expanded>
1741 30 == 30
1742 </Expanded>
1743 </Expression>
1744 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1745 <Original>
1746 multiply( j, 2 ) == j*2
1747 </Original>
1748 <Expanded>
1749 202 == 202
1750 </Expanded>
1751 </Expression>
1752 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1753 <Original>
1754 multiply( i, 2 ) == i*2
1755 </Original>
1756 <Expanded>
1757 40 == 40
1758 </Expanded>
1759 </Expression>
1760 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1761 <Original>
1762 multiply( j, 2 ) == j*2
1763 </Original>
1764 <Expanded>
1765 202 == 202
1766 </Expanded>
1767 </Expression>
1768 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1769 <Original>
1770 multiply( i, 2 ) == i*2
1771 </Original>
1772 <Expanded>
1773 42 == 42
1774 </Expanded>
1775 </Expression>
1776 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1777 <Original>
1778 multiply( j, 2 ) == j*2
1779 </Original>
1780 <Expanded>
1781 202 == 202
1782 </Expanded>
1783 </Expression>
1784 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1785 <Original>
1786 multiply( i, 2 ) == i*2
1787 </Original>
1788 <Expanded>
1789 72 == 72
1790 </Expanded>
1791 </Expression>
1792 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1793 <Original>
1794 multiply( j, 2 ) == j*2
1795 </Original>
1796 <Expanded>
1797 202 == 202
1798 </Expanded>
1799 </Expression>
1800 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1801 <Original>
1802 multiply( i, 2 ) == i*2
1803 </Original>
1804 <Expanded>
1805 2 == 2
1806 </Expanded>
1807 </Expression>
1808 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1809 <Original>
1810 multiply( j, 2 ) == j*2
1811 </Original>
1812 <Expanded>
1813 204 == 204
1814 </Expanded>
1815 </Expression>
1816 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1817 <Original>
1818 multiply( i, 2 ) == i*2
1819 </Original>
1820 <Expanded>
1821 4 == 4
1822 </Expanded>
1823 </Expression>
1824 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1825 <Original>
1826 multiply( j, 2 ) == j*2
1827 </Original>
1828 <Expanded>
1829 204 == 204
1830 </Expanded>
1831 </Expression>
1832 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1833 <Original>
1834 multiply( i, 2 ) == i*2
1835 </Original>
1836 <Expanded>
1837 6 == 6
1838 </Expanded>
1839 </Expression>
1840 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1841 <Original>
1842 multiply( j, 2 ) == j*2
1843 </Original>
1844 <Expanded>
1845 204 == 204
1846 </Expanded>
1847 </Expression>
1848 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1849 <Original>
1850 multiply( i, 2 ) == i*2
1851 </Original>
1852 <Expanded>
1853 8 == 8
1854 </Expanded>
1855 </Expression>
1856 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1857 <Original>
1858 multiply( j, 2 ) == j*2
1859 </Original>
1860 <Expanded>
1861 204 == 204
1862 </Expanded>
1863 </Expression>
1864 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1865 <Original>
1866 multiply( i, 2 ) == i*2
1867 </Original>
1868 <Expanded>
1869 10 == 10
1870 </Expanded>
1871 </Expression>
1872 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1873 <Original>
1874 multiply( j, 2 ) == j*2
1875 </Original>
1876 <Expanded>
1877 204 == 204
1878 </Expanded>
1879 </Expression>
1880 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1881 <Original>
1882 multiply( i, 2 ) == i*2
1883 </Original>
1884 <Expanded>
1885 30 == 30
1886 </Expanded>
1887 </Expression>
1888 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1889 <Original>
1890 multiply( j, 2 ) == j*2
1891 </Original>
1892 <Expanded>
1893 204 == 204
1894 </Expanded>
1895 </Expression>
1896 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1897 <Original>
1898 multiply( i, 2 ) == i*2
1899 </Original>
1900 <Expanded>
1901 40 == 40
1902 </Expanded>
1903 </Expression>
1904 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1905 <Original>
1906 multiply( j, 2 ) == j*2
1907 </Original>
1908 <Expanded>
1909 204 == 204
1910 </Expanded>
1911 </Expression>
1912 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1913 <Original>
1914 multiply( i, 2 ) == i*2
1915 </Original>
1916 <Expanded>
1917 42 == 42
1918 </Expanded>
1919 </Expression>
1920 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1921 <Original>
1922 multiply( j, 2 ) == j*2
1923 </Original>
1924 <Expanded>
1925 204 == 204
1926 </Expanded>
1927 </Expression>
1928 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1929 <Original>
1930 multiply( i, 2 ) == i*2
1931 </Original>
1932 <Expanded>
1933 72 == 72
1934 </Expanded>
1935 </Expression>
1936 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1937 <Original>
1938 multiply( j, 2 ) == j*2
1939 </Original>
1940 <Expanded>
1941 204 == 204
1942 </Expanded>
1943 </Expression>
1944 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1945 <Original>
1946 multiply( i, 2 ) == i*2
1947 </Original>
1948 <Expanded>
1949 2 == 2
1950 </Expanded>
1951 </Expression>
1952 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1953 <Original>
1954 multiply( j, 2 ) == j*2
1955 </Original>
1956 <Expanded>
1957 206 == 206
1958 </Expanded>
1959 </Expression>
1960 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1961 <Original>
1962 multiply( i, 2 ) == i*2
1963 </Original>
1964 <Expanded>
1965 4 == 4
1966 </Expanded>
1967 </Expression>
1968 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1969 <Original>
1970 multiply( j, 2 ) == j*2
1971 </Original>
1972 <Expanded>
1973 206 == 206
1974 </Expanded>
1975 </Expression>
1976 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1977 <Original>
1978 multiply( i, 2 ) == i*2
1979 </Original>
1980 <Expanded>
1981 6 == 6
1982 </Expanded>
1983 </Expression>
1984 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1985 <Original>
1986 multiply( j, 2 ) == j*2
1987 </Original>
1988 <Expanded>
1989 206 == 206
1990 </Expanded>
1991 </Expression>
1992 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1993 <Original>
1994 multiply( i, 2 ) == i*2
1995 </Original>
1996 <Expanded>
1997 8 == 8
1998 </Expanded>
1999 </Expression>
2000 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2001 <Original>
2002 multiply( j, 2 ) == j*2
2003 </Original>
2004 <Expanded>
2005 206 == 206
2006 </Expanded>
2007 </Expression>
2008 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2009 <Original>
2010 multiply( i, 2 ) == i*2
2011 </Original>
2012 <Expanded>
2013 10 == 10
2014 </Expanded>
2015 </Expression>
2016 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2017 <Original>
2018 multiply( j, 2 ) == j*2
2019 </Original>
2020 <Expanded>
2021 206 == 206
2022 </Expanded>
2023 </Expression>
2024 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2025 <Original>
2026 multiply( i, 2 ) == i*2
2027 </Original>
2028 <Expanded>
2029 30 == 30
2030 </Expanded>
2031 </Expression>
2032 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2033 <Original>
2034 multiply( j, 2 ) == j*2
2035 </Original>
2036 <Expanded>
2037 206 == 206
2038 </Expanded>
2039 </Expression>
2040 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2041 <Original>
2042 multiply( i, 2 ) == i*2
2043 </Original>
2044 <Expanded>
2045 40 == 40
2046 </Expanded>
2047 </Expression>
2048 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2049 <Original>
2050 multiply( j, 2 ) == j*2
2051 </Original>
2052 <Expanded>
2053 206 == 206
2054 </Expanded>
2055 </Expression>
2056 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2057 <Original>
2058 multiply( i, 2 ) == i*2
2059 </Original>
2060 <Expanded>
2061 42 == 42
2062 </Expanded>
2063 </Expression>
2064 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2065 <Original>
2066 multiply( j, 2 ) == j*2
2067 </Original>
2068 <Expanded>
2069 206 == 206
2070 </Expanded>
2071 </Expression>
2072 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2073 <Original>
2074 multiply( i, 2 ) == i*2
2075 </Original>
2076 <Expanded>
2077 72 == 72
2078 </Expanded>
2079 </Expression>
2080 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2081 <Original>
2082 multiply( j, 2 ) == j*2
2083 </Original>
2084 <Expanded>
2085 206 == 206
2086 </Expanded>
2087 </Expression>
2088 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2089 <Original>
2090 multiply( i, 2 ) == i*2
2091 </Original>
2092 <Expanded>
2093 2 == 2
2094 </Expanded>
2095 </Expression>
2096 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2097 <Original>
2098 multiply( j, 2 ) == j*2
2099 </Original>
2100 <Expanded>
2101 208 == 208
2102 </Expanded>
2103 </Expression>
2104 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2105 <Original>
2106 multiply( i, 2 ) == i*2
2107 </Original>
2108 <Expanded>
2109 4 == 4
2110 </Expanded>
2111 </Expression>
2112 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2113 <Original>
2114 multiply( j, 2 ) == j*2
2115 </Original>
2116 <Expanded>
2117 208 == 208
2118 </Expanded>
2119 </Expression>
2120 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2121 <Original>
2122 multiply( i, 2 ) == i*2
2123 </Original>
2124 <Expanded>
2125 6 == 6
2126 </Expanded>
2127 </Expression>
2128 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2129 <Original>
2130 multiply( j, 2 ) == j*2
2131 </Original>
2132 <Expanded>
2133 208 == 208
2134 </Expanded>
2135 </Expression>
2136 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2137 <Original>
2138 multiply( i, 2 ) == i*2
2139 </Original>
2140 <Expanded>
2141 8 == 8
2142 </Expanded>
2143 </Expression>
2144 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2145 <Original>
2146 multiply( j, 2 ) == j*2
2147 </Original>
2148 <Expanded>
2149 208 == 208
2150 </Expanded>
2151 </Expression>
2152 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2153 <Original>
2154 multiply( i, 2 ) == i*2
2155 </Original>
2156 <Expanded>
2157 10 == 10
2158 </Expanded>
2159 </Expression>
2160 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2161 <Original>
2162 multiply( j, 2 ) == j*2
2163 </Original>
2164 <Expanded>
2165 208 == 208
2166 </Expanded>
2167 </Expression>
2168 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2169 <Original>
2170 multiply( i, 2 ) == i*2
2171 </Original>
2172 <Expanded>
2173 30 == 30
2174 </Expanded>
2175 </Expression>
2176 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2177 <Original>
2178 multiply( j, 2 ) == j*2
2179 </Original>
2180 <Expanded>
2181 208 == 208
2182 </Expanded>
2183 </Expression>
2184 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2185 <Original>
2186 multiply( i, 2 ) == i*2
2187 </Original>
2188 <Expanded>
2189 40 == 40
2190 </Expanded>
2191 </Expression>
2192 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2193 <Original>
2194 multiply( j, 2 ) == j*2
2195 </Original>
2196 <Expanded>
2197 208 == 208
2198 </Expanded>
2199 </Expression>
2200 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2201 <Original>
2202 multiply( i, 2 ) == i*2
2203 </Original>
2204 <Expanded>
2205 42 == 42
2206 </Expanded>
2207 </Expression>
2208 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2209 <Original>
2210 multiply( j, 2 ) == j*2
2211 </Original>
2212 <Expanded>
2213 208 == 208
2214 </Expanded>
2215 </Expression>
2216 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2217 <Original>
2218 multiply( i, 2 ) == i*2
2219 </Original>
2220 <Expanded>
2221 72 == 72
2222 </Expanded>
2223 </Expression>
2224 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2225 <Original>
2226 multiply( j, 2 ) == j*2
2227 </Original>
2228 <Expanded>
2229 208 == 208
2230 </Expanded>
2231 </Expression>
2232 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2233 <Original>
2234 multiply( i, 2 ) == i*2
2235 </Original>
2236 <Expanded>
2237 2 == 2
2238 </Expanded>
2239 </Expression>
2240 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2241 <Original>
2242 multiply( j, 2 ) == j*2
2243 </Original>
2244 <Expanded>
2245 210 == 210
2246 </Expanded>
2247 </Expression>
2248 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2249 <Original>
2250 multiply( i, 2 ) == i*2
2251 </Original>
2252 <Expanded>
2253 4 == 4
2254 </Expanded>
2255 </Expression>
2256 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2257 <Original>
2258 multiply( j, 2 ) == j*2
2259 </Original>
2260 <Expanded>
2261 210 == 210
2262 </Expanded>
2263 </Expression>
2264 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2265 <Original>
2266 multiply( i, 2 ) == i*2
2267 </Original>
2268 <Expanded>
2269 6 == 6
2270 </Expanded>
2271 </Expression>
2272 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2273 <Original>
2274 multiply( j, 2 ) == j*2
2275 </Original>
2276 <Expanded>
2277 210 == 210
2278 </Expanded>
2279 </Expression>
2280 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2281 <Original>
2282 multiply( i, 2 ) == i*2
2283 </Original>
2284 <Expanded>
2285 8 == 8
2286 </Expanded>
2287 </Expression>
2288 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2289 <Original>
2290 multiply( j, 2 ) == j*2
2291 </Original>
2292 <Expanded>
2293 210 == 210
2294 </Expanded>
2295 </Expression>
2296 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2297 <Original>
2298 multiply( i, 2 ) == i*2
2299 </Original>
2300 <Expanded>
2301 10 == 10
2302 </Expanded>
2303 </Expression>
2304 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2305 <Original>
2306 multiply( j, 2 ) == j*2
2307 </Original>
2308 <Expanded>
2309 210 == 210
2310 </Expanded>
2311 </Expression>
2312 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2313 <Original>
2314 multiply( i, 2 ) == i*2
2315 </Original>
2316 <Expanded>
2317 30 == 30
2318 </Expanded>
2319 </Expression>
2320 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2321 <Original>
2322 multiply( j, 2 ) == j*2
2323 </Original>
2324 <Expanded>
2325 210 == 210
2326 </Expanded>
2327 </Expression>
2328 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2329 <Original>
2330 multiply( i, 2 ) == i*2
2331 </Original>
2332 <Expanded>
2333 40 == 40
2334 </Expanded>
2335 </Expression>
2336 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2337 <Original>
2338 multiply( j, 2 ) == j*2
2339 </Original>
2340 <Expanded>
2341 210 == 210
2342 </Expanded>
2343 </Expression>
2344 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2345 <Original>
2346 multiply( i, 2 ) == i*2
2347 </Original>
2348 <Expanded>
2349 42 == 42
2350 </Expanded>
2351 </Expression>
2352 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2353 <Original>
2354 multiply( j, 2 ) == j*2
2355 </Original>
2356 <Expanded>
2357 210 == 210
2358 </Expanded>
2359 </Expression>
2360 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2361 <Original>
2362 multiply( i, 2 ) == i*2
2363 </Original>
2364 <Expanded>
2365 72 == 72
2366 </Expanded>
2367 </Expression>
2368 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2369 <Original>
2370 multiply( j, 2 ) == j*2
2371 </Original>
2372 <Expanded>
2373 210 == 210
2374 </Expanded>
2375 </Expression>
2376 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2377 <Original>
2378 multiply( i, 2 ) == i*2
2379 </Original>
2380 <Expanded>
2381 2 == 2
2382 </Expanded>
2383 </Expression>
2384 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2385 <Original>
2386 multiply( j, 2 ) == j*2
2387 </Original>
2388 <Expanded>
2389 212 == 212
2390 </Expanded>
2391 </Expression>
2392 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2393 <Original>
2394 multiply( i, 2 ) == i*2
2395 </Original>
2396 <Expanded>
2397 4 == 4
2398 </Expanded>
2399 </Expression>
2400 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2401 <Original>
2402 multiply( j, 2 ) == j*2
2403 </Original>
2404 <Expanded>
2405 212 == 212
2406 </Expanded>
2407 </Expression>
2408 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2409 <Original>
2410 multiply( i, 2 ) == i*2
2411 </Original>
2412 <Expanded>
2413 6 == 6
2414 </Expanded>
2415 </Expression>
2416 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2417 <Original>
2418 multiply( j, 2 ) == j*2
2419 </Original>
2420 <Expanded>
2421 212 == 212
2422 </Expanded>
2423 </Expression>
2424 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2425 <Original>
2426 multiply( i, 2 ) == i*2
2427 </Original>
2428 <Expanded>
2429 8 == 8
2430 </Expanded>
2431 </Expression>
2432 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2433 <Original>
2434 multiply( j, 2 ) == j*2
2435 </Original>
2436 <Expanded>
2437 212 == 212
2438 </Expanded>
2439 </Expression>
2440 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2441 <Original>
2442 multiply( i, 2 ) == i*2
2443 </Original>
2444 <Expanded>
2445 10 == 10
2446 </Expanded>
2447 </Expression>
2448 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2449 <Original>
2450 multiply( j, 2 ) == j*2
2451 </Original>
2452 <Expanded>
2453 212 == 212
2454 </Expanded>
2455 </Expression>
2456 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2457 <Original>
2458 multiply( i, 2 ) == i*2
2459 </Original>
2460 <Expanded>
2461 30 == 30
2462 </Expanded>
2463 </Expression>
2464 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2465 <Original>
2466 multiply( j, 2 ) == j*2
2467 </Original>
2468 <Expanded>
2469 212 == 212
2470 </Expanded>
2471 </Expression>
2472 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2473 <Original>
2474 multiply( i, 2 ) == i*2
2475 </Original>
2476 <Expanded>
2477 40 == 40
2478 </Expanded>
2479 </Expression>
2480 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2481 <Original>
2482 multiply( j, 2 ) == j*2
2483 </Original>
2484 <Expanded>
2485 212 == 212
2486 </Expanded>
2487 </Expression>
2488 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2489 <Original>
2490 multiply( i, 2 ) == i*2
2491 </Original>
2492 <Expanded>
2493 42 == 42
2494 </Expanded>
2495 </Expression>
2496 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2497 <Original>
2498 multiply( j, 2 ) == j*2
2499 </Original>
2500 <Expanded>
2501 212 == 212
2502 </Expanded>
2503 </Expression>
2504 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2505 <Original>
2506 multiply( i, 2 ) == i*2
2507 </Original>
2508 <Expanded>
2509 72 == 72
2510 </Expanded>
2511 </Expression>
2512 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2513 <Original>
2514 multiply( j, 2 ) == j*2
2515 </Original>
2516 <Expanded>
2517 212 == 212
2518 </Expanded>
2519 </Expression>
2520 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2521 <Original>
2522 multiply( i, 2 ) == i*2
2523 </Original>
2524 <Expanded>
2525 2 == 2
2526 </Expanded>
2527 </Expression>
2528 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2529 <Original>
2530 multiply( j, 2 ) == j*2
2531 </Original>
2532 <Expanded>
2533 214 == 214
2534 </Expanded>
2535 </Expression>
2536 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2537 <Original>
2538 multiply( i, 2 ) == i*2
2539 </Original>
2540 <Expanded>
2541 4 == 4
2542 </Expanded>
2543 </Expression>
2544 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2545 <Original>
2546 multiply( j, 2 ) == j*2
2547 </Original>
2548 <Expanded>
2549 214 == 214
2550 </Expanded>
2551 </Expression>
2552 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2553 <Original>
2554 multiply( i, 2 ) == i*2
2555 </Original>
2556 <Expanded>
2557 6 == 6
2558 </Expanded>
2559 </Expression>
2560 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2561 <Original>
2562 multiply( j, 2 ) == j*2
2563 </Original>
2564 <Expanded>
2565 214 == 214
2566 </Expanded>
2567 </Expression>
2568 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2569 <Original>
2570 multiply( i, 2 ) == i*2
2571 </Original>
2572 <Expanded>
2573 8 == 8
2574 </Expanded>
2575 </Expression>
2576 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2577 <Original>
2578 multiply( j, 2 ) == j*2
2579 </Original>
2580 <Expanded>
2581 214 == 214
2582 </Expanded>
2583 </Expression>
2584 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2585 <Original>
2586 multiply( i, 2 ) == i*2
2587 </Original>
2588 <Expanded>
2589 10 == 10
2590 </Expanded>
2591 </Expression>
2592 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2593 <Original>
2594 multiply( j, 2 ) == j*2
2595 </Original>
2596 <Expanded>
2597 214 == 214
2598 </Expanded>
2599 </Expression>
2600 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2601 <Original>
2602 multiply( i, 2 ) == i*2
2603 </Original>
2604 <Expanded>
2605 30 == 30
2606 </Expanded>
2607 </Expression>
2608 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2609 <Original>
2610 multiply( j, 2 ) == j*2
2611 </Original>
2612 <Expanded>
2613 214 == 214
2614 </Expanded>
2615 </Expression>
2616 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2617 <Original>
2618 multiply( i, 2 ) == i*2
2619 </Original>
2620 <Expanded>
2621 40 == 40
2622 </Expanded>
2623 </Expression>
2624 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2625 <Original>
2626 multiply( j, 2 ) == j*2
2627 </Original>
2628 <Expanded>
2629 214 == 214
2630 </Expanded>
2631 </Expression>
2632 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2633 <Original>
2634 multiply( i, 2 ) == i*2
2635 </Original>
2636 <Expanded>
2637 42 == 42
2638 </Expanded>
2639 </Expression>
2640 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2641 <Original>
2642 multiply( j, 2 ) == j*2
2643 </Original>
2644 <Expanded>
2645 214 == 214
2646 </Expanded>
2647 </Expression>
2648 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2649 <Original>
2650 multiply( i, 2 ) == i*2
2651 </Original>
2652 <Expanded>
2653 72 == 72
2654 </Expanded>
2655 </Expression>
2656 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2657 <Original>
2658 multiply( j, 2 ) == j*2
2659 </Original>
2660 <Expanded>
2661 214 == 214
2662 </Expanded>
2663 </Expression>
2664 <OverallResult success="true"/>
2665 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002666 <TestCase name="Generator over a range of pairs">
Phil Nash2f7a2962013-09-27 19:01:14 +01002667 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2668 <Original>
2669 i->first == i->second-1
2670 </Original>
2671 <Expanded>
2672 0 == 0
2673 </Expanded>
2674 </Expression>
2675 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2676 <Original>
2677 i->first == i->second-1
2678 </Original>
2679 <Expanded>
2680 2 == 2
2681 </Expanded>
2682 </Expression>
2683 <OverallResult success="true"/>
2684 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002685 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002686 <Info>
2687 this is a message
2688 </Info>
2689 <Warning>
2690 this is a warning
2691 </Warning>
2692 <OverallResult success="true"/>
2693 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002694 <TestCase name="SUCCEED counts as a test pass">
Phil Nash2f7a2962013-09-27 19:01:14 +01002695 <OverallResult success="true"/>
2696 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002697 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002698 <Info>
2699 this message should be logged
2700 </Info>
2701 <Info>
2702 so should this
2703 </Info>
2704 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2705 <Original>
2706 a == 1
2707 </Original>
2708 <Expanded>
2709 2 == 1
2710 </Expanded>
2711 </Expression>
2712 <OverallResult success="false"/>
2713 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002714 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nash2f7a2962013-09-27 19:01:14 +01002715 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2716 <Original>
2717 a == 2
2718 </Original>
2719 <Expanded>
2720 2 == 2
2721 </Expanded>
2722 </Expression>
2723 <Info>
2724 this message should be logged
2725 </Info>
2726 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2727 <Original>
2728 a == 1
2729 </Original>
2730 <Expanded>
2731 2 == 1
2732 </Expanded>
2733 </Expression>
2734 <Info>
2735 and this, but later
2736 </Info>
2737 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2738 <Original>
2739 a == 0
2740 </Original>
2741 <Expanded>
2742 2 == 0
2743 </Expanded>
2744 </Expression>
2745 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2746 <Original>
2747 a == 2
2748 </Original>
2749 <Expanded>
2750 2 == 2
2751 </Expanded>
2752 </Expression>
2753 <OverallResult success="false"/>
2754 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002755 <TestCase name="FAIL aborts the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002756 <Failure>
2757 This is a failure
2758 </Failure>
2759 <OverallResult success="false"/>
2760 </TestCase>
Phil Nash859760a2013-12-14 14:34:05 +00002761 <TestCase name="FAIL does not require an argument">
2762 <Failure/>
2763 <OverallResult success="false"/>
2764 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00002765 <TestCase name="SUCCESS does not require an argument">
2766 <OverallResult success="true"/>
2767 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002768 <TestCase name="Output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002769 <Section name="one">
2770 <Failure>
2771 Message from section one
2772 </Failure>
2773 <OverallResults successes="0" failures="1"/>
2774 </Section>
2775 <Section name="two">
2776 <Failure>
2777 Message from section two
2778 </Failure>
2779 <OverallResults successes="0" failures="1"/>
2780 </Section>
2781 <OverallResult success="false"/>
2782 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002783 <TestCase name="Standard output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002784 <Section name="one">
2785 <OverallResults successes="0" failures="1"/>
2786 </Section>
2787 <Section name="two">
2788 <OverallResults successes="0" failures="1"/>
2789 </Section>
2790 <OverallResult success="true"/>
2791 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002792 <TestCase name="SCOPED_INFO is reset for each loop">
Phil Nash2f7a2962013-09-27 19:01:14 +01002793 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2794 <Original>
2795 i &lt; 10
2796 </Original>
2797 <Expanded>
2798 0 &lt; 10
2799 </Expanded>
2800 </Expression>
2801 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2802 <Original>
2803 i &lt; 10
2804 </Original>
2805 <Expanded>
2806 1 &lt; 10
2807 </Expanded>
2808 </Expression>
2809 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2810 <Original>
2811 i &lt; 10
2812 </Original>
2813 <Expanded>
2814 2 &lt; 10
2815 </Expanded>
2816 </Expression>
2817 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2818 <Original>
2819 i &lt; 10
2820 </Original>
2821 <Expanded>
2822 3 &lt; 10
2823 </Expanded>
2824 </Expression>
2825 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2826 <Original>
2827 i &lt; 10
2828 </Original>
2829 <Expanded>
2830 4 &lt; 10
2831 </Expanded>
2832 </Expression>
2833 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2834 <Original>
2835 i &lt; 10
2836 </Original>
2837 <Expanded>
2838 5 &lt; 10
2839 </Expanded>
2840 </Expression>
2841 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2842 <Original>
2843 i &lt; 10
2844 </Original>
2845 <Expanded>
2846 6 &lt; 10
2847 </Expanded>
2848 </Expression>
2849 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2850 <Original>
2851 i &lt; 10
2852 </Original>
2853 <Expanded>
2854 7 &lt; 10
2855 </Expanded>
2856 </Expression>
2857 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2858 <Original>
2859 i &lt; 10
2860 </Original>
2861 <Expanded>
2862 8 &lt; 10
2863 </Expanded>
2864 </Expression>
2865 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2866 <Original>
2867 i &lt; 10
2868 </Original>
2869 <Expanded>
2870 9 &lt; 10
2871 </Expanded>
2872 </Expression>
2873 <Info>
2874 current counter 10
2875 </Info>
2876 <Info>
2877 i := 10
2878 </Info>
2879 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2880 <Original>
2881 i &lt; 10
2882 </Original>
2883 <Expanded>
2884 10 &lt; 10
2885 </Expanded>
2886 </Expression>
2887 <OverallResult success="false"/>
2888 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002889 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002890 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2891 <Original>
2892 1 == 2
2893 </Original>
2894 <Expanded>
2895 1 == 2
2896 </Expanded>
2897 </Expression>
2898 <OverallResult success="false"/>
2899 </TestCase>
2900 <TestCase name="just info">
2901 <OverallResult success="true"/>
2902 </TestCase>
2903 <TestCase name="just failure">
2904 <Failure>
2905 Previous info should not be seen
2906 </Failure>
2907 <OverallResult success="false"/>
2908 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002909 <TestCase name="sends information to INFO">
2910 <Info>
2911 hi
2912 </Info>
2913 <Info>
2914 i := 7
2915 </Info>
2916 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2917 <Original>
2918 false
2919 </Original>
2920 <Expanded>
2921 false
2922 </Expanded>
2923 </Expression>
2924 <OverallResult success="false"/>
2925 </TestCase>
2926 <TestCase name="random SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002927 <Section name="s1" description="doesn't equal">
2928 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2929 <Original>
2930 a != b
2931 </Original>
2932 <Expanded>
2933 1 != 2
2934 </Expanded>
2935 </Expression>
2936 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2937 <Original>
2938 b != a
2939 </Original>
2940 <Expanded>
2941 2 != 1
2942 </Expanded>
2943 </Expression>
2944 <OverallResults successes="2" failures="0"/>
2945 </Section>
2946 <Section name="s2" description="not equal">
2947 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2948 <Original>
2949 a != b
2950 </Original>
2951 <Expanded>
2952 1 != 2
2953 </Expanded>
2954 </Expression>
2955 <OverallResults successes="1" failures="0"/>
2956 </Section>
2957 <OverallResult success="true"/>
2958 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002959 <TestCase name="nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002960 <Section name="s1" description="doesn't equal">
2961 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2962 <Original>
2963 a != b
2964 </Original>
2965 <Expanded>
2966 1 != 2
2967 </Expanded>
2968 </Expression>
2969 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2970 <Original>
2971 b != a
2972 </Original>
2973 <Expanded>
2974 2 != 1
2975 </Expanded>
2976 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01002977 <Section name="s2" description="not equal">
2978 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2979 <Original>
2980 a != b
2981 </Original>
2982 <Expanded>
2983 1 != 2
2984 </Expanded>
2985 </Expression>
2986 <OverallResults successes="1" failures="0"/>
2987 </Section>
2988 <OverallResults successes="3" failures="0"/>
2989 </Section>
2990 <OverallResult success="true"/>
2991 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002992 <TestCase name="more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002993 <Section name="s1" description="doesn't equal">
Phil Nash2f7a2962013-09-27 19:01:14 +01002994 <Section name="s2" description="equal">
2995 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2996 <Original>
2997 a == b
2998 </Original>
2999 <Expanded>
3000 1 == 2
3001 </Expanded>
3002 </Expression>
3003 <OverallResults successes="0" failures="1"/>
3004 </Section>
3005 <OverallResults successes="0" failures="1"/>
3006 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01003007 <OverallResult success="false"/>
3008 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003009 <TestCase name="even more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003010 <Section name="c">
Phil Nash2f7a2962013-09-27 19:01:14 +01003011 <Section name="d (leaf)">
3012 <OverallResults successes="0" failures="1"/>
3013 </Section>
3014 <OverallResults successes="0" failures="1"/>
3015 </Section>
3016 <Section name="c">
3017 <Section name="e (leaf)">
3018 <OverallResults successes="0" failures="1"/>
3019 </Section>
3020 <OverallResults successes="0" failures="1"/>
3021 </Section>
3022 <Section name="f (leaf)">
3023 <OverallResults successes="0" failures="1"/>
3024 </Section>
3025 <OverallResult success="true"/>
3026 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003027 <TestCase name="looped SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003028 <Section name="s1" description="b is currently: 0">
3029 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3030 <Original>
3031 b > a
3032 </Original>
3033 <Expanded>
3034 0 > 1
3035 </Expanded>
3036 </Expression>
3037 <OverallResults successes="0" failures="1"/>
3038 </Section>
3039 <OverallResult success="false"/>
3040 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003041 <TestCase name="looped tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003042 <Info>
3043 Testing if fib[0] (1) is even
3044 </Info>
3045 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3046 <Original>
3047 ( fib[i] % 2 ) == 0
3048 </Original>
3049 <Expanded>
3050 1 == 0
3051 </Expanded>
3052 </Expression>
3053 <Info>
3054 Testing if fib[1] (1) is even
3055 </Info>
3056 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3057 <Original>
3058 ( fib[i] % 2 ) == 0
3059 </Original>
3060 <Expanded>
3061 1 == 0
3062 </Expanded>
3063 </Expression>
3064 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3065 <Original>
3066 ( fib[i] % 2 ) == 0
3067 </Original>
3068 <Expanded>
3069 0 == 0
3070 </Expanded>
3071 </Expression>
3072 <Info>
3073 Testing if fib[3] (3) is even
3074 </Info>
3075 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3076 <Original>
3077 ( fib[i] % 2 ) == 0
3078 </Original>
3079 <Expanded>
3080 1 == 0
3081 </Expanded>
3082 </Expression>
3083 <Info>
3084 Testing if fib[4] (5) is even
3085 </Info>
3086 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3087 <Original>
3088 ( fib[i] % 2 ) == 0
3089 </Original>
3090 <Expanded>
3091 1 == 0
3092 </Expanded>
3093 </Expression>
3094 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3095 <Original>
3096 ( fib[i] % 2 ) == 0
3097 </Original>
3098 <Expanded>
3099 0 == 0
3100 </Expanded>
3101 </Expression>
3102 <Info>
3103 Testing if fib[6] (13) is even
3104 </Info>
3105 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3106 <Original>
3107 ( fib[i] % 2 ) == 0
3108 </Original>
3109 <Expanded>
3110 1 == 0
3111 </Expanded>
3112 </Expression>
3113 <Info>
3114 Testing if fib[7] (21) is even
3115 </Info>
3116 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3117 <Original>
3118 ( fib[i] % 2 ) == 0
3119 </Original>
3120 <Expanded>
3121 1 == 0
3122 </Expanded>
3123 </Expression>
3124 <OverallResult success="false"/>
3125 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003126 <TestCase name="Sends stuff to stdout and stderr">
Phil Nash2f7a2962013-09-27 19:01:14 +01003127 <OverallResult success="true"/>
3128 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003129 <TestCase name="null strings">
Phil Nash2f7a2962013-09-27 19:01:14 +01003130 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3131 <Original>
3132 makeString( false ) != static_cast&lt;char*>(__null)
3133 </Original>
3134 <Expanded>
3135 &quot;valid string&quot; != {null string}
3136 </Expanded>
3137 </Expression>
3138 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3139 <Original>
3140 makeString( true ) == static_cast&lt;char*>(__null)
3141 </Original>
3142 <Expanded>
3143 {null string} == {null string}
3144 </Expanded>
3145 </Expression>
3146 <OverallResult success="true"/>
3147 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003148 <TestCase name="checkedIf">
Phil Nash2f7a2962013-09-27 19:01:14 +01003149 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3150 <Original>
3151 flag
3152 </Original>
3153 <Expanded>
3154 true
3155 </Expanded>
3156 </Expression>
3157 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3158 <Original>
3159 testCheckedIf( true )
3160 </Original>
3161 <Expanded>
3162 true
3163 </Expanded>
3164 </Expression>
3165 <OverallResult success="true"/>
3166 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003167 <TestCase name="checkedIf, failing">
Phil Nash2f7a2962013-09-27 19:01:14 +01003168 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3169 <Original>
3170 flag
3171 </Original>
3172 <Expanded>
3173 false
3174 </Expanded>
3175 </Expression>
3176 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3177 <Original>
3178 testCheckedIf( false )
3179 </Original>
3180 <Expanded>
3181 false
3182 </Expanded>
3183 </Expression>
3184 <OverallResult success="false"/>
3185 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003186 <TestCase name="checkedElse">
Phil Nash2f7a2962013-09-27 19:01:14 +01003187 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3188 <Original>
3189 flag
3190 </Original>
3191 <Expanded>
3192 true
3193 </Expanded>
3194 </Expression>
3195 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3196 <Original>
3197 testCheckedElse( true )
3198 </Original>
3199 <Expanded>
3200 true
3201 </Expanded>
3202 </Expression>
3203 <OverallResult success="true"/>
3204 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003205 <TestCase name="checkedElse, failing">
Phil Nash2f7a2962013-09-27 19:01:14 +01003206 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3207 <Original>
3208 flag
3209 </Original>
3210 <Expanded>
3211 false
3212 </Expanded>
3213 </Expression>
3214 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3215 <Original>
3216 testCheckedElse( false )
3217 </Original>
3218 <Expanded>
3219 false
3220 </Expanded>
3221 </Expression>
3222 <OverallResult success="false"/>
3223 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003224 <TestCase name="xmlentitycheck">
Phil Nash2f7a2962013-09-27 19:01:14 +01003225 <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>">
3226 <OverallResults successes="0" failures="1"/>
3227 </Section>
3228 <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;">
3229 <OverallResults successes="0" failures="1"/>
3230 </Section>
3231 <OverallResult success="true"/>
3232 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003233 <TestCase name="send a single char to INFO">
Phil Nash2f7a2962013-09-27 19:01:14 +01003234 <Info>
3235 3
3236 </Info>
3237 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3238 <Original>
3239 false
3240 </Original>
3241 <Expanded>
3242 false
3243 </Expanded>
3244 </Expression>
3245 <OverallResult success="false"/>
3246 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003247 <TestCase name="atomic if">
Phil Nash2f7a2962013-09-27 19:01:14 +01003248 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3249 <Original>
3250 x == 0
3251 </Original>
3252 <Expanded>
3253 0 == 0
3254 </Expanded>
3255 </Expression>
3256 <OverallResult success="true"/>
3257 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003258 <TestCase name="String matchers">
Phil Nash2f7a2962013-09-27 19:01:14 +01003259 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3260 <Original>
3261 testStringForMatching() Contains( &quot;string&quot; )
3262 </Original>
3263 <Expanded>
3264 &quot;this string contains 'abc' as a substring&quot; contains: &quot;string&quot;
3265 </Expanded>
3266 </Expression>
3267 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3268 <Original>
3269 testStringForMatching() Contains( &quot;abc&quot; )
3270 </Original>
3271 <Expanded>
3272 &quot;this string contains 'abc' as a substring&quot; contains: &quot;abc&quot;
3273 </Expanded>
3274 </Expression>
3275 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3276 <Original>
3277 testStringForMatching() StartsWith( &quot;this&quot; )
3278 </Original>
3279 <Expanded>
3280 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;this&quot;
3281 </Expanded>
3282 </Expression>
3283 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3284 <Original>
3285 testStringForMatching() EndsWith( &quot;substring&quot; )
3286 </Original>
3287 <Expanded>
3288 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;substring&quot;
3289 </Expanded>
3290 </Expression>
3291 <OverallResult success="true"/>
3292 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003293 <TestCase name="Contains string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003294 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3295 <Original>
3296 testStringForMatching() Contains( &quot;not there&quot; )
3297 </Original>
3298 <Expanded>
3299 &quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;
3300 </Expanded>
3301 </Expression>
3302 <OverallResult success="false"/>
3303 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003304 <TestCase name="StartsWith string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003305 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3306 <Original>
3307 testStringForMatching() StartsWith( &quot;string&quot; )
3308 </Original>
3309 <Expanded>
3310 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;
3311 </Expanded>
3312 </Expression>
3313 <OverallResult success="false"/>
3314 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003315 <TestCase name="EndsWith string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003316 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3317 <Original>
3318 testStringForMatching() EndsWith( &quot;this&quot; )
3319 </Original>
3320 <Expanded>
3321 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;
3322 </Expanded>
3323 </Expression>
3324 <OverallResult success="false"/>
3325 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003326 <TestCase name="Equals string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003327 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3328 <Original>
3329 testStringForMatching() Equals( &quot;something else&quot; )
3330 </Original>
3331 <Expanded>
3332 &quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;
3333 </Expanded>
3334 </Expression>
3335 <OverallResult success="false"/>
3336 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003337 <TestCase name="Equals string matcher, with NULL">
Phil Nash2f7a2962013-09-27 19:01:14 +01003338 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3339 <Original>
3340 &quot;&quot; Equals(__null)
3341 </Original>
3342 <Expanded>
3343 &quot;&quot; equals: &quot;&quot;
3344 </Expanded>
3345 </Expression>
3346 <OverallResult success="true"/>
3347 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003348 <TestCase name="AllOf matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003349 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3350 <Original>
3351 testStringForMatching() AllOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;abc&quot; ) )
3352 </Original>
3353 <Expanded>
3354 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; and contains: &quot;abc&quot; )
3355 </Expanded>
3356 </Expression>
3357 <OverallResult success="true"/>
3358 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003359 <TestCase name="AnyOf matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003360 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3361 <Original>
3362 testStringForMatching() AnyOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;not there&quot; ) )
3363 </Original>
3364 <Expanded>
3365 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; or contains: &quot;not there&quot; )
3366 </Expanded>
3367 </Expression>
3368 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3369 <Original>
3370 testStringForMatching() AnyOf( Catch::Contains( &quot;not there&quot; ), Catch::Contains( &quot;string&quot; ) )
3371 </Original>
3372 <Expanded>
3373 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;not there&quot; or contains: &quot;string&quot; )
3374 </Expanded>
3375 </Expression>
3376 <OverallResult success="true"/>
3377 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003378 <TestCase name="Equals">
Phil Nash2f7a2962013-09-27 19:01:14 +01003379 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3380 <Original>
3381 testStringForMatching() Equals( &quot;this string contains 'abc' as a substring&quot; )
3382 </Original>
3383 <Expanded>
3384 &quot;this string contains 'abc' as a substring&quot; equals: &quot;this string contains 'abc' as a substring&quot;
3385 </Expanded>
3386 </Expression>
3387 <OverallResult success="true"/>
3388 </TestCase>
3389 <TestCase name="Factorials are computed">
3390 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3391 <Original>
3392 Factorial(0) == 1
3393 </Original>
3394 <Expanded>
3395 1 == 1
3396 </Expanded>
3397 </Expression>
3398 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3399 <Original>
3400 Factorial(1) == 1
3401 </Original>
3402 <Expanded>
3403 1 == 1
3404 </Expanded>
3405 </Expression>
3406 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3407 <Original>
3408 Factorial(2) == 2
3409 </Original>
3410 <Expanded>
3411 2 == 2
3412 </Expanded>
3413 </Expression>
3414 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3415 <Original>
3416 Factorial(3) == 6
3417 </Original>
3418 <Expanded>
3419 6 == 6
3420 </Expanded>
3421 </Expression>
3422 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3423 <Original>
3424 Factorial(10) == 3628800
3425 </Original>
3426 <Expanded>
3427 0x<hex digits> == 3628800
3428 </Expanded>
3429 </Expression>
3430 <OverallResult success="true"/>
3431 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003432 <TestCase name="An empty test with no assertions">
Phil Nash2f7a2962013-09-27 19:01:14 +01003433 <OverallResult success="true"/>
3434 </TestCase>
3435 <TestCase name="Nice descriptive name">
3436 <Warning>
3437 This one ran
3438 </Warning>
3439 <OverallResult success="true"/>
3440 </TestCase>
3441 <TestCase name="first tag">
3442 <OverallResult success="true"/>
3443 </TestCase>
3444 <TestCase name="second tag">
3445 <OverallResult success="true"/>
3446 </TestCase>
3447 <TestCase name="vectors can be sized and resized">
3448 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3449 <Original>
3450 v.size() == 5
3451 </Original>
3452 <Expanded>
3453 5 == 5
3454 </Expanded>
3455 </Expression>
3456 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3457 <Original>
3458 v.capacity() >= 5
3459 </Original>
3460 <Expanded>
3461 5 >= 5
3462 </Expanded>
3463 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003464 <Section name="resizing bigger changes size and capacity">
3465 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3466 <Original>
3467 v.size() == 10
3468 </Original>
3469 <Expanded>
3470 10 == 10
3471 </Expanded>
3472 </Expression>
3473 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3474 <Original>
3475 v.capacity() >= 10
3476 </Original>
3477 <Expanded>
3478 10 >= 10
3479 </Expanded>
3480 </Expression>
3481 <OverallResults successes="2" failures="0"/>
3482 </Section>
3483 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3484 <Original>
3485 v.size() == 5
3486 </Original>
3487 <Expanded>
3488 5 == 5
3489 </Expanded>
3490 </Expression>
3491 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3492 <Original>
3493 v.capacity() >= 5
3494 </Original>
3495 <Expanded>
3496 5 >= 5
3497 </Expanded>
3498 </Expression>
3499 <Section name="resizing smaller changes size but not capacity">
3500 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3501 <Original>
3502 v.size() == 0
3503 </Original>
3504 <Expanded>
3505 0 == 0
3506 </Expanded>
3507 </Expression>
3508 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3509 <Original>
3510 v.capacity() >= 5
3511 </Original>
3512 <Expanded>
3513 5 >= 5
3514 </Expanded>
3515 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003516 <Section name="We can use the 'swap trick' to reset the capacity">
3517 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3518 <Original>
3519 v.capacity() == 0
3520 </Original>
3521 <Expanded>
3522 0 == 0
3523 </Expanded>
3524 </Expression>
3525 <OverallResults successes="1" failures="0"/>
3526 </Section>
3527 <OverallResults successes="3" failures="0"/>
3528 </Section>
3529 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3530 <Original>
3531 v.size() == 5
3532 </Original>
3533 <Expanded>
3534 5 == 5
3535 </Expanded>
3536 </Expression>
3537 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3538 <Original>
3539 v.capacity() >= 5
3540 </Original>
3541 <Expanded>
3542 5 >= 5
3543 </Expanded>
3544 </Expression>
3545 <Section name="reserving bigger changes capacity but not size">
3546 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3547 <Original>
3548 v.size() == 5
3549 </Original>
3550 <Expanded>
3551 5 == 5
3552 </Expanded>
3553 </Expression>
3554 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3555 <Original>
3556 v.capacity() >= 10
3557 </Original>
3558 <Expanded>
3559 10 >= 10
3560 </Expanded>
3561 </Expression>
3562 <OverallResults successes="2" failures="0"/>
3563 </Section>
3564 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3565 <Original>
3566 v.size() == 5
3567 </Original>
3568 <Expanded>
3569 5 == 5
3570 </Expanded>
3571 </Expression>
3572 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3573 <Original>
3574 v.capacity() >= 5
3575 </Original>
3576 <Expanded>
3577 5 >= 5
3578 </Expanded>
3579 </Expression>
3580 <Section name="reserving smaller does not change size or capacity">
3581 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3582 <Original>
3583 v.size() == 5
3584 </Original>
3585 <Expanded>
3586 5 == 5
3587 </Expanded>
3588 </Expression>
3589 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3590 <Original>
3591 v.capacity() >= 5
3592 </Original>
3593 <Expanded>
3594 5 >= 5
3595 </Expanded>
3596 </Expression>
3597 <OverallResults successes="2" failures="0"/>
3598 </Section>
3599 <OverallResult success="true"/>
3600 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003601 <TestCase name="A couple of nested sections followed by a failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01003602 <Section name="Outer">
3603 <Section name="Inner">
3604 <OverallResults successes="1" failures="0"/>
3605 </Section>
3606 <OverallResults successes="1" failures="0"/>
3607 </Section>
3608 <Failure>
3609 to infinity and beyond
3610 </Failure>
3611 <OverallResult success="false"/>
3612 </TestCase>
Phil Nash20cad7c2014-04-15 18:44:37 +01003613 <TestCase name="not allowed">
3614 <OverallResult success="true"/>
3615 </TestCase>
Phil Nash31caba42014-04-23 07:07:27 +01003616 <TestCase name="Tabs and newlines show in output">
3617 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3618 <Original>
3619 s1 == s2
3620 </Original>
3621 <Expanded>
3622 &quot;if ($b == 10) {
3623 $a = 20;
3624}&quot;
3625==
3626&quot;if ($b == 10) {
3627 $a = 20;
3628}
3629&quot;
3630 </Expanded>
3631 </Expression>
3632 <OverallResult success="false"/>
3633 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01003634 <TestCase name="Process can be configured on command line">
3635 <Section name="default - no arguments">
3636 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3637 <Original>
3638 parseIntoConfig( argv, config )
3639 </Original>
3640 <Expanded>
3641 parseIntoConfig( argv, config )
3642 </Expanded>
3643 </Expression>
3644 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3645 <Original>
3646 config.shouldDebugBreak == false
3647 </Original>
3648 <Expanded>
3649 false == false
3650 </Expanded>
3651 </Expression>
3652 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3653 <Original>
3654 config.abortAfter == -1
3655 </Original>
3656 <Expanded>
3657 -1 == -1
3658 </Expanded>
3659 </Expression>
3660 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3661 <Original>
3662 config.noThrow == false
3663 </Original>
3664 <Expanded>
3665 false == false
3666 </Expanded>
3667 </Expression>
3668 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3669 <Original>
3670 config.reporterName.empty()
3671 </Original>
3672 <Expanded>
3673 true
3674 </Expanded>
3675 </Expression>
3676 <OverallResults successes="5" failures="0"/>
3677 </Section>
3678 <Section name="test lists">
Phil Nash2f7a2962013-09-27 19:01:14 +01003679 <Section name="1 test" description="Specify one test case using">
3680 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3681 <Original>
3682 parseIntoConfig( argv, config )
3683 </Original>
3684 <Expanded>
3685 parseIntoConfig( argv, config )
3686 </Expanded>
3687 </Expression>
3688 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3689 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003690 cfg.testSpec().matches( fakeTestCase( &quot;notIncluded&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003691 </Original>
3692 <Expanded>
3693 false == false
3694 </Expanded>
3695 </Expression>
3696 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3697 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003698 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003699 </Original>
3700 <Expanded>
3701 true
3702 </Expanded>
3703 </Expression>
Phil Nash766491a2014-05-16 18:31:15 +01003704 <OverallResults successes="3" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003705 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01003706 <OverallResults successes="3" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003707 </Section>
3708 <Section name="test lists">
3709 <Section name="Specify one test case exclusion using exclude:">
3710 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3711 <Original>
3712 parseIntoConfig( argv, config )
3713 </Original>
3714 <Expanded>
3715 parseIntoConfig( argv, config )
3716 </Expanded>
3717 </Expression>
3718 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3719 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003720 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003721 </Original>
3722 <Expanded>
3723 false == false
3724 </Expanded>
3725 </Expression>
3726 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3727 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003728 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003729 </Original>
3730 <Expanded>
3731 true
3732 </Expanded>
3733 </Expression>
Phil Nash766491a2014-05-16 18:31:15 +01003734 <OverallResults successes="3" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003735 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01003736 <OverallResults successes="3" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003737 </Section>
3738 <Section name="test lists">
3739 <Section name="Specify one test case exclusion using ~">
3740 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3741 <Original>
3742 parseIntoConfig( argv, config )
3743 </Original>
3744 <Expanded>
3745 parseIntoConfig( argv, config )
3746 </Expanded>
3747 </Expression>
3748 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3749 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003750 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003751 </Original>
3752 <Expanded>
3753 false == false
3754 </Expanded>
3755 </Expression>
3756 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3757 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003758 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003759 </Original>
3760 <Expanded>
3761 true
3762 </Expanded>
3763 </Expression>
Phil Nash766491a2014-05-16 18:31:15 +01003764 <OverallResults successes="3" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003765 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01003766 <OverallResults successes="3" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003767 </Section>
3768 <Section name="reporter">
Phil Nash2f7a2962013-09-27 19:01:14 +01003769 <Section name="-r/console">
3770 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3771 <Original>
3772 parseIntoConfig( argv, config )
3773 </Original>
3774 <Expanded>
3775 parseIntoConfig( argv, config )
3776 </Expanded>
3777 </Expression>
3778 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3779 <Original>
3780 config.reporterName == &quot;console&quot;
3781 </Original>
3782 <Expanded>
3783 &quot;console&quot; == &quot;console&quot;
3784 </Expanded>
3785 </Expression>
3786 <OverallResults successes="2" failures="0"/>
3787 </Section>
3788 <OverallResults successes="2" failures="0"/>
3789 </Section>
3790 <Section name="reporter">
3791 <Section name="-r/xml">
3792 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3793 <Original>
3794 parseIntoConfig( argv, config )
3795 </Original>
3796 <Expanded>
3797 parseIntoConfig( argv, config )
3798 </Expanded>
3799 </Expression>
3800 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3801 <Original>
3802 config.reporterName == &quot;xml&quot;
3803 </Original>
3804 <Expanded>
3805 &quot;xml&quot; == &quot;xml&quot;
3806 </Expanded>
3807 </Expression>
3808 <OverallResults successes="2" failures="0"/>
3809 </Section>
3810 <OverallResults successes="2" failures="0"/>
3811 </Section>
3812 <Section name="reporter">
3813 <Section name="--reporter/junit">
3814 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3815 <Original>
3816 parseIntoConfig( argv, config )
3817 </Original>
3818 <Expanded>
3819 parseIntoConfig( argv, config )
3820 </Expanded>
3821 </Expression>
3822 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3823 <Original>
3824 config.reporterName == &quot;junit&quot;
3825 </Original>
3826 <Expanded>
3827 &quot;junit&quot; == &quot;junit&quot;
3828 </Expanded>
3829 </Expression>
3830 <OverallResults successes="2" failures="0"/>
3831 </Section>
3832 <OverallResults successes="2" failures="0"/>
3833 </Section>
3834 <Section name="debugger">
Phil Nash2f7a2962013-09-27 19:01:14 +01003835 <Section name="-b">
3836 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3837 <Original>
3838 parseIntoConfig( argv, config )
3839 </Original>
3840 <Expanded>
3841 parseIntoConfig( argv, config )
3842 </Expanded>
3843 </Expression>
3844 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3845 <Original>
3846 config.shouldDebugBreak == true
3847 </Original>
3848 <Expanded>
3849 true == true
3850 </Expanded>
3851 </Expression>
3852 <OverallResults successes="2" failures="0"/>
3853 </Section>
3854 <OverallResults successes="2" failures="0"/>
3855 </Section>
3856 <Section name="debugger">
3857 <Section name="--break">
3858 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3859 <Original>
3860 parseIntoConfig( argv, config )
3861 </Original>
3862 <Expanded>
3863 parseIntoConfig( argv, config )
3864 </Expanded>
3865 </Expression>
3866 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3867 <Original>
3868 config.shouldDebugBreak
3869 </Original>
3870 <Expanded>
3871 true
3872 </Expanded>
3873 </Expression>
3874 <OverallResults successes="2" failures="0"/>
3875 </Section>
3876 <OverallResults successes="2" failures="0"/>
3877 </Section>
3878 <Section name="abort">
Phil Nash2f7a2962013-09-27 19:01:14 +01003879 <Section name="-a aborts after first failure">
3880 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3881 <Original>
3882 parseIntoConfig( argv, config )
3883 </Original>
3884 <Expanded>
3885 parseIntoConfig( argv, config )
3886 </Expanded>
3887 </Expression>
3888 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3889 <Original>
3890 config.abortAfter == 1
3891 </Original>
3892 <Expanded>
3893 1 == 1
3894 </Expanded>
3895 </Expression>
3896 <OverallResults successes="2" failures="0"/>
3897 </Section>
3898 <OverallResults successes="2" failures="0"/>
3899 </Section>
3900 <Section name="abort">
3901 <Section name="-x 2 aborts after two failures">
3902 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3903 <Original>
3904 parseIntoConfig( argv, config )
3905 </Original>
3906 <Expanded>
3907 parseIntoConfig( argv, config )
3908 </Expanded>
3909 </Expression>
3910 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3911 <Original>
3912 config.abortAfter == 2
3913 </Original>
3914 <Expanded>
3915 2 == 2
3916 </Expanded>
3917 </Expression>
3918 <OverallResults successes="2" failures="0"/>
3919 </Section>
3920 <OverallResults successes="2" failures="0"/>
3921 </Section>
3922 <Section name="abort">
3923 <Section name="-x must be greater than zero">
3924 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3925 <Original>
3926 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;greater than zero&quot; )
3927 </Original>
3928 <Expanded>
3929 &quot;Value after -x or --abortAfter must be greater than zero
Phil Nashe9d35372014-04-12 19:05:03 +01003930- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;greater than zero&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01003931 </Expanded>
3932 </Expression>
3933 <OverallResults successes="1" failures="0"/>
3934 </Section>
3935 <OverallResults successes="1" failures="0"/>
3936 </Section>
3937 <Section name="abort">
3938 <Section name="-x must be numeric">
3939 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3940 <Original>
3941 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;-x&quot; )
3942 </Original>
3943 <Expanded>
3944 &quot;Unable to convert oops to destination type
Phil Nashe9d35372014-04-12 19:05:03 +01003945- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;-x&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01003946 </Expanded>
3947 </Expression>
3948 <OverallResults successes="1" failures="0"/>
3949 </Section>
3950 <OverallResults successes="1" failures="0"/>
3951 </Section>
3952 <Section name="nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01003953 <Section name="-e">
3954 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3955 <Original>
3956 parseIntoConfig( argv, config )
3957 </Original>
3958 <Expanded>
3959 parseIntoConfig( argv, config )
3960 </Expanded>
3961 </Expression>
3962 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3963 <Original>
3964 config.noThrow == true
3965 </Original>
3966 <Expanded>
3967 true == true
3968 </Expanded>
3969 </Expression>
3970 <OverallResults successes="2" failures="0"/>
3971 </Section>
3972 <OverallResults successes="2" failures="0"/>
3973 </Section>
3974 <Section name="nothrow">
3975 <Section name="--nothrow">
3976 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3977 <Original>
3978 parseIntoConfig( argv, config )
3979 </Original>
3980 <Expanded>
3981 parseIntoConfig( argv, config )
3982 </Expanded>
3983 </Expression>
3984 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3985 <Original>
3986 config.noThrow == true
3987 </Original>
3988 <Expanded>
3989 true == true
3990 </Expanded>
3991 </Expression>
3992 <OverallResults successes="2" failures="0"/>
3993 </Section>
3994 <OverallResults successes="2" failures="0"/>
3995 </Section>
3996 <Section name="output filename">
Phil Nash2f7a2962013-09-27 19:01:14 +01003997 <Section name="-o filename">
3998 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3999 <Original>
4000 parseIntoConfig( argv, config )
4001 </Original>
4002 <Expanded>
4003 parseIntoConfig( argv, config )
4004 </Expanded>
4005 </Expression>
4006 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4007 <Original>
4008 config.outputFilename == &quot;filename.ext&quot;
4009 </Original>
4010 <Expanded>
4011 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4012 </Expanded>
4013 </Expression>
4014 <OverallResults successes="2" failures="0"/>
4015 </Section>
4016 <OverallResults successes="2" failures="0"/>
4017 </Section>
4018 <Section name="output filename">
4019 <Section name="--out">
4020 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4021 <Original>
4022 parseIntoConfig( argv, config )
4023 </Original>
4024 <Expanded>
4025 parseIntoConfig( argv, config )
4026 </Expanded>
4027 </Expression>
4028 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4029 <Original>
4030 config.outputFilename == &quot;filename.ext&quot;
4031 </Original>
4032 <Expanded>
4033 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4034 </Expanded>
4035 </Expression>
4036 <OverallResults successes="2" failures="0"/>
4037 </Section>
4038 <OverallResults successes="2" failures="0"/>
4039 </Section>
4040 <Section name="combinations">
Phil Nash2f7a2962013-09-27 19:01:14 +01004041 <Section name="Single character flags can be combined">
4042 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4043 <Original>
4044 parseIntoConfig( argv, config )
4045 </Original>
4046 <Expanded>
4047 parseIntoConfig( argv, config )
4048 </Expanded>
4049 </Expression>
4050 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4051 <Original>
4052 config.abortAfter == 1
4053 </Original>
4054 <Expanded>
4055 1 == 1
4056 </Expanded>
4057 </Expression>
4058 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4059 <Original>
4060 config.shouldDebugBreak
4061 </Original>
4062 <Expanded>
4063 true
4064 </Expanded>
4065 </Expression>
4066 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4067 <Original>
4068 config.noThrow == true
4069 </Original>
4070 <Expanded>
4071 true == true
4072 </Expanded>
4073 </Expression>
4074 <OverallResults successes="4" failures="0"/>
4075 </Section>
4076 <OverallResults successes="4" failures="0"/>
4077 </Section>
4078 <OverallResult success="true"/>
4079 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004080 <TestCase name="Long strings can be wrapped">
4081 <Section name="plain string">
Phil Nash2f7a2962013-09-27 19:01:14 +01004082 <Section name="No wrapping">
4083 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4084 <Original>
4085 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4086 </Original>
4087 <Expanded>
4088 &quot;one two three four&quot;
4089==
4090&quot;one two three four&quot;
4091 </Expanded>
4092 </Expression>
4093 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4094 <Original>
4095 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4096 </Original>
4097 <Expanded>
4098 &quot;one two three four&quot;
4099==
4100&quot;one two three four&quot;
4101 </Expanded>
4102 </Expression>
4103 <OverallResults successes="2" failures="0"/>
4104 </Section>
4105 <OverallResults successes="2" failures="0"/>
4106 </Section>
4107 <Section name="plain string">
4108 <Section name="Wrapped once">
4109 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4110 <Original>
4111 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == &quot;one two three\nfour&quot;
4112 </Original>
4113 <Expanded>
4114 &quot;one two three
4115four&quot;
4116==
4117&quot;one two three
4118four&quot;
4119 </Expanded>
4120 </Expression>
4121 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4122 <Original>
4123 Text( testString, TextAttributes().setWidth( 16 ) ).toString() == &quot;one two three\nfour&quot;
4124 </Original>
4125 <Expanded>
4126 &quot;one two three
4127four&quot;
4128==
4129&quot;one two three
4130four&quot;
4131 </Expanded>
4132 </Expression>
4133 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4134 <Original>
4135 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == &quot;one two three\nfour&quot;
4136 </Original>
4137 <Expanded>
4138 &quot;one two three
4139four&quot;
4140==
4141&quot;one two three
4142four&quot;
4143 </Expanded>
4144 </Expression>
4145 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4146 <Original>
4147 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == &quot;one two three\nfour&quot;
4148 </Original>
4149 <Expanded>
4150 &quot;one two three
4151four&quot;
4152==
4153&quot;one two three
4154four&quot;
4155 </Expanded>
4156 </Expression>
4157 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4158 <Original>
4159 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == &quot;one two\nthree four&quot;
4160 </Original>
4161 <Expanded>
4162 &quot;one two
4163three four&quot;
4164==
4165&quot;one two
4166three four&quot;
4167 </Expanded>
4168 </Expression>
4169 <OverallResults successes="5" failures="0"/>
4170 </Section>
4171 <OverallResults successes="5" failures="0"/>
4172 </Section>
4173 <Section name="plain string">
4174 <Section name="Wrapped twice">
4175 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4176 <Original>
4177 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4178 </Original>
4179 <Expanded>
4180 &quot;one two
4181three
4182four&quot;
4183==
4184&quot;one two
4185three
4186four&quot;
4187 </Expanded>
4188 </Expression>
4189 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4190 <Original>
4191 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4192 </Original>
4193 <Expanded>
4194 &quot;one two
4195three
4196four&quot;
4197==
4198&quot;one two
4199three
4200four&quot;
4201 </Expanded>
4202 </Expression>
4203 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4204 <Original>
4205 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4206 </Original>
4207 <Expanded>
4208 &quot;one two
4209three
4210four&quot;
4211==
4212&quot;one two
4213three
4214four&quot;
4215 </Expanded>
4216 </Expression>
4217 <OverallResults successes="3" failures="0"/>
4218 </Section>
4219 <OverallResults successes="3" failures="0"/>
4220 </Section>
4221 <Section name="plain string">
4222 <Section name="Wrapped three times">
4223 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4224 <Original>
4225 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4226 </Original>
4227 <Expanded>
4228 &quot;one
4229two
4230three
4231four&quot;
4232==
4233&quot;one
4234two
4235three
4236four&quot;
4237 </Expanded>
4238 </Expression>
4239 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4240 <Original>
4241 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4242 </Original>
4243 <Expanded>
4244 &quot;one
4245two
4246three
4247four&quot;
4248==
4249&quot;one
4250two
4251three
4252four&quot;
4253 </Expanded>
4254 </Expression>
4255 <OverallResults successes="2" failures="0"/>
4256 </Section>
4257 <OverallResults successes="2" failures="0"/>
4258 </Section>
4259 <Section name="plain string">
4260 <Section name="Short wrap">
4261 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4262 <Original>
4263 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef&quot;
4264 </Original>
4265 <Expanded>
4266 &quot;abc-
4267def&quot;
4268==
4269&quot;abc-
4270def&quot;
4271 </Expanded>
4272 </Expression>
4273 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4274 <Original>
4275 Text( &quot;abcdefg&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndefg&quot;
4276 </Original>
4277 <Expanded>
4278 &quot;abc-
4279defg&quot;
4280==
4281&quot;abc-
4282defg&quot;
4283 </Expanded>
4284 </Expression>
4285 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4286 <Original>
4287 Text( &quot;abcdefgh&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef-\ngh&quot;
4288 </Original>
4289 <Expanded>
4290 &quot;abc-
4291def-
4292gh&quot;
4293==
4294&quot;abc-
4295def-
4296gh&quot;
4297 </Expanded>
4298 </Expression>
4299 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4300 <Original>
4301 Text( testString, TextAttributes().setWidth( 4 ) ).toString() == &quot;one\ntwo\nthr-\nee\nfour&quot;
4302 </Original>
4303 <Expanded>
4304 &quot;one
4305two
4306thr-
4307ee
4308four&quot;
4309==
4310&quot;one
4311two
4312thr-
4313ee
4314four&quot;
4315 </Expanded>
4316 </Expression>
4317 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4318 <Original>
4319 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == &quot;one\ntwo\nth-\nree\nfo-\nur&quot;
4320 </Original>
4321 <Expanded>
4322 &quot;one
4323two
4324th-
4325ree
4326fo-
4327ur&quot;
4328==
4329&quot;one
4330two
4331th-
4332ree
4333fo-
4334ur&quot;
4335 </Expanded>
4336 </Expression>
4337 <OverallResults successes="5" failures="0"/>
4338 </Section>
4339 <OverallResults successes="5" failures="0"/>
4340 </Section>
4341 <Section name="plain string">
4342 <Section name="As container">
4343 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4344 <Original>
4345 text.size() == 4
4346 </Original>
4347 <Expanded>
4348 4 == 4
4349 </Expanded>
4350 </Expression>
4351 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4352 <Original>
4353 text[0] == &quot;one&quot;
4354 </Original>
4355 <Expanded>
4356 &quot;one&quot; == &quot;one&quot;
4357 </Expanded>
4358 </Expression>
4359 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4360 <Original>
4361 text[1] == &quot;two&quot;
4362 </Original>
4363 <Expanded>
4364 &quot;two&quot; == &quot;two&quot;
4365 </Expanded>
4366 </Expression>
4367 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4368 <Original>
4369 text[2] == &quot;three&quot;
4370 </Original>
4371 <Expanded>
4372 &quot;three&quot; == &quot;three&quot;
4373 </Expanded>
4374 </Expression>
4375 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4376 <Original>
4377 text[3] == &quot;four&quot;
4378 </Original>
4379 <Expanded>
4380 &quot;four&quot; == &quot;four&quot;
4381 </Expanded>
4382 </Expression>
4383 <OverallResults successes="5" failures="0"/>
4384 </Section>
4385 <OverallResults successes="5" failures="0"/>
4386 </Section>
4387 <Section name="plain string">
4388 <Section name="Indent first line differently">
4389 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4390 <Original>
4391 text.toString() == &quot; one two\n three\n four&quot;
4392 </Original>
4393 <Expanded>
4394 &quot; one two
4395 three
4396 four&quot;
4397==
4398&quot; one two
4399 three
4400 four&quot;
4401 </Expanded>
4402 </Expression>
4403 <OverallResults successes="1" failures="0"/>
4404 </Section>
4405 <OverallResults successes="1" failures="0"/>
4406 </Section>
4407 <Section name="With newlines">
Phil Nash2f7a2962013-09-27 19:01:14 +01004408 <Section name="No wrapping">
4409 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4410 <Original>
4411 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4412 </Original>
4413 <Expanded>
4414 &quot;one two
4415three four&quot;
4416==
4417&quot;one two
4418three four&quot;
4419 </Expanded>
4420 </Expression>
4421 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4422 <Original>
4423 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4424 </Original>
4425 <Expanded>
4426 &quot;one two
4427three four&quot;
4428==
4429&quot;one two
4430three four&quot;
4431 </Expanded>
4432 </Expression>
4433 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4434 <Original>
4435 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
4436 </Original>
4437 <Expanded>
4438 &quot;one two
4439three four&quot;
4440==
4441&quot;one two
4442three four&quot;
4443 </Expanded>
4444 </Expression>
4445 <OverallResults successes="3" failures="0"/>
4446 </Section>
4447 <OverallResults successes="3" failures="0"/>
4448 </Section>
4449 <Section name="With newlines">
4450 <Section name="Trailing newline">
4451 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4452 <Original>
4453 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 10 ) ).toString() == &quot;abcdef\n&quot;
4454 </Original>
4455 <Expanded>
4456 &quot;abcdef
4457&quot;
4458==
4459&quot;abcdef
4460&quot;
4461 </Expanded>
4462 </Expression>
4463 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4464 <Original>
4465 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef&quot;
4466 </Original>
4467 <Expanded>
4468 &quot;abcdef&quot; == &quot;abcdef&quot;
4469 </Expanded>
4470 </Expression>
4471 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4472 <Original>
4473 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef\n&quot;
4474 </Original>
4475 <Expanded>
4476 &quot;abcdef
4477&quot;
4478==
4479&quot;abcdef
4480&quot;
4481 </Expanded>
4482 </Expression>
4483 <OverallResults successes="3" failures="0"/>
4484 </Section>
4485 <OverallResults successes="3" failures="0"/>
4486 </Section>
4487 <Section name="With newlines">
4488 <Section name="Wrapped once">
4489 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4490 <Original>
4491 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4492 </Original>
4493 <Expanded>
4494 &quot;one two
4495three
4496four&quot;
4497==
4498&quot;one two
4499three
4500four&quot;
4501 </Expanded>
4502 </Expression>
4503 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4504 <Original>
4505 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4506 </Original>
4507 <Expanded>
4508 &quot;one two
4509three
4510four&quot;
4511==
4512&quot;one two
4513three
4514four&quot;
4515 </Expanded>
4516 </Expression>
4517 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4518 <Original>
4519 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4520 </Original>
4521 <Expanded>
4522 &quot;one two
4523three
4524four&quot;
4525==
4526&quot;one two
4527three
4528four&quot;
4529 </Expanded>
4530 </Expression>
4531 <OverallResults successes="3" failures="0"/>
4532 </Section>
4533 <OverallResults successes="3" failures="0"/>
4534 </Section>
4535 <Section name="With newlines">
4536 <Section name="Wrapped twice">
4537 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4538 <Original>
4539 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4540 </Original>
4541 <Expanded>
4542 &quot;one
4543two
4544three
4545four&quot;
4546==
4547&quot;one
4548two
4549three
4550four&quot;
4551 </Expanded>
4552 </Expression>
4553 <OverallResults successes="1" failures="0"/>
4554 </Section>
4555 <OverallResults successes="1" failures="0"/>
4556 </Section>
4557 <Section name="With tabs">
4558 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4559 <Original>
4560 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == &quot;one two three\n four\n five\n six&quot;
4561 </Original>
4562 <Expanded>
4563 &quot;one two three
4564 four
4565 five
4566 six&quot;
4567==
4568&quot;one two three
4569 four
4570 five
4571 six&quot;
4572 </Expanded>
4573 </Expression>
4574 <OverallResults successes="1" failures="0"/>
4575 </Section>
4576 <OverallResult success="true"/>
4577 </TestCase>
4578 <TestCase name="Strings can be rendered with colour">
4579 <OverallResult success="true"/>
4580 </TestCase>
4581 <TestCase name="Text can be formatted using the Text class">
4582 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4583 <Original>
4584 Text( &quot;hi there&quot; ).toString() == &quot;hi there&quot;
4585 </Original>
4586 <Expanded>
4587 &quot;hi there&quot; == &quot;hi there&quot;
4588 </Expanded>
4589 </Expression>
4590 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4591 <Original>
4592 Text( &quot;hi there&quot;, narrow ).toString() == &quot;hi\nthere&quot;
4593 </Original>
4594 <Expanded>
4595 &quot;hi
4596there&quot;
4597==
4598&quot;hi
4599there&quot;
4600 </Expanded>
4601 </Expression>
4602 <OverallResult success="true"/>
4603 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01004604 <TestCase name="Long text is truncted">
4605 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4606 <Original>
4607 t.toString() EndsWith( &quot;... message truncated due to excessive size&quot; )
4608 </Original>
4609 <Expanded>
4610 &quot;******************************************************************************-
4611******************************************************************************-
4612************************
4613******************************************************************************-
4614******************************************************************************-
4615************************
4616******************************************************************************-
4617******************************************************************************-
4618************************
4619******************************************************************************-
4620******************************************************************************-
4621************************
4622******************************************************************************-
4623******************************************************************************-
4624************************
4625******************************************************************************-
4626******************************************************************************-
4627************************
4628******************************************************************************-
4629******************************************************************************-
4630************************
4631******************************************************************************-
4632******************************************************************************-
4633************************
4634******************************************************************************-
4635******************************************************************************-
4636************************
4637******************************************************************************-
4638******************************************************************************-
4639************************
4640******************************************************************************-
4641******************************************************************************-
4642************************
4643******************************************************************************-
4644******************************************************************************-
4645************************
4646******************************************************************************-
4647******************************************************************************-
4648************************
4649******************************************************************************-
4650******************************************************************************-
4651************************
4652******************************************************************************-
4653******************************************************************************-
4654************************
4655******************************************************************************-
4656******************************************************************************-
4657************************
4658******************************************************************************-
4659******************************************************************************-
4660************************
4661******************************************************************************-
4662******************************************************************************-
4663************************
4664******************************************************************************-
4665******************************************************************************-
4666************************
4667******************************************************************************-
4668******************************************************************************-
4669************************
4670******************************************************************************-
4671******************************************************************************-
4672************************
4673******************************************************************************-
4674******************************************************************************-
4675************************
4676******************************************************************************-
4677******************************************************************************-
4678************************
4679******************************************************************************-
4680******************************************************************************-
4681************************
4682******************************************************************************-
4683******************************************************************************-
4684************************
4685******************************************************************************-
4686******************************************************************************-
4687************************
4688******************************************************************************-
4689******************************************************************************-
4690************************
4691******************************************************************************-
4692******************************************************************************-
4693************************
4694******************************************************************************-
4695******************************************************************************-
4696************************
4697******************************************************************************-
4698******************************************************************************-
4699************************
4700******************************************************************************-
4701******************************************************************************-
4702************************
4703******************************************************************************-
4704******************************************************************************-
4705************************
4706******************************************************************************-
4707******************************************************************************-
4708************************
4709******************************************************************************-
4710******************************************************************************-
4711************************
4712******************************************************************************-
4713******************************************************************************-
4714************************
4715******************************************************************************-
4716******************************************************************************-
4717************************
4718******************************************************************************-
4719******************************************************************************-
4720************************
4721******************************************************************************-
4722******************************************************************************-
4723************************
4724******************************************************************************-
4725******************************************************************************-
4726************************
4727******************************************************************************-
4728******************************************************************************-
4729************************
4730******************************************************************************-
4731******************************************************************************-
4732************************
4733******************************************************************************-
4734******************************************************************************-
4735************************
4736******************************************************************************-
4737******************************************************************************-
4738************************
4739******************************************************************************-
4740******************************************************************************-
4741************************
4742******************************************************************************-
4743******************************************************************************-
4744************************
4745******************************************************************************-
4746******************************************************************************-
4747************************
4748******************************************************************************-
4749******************************************************************************-
4750************************
4751******************************************************************************-
4752******************************************************************************-
4753************************
4754******************************************************************************-
4755******************************************************************************-
4756************************
4757******************************************************************************-
4758******************************************************************************-
4759************************
4760******************************************************************************-
4761******************************************************************************-
4762************************
4763******************************************************************************-
4764******************************************************************************-
4765************************
4766******************************************************************************-
4767******************************************************************************-
4768************************
4769******************************************************************************-
4770******************************************************************************-
4771************************
4772******************************************************************************-
4773******************************************************************************-
4774************************
4775******************************************************************************-
4776******************************************************************************-
4777************************
4778******************************************************************************-
4779******************************************************************************-
4780************************
4781******************************************************************************-
4782******************************************************************************-
4783************************
4784******************************************************************************-
4785******************************************************************************-
4786************************
4787******************************************************************************-
4788******************************************************************************-
4789************************
4790******************************************************************************-
4791******************************************************************************-
4792************************
4793******************************************************************************-
4794******************************************************************************-
4795************************
4796******************************************************************************-
4797******************************************************************************-
4798************************
4799******************************************************************************-
4800******************************************************************************-
4801************************
4802******************************************************************************-
4803******************************************************************************-
4804************************
4805******************************************************************************-
4806******************************************************************************-
4807************************
4808******************************************************************************-
4809******************************************************************************-
4810************************
4811******************************************************************************-
4812******************************************************************************-
4813************************
4814******************************************************************************-
4815******************************************************************************-
4816************************
4817******************************************************************************-
4818******************************************************************************-
4819************************
4820******************************************************************************-
4821******************************************************************************-
4822************************
4823******************************************************************************-
4824******************************************************************************-
4825************************
4826******************************************************************************-
4827******************************************************************************-
4828************************
4829******************************************************************************-
4830******************************************************************************-
4831************************
4832******************************************************************************-
4833******************************************************************************-
4834************************
4835******************************************************************************-
4836******************************************************************************-
4837************************
4838******************************************************************************-
4839******************************************************************************-
4840************************
4841******************************************************************************-
4842******************************************************************************-
4843************************
4844******************************************************************************-
4845******************************************************************************-
4846************************
4847******************************************************************************-
4848******************************************************************************-
4849************************
4850******************************************************************************-
4851******************************************************************************-
4852************************
4853******************************************************************************-
4854******************************************************************************-
4855************************
4856******************************************************************************-
4857******************************************************************************-
4858************************
4859******************************************************************************-
4860******************************************************************************-
4861************************
4862******************************************************************************-
4863******************************************************************************-
4864************************
4865******************************************************************************-
4866******************************************************************************-
4867************************
4868******************************************************************************-
4869******************************************************************************-
4870************************
4871******************************************************************************-
4872******************************************************************************-
4873************************
4874******************************************************************************-
4875******************************************************************************-
4876************************
4877******************************************************************************-
4878******************************************************************************-
4879************************
4880******************************************************************************-
4881******************************************************************************-
4882************************
4883******************************************************************************-
4884******************************************************************************-
4885************************
4886******************************************************************************-
4887******************************************************************************-
4888************************
4889******************************************************************************-
4890******************************************************************************-
4891************************
4892******************************************************************************-
4893******************************************************************************-
4894************************
4895******************************************************************************-
4896******************************************************************************-
4897************************
4898******************************************************************************-
4899******************************************************************************-
4900************************
4901******************************************************************************-
4902******************************************************************************-
4903************************
4904******************************************************************************-
4905******************************************************************************-
4906************************
4907******************************************************************************-
4908******************************************************************************-
4909************************
4910******************************************************************************-
4911******************************************************************************-
4912************************
4913******************************************************************************-
4914******************************************************************************-
4915************************
4916******************************************************************************-
4917******************************************************************************-
4918************************
4919******************************************************************************-
4920******************************************************************************-
4921************************
4922******************************************************************************-
4923******************************************************************************-
4924************************
4925******************************************************************************-
4926******************************************************************************-
4927************************
4928******************************************************************************-
4929******************************************************************************-
4930************************
4931******************************************************************************-
4932******************************************************************************-
4933************************
4934******************************************************************************-
4935******************************************************************************-
4936************************
4937******************************************************************************-
4938******************************************************************************-
4939************************
4940******************************************************************************-
4941******************************************************************************-
4942************************
4943******************************************************************************-
4944******************************************************************************-
4945************************
4946******************************************************************************-
4947******************************************************************************-
4948************************
4949******************************************************************************-
4950******************************************************************************-
4951************************
4952******************************************************************************-
4953******************************************************************************-
4954************************
4955******************************************************************************-
4956******************************************************************************-
4957************************
4958******************************************************************************-
4959******************************************************************************-
4960************************
4961******************************************************************************-
4962******************************************************************************-
4963************************
4964******************************************************************************-
4965******************************************************************************-
4966************************
4967******************************************************************************-
4968******************************************************************************-
4969************************
4970******************************************************************************-
4971******************************************************************************-
4972************************
4973******************************************************************************-
4974******************************************************************************-
4975************************
4976******************************************************************************-
4977******************************************************************************-
4978************************
4979******************************************************************************-
4980******************************************************************************-
4981************************
4982******************************************************************************-
4983******************************************************************************-
4984************************
4985******************************************************************************-
4986******************************************************************************-
4987************************
4988******************************************************************************-
4989******************************************************************************-
4990************************
4991******************************************************************************-
4992******************************************************************************-
4993************************
4994******************************************************************************-
4995******************************************************************************-
4996************************
4997******************************************************************************-
4998******************************************************************************-
4999************************
5000******************************************************************************-
5001******************************************************************************-
5002************************
5003******************************************************************************-
5004******************************************************************************-
5005************************
5006******************************************************************************-
5007******************************************************************************-
5008************************
5009******************************************************************************-
5010******************************************************************************-
5011************************
5012******************************************************************************-
5013******************************************************************************-
5014************************
5015******************************************************************************-
5016******************************************************************************-
5017************************
5018******************************************************************************-
5019******************************************************************************-
5020************************
5021******************************************************************************-
5022******************************************************************************-
5023************************
5024******************************************************************************-
5025******************************************************************************-
5026************************
5027******************************************************************************-
5028******************************************************************************-
5029************************
5030******************************************************************************-
5031******************************************************************************-
5032************************
5033******************************************************************************-
5034******************************************************************************-
5035************************
5036******************************************************************************-
5037******************************************************************************-
5038************************
5039******************************************************************************-
5040******************************************************************************-
5041************************
5042******************************************************************************-
5043******************************************************************************-
5044************************
5045******************************************************************************-
5046******************************************************************************-
5047************************
5048******************************************************************************-
5049******************************************************************************-
5050************************
5051******************************************************************************-
5052******************************************************************************-
5053************************
5054******************************************************************************-
5055******************************************************************************-
5056************************
5057******************************************************************************-
5058******************************************************************************-
5059************************
5060******************************************************************************-
5061******************************************************************************-
5062************************
5063******************************************************************************-
5064******************************************************************************-
5065************************
5066******************************************************************************-
5067******************************************************************************-
5068************************
5069******************************************************************************-
5070******************************************************************************-
5071************************
5072******************************************************************************-
5073******************************************************************************-
5074************************
5075******************************************************************************-
5076******************************************************************************-
5077************************
5078******************************************************************************-
5079******************************************************************************-
5080************************
5081******************************************************************************-
5082******************************************************************************-
5083************************
5084******************************************************************************-
5085******************************************************************************-
5086************************
5087******************************************************************************-
5088******************************************************************************-
5089************************
5090******************************************************************************-
5091******************************************************************************-
5092************************
5093******************************************************************************-
5094******************************************************************************-
5095************************
5096******************************************************************************-
5097******************************************************************************-
5098************************
5099******************************************************************************-
5100******************************************************************************-
5101************************
5102******************************************************************************-
5103******************************************************************************-
5104************************
5105******************************************************************************-
5106******************************************************************************-
5107************************
5108******************************************************************************-
5109******************************************************************************-
5110************************
5111******************************************************************************-
5112******************************************************************************-
5113************************
5114******************************************************************************-
5115******************************************************************************-
5116************************
5117******************************************************************************-
5118******************************************************************************-
5119************************
5120******************************************************************************-
5121******************************************************************************-
5122************************
5123******************************************************************************-
5124******************************************************************************-
5125************************
5126******************************************************************************-
5127******************************************************************************-
5128************************
5129******************************************************************************-
5130******************************************************************************-
5131************************
5132******************************************************************************-
5133******************************************************************************-
5134************************
5135******************************************************************************-
5136******************************************************************************-
5137************************
5138******************************************************************************-
5139******************************************************************************-
5140************************
5141******************************************************************************-
5142******************************************************************************-
5143************************
5144******************************************************************************-
5145******************************************************************************-
5146************************
5147******************************************************************************-
5148******************************************************************************-
5149************************
5150******************************************************************************-
5151******************************************************************************-
5152************************
5153******************************************************************************-
5154******************************************************************************-
5155************************
5156******************************************************************************-
5157******************************************************************************-
5158************************
5159******************************************************************************-
5160******************************************************************************-
5161************************
5162******************************************************************************-
5163******************************************************************************-
5164************************
5165******************************************************************************-
5166******************************************************************************-
5167************************
5168******************************************************************************-
5169******************************************************************************-
5170************************
5171******************************************************************************-
5172******************************************************************************-
5173************************
5174******************************************************************************-
5175******************************************************************************-
5176************************
5177******************************************************************************-
5178******************************************************************************-
5179************************
5180******************************************************************************-
5181******************************************************************************-
5182************************
5183******************************************************************************-
5184******************************************************************************-
5185************************
5186******************************************************************************-
5187******************************************************************************-
5188************************
5189******************************************************************************-
5190******************************************************************************-
5191************************
5192******************************************************************************-
5193******************************************************************************-
5194************************
5195******************************************************************************-
5196******************************************************************************-
5197************************
5198******************************************************************************-
5199******************************************************************************-
5200************************
5201******************************************************************************-
5202******************************************************************************-
5203************************
5204******************************************************************************-
5205******************************************************************************-
5206************************
5207******************************************************************************-
5208******************************************************************************-
5209************************
5210******************************************************************************-
5211******************************************************************************-
5212************************
5213******************************************************************************-
5214******************************************************************************-
5215************************
5216******************************************************************************-
5217******************************************************************************-
5218************************
5219******************************************************************************-
5220******************************************************************************-
5221************************
5222******************************************************************************-
5223******************************************************************************-
5224************************
5225******************************************************************************-
5226******************************************************************************-
5227************************
5228******************************************************************************-
5229******************************************************************************-
5230************************
5231******************************************************************************-
5232******************************************************************************-
5233************************
5234******************************************************************************-
5235******************************************************************************-
5236************************
5237******************************************************************************-
5238******************************************************************************-
5239************************
5240******************************************************************************-
5241******************************************************************************-
5242************************
5243******************************************************************************-
5244******************************************************************************-
5245************************
5246******************************************************************************-
5247******************************************************************************-
5248************************
5249******************************************************************************-
5250******************************************************************************-
5251************************
5252******************************************************************************-
5253******************************************************************************-
5254************************
5255******************************************************************************-
5256******************************************************************************-
5257************************
5258******************************************************************************-
5259******************************************************************************-
5260************************
5261******************************************************************************-
5262******************************************************************************-
5263************************
5264******************************************************************************-
5265******************************************************************************-
5266************************
5267******************************************************************************-
5268******************************************************************************-
5269************************
5270******************************************************************************-
5271******************************************************************************-
5272************************
5273******************************************************************************-
5274******************************************************************************-
5275************************
5276******************************************************************************-
5277******************************************************************************-
5278************************
5279******************************************************************************-
5280******************************************************************************-
5281************************
5282******************************************************************************-
5283******************************************************************************-
5284************************
5285******************************************************************************-
5286******************************************************************************-
5287************************
5288******************************************************************************-
5289******************************************************************************-
5290************************
5291******************************************************************************-
5292******************************************************************************-
5293************************
5294******************************************************************************-
5295******************************************************************************-
5296************************
5297******************************************************************************-
5298******************************************************************************-
5299************************
5300******************************************************************************-
5301******************************************************************************-
5302************************
5303******************************************************************************-
5304******************************************************************************-
5305************************
5306******************************************************************************-
5307******************************************************************************-
5308************************
5309******************************************************************************-
5310******************************************************************************-
5311************************
5312******************************************************************************-
5313******************************************************************************-
5314************************
5315******************************************************************************-
5316******************************************************************************-
5317************************
5318******************************************************************************-
5319******************************************************************************-
5320************************
5321******************************************************************************-
5322******************************************************************************-
5323************************
5324******************************************************************************-
5325******************************************************************************-
5326************************
5327******************************************************************************-
5328******************************************************************************-
5329************************
5330******************************************************************************-
5331******************************************************************************-
5332************************
5333******************************************************************************-
5334******************************************************************************-
5335************************
5336******************************************************************************-
5337******************************************************************************-
5338************************
5339******************************************************************************-
5340******************************************************************************-
5341************************
5342******************************************************************************-
5343******************************************************************************-
5344************************
5345******************************************************************************-
5346******************************************************************************-
5347************************
5348******************************************************************************-
5349******************************************************************************-
5350************************
5351******************************************************************************-
5352******************************************************************************-
5353************************
5354******************************************************************************-
5355******************************************************************************-
5356************************
5357******************************************************************************-
5358******************************************************************************-
5359************************
5360******************************************************************************-
5361******************************************************************************-
5362************************
5363******************************************************************************-
5364******************************************************************************-
5365************************
5366******************************************************************************-
5367******************************************************************************-
5368************************
5369******************************************************************************-
5370******************************************************************************-
5371************************
5372******************************************************************************-
5373******************************************************************************-
5374************************
5375******************************************************************************-
5376******************************************************************************-
5377************************
5378******************************************************************************-
5379******************************************************************************-
5380************************
5381******************************************************************************-
5382******************************************************************************-
5383************************
5384******************************************************************************-
5385******************************************************************************-
5386************************
5387******************************************************************************-
5388******************************************************************************-
5389************************
5390******************************************************************************-
5391******************************************************************************-
5392************************
5393******************************************************************************-
5394******************************************************************************-
5395************************
5396******************************************************************************-
5397******************************************************************************-
5398************************
5399******************************************************************************-
5400******************************************************************************-
5401************************
5402******************************************************************************-
5403******************************************************************************-
5404************************
5405******************************************************************************-
5406******************************************************************************-
5407************************
5408******************************************************************************-
5409******************************************************************************-
5410************************
5411******************************************************************************-
5412******************************************************************************-
5413************************
5414******************************************************************************-
5415******************************************************************************-
5416************************
5417******************************************************************************-
5418******************************************************************************-
5419************************
5420******************************************************************************-
5421******************************************************************************-
5422************************
5423******************************************************************************-
5424******************************************************************************-
5425************************
5426******************************************************************************-
5427******************************************************************************-
5428************************
5429******************************************************************************-
5430******************************************************************************-
5431************************
5432******************************************************************************-
5433******************************************************************************-
5434************************
5435******************************************************************************-
5436******************************************************************************-
5437************************
5438******************************************************************************-
5439******************************************************************************-
5440************************
5441******************************************************************************-
5442******************************************************************************-
5443************************
5444******************************************************************************-
5445******************************************************************************-
5446************************
5447******************************************************************************-
5448******************************************************************************-
5449************************
5450******************************************************************************-
5451******************************************************************************-
5452************************
5453******************************************************************************-
5454******************************************************************************-
5455************************
5456******************************************************************************-
5457******************************************************************************-
5458************************
5459******************************************************************************-
5460******************************************************************************-
5461************************
5462******************************************************************************-
5463******************************************************************************-
5464************************
5465******************************************************************************-
5466******************************************************************************-
5467************************
5468******************************************************************************-
5469******************************************************************************-
5470************************
5471******************************************************************************-
5472******************************************************************************-
5473************************
5474******************************************************************************-
5475******************************************************************************-
5476************************
5477******************************************************************************-
5478******************************************************************************-
5479************************
5480******************************************************************************-
5481******************************************************************************-
5482************************
5483******************************************************************************-
5484******************************************************************************-
5485************************
5486******************************************************************************-
5487******************************************************************************-
5488************************
5489******************************************************************************-
5490******************************************************************************-
5491************************
5492******************************************************************************-
5493******************************************************************************-
5494************************
5495******************************************************************************-
5496******************************************************************************-
5497************************
5498******************************************************************************-
5499******************************************************************************-
5500************************
5501******************************************************************************-
5502******************************************************************************-
5503************************
5504******************************************************************************-
5505******************************************************************************-
5506************************
5507******************************************************************************-
5508******************************************************************************-
5509************************
5510******************************************************************************-
5511******************************************************************************-
5512************************
5513******************************************************************************-
5514******************************************************************************-
5515************************
5516******************************************************************************-
5517******************************************************************************-
5518************************
5519******************************************************************************-
5520******************************************************************************-
5521************************
5522******************************************************************************-
5523******************************************************************************-
5524************************
5525******************************************************************************-
5526******************************************************************************-
5527************************
5528******************************************************************************-
5529******************************************************************************-
5530************************
5531******************************************************************************-
5532******************************************************************************-
5533************************
5534******************************************************************************-
5535******************************************************************************-
5536************************
5537******************************************************************************-
5538******************************************************************************-
5539************************
5540******************************************************************************-
5541******************************************************************************-
5542************************
5543******************************************************************************-
5544******************************************************************************-
5545************************
5546******************************************************************************-
5547******************************************************************************-
5548************************
5549******************************************************************************-
5550******************************************************************************-
5551************************
5552******************************************************************************-
5553******************************************************************************-
5554************************
5555******************************************************************************-
5556******************************************************************************-
5557************************
5558******************************************************************************-
5559******************************************************************************-
5560************************
5561******************************************************************************-
5562******************************************************************************-
5563************************
5564******************************************************************************-
5565******************************************************************************-
5566************************
5567******************************************************************************-
5568******************************************************************************-
5569************************
5570******************************************************************************-
5571******************************************************************************-
5572************************
5573******************************************************************************-
5574******************************************************************************-
5575************************
5576******************************************************************************-
5577******************************************************************************-
5578************************
5579******************************************************************************-
5580******************************************************************************-
5581************************
5582******************************************************************************-
5583******************************************************************************-
5584************************
5585******************************************************************************-
5586******************************************************************************-
5587************************
5588******************************************************************************-
5589******************************************************************************-
5590************************
5591******************************************************************************-
5592******************************************************************************-
5593************************
5594******************************************************************************-
5595******************************************************************************-
5596************************
5597******************************************************************************-
5598******************************************************************************-
5599************************
5600******************************************************************************-
5601******************************************************************************-
5602************************
5603******************************************************************************-
5604******************************************************************************-
5605************************
5606******************************************************************************-
5607******************************************************************************-
5608************************
5609******************************************************************************-
5610... message truncated due to excessive size&quot; ends with: &quot;... message truncated due to excessive size&quot;
5611 </Expanded>
5612 </Expression>
5613 <OverallResult success="true"/>
5614 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005615 <TestCase name="Parsing a std::pair">
Phil Nash2f7a2962013-09-27 19:01:14 +01005616 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5617 <Original>
5618 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
5619 </Original>
5620 <Expanded>
5621 std::pair( 1, 2 ) == std::pair( 1, 2 )
5622 </Expanded>
5623 </Expression>
5624 <OverallResult success="true"/>
5625 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005626 <TestCase name="Where the is more to the expression after the RHS[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01005627 <Warning>
5628 Uncomment the code in this test to check that it gives a sensible compiler error
5629 </Warning>
5630 <OverallResult success="true"/>
5631 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005632 <TestCase name="Where the LHS is not a simple value[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01005633 <Warning>
5634 Uncomment the code in this test to check that it gives a sensible compiler error
5635 </Warning>
5636 <OverallResult success="true"/>
5637 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005638 <TestCase name="A failing expression with a non streamable type is still captured[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01005639 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5640 <Original>
5641 &amp;o1 == &amp;o2
5642 </Original>
5643 <Expanded>
5644 0x<hex digits> == 0x<hex digits>
5645 </Expanded>
5646 </Expression>
5647 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5648 <Original>
5649 o1 == o2
5650 </Original>
5651 <Expanded>
5652 {?} == {?}
5653 </Expanded>
5654 </Expression>
5655 <OverallResult success="false"/>
5656 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005657 <TestCase name="string literals of different sizes can be compared[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01005658 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5659 <Original>
5660 std::string( &quot;first&quot; ) == &quot;second&quot;
5661 </Original>
5662 <Expanded>
5663 &quot;first&quot; == &quot;second&quot;
5664 </Expanded>
5665 </Expression>
5666 <OverallResult success="false"/>
5667 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005668 <TestCase name="An expression with side-effects should only be evaluated once">
Phil Nash2f7a2962013-09-27 19:01:14 +01005669 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5670 <Original>
5671 i++ == 7
5672 </Original>
5673 <Expanded>
5674 7 == 7
5675 </Expanded>
5676 </Expression>
5677 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5678 <Original>
5679 i++ == 8
5680 </Original>
5681 <Expanded>
5682 8 == 8
5683 </Expanded>
5684 </Expression>
5685 <OverallResult success="true"/>
5686 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005687 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nash2f7a2962013-09-27 19:01:14 +01005688 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5689 <Original>
5690 0x<hex digits> == o
5691 </Original>
5692 <Expanded>
5693 0x<hex digits> == {?}
5694 </Expanded>
5695 </Expression>
5696 <OverallResult success="true"/>
5697 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005698 <TestCase name="Demonstrate that a non-const == is not used">
Phil Nash2f7a2962013-09-27 19:01:14 +01005699 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5700 <Original>
5701 t == 1u
5702 </Original>
5703 <Expanded>
5704 {?} == 1
5705 </Expanded>
5706 </Expression>
5707 <OverallResult success="true"/>
5708 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005709 <TestCase name="Test enum bit values">
Phil Nash2f7a2962013-09-27 19:01:14 +01005710 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5711 <Original>
5712 0x<hex digits> == bit30and31
5713 </Original>
5714 <Expanded>
5715 0x<hex digits> == 3221225472
5716 </Expanded>
5717 </Expression>
5718 <OverallResult success="true"/>
5719 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005720 <TestCase name="boolean member">
Phil Nash2f7a2962013-09-27 19:01:14 +01005721 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5722 <Original>
5723 obj.prop != __null
5724 </Original>
5725 <Expanded>
5726 0x<hex digits> != 0
5727 </Expanded>
5728 </Expression>
5729 <OverallResult success="true"/>
5730 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005731 <TestCase name="(unimplemented) static bools can be evaluated">
Phil Nash2f7a2962013-09-27 19:01:14 +01005732 <Section name="compare to true">
5733 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5734 <Original>
5735 is_true&lt;true>::value == true
5736 </Original>
5737 <Expanded>
5738 true == true
5739 </Expanded>
5740 </Expression>
5741 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5742 <Original>
5743 true == is_true&lt;true>::value
5744 </Original>
5745 <Expanded>
5746 true == true
5747 </Expanded>
5748 </Expression>
5749 <OverallResults successes="2" failures="0"/>
5750 </Section>
5751 <Section name="compare to false">
5752 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5753 <Original>
5754 is_true&lt;false>::value == false
5755 </Original>
5756 <Expanded>
5757 false == false
5758 </Expanded>
5759 </Expression>
5760 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5761 <Original>
5762 false == is_true&lt;false>::value
5763 </Original>
5764 <Expanded>
5765 false == false
5766 </Expanded>
5767 </Expression>
5768 <OverallResults successes="2" failures="0"/>
5769 </Section>
5770 <Section name="negation">
5771 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5772 <Original>
5773 !is_true&lt;false>::value
5774 </Original>
5775 <Expanded>
5776 true
5777 </Expanded>
5778 </Expression>
5779 <OverallResults successes="1" failures="0"/>
5780 </Section>
5781 <Section name="double negation">
5782 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5783 <Original>
5784 !!is_true&lt;true>::value
5785 </Original>
5786 <Expanded>
5787 true
5788 </Expanded>
5789 </Expression>
5790 <OverallResults successes="1" failures="0"/>
5791 </Section>
5792 <Section name="direct">
5793 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5794 <Original>
5795 is_true&lt;true>::value
5796 </Original>
5797 <Expanded>
5798 true
5799 </Expanded>
5800 </Expression>
5801 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5802 <Original>
5803 !is_true&lt;false>::value
5804 </Original>
5805 <Expanded>
5806 !false
5807 </Expanded>
5808 </Expression>
5809 <OverallResults successes="2" failures="0"/>
5810 </Section>
5811 <OverallResult success="true"/>
5812 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005813 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nash2f7a2962013-09-27 19:01:14 +01005814 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5815 <Original>
5816 True
5817 </Original>
5818 <Expanded>
5819 true
5820 </Expanded>
5821 </Expression>
5822 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5823 <Original>
5824 !False
5825 </Original>
5826 <Expanded>
5827 true
5828 </Expanded>
5829 </Expression>
5830 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5831 <Original>
5832 !False
5833 </Original>
5834 <Expanded>
5835 !false
5836 </Expanded>
5837 </Expression>
5838 <OverallResult success="true"/>
5839 </TestCase>
5840 <TestCase name="Assertions then sections">
5841 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5842 <Original>
5843 Catch::isTrue( true )
5844 </Original>
5845 <Expanded>
5846 true
5847 </Expanded>
5848 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01005849 <Section name="A section">
5850 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5851 <Original>
5852 Catch::isTrue( true )
5853 </Original>
5854 <Expanded>
5855 true
5856 </Expanded>
5857 </Expression>
5858 <Section name="Another section">
5859 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5860 <Original>
5861 Catch::isTrue( true )
5862 </Original>
5863 <Expanded>
5864 true
5865 </Expanded>
5866 </Expression>
5867 <OverallResults successes="1" failures="0"/>
5868 </Section>
5869 <OverallResults successes="2" failures="0"/>
5870 </Section>
5871 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5872 <Original>
5873 Catch::isTrue( true )
5874 </Original>
5875 <Expanded>
5876 true
5877 </Expanded>
5878 </Expression>
5879 <Section name="A section">
5880 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5881 <Original>
5882 Catch::isTrue( true )
5883 </Original>
5884 <Expanded>
5885 true
5886 </Expanded>
5887 </Expression>
5888 <Section name="Another other section">
5889 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5890 <Original>
5891 Catch::isTrue( true )
5892 </Original>
5893 <Expanded>
5894 true
5895 </Expanded>
5896 </Expression>
5897 <OverallResults successes="1" failures="0"/>
5898 </Section>
5899 <OverallResults successes="2" failures="0"/>
5900 </Section>
5901 <OverallResult success="true"/>
5902 </TestCase>
5903 <TestCase name="non streamable - with conv. op">
5904 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5905 <Original>
5906 s == &quot;7&quot;
5907 </Original>
5908 <Expanded>
5909 &quot;7&quot; == &quot;7&quot;
5910 </Expanded>
5911 </Expression>
5912 <OverallResult success="true"/>
5913 </TestCase>
5914 <TestCase name="Comparing function pointers">
5915 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5916 <Original>
5917 a
5918 </Original>
5919 <Expanded>
5920 true
5921 </Expanded>
5922 </Expression>
5923 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5924 <Original>
5925 a == &amp;foo
5926 </Original>
5927 <Expanded>
Phil Nashe0910182014-01-07 17:25:27 +00005928 0x<hex digits> == 0x<hex digits>
5929 </Expanded>
5930 </Expression>
5931 <OverallResult success="true"/>
5932 </TestCase>
5933 <TestCase name="Comparing member function pointers">
5934 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5935 <Original>
5936 m == &amp;S::f
5937 </Original>
5938 <Expanded>
5939 0x<hex digits>
5940==
59410x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01005942 </Expanded>
5943 </Expression>
5944 <OverallResult success="true"/>
5945 </TestCase>
5946 <TestCase name="pointer to class">
5947 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5948 <Original>
5949 p == 0
5950 </Original>
5951 <Expanded>
5952 __null == 0
5953 </Expanded>
5954 </Expression>
5955 <OverallResult success="true"/>
5956 </TestCase>
Phil Nash1a6f2a02014-04-23 18:19:19 +01005957 <TestCase name="null_ptr">
5958 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
5959 <Original>
5960 ptr.get() == nullptr
5961 </Original>
5962 <Expanded>
5963 __null == nullptr
5964 </Expanded>
5965 </Expression>
5966 <OverallResult success="true"/>
5967 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01005968 <TestCase name="X/level/0/a">
5969 <OverallResult success="true"/>
5970 </TestCase>
5971 <TestCase name="X/level/0/b">
5972 <OverallResult success="true"/>
5973 </TestCase>
5974 <TestCase name="X/level/1/a">
5975 <OverallResult success="true"/>
5976 </TestCase>
5977 <TestCase name="X/level/1/b">
5978 <OverallResult success="true"/>
5979 </TestCase>
Phil Nash766491a2014-05-16 18:31:15 +01005980 <TestCase name="Parse test names and tags">
5981 <Section name="Empty test spec should have no filters">
5982 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
5983 <Original>
5984 spec.hasFilters() == false
5985 </Original>
5986 <Expanded>
5987 false == false
5988 </Expanded>
5989 </Expression>
5990 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
5991 <Original>
5992 spec.matches( tcA ) == false
5993 </Original>
5994 <Expanded>
5995 false == false
5996 </Expanded>
5997 </Expression>
5998 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
5999 <Original>
6000 spec.matches( tcB ) == false
6001 </Original>
6002 <Expanded>
6003 false == false
6004 </Expanded>
6005 </Expression>
6006 <OverallResults successes="3" failures="0"/>
6007 </Section>
6008 <Section name="Test spec from empty string should have no filters">
6009 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6010 <Original>
6011 spec.hasFilters() == false
6012 </Original>
6013 <Expanded>
6014 false == false
6015 </Expanded>
6016 </Expression>
6017 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6018 <Original>
6019 spec.matches(tcA ) == false
6020 </Original>
6021 <Expanded>
6022 false == false
6023 </Expanded>
6024 </Expression>
6025 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6026 <Original>
6027 spec.matches( tcB ) == false
6028 </Original>
6029 <Expanded>
6030 false == false
6031 </Expanded>
6032 </Expression>
6033 <OverallResults successes="3" failures="0"/>
6034 </Section>
6035 <Section name="Test spec from just a comma should have no filters">
6036 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6037 <Original>
6038 spec.hasFilters() == false
6039 </Original>
6040 <Expanded>
6041 false == false
6042 </Expanded>
6043 </Expression>
6044 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6045 <Original>
6046 spec.matches( tcA ) == false
6047 </Original>
6048 <Expanded>
6049 false == false
6050 </Expanded>
6051 </Expression>
6052 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6053 <Original>
6054 spec.matches( tcB ) == false
6055 </Original>
6056 <Expanded>
6057 false == false
6058 </Expanded>
6059 </Expression>
6060 <OverallResults successes="3" failures="0"/>
6061 </Section>
6062 <Section name="Test spec from name should have one filter">
6063 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6064 <Original>
6065 spec.hasFilters() == true
6066 </Original>
6067 <Expanded>
6068 true == true
6069 </Expanded>
6070 </Expression>
6071 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6072 <Original>
6073 spec.matches( tcA ) == false
6074 </Original>
6075 <Expanded>
6076 false == false
6077 </Expanded>
6078 </Expression>
6079 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6080 <Original>
6081 spec.matches( tcB ) == true
6082 </Original>
6083 <Expanded>
6084 true == true
6085 </Expanded>
6086 </Expression>
6087 <OverallResults successes="3" failures="0"/>
6088 </Section>
6089 <Section name="Test spec from quoted name should have one filter">
6090 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6091 <Original>
6092 spec.hasFilters() == true
6093 </Original>
6094 <Expanded>
6095 true == true
6096 </Expanded>
6097 </Expression>
6098 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6099 <Original>
6100 spec.matches( tcA ) == false
6101 </Original>
6102 <Expanded>
6103 false == false
6104 </Expanded>
6105 </Expression>
6106 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6107 <Original>
6108 spec.matches( tcB ) == true
6109 </Original>
6110 <Expanded>
6111 true == true
6112 </Expanded>
6113 </Expression>
6114 <OverallResults successes="3" failures="0"/>
6115 </Section>
6116 <Section name="Test spec from name should have one filter">
6117 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6118 <Original>
6119 spec.hasFilters() == true
6120 </Original>
6121 <Expanded>
6122 true == true
6123 </Expanded>
6124 </Expression>
6125 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6126 <Original>
6127 spec.matches( tcA ) == false
6128 </Original>
6129 <Expanded>
6130 false == false
6131 </Expanded>
6132 </Expression>
6133 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6134 <Original>
6135 spec.matches( tcB ) == true
6136 </Original>
6137 <Expanded>
6138 true == true
6139 </Expanded>
6140 </Expression>
6141 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6142 <Original>
6143 spec.matches( tcC ) == false
6144 </Original>
6145 <Expanded>
6146 false == false
6147 </Expanded>
6148 </Expression>
6149 <OverallResults successes="4" failures="0"/>
6150 </Section>
6151 <Section name="Wildcard at the start">
6152 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6153 <Original>
6154 spec.hasFilters() == true
6155 </Original>
6156 <Expanded>
6157 true == true
6158 </Expanded>
6159 </Expression>
6160 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6161 <Original>
6162 spec.matches( tcA ) == false
6163 </Original>
6164 <Expanded>
6165 false == false
6166 </Expanded>
6167 </Expression>
6168 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6169 <Original>
6170 spec.matches( tcB ) == false
6171 </Original>
6172 <Expanded>
6173 false == false
6174 </Expanded>
6175 </Expression>
6176 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6177 <Original>
6178 spec.matches( tcC ) == true
6179 </Original>
6180 <Expanded>
6181 true == true
6182 </Expanded>
6183 </Expression>
6184 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6185 <Original>
6186 spec.matches( tcD ) == false
6187 </Original>
6188 <Expanded>
6189 false == false
6190 </Expanded>
6191 </Expression>
6192 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6193 <Original>
6194 parseTestSpec( &quot;*a&quot; ).matches( tcA ) == true
6195 </Original>
6196 <Expanded>
6197 true == true
6198 </Expanded>
6199 </Expression>
6200 <OverallResults successes="6" failures="0"/>
6201 </Section>
6202 <Section name="Wildcard at the end">
6203 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6204 <Original>
6205 spec.hasFilters() == true
6206 </Original>
6207 <Expanded>
6208 true == true
6209 </Expanded>
6210 </Expression>
6211 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6212 <Original>
6213 spec.matches( tcA ) == false
6214 </Original>
6215 <Expanded>
6216 false == false
6217 </Expanded>
6218 </Expression>
6219 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6220 <Original>
6221 spec.matches( tcB ) == false
6222 </Original>
6223 <Expanded>
6224 false == false
6225 </Expanded>
6226 </Expression>
6227 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6228 <Original>
6229 spec.matches( tcC ) == true
6230 </Original>
6231 <Expanded>
6232 true == true
6233 </Expanded>
6234 </Expression>
6235 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6236 <Original>
6237 spec.matches( tcD ) == false
6238 </Original>
6239 <Expanded>
6240 false == false
6241 </Expanded>
6242 </Expression>
6243 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6244 <Original>
6245 parseTestSpec( &quot;a*&quot; ).matches( tcA ) == true
6246 </Original>
6247 <Expanded>
6248 true == true
6249 </Expanded>
6250 </Expression>
6251 <OverallResults successes="6" failures="0"/>
6252 </Section>
6253 <Section name="Wildcard at both ends">
6254 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6255 <Original>
6256 spec.hasFilters() == true
6257 </Original>
6258 <Expanded>
6259 true == true
6260 </Expanded>
6261 </Expression>
6262 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6263 <Original>
6264 spec.matches( tcA ) == false
6265 </Original>
6266 <Expanded>
6267 false == false
6268 </Expanded>
6269 </Expression>
6270 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6271 <Original>
6272 spec.matches( tcB ) == false
6273 </Original>
6274 <Expanded>
6275 false == false
6276 </Expanded>
6277 </Expression>
6278 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6279 <Original>
6280 spec.matches( tcC ) == true
6281 </Original>
6282 <Expanded>
6283 true == true
6284 </Expanded>
6285 </Expression>
6286 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6287 <Original>
6288 spec.matches( tcD ) == true
6289 </Original>
6290 <Expanded>
6291 true == true
6292 </Expanded>
6293 </Expression>
6294 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6295 <Original>
6296 parseTestSpec( &quot;*a*&quot; ).matches( tcA ) == true
6297 </Original>
6298 <Expanded>
6299 true == true
6300 </Expanded>
6301 </Expression>
6302 <OverallResults successes="6" failures="0"/>
6303 </Section>
Phil Nash71390352014-05-19 18:21:01 +01006304 <Section name="Redundant wildcard at the start">
6305 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6306 <Original>
6307 spec.hasFilters() == true
6308 </Original>
6309 <Expanded>
6310 true == true
6311 </Expanded>
6312 </Expression>
6313 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6314 <Original>
6315 spec.matches( tcA ) == true
6316 </Original>
6317 <Expanded>
6318 true == true
6319 </Expanded>
6320 </Expression>
6321 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6322 <Original>
6323 spec.matches( tcB ) == false
6324 </Original>
6325 <Expanded>
6326 false == false
6327 </Expanded>
6328 </Expression>
6329 <OverallResults successes="3" failures="0"/>
6330 </Section>
6331 <Section name="Redundant wildcard at the end">
6332 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6333 <Original>
6334 spec.hasFilters() == true
6335 </Original>
6336 <Expanded>
6337 true == true
6338 </Expanded>
6339 </Expression>
6340 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6341 <Original>
6342 spec.matches( tcA ) == true
6343 </Original>
6344 <Expanded>
6345 true == true
6346 </Expanded>
6347 </Expression>
6348 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6349 <Original>
6350 spec.matches( tcB ) == false
6351 </Original>
6352 <Expanded>
6353 false == false
6354 </Expanded>
6355 </Expression>
6356 <OverallResults successes="3" failures="0"/>
6357 </Section>
6358 <Section name="Redundant wildcard at both ends">
6359 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6360 <Original>
6361 spec.hasFilters() == true
6362 </Original>
6363 <Expanded>
6364 true == true
6365 </Expanded>
6366 </Expression>
6367 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6368 <Original>
6369 spec.matches( tcA ) == true
6370 </Original>
6371 <Expanded>
6372 true == true
6373 </Expanded>
6374 </Expression>
6375 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6376 <Original>
6377 spec.matches( tcB ) == false
6378 </Original>
6379 <Expanded>
6380 false == false
6381 </Expanded>
6382 </Expression>
6383 <OverallResults successes="3" failures="0"/>
6384 </Section>
6385 <Section name="Wildcard at both ends, redundant at start">
6386 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6387 <Original>
6388 spec.hasFilters() == true
6389 </Original>
6390 <Expanded>
6391 true == true
6392 </Expanded>
6393 </Expression>
6394 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6395 <Original>
6396 spec.matches( tcA ) == false
6397 </Original>
6398 <Expanded>
6399 false == false
6400 </Expanded>
6401 </Expression>
6402 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6403 <Original>
6404 spec.matches( tcB ) == false
6405 </Original>
6406 <Expanded>
6407 false == false
6408 </Expanded>
6409 </Expression>
6410 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6411 <Original>
6412 spec.matches( tcC ) == true
6413 </Original>
6414 <Expanded>
6415 true == true
6416 </Expanded>
6417 </Expression>
6418 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6419 <Original>
6420 spec.matches( tcD ) == true
6421 </Original>
6422 <Expanded>
6423 true == true
6424 </Expanded>
6425 </Expression>
6426 <OverallResults successes="5" failures="0"/>
6427 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01006428 <Section name="Just wildcard">
6429 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6430 <Original>
6431 spec.hasFilters() == true
6432 </Original>
6433 <Expanded>
6434 true == true
6435 </Expanded>
6436 </Expression>
6437 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6438 <Original>
6439 spec.matches( tcA ) == true
6440 </Original>
6441 <Expanded>
6442 true == true
6443 </Expanded>
6444 </Expression>
6445 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6446 <Original>
6447 spec.matches( tcB ) == true
6448 </Original>
6449 <Expanded>
6450 true == true
6451 </Expanded>
6452 </Expression>
6453 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6454 <Original>
6455 spec.matches( tcC ) == true
6456 </Original>
6457 <Expanded>
6458 true == true
6459 </Expanded>
6460 </Expression>
6461 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6462 <Original>
6463 spec.matches( tcD ) == true
6464 </Original>
6465 <Expanded>
6466 true == true
6467 </Expanded>
6468 </Expression>
6469 <OverallResults successes="5" failures="0"/>
6470 </Section>
6471 <Section name="Single tag">
6472 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6473 <Original>
6474 spec.hasFilters() == true
6475 </Original>
6476 <Expanded>
6477 true == true
6478 </Expanded>
6479 </Expression>
6480 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6481 <Original>
6482 spec.matches( tcA ) == false
6483 </Original>
6484 <Expanded>
6485 false == false
6486 </Expanded>
6487 </Expression>
6488 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6489 <Original>
6490 spec.matches( tcB ) == true
6491 </Original>
6492 <Expanded>
6493 true == true
6494 </Expanded>
6495 </Expression>
6496 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6497 <Original>
6498 spec.matches( tcC ) == false
6499 </Original>
6500 <Expanded>
6501 false == false
6502 </Expanded>
6503 </Expression>
6504 <OverallResults successes="4" failures="0"/>
6505 </Section>
6506 <Section name="Single tag, two matches">
6507 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6508 <Original>
6509 spec.hasFilters() == true
6510 </Original>
6511 <Expanded>
6512 true == true
6513 </Expanded>
6514 </Expression>
6515 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6516 <Original>
6517 spec.matches( tcA ) == false
6518 </Original>
6519 <Expanded>
6520 false == false
6521 </Expanded>
6522 </Expression>
6523 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6524 <Original>
6525 spec.matches( tcB ) == true
6526 </Original>
6527 <Expanded>
6528 true == true
6529 </Expanded>
6530 </Expression>
6531 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6532 <Original>
6533 spec.matches( tcC ) == true
6534 </Original>
6535 <Expanded>
6536 true == true
6537 </Expanded>
6538 </Expression>
6539 <OverallResults successes="4" failures="0"/>
6540 </Section>
6541 <Section name="Two tags">
6542 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6543 <Original>
6544 spec.hasFilters() == true
6545 </Original>
6546 <Expanded>
6547 true == true
6548 </Expanded>
6549 </Expression>
6550 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6551 <Original>
6552 spec.matches( tcA ) == false
6553 </Original>
6554 <Expanded>
6555 false == false
6556 </Expanded>
6557 </Expression>
6558 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6559 <Original>
6560 spec.matches( tcB ) == false
6561 </Original>
6562 <Expanded>
6563 false == false
6564 </Expanded>
6565 </Expression>
6566 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6567 <Original>
6568 spec.matches( tcC ) == true
6569 </Original>
6570 <Expanded>
6571 true == true
6572 </Expanded>
6573 </Expression>
6574 <OverallResults successes="4" failures="0"/>
6575 </Section>
6576 <Section name="Wildcarded name and tag">
6577 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6578 <Original>
6579 spec.hasFilters() == true
6580 </Original>
6581 <Expanded>
6582 true == true
6583 </Expanded>
6584 </Expression>
6585 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6586 <Original>
6587 spec.matches( tcA ) == false
6588 </Original>
6589 <Expanded>
6590 false == false
6591 </Expanded>
6592 </Expression>
6593 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6594 <Original>
6595 spec.matches( tcB ) == false
6596 </Original>
6597 <Expanded>
6598 false == false
6599 </Expanded>
6600 </Expression>
6601 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6602 <Original>
6603 spec.matches( tcC ) == true
6604 </Original>
6605 <Expanded>
6606 true == true
6607 </Expanded>
6608 </Expression>
6609 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6610 <Original>
6611 spec.matches( tcD ) == false
6612 </Original>
6613 <Expanded>
6614 false == false
6615 </Expanded>
6616 </Expression>
6617 <OverallResults successes="5" failures="0"/>
6618 </Section>
6619 <Section name="Single tag exclusion">
6620 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6621 <Original>
6622 spec.hasFilters() == true
6623 </Original>
6624 <Expanded>
6625 true == true
6626 </Expanded>
6627 </Expression>
6628 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6629 <Original>
6630 spec.matches( tcA ) == true
6631 </Original>
6632 <Expanded>
6633 true == true
6634 </Expanded>
6635 </Expression>
6636 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6637 <Original>
6638 spec.matches( tcB ) == false
6639 </Original>
6640 <Expanded>
6641 false == false
6642 </Expanded>
6643 </Expression>
6644 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6645 <Original>
6646 spec.matches( tcC ) == true
6647 </Original>
6648 <Expanded>
6649 true == true
6650 </Expanded>
6651 </Expression>
6652 <OverallResults successes="4" failures="0"/>
6653 </Section>
6654 <Section name="One tag exclusion and one tag inclusion">
6655 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6656 <Original>
6657 spec.hasFilters() == true
6658 </Original>
6659 <Expanded>
6660 true == true
6661 </Expanded>
6662 </Expression>
6663 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6664 <Original>
6665 spec.matches( tcA ) == false
6666 </Original>
6667 <Expanded>
6668 false == false
6669 </Expanded>
6670 </Expression>
6671 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6672 <Original>
6673 spec.matches( tcB ) == true
6674 </Original>
6675 <Expanded>
6676 true == true
6677 </Expanded>
6678 </Expression>
6679 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6680 <Original>
6681 spec.matches( tcC ) == false
6682 </Original>
6683 <Expanded>
6684 false == false
6685 </Expanded>
6686 </Expression>
6687 <OverallResults successes="4" failures="0"/>
6688 </Section>
6689 <Section name="One tag exclusion and one wldcarded name inclusion">
6690 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6691 <Original>
6692 spec.hasFilters() == true
6693 </Original>
6694 <Expanded>
6695 true == true
6696 </Expanded>
6697 </Expression>
6698 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6699 <Original>
6700 spec.matches( tcA ) == false
6701 </Original>
6702 <Expanded>
6703 false == false
6704 </Expanded>
6705 </Expression>
6706 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6707 <Original>
6708 spec.matches( tcB ) == false
6709 </Original>
6710 <Expanded>
6711 false == false
6712 </Expanded>
6713 </Expression>
6714 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6715 <Original>
6716 spec.matches( tcC ) == false
6717 </Original>
6718 <Expanded>
6719 false == false
6720 </Expanded>
6721 </Expression>
6722 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6723 <Original>
6724 spec.matches( tcD ) == true
6725 </Original>
6726 <Expanded>
6727 true == true
6728 </Expanded>
6729 </Expression>
6730 <OverallResults successes="5" failures="0"/>
6731 </Section>
6732 <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion">
6733 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6734 <Original>
6735 spec.hasFilters() == true
6736 </Original>
6737 <Expanded>
6738 true == true
6739 </Expanded>
6740 </Expression>
6741 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6742 <Original>
6743 spec.matches( tcA ) == false
6744 </Original>
6745 <Expanded>
6746 false == false
6747 </Expanded>
6748 </Expression>
6749 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6750 <Original>
6751 spec.matches( tcB ) == false
6752 </Original>
6753 <Expanded>
6754 false == false
6755 </Expanded>
6756 </Expression>
6757 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6758 <Original>
6759 spec.matches( tcC ) == false
6760 </Original>
6761 <Expanded>
6762 false == false
6763 </Expanded>
6764 </Expression>
6765 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6766 <Original>
6767 spec.matches( tcD ) == true
6768 </Original>
6769 <Expanded>
6770 true == true
6771 </Expanded>
6772 </Expression>
6773 <OverallResults successes="5" failures="0"/>
6774 </Section>
6775 <Section name="name exclusion">
6776 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6777 <Original>
6778 spec.hasFilters() == true
6779 </Original>
6780 <Expanded>
6781 true == true
6782 </Expanded>
6783 </Expression>
6784 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6785 <Original>
6786 spec.matches( tcA ) == true
6787 </Original>
6788 <Expanded>
6789 true == true
6790 </Expanded>
6791 </Expression>
6792 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6793 <Original>
6794 spec.matches( tcB ) == false
6795 </Original>
6796 <Expanded>
6797 false == false
6798 </Expanded>
6799 </Expression>
6800 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6801 <Original>
6802 spec.matches( tcC ) == true
6803 </Original>
6804 <Expanded>
6805 true == true
6806 </Expanded>
6807 </Expression>
6808 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6809 <Original>
6810 spec.matches( tcD ) == true
6811 </Original>
6812 <Expanded>
6813 true == true
6814 </Expanded>
6815 </Expression>
6816 <OverallResults successes="5" failures="0"/>
6817 </Section>
6818 <Section name="wildcarded name exclusion">
6819 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6820 <Original>
6821 spec.hasFilters() == true
6822 </Original>
6823 <Expanded>
6824 true == true
6825 </Expanded>
6826 </Expression>
6827 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6828 <Original>
6829 spec.matches( tcA ) == true
6830 </Original>
6831 <Expanded>
6832 true == true
6833 </Expanded>
6834 </Expression>
6835 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6836 <Original>
6837 spec.matches( tcB ) == true
6838 </Original>
6839 <Expanded>
6840 true == true
6841 </Expanded>
6842 </Expression>
6843 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6844 <Original>
6845 spec.matches( tcC ) == false
6846 </Original>
6847 <Expanded>
6848 false == false
6849 </Expanded>
6850 </Expression>
6851 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6852 <Original>
6853 spec.matches( tcD ) == false
6854 </Original>
6855 <Expanded>
6856 false == false
6857 </Expanded>
6858 </Expression>
6859 <OverallResults successes="5" failures="0"/>
6860 </Section>
6861 <Section name="wildcarded name exclusion with tag inclusion">
6862 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6863 <Original>
6864 spec.hasFilters() == true
6865 </Original>
6866 <Expanded>
6867 true == true
6868 </Expanded>
6869 </Expression>
6870 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6871 <Original>
6872 spec.matches( tcA ) == true
6873 </Original>
6874 <Expanded>
6875 true == true
6876 </Expanded>
6877 </Expression>
6878 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6879 <Original>
6880 spec.matches( tcB ) == true
6881 </Original>
6882 <Expanded>
6883 true == true
6884 </Expanded>
6885 </Expression>
6886 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6887 <Original>
6888 spec.matches( tcC ) == true
6889 </Original>
6890 <Expanded>
6891 true == true
6892 </Expanded>
6893 </Expression>
6894 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6895 <Original>
6896 spec.matches( tcD ) == false
6897 </Original>
6898 <Expanded>
6899 false == false
6900 </Expanded>
6901 </Expression>
6902 <OverallResults successes="5" failures="0"/>
6903 </Section>
6904 <Section name="wildcarded name exclusion, using exclude:, with tag inclusion">
6905 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6906 <Original>
6907 spec.hasFilters() == true
6908 </Original>
6909 <Expanded>
6910 true == true
6911 </Expanded>
6912 </Expression>
6913 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6914 <Original>
6915 spec.matches( tcA ) == true
6916 </Original>
6917 <Expanded>
6918 true == true
6919 </Expanded>
6920 </Expression>
6921 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6922 <Original>
6923 spec.matches( tcB ) == true
6924 </Original>
6925 <Expanded>
6926 true == true
6927 </Expanded>
6928 </Expression>
6929 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6930 <Original>
6931 spec.matches( tcC ) == true
6932 </Original>
6933 <Expanded>
6934 true == true
6935 </Expanded>
6936 </Expression>
6937 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6938 <Original>
6939 spec.matches( tcD ) == false
6940 </Original>
6941 <Expanded>
6942 false == false
6943 </Expanded>
6944 </Expression>
6945 <OverallResults successes="5" failures="0"/>
6946 </Section>
6947 <Section name="two wildcarded names">
6948 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6949 <Original>
6950 spec.hasFilters() == true
6951 </Original>
6952 <Expanded>
6953 true == true
6954 </Expanded>
6955 </Expression>
6956 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6957 <Original>
6958 spec.matches( tcA ) == false
6959 </Original>
6960 <Expanded>
6961 false == false
6962 </Expanded>
6963 </Expression>
6964 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6965 <Original>
6966 spec.matches( tcB ) == false
6967 </Original>
6968 <Expanded>
6969 false == false
6970 </Expanded>
6971 </Expression>
6972 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6973 <Original>
6974 spec.matches( tcC ) == true
6975 </Original>
6976 <Expanded>
6977 true == true
6978 </Expanded>
6979 </Expression>
6980 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6981 <Original>
6982 spec.matches( tcD ) == false
6983 </Original>
6984 <Expanded>
6985 false == false
6986 </Expanded>
6987 </Expression>
6988 <OverallResults successes="5" failures="0"/>
6989 </Section>
6990 <Section name="empty tag">
6991 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6992 <Original>
6993 spec.hasFilters() == false
6994 </Original>
6995 <Expanded>
6996 false == false
6997 </Expanded>
6998 </Expression>
6999 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7000 <Original>
7001 spec.matches( tcA ) == false
7002 </Original>
7003 <Expanded>
7004 false == false
7005 </Expanded>
7006 </Expression>
7007 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7008 <Original>
7009 spec.matches( tcB ) == false
7010 </Original>
7011 <Expanded>
7012 false == false
7013 </Expanded>
7014 </Expression>
7015 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7016 <Original>
7017 spec.matches( tcC ) == false
7018 </Original>
7019 <Expanded>
7020 false == false
7021 </Expanded>
7022 </Expression>
7023 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7024 <Original>
7025 spec.matches( tcD ) == false
7026 </Original>
7027 <Expanded>
7028 false == false
7029 </Expanded>
7030 </Expression>
7031 <OverallResults successes="5" failures="0"/>
7032 </Section>
7033 <Section name="empty quoted name">
7034 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7035 <Original>
7036 spec.hasFilters() == false
7037 </Original>
7038 <Expanded>
7039 false == false
7040 </Expanded>
7041 </Expression>
7042 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7043 <Original>
7044 spec.matches( tcA ) == false
7045 </Original>
7046 <Expanded>
7047 false == false
7048 </Expanded>
7049 </Expression>
7050 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7051 <Original>
7052 spec.matches( tcB ) == false
7053 </Original>
7054 <Expanded>
7055 false == false
7056 </Expanded>
7057 </Expression>
7058 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7059 <Original>
7060 spec.matches( tcC ) == false
7061 </Original>
7062 <Expanded>
7063 false == false
7064 </Expanded>
7065 </Expression>
7066 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7067 <Original>
7068 spec.matches( tcD ) == false
7069 </Original>
7070 <Expanded>
7071 false == false
7072 </Expanded>
7073 </Expression>
7074 <OverallResults successes="5" failures="0"/>
7075 </Section>
7076 <Section name="quoted string followed by tag exclusion">
7077 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7078 <Original>
7079 spec.hasFilters() == true
7080 </Original>
7081 <Expanded>
7082 true == true
7083 </Expanded>
7084 </Expression>
7085 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7086 <Original>
7087 spec.matches( tcA ) == false
7088 </Original>
7089 <Expanded>
7090 false == false
7091 </Expanded>
7092 </Expression>
7093 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7094 <Original>
7095 spec.matches( tcB ) == false
7096 </Original>
7097 <Expanded>
7098 false == false
7099 </Expanded>
7100 </Expression>
7101 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7102 <Original>
7103 spec.matches( tcC ) == false
7104 </Original>
7105 <Expanded>
7106 false == false
7107 </Expanded>
7108 </Expression>
7109 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7110 <Original>
7111 spec.matches( tcD ) == true
7112 </Original>
7113 <Expanded>
7114 true == true
7115 </Expanded>
7116 </Expression>
7117 <OverallResults successes="5" failures="0"/>
7118 </Section>
7119 <OverallResult success="true"/>
7120 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01007121 <TestCase name="Anonymous test case 1">
7122 <OverallResult success="true"/>
7123 </TestCase>
7124 <TestCase name="Test case with one argument">
7125 <OverallResult success="true"/>
7126 </TestCase>
7127 <TestCase name="Variadic macros">
7128 <Section name="Section with one argument">
7129 <OverallResults successes="1" failures="0"/>
7130 </Section>
7131 <OverallResult success="true"/>
7132 </TestCase>
7133 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00007134 <Section name="Given: This stuff exists">
Phil Nasha1e87a42013-12-10 08:20:46 +00007135 <Section name="When: I do this">
7136 <Section name="Then: it should do this">
Phil Nash2f7a2962013-09-27 19:01:14 +01007137 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7138 <Original>
7139 itDoesThis()
7140 </Original>
7141 <Expanded>
7142 true
7143 </Expanded>
7144 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007145 <Section name="And: do that">
Phil Nash2f7a2962013-09-27 19:01:14 +01007146 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7147 <Original>
7148 itDoesThat()
7149 </Original>
7150 <Expanded>
7151 true
7152 </Expanded>
7153 </Expression>
7154 <OverallResults successes="1" failures="0"/>
7155 </Section>
7156 <OverallResults successes="2" failures="0"/>
7157 </Section>
7158 <OverallResults successes="2" failures="0"/>
7159 </Section>
7160 <OverallResults successes="2" failures="0"/>
7161 </Section>
7162 <OverallResult success="true"/>
7163 </TestCase>
7164 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00007165 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01007166 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7167 <Original>
7168 v.size() == 0
7169 </Original>
7170 <Expanded>
7171 0 == 0
7172 </Expanded>
7173 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007174 <Section name="When: it is made larger">
7175 <Section name="Then: the size and capacity go up">
Phil Nash2f7a2962013-09-27 19:01:14 +01007176 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7177 <Original>
7178 v.size() == 10
7179 </Original>
7180 <Expanded>
7181 10 == 10
7182 </Expanded>
7183 </Expression>
7184 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7185 <Original>
7186 v.capacity() >= 10
7187 </Original>
7188 <Expanded>
7189 10 >= 10
7190 </Expanded>
7191 </Expression>
7192 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00007193 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nash2f7a2962013-09-27 19:01:14 +01007194 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7195 <Original>
7196 v.size() == 5
7197 </Original>
7198 <Expanded>
7199 5 == 5
7200 </Expanded>
7201 </Expression>
7202 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7203 <Original>
7204 v.capacity() >= 10
7205 </Original>
7206 <Expanded>
7207 10 >= 10
7208 </Expanded>
7209 </Expression>
7210 <OverallResults successes="2" failures="0"/>
7211 </Section>
7212 <OverallResults successes="2" failures="0"/>
7213 </Section>
7214 <OverallResults successes="4" failures="0"/>
7215 </Section>
7216 <OverallResults successes="4" failures="0"/>
7217 </Section>
7218 <OverallResults successes="5" failures="0"/>
7219 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00007220 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01007221 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7222 <Original>
7223 v.size() == 0
7224 </Original>
7225 <Expanded>
7226 0 == 0
7227 </Expanded>
7228 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007229 <Section name="When: we reserve more space">
Phil Nasha1e87a42013-12-10 08:20:46 +00007230 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nash2f7a2962013-09-27 19:01:14 +01007231 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7232 <Original>
7233 v.capacity() >= 10
7234 </Original>
7235 <Expanded>
7236 10 >= 10
7237 </Expanded>
7238 </Expression>
7239 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
7240 <Original>
7241 v.size() == 0
7242 </Original>
7243 <Expanded>
7244 0 == 0
7245 </Expanded>
7246 </Expression>
7247 <OverallResults successes="2" failures="0"/>
7248 </Section>
7249 <OverallResults successes="2" failures="0"/>
7250 </Section>
7251 <OverallResults successes="3" failures="0"/>
7252 </Section>
7253 <OverallResult success="true"/>
7254 </TestCase>
7255 <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping">
Phil Nasha1e87a42013-12-10 08:20:46 +00007256 <Section name="Given: A section name that is so long that it cannot fit in a single console width">
Phil Nasha1e87a42013-12-10 08:20:46 +00007257 <Section name="When: The test headers are printed as part of the normal running of the scenario">
7258 <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent">
Phil Nash2f7a2962013-09-27 19:01:14 +01007259 <OverallResults successes="1" failures="0"/>
7260 </Section>
7261 <OverallResults successes="1" failures="0"/>
7262 </Section>
7263 <OverallResults successes="1" failures="0"/>
7264 </Section>
7265 <OverallResult success="true"/>
7266 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01007267 <TestCase name="section tracking">
7268 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7269 <Original>
7270 !testCaseTracker.isCompleted()
7271 </Original>
7272 <Expanded>
7273 !false
7274 </Expanded>
7275 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01007276 <Section name="test case with no sections">
7277 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7278 <Original>
7279 !testCaseTracker.isCompleted()
7280 </Original>
7281 <Expanded>
7282 !false
7283 </Expanded>
7284 </Expression>
7285 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7286 <Original>
7287 testCaseTracker.isCompleted()
7288 </Original>
7289 <Expanded>
7290 true
7291 </Expanded>
7292 </Expression>
7293 <OverallResults successes="2" failures="0"/>
7294 </Section>
7295 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7296 <Original>
7297 !testCaseTracker.isCompleted()
7298 </Original>
7299 <Expanded>
7300 !false
7301 </Expanded>
7302 </Expression>
7303 <Section name="test case with one section">
7304 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7305 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01007306 testCaseTracker.enterSection( section1Name )
7307 </Original>
7308 <Expanded>
7309 true
7310 </Expanded>
7311 </Expression>
7312 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7313 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01007314 !testCaseTracker.isCompleted()
7315 </Original>
7316 <Expanded>
7317 !false
7318 </Expanded>
7319 </Expression>
7320 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7321 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01007322 testCaseTracker.isCompleted()
7323 </Original>
7324 <Expanded>
7325 true
7326 </Expanded>
7327 </Expression>
Phil Nasha0208652014-04-21 19:02:38 +01007328 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7329 <Original>
7330 !testCaseTracker.enterSection( section1Name )
7331 </Original>
7332 <Expanded>
7333 !false
7334 </Expanded>
7335 </Expression>
7336 <OverallResults successes="4" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007337 </Section>
7338 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7339 <Original>
7340 !testCaseTracker.isCompleted()
7341 </Original>
7342 <Expanded>
7343 !false
7344 </Expanded>
7345 </Expression>
7346 <Section name="test case with two consecutive sections">
7347 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7348 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01007349 testCaseTracker.enterSection( section1Name )
7350 </Original>
7351 <Expanded>
7352 true
7353 </Expanded>
7354 </Expression>
7355 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7356 <Original>
7357 !testCaseTracker.enterSection( section2Name )
7358 </Original>
7359 <Expanded>
7360 !false
7361 </Expanded>
7362 </Expression>
7363 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7364 <Original>
7365 !testCaseTracker.isCompleted()
7366 </Original>
7367 <Expanded>
7368 !false
7369 </Expanded>
7370 </Expression>
7371 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7372 <Original>
7373 !testCaseTracker.enterSection( section1Name )
7374 </Original>
7375 <Expanded>
7376 !false
7377 </Expanded>
7378 </Expression>
7379 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7380 <Original>
7381 testCaseTracker.enterSection( section2Name )
7382 </Original>
7383 <Expanded>
7384 true
7385 </Expanded>
7386 </Expression>
7387 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7388 <Original>
7389 testCaseTracker.isCompleted()
7390 </Original>
7391 <Expanded>
7392 true
7393 </Expanded>
7394 </Expression>
Phil Nasha0208652014-04-21 19:02:38 +01007395 <OverallResults successes="6" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007396 </Section>
7397 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7398 <Original>
7399 !testCaseTracker.isCompleted()
7400 </Original>
7401 <Expanded>
7402 !false
7403 </Expanded>
7404 </Expression>
7405 <Section name="test case with one section within another">
7406 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7407 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01007408 testCaseTracker.enterSection( section1Name )
7409 </Original>
7410 <Expanded>
7411 true
7412 </Expanded>
7413 </Expression>
7414 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7415 <Original>
7416 testCaseTracker.enterSection( section2Name )
7417 </Original>
7418 <Expanded>
7419 true
7420 </Expanded>
7421 </Expression>
7422 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7423 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01007424 !testCaseTracker.isCompleted()
7425 </Original>
7426 <Expanded>
7427 !false
7428 </Expanded>
7429 </Expression>
7430 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7431 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01007432 testCaseTracker.isCompleted()
7433 </Original>
7434 <Expanded>
7435 true
7436 </Expanded>
7437 </Expression>
Phil Nasha0208652014-04-21 19:02:38 +01007438 <OverallResults successes="4" failures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007439 </Section>
7440 <OverallResult success="true"/>
7441 </TestCase>
Phil Nash71390352014-05-19 18:21:01 +01007442 <OverallResults successes="599" failures="111"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007443 </Group>
Phil Nash71390352014-05-19 18:21:01 +01007444 <OverallResults successes="599" failures="111"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007445</Catch>