blob: 9bebc6289912fd0dce7f615db7c8dbc886cbbfa0 [file] [log] [blame]
Phil Nash2f7a2962013-09-27 19:01:14 +01001<Catch name="CatchSelfTest">
2 <Group name="~_">
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 Nash337dc252013-11-19 07:21:03 +00001429 <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01001430 <OverallResult success="true"/>
1431 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001432 <TestCase name="Unexpected custom exceptions can be translated">
Phil Nash2f7a2962013-09-27 19:01:14 +01001433 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1434 custom exception
1435 </Exception>
1436 <OverallResult success="false"/>
1437 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001438 <TestCase name="Custom exceptions can be translated when testing for nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01001439 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1440 <Original>
1441 throwCustom()
1442 </Original>
1443 <Expanded>
1444 throwCustom()
1445 </Expanded>
1446 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1447 custom exception - not std
1448 </Exception>
1449 </Expression>
1450 <OverallResult success="false"/>
1451 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001452 <TestCase name="Custom exceptions can be translated when testing for throwing as something else">
Phil Nash2f7a2962013-09-27 19:01:14 +01001453 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1454 <Original>
1455 throwCustom()
1456 </Original>
1457 <Expanded>
1458 throwCustom()
1459 </Expanded>
1460 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1461 custom exception - not std
1462 </Exception>
1463 </Expression>
1464 <OverallResult success="false"/>
1465 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001466 <TestCase name="Unexpected exceptions can be translated">
Phil Nash2f7a2962013-09-27 19:01:14 +01001467 <Exception filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1468 3.14
1469 </Exception>
1470 <OverallResult success="false"/>
1471 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001472 <TestCase name="NotImplemented exception">
Phil Nash2f7a2962013-09-27 19:01:14 +01001473 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp" >
1474 <Original>
1475 thisFunctionNotImplemented( 7 )
1476 </Original>
1477 <Expanded>
1478 thisFunctionNotImplemented( 7 )
1479 </Expanded>
1480 </Expression>
1481 <OverallResult success="true"/>
1482 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001483 <TestCase name="Generators over two ranges">
Phil Nash2f7a2962013-09-27 19:01:14 +01001484 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1485 <Original>
1486 multiply( i, 2 ) == i*2
1487 </Original>
1488 <Expanded>
1489 2 == 2
1490 </Expanded>
1491 </Expression>
1492 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1493 <Original>
1494 multiply( j, 2 ) == j*2
1495 </Original>
1496 <Expanded>
1497 200 == 200
1498 </Expanded>
1499 </Expression>
1500 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1501 <Original>
1502 multiply( i, 2 ) == i*2
1503 </Original>
1504 <Expanded>
1505 4 == 4
1506 </Expanded>
1507 </Expression>
1508 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1509 <Original>
1510 multiply( j, 2 ) == j*2
1511 </Original>
1512 <Expanded>
1513 200 == 200
1514 </Expanded>
1515 </Expression>
1516 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1517 <Original>
1518 multiply( i, 2 ) == i*2
1519 </Original>
1520 <Expanded>
1521 6 == 6
1522 </Expanded>
1523 </Expression>
1524 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1525 <Original>
1526 multiply( j, 2 ) == j*2
1527 </Original>
1528 <Expanded>
1529 200 == 200
1530 </Expanded>
1531 </Expression>
1532 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1533 <Original>
1534 multiply( i, 2 ) == i*2
1535 </Original>
1536 <Expanded>
1537 8 == 8
1538 </Expanded>
1539 </Expression>
1540 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1541 <Original>
1542 multiply( j, 2 ) == j*2
1543 </Original>
1544 <Expanded>
1545 200 == 200
1546 </Expanded>
1547 </Expression>
1548 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1549 <Original>
1550 multiply( i, 2 ) == i*2
1551 </Original>
1552 <Expanded>
1553 10 == 10
1554 </Expanded>
1555 </Expression>
1556 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1557 <Original>
1558 multiply( j, 2 ) == j*2
1559 </Original>
1560 <Expanded>
1561 200 == 200
1562 </Expanded>
1563 </Expression>
1564 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1565 <Original>
1566 multiply( i, 2 ) == i*2
1567 </Original>
1568 <Expanded>
1569 30 == 30
1570 </Expanded>
1571 </Expression>
1572 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1573 <Original>
1574 multiply( j, 2 ) == j*2
1575 </Original>
1576 <Expanded>
1577 200 == 200
1578 </Expanded>
1579 </Expression>
1580 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1581 <Original>
1582 multiply( i, 2 ) == i*2
1583 </Original>
1584 <Expanded>
1585 40 == 40
1586 </Expanded>
1587 </Expression>
1588 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1589 <Original>
1590 multiply( j, 2 ) == j*2
1591 </Original>
1592 <Expanded>
1593 200 == 200
1594 </Expanded>
1595 </Expression>
1596 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1597 <Original>
1598 multiply( i, 2 ) == i*2
1599 </Original>
1600 <Expanded>
1601 42 == 42
1602 </Expanded>
1603 </Expression>
1604 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1605 <Original>
1606 multiply( j, 2 ) == j*2
1607 </Original>
1608 <Expanded>
1609 200 == 200
1610 </Expanded>
1611 </Expression>
1612 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1613 <Original>
1614 multiply( i, 2 ) == i*2
1615 </Original>
1616 <Expanded>
1617 72 == 72
1618 </Expanded>
1619 </Expression>
1620 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1621 <Original>
1622 multiply( j, 2 ) == j*2
1623 </Original>
1624 <Expanded>
1625 200 == 200
1626 </Expanded>
1627 </Expression>
1628 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1629 <Original>
1630 multiply( i, 2 ) == i*2
1631 </Original>
1632 <Expanded>
1633 2 == 2
1634 </Expanded>
1635 </Expression>
1636 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1637 <Original>
1638 multiply( j, 2 ) == j*2
1639 </Original>
1640 <Expanded>
1641 202 == 202
1642 </Expanded>
1643 </Expression>
1644 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1645 <Original>
1646 multiply( i, 2 ) == i*2
1647 </Original>
1648 <Expanded>
1649 4 == 4
1650 </Expanded>
1651 </Expression>
1652 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1653 <Original>
1654 multiply( j, 2 ) == j*2
1655 </Original>
1656 <Expanded>
1657 202 == 202
1658 </Expanded>
1659 </Expression>
1660 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1661 <Original>
1662 multiply( i, 2 ) == i*2
1663 </Original>
1664 <Expanded>
1665 6 == 6
1666 </Expanded>
1667 </Expression>
1668 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1669 <Original>
1670 multiply( j, 2 ) == j*2
1671 </Original>
1672 <Expanded>
1673 202 == 202
1674 </Expanded>
1675 </Expression>
1676 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1677 <Original>
1678 multiply( i, 2 ) == i*2
1679 </Original>
1680 <Expanded>
1681 8 == 8
1682 </Expanded>
1683 </Expression>
1684 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1685 <Original>
1686 multiply( j, 2 ) == j*2
1687 </Original>
1688 <Expanded>
1689 202 == 202
1690 </Expanded>
1691 </Expression>
1692 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1693 <Original>
1694 multiply( i, 2 ) == i*2
1695 </Original>
1696 <Expanded>
1697 10 == 10
1698 </Expanded>
1699 </Expression>
1700 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1701 <Original>
1702 multiply( j, 2 ) == j*2
1703 </Original>
1704 <Expanded>
1705 202 == 202
1706 </Expanded>
1707 </Expression>
1708 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1709 <Original>
1710 multiply( i, 2 ) == i*2
1711 </Original>
1712 <Expanded>
1713 30 == 30
1714 </Expanded>
1715 </Expression>
1716 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1717 <Original>
1718 multiply( j, 2 ) == j*2
1719 </Original>
1720 <Expanded>
1721 202 == 202
1722 </Expanded>
1723 </Expression>
1724 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1725 <Original>
1726 multiply( i, 2 ) == i*2
1727 </Original>
1728 <Expanded>
1729 40 == 40
1730 </Expanded>
1731 </Expression>
1732 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1733 <Original>
1734 multiply( j, 2 ) == j*2
1735 </Original>
1736 <Expanded>
1737 202 == 202
1738 </Expanded>
1739 </Expression>
1740 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1741 <Original>
1742 multiply( i, 2 ) == i*2
1743 </Original>
1744 <Expanded>
1745 42 == 42
1746 </Expanded>
1747 </Expression>
1748 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1749 <Original>
1750 multiply( j, 2 ) == j*2
1751 </Original>
1752 <Expanded>
1753 202 == 202
1754 </Expanded>
1755 </Expression>
1756 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1757 <Original>
1758 multiply( i, 2 ) == i*2
1759 </Original>
1760 <Expanded>
1761 72 == 72
1762 </Expanded>
1763 </Expression>
1764 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1765 <Original>
1766 multiply( j, 2 ) == j*2
1767 </Original>
1768 <Expanded>
1769 202 == 202
1770 </Expanded>
1771 </Expression>
1772 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1773 <Original>
1774 multiply( i, 2 ) == i*2
1775 </Original>
1776 <Expanded>
1777 2 == 2
1778 </Expanded>
1779 </Expression>
1780 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1781 <Original>
1782 multiply( j, 2 ) == j*2
1783 </Original>
1784 <Expanded>
1785 204 == 204
1786 </Expanded>
1787 </Expression>
1788 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1789 <Original>
1790 multiply( i, 2 ) == i*2
1791 </Original>
1792 <Expanded>
1793 4 == 4
1794 </Expanded>
1795 </Expression>
1796 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1797 <Original>
1798 multiply( j, 2 ) == j*2
1799 </Original>
1800 <Expanded>
1801 204 == 204
1802 </Expanded>
1803 </Expression>
1804 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1805 <Original>
1806 multiply( i, 2 ) == i*2
1807 </Original>
1808 <Expanded>
1809 6 == 6
1810 </Expanded>
1811 </Expression>
1812 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1813 <Original>
1814 multiply( j, 2 ) == j*2
1815 </Original>
1816 <Expanded>
1817 204 == 204
1818 </Expanded>
1819 </Expression>
1820 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1821 <Original>
1822 multiply( i, 2 ) == i*2
1823 </Original>
1824 <Expanded>
1825 8 == 8
1826 </Expanded>
1827 </Expression>
1828 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1829 <Original>
1830 multiply( j, 2 ) == j*2
1831 </Original>
1832 <Expanded>
1833 204 == 204
1834 </Expanded>
1835 </Expression>
1836 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1837 <Original>
1838 multiply( i, 2 ) == i*2
1839 </Original>
1840 <Expanded>
1841 10 == 10
1842 </Expanded>
1843 </Expression>
1844 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1845 <Original>
1846 multiply( j, 2 ) == j*2
1847 </Original>
1848 <Expanded>
1849 204 == 204
1850 </Expanded>
1851 </Expression>
1852 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1853 <Original>
1854 multiply( i, 2 ) == i*2
1855 </Original>
1856 <Expanded>
1857 30 == 30
1858 </Expanded>
1859 </Expression>
1860 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1861 <Original>
1862 multiply( j, 2 ) == j*2
1863 </Original>
1864 <Expanded>
1865 204 == 204
1866 </Expanded>
1867 </Expression>
1868 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1869 <Original>
1870 multiply( i, 2 ) == i*2
1871 </Original>
1872 <Expanded>
1873 40 == 40
1874 </Expanded>
1875 </Expression>
1876 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1877 <Original>
1878 multiply( j, 2 ) == j*2
1879 </Original>
1880 <Expanded>
1881 204 == 204
1882 </Expanded>
1883 </Expression>
1884 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1885 <Original>
1886 multiply( i, 2 ) == i*2
1887 </Original>
1888 <Expanded>
1889 42 == 42
1890 </Expanded>
1891 </Expression>
1892 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1893 <Original>
1894 multiply( j, 2 ) == j*2
1895 </Original>
1896 <Expanded>
1897 204 == 204
1898 </Expanded>
1899 </Expression>
1900 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1901 <Original>
1902 multiply( i, 2 ) == i*2
1903 </Original>
1904 <Expanded>
1905 72 == 72
1906 </Expanded>
1907 </Expression>
1908 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1909 <Original>
1910 multiply( j, 2 ) == j*2
1911 </Original>
1912 <Expanded>
1913 204 == 204
1914 </Expanded>
1915 </Expression>
1916 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1917 <Original>
1918 multiply( i, 2 ) == i*2
1919 </Original>
1920 <Expanded>
1921 2 == 2
1922 </Expanded>
1923 </Expression>
1924 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1925 <Original>
1926 multiply( j, 2 ) == j*2
1927 </Original>
1928 <Expanded>
1929 206 == 206
1930 </Expanded>
1931 </Expression>
1932 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1933 <Original>
1934 multiply( i, 2 ) == i*2
1935 </Original>
1936 <Expanded>
1937 4 == 4
1938 </Expanded>
1939 </Expression>
1940 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1941 <Original>
1942 multiply( j, 2 ) == j*2
1943 </Original>
1944 <Expanded>
1945 206 == 206
1946 </Expanded>
1947 </Expression>
1948 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1949 <Original>
1950 multiply( i, 2 ) == i*2
1951 </Original>
1952 <Expanded>
1953 6 == 6
1954 </Expanded>
1955 </Expression>
1956 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1957 <Original>
1958 multiply( j, 2 ) == j*2
1959 </Original>
1960 <Expanded>
1961 206 == 206
1962 </Expanded>
1963 </Expression>
1964 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1965 <Original>
1966 multiply( i, 2 ) == i*2
1967 </Original>
1968 <Expanded>
1969 8 == 8
1970 </Expanded>
1971 </Expression>
1972 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1973 <Original>
1974 multiply( j, 2 ) == j*2
1975 </Original>
1976 <Expanded>
1977 206 == 206
1978 </Expanded>
1979 </Expression>
1980 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1981 <Original>
1982 multiply( i, 2 ) == i*2
1983 </Original>
1984 <Expanded>
1985 10 == 10
1986 </Expanded>
1987 </Expression>
1988 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1989 <Original>
1990 multiply( j, 2 ) == j*2
1991 </Original>
1992 <Expanded>
1993 206 == 206
1994 </Expanded>
1995 </Expression>
1996 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
1997 <Original>
1998 multiply( i, 2 ) == i*2
1999 </Original>
2000 <Expanded>
2001 30 == 30
2002 </Expanded>
2003 </Expression>
2004 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2005 <Original>
2006 multiply( j, 2 ) == j*2
2007 </Original>
2008 <Expanded>
2009 206 == 206
2010 </Expanded>
2011 </Expression>
2012 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2013 <Original>
2014 multiply( i, 2 ) == i*2
2015 </Original>
2016 <Expanded>
2017 40 == 40
2018 </Expanded>
2019 </Expression>
2020 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2021 <Original>
2022 multiply( j, 2 ) == j*2
2023 </Original>
2024 <Expanded>
2025 206 == 206
2026 </Expanded>
2027 </Expression>
2028 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2029 <Original>
2030 multiply( i, 2 ) == i*2
2031 </Original>
2032 <Expanded>
2033 42 == 42
2034 </Expanded>
2035 </Expression>
2036 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2037 <Original>
2038 multiply( j, 2 ) == j*2
2039 </Original>
2040 <Expanded>
2041 206 == 206
2042 </Expanded>
2043 </Expression>
2044 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2045 <Original>
2046 multiply( i, 2 ) == i*2
2047 </Original>
2048 <Expanded>
2049 72 == 72
2050 </Expanded>
2051 </Expression>
2052 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2053 <Original>
2054 multiply( j, 2 ) == j*2
2055 </Original>
2056 <Expanded>
2057 206 == 206
2058 </Expanded>
2059 </Expression>
2060 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2061 <Original>
2062 multiply( i, 2 ) == i*2
2063 </Original>
2064 <Expanded>
2065 2 == 2
2066 </Expanded>
2067 </Expression>
2068 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2069 <Original>
2070 multiply( j, 2 ) == j*2
2071 </Original>
2072 <Expanded>
2073 208 == 208
2074 </Expanded>
2075 </Expression>
2076 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2077 <Original>
2078 multiply( i, 2 ) == i*2
2079 </Original>
2080 <Expanded>
2081 4 == 4
2082 </Expanded>
2083 </Expression>
2084 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2085 <Original>
2086 multiply( j, 2 ) == j*2
2087 </Original>
2088 <Expanded>
2089 208 == 208
2090 </Expanded>
2091 </Expression>
2092 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2093 <Original>
2094 multiply( i, 2 ) == i*2
2095 </Original>
2096 <Expanded>
2097 6 == 6
2098 </Expanded>
2099 </Expression>
2100 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2101 <Original>
2102 multiply( j, 2 ) == j*2
2103 </Original>
2104 <Expanded>
2105 208 == 208
2106 </Expanded>
2107 </Expression>
2108 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2109 <Original>
2110 multiply( i, 2 ) == i*2
2111 </Original>
2112 <Expanded>
2113 8 == 8
2114 </Expanded>
2115 </Expression>
2116 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2117 <Original>
2118 multiply( j, 2 ) == j*2
2119 </Original>
2120 <Expanded>
2121 208 == 208
2122 </Expanded>
2123 </Expression>
2124 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2125 <Original>
2126 multiply( i, 2 ) == i*2
2127 </Original>
2128 <Expanded>
2129 10 == 10
2130 </Expanded>
2131 </Expression>
2132 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2133 <Original>
2134 multiply( j, 2 ) == j*2
2135 </Original>
2136 <Expanded>
2137 208 == 208
2138 </Expanded>
2139 </Expression>
2140 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2141 <Original>
2142 multiply( i, 2 ) == i*2
2143 </Original>
2144 <Expanded>
2145 30 == 30
2146 </Expanded>
2147 </Expression>
2148 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2149 <Original>
2150 multiply( j, 2 ) == j*2
2151 </Original>
2152 <Expanded>
2153 208 == 208
2154 </Expanded>
2155 </Expression>
2156 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2157 <Original>
2158 multiply( i, 2 ) == i*2
2159 </Original>
2160 <Expanded>
2161 40 == 40
2162 </Expanded>
2163 </Expression>
2164 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2165 <Original>
2166 multiply( j, 2 ) == j*2
2167 </Original>
2168 <Expanded>
2169 208 == 208
2170 </Expanded>
2171 </Expression>
2172 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2173 <Original>
2174 multiply( i, 2 ) == i*2
2175 </Original>
2176 <Expanded>
2177 42 == 42
2178 </Expanded>
2179 </Expression>
2180 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2181 <Original>
2182 multiply( j, 2 ) == j*2
2183 </Original>
2184 <Expanded>
2185 208 == 208
2186 </Expanded>
2187 </Expression>
2188 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2189 <Original>
2190 multiply( i, 2 ) == i*2
2191 </Original>
2192 <Expanded>
2193 72 == 72
2194 </Expanded>
2195 </Expression>
2196 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2197 <Original>
2198 multiply( j, 2 ) == j*2
2199 </Original>
2200 <Expanded>
2201 208 == 208
2202 </Expanded>
2203 </Expression>
2204 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2205 <Original>
2206 multiply( i, 2 ) == i*2
2207 </Original>
2208 <Expanded>
2209 2 == 2
2210 </Expanded>
2211 </Expression>
2212 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2213 <Original>
2214 multiply( j, 2 ) == j*2
2215 </Original>
2216 <Expanded>
2217 210 == 210
2218 </Expanded>
2219 </Expression>
2220 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2221 <Original>
2222 multiply( i, 2 ) == i*2
2223 </Original>
2224 <Expanded>
2225 4 == 4
2226 </Expanded>
2227 </Expression>
2228 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2229 <Original>
2230 multiply( j, 2 ) == j*2
2231 </Original>
2232 <Expanded>
2233 210 == 210
2234 </Expanded>
2235 </Expression>
2236 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2237 <Original>
2238 multiply( i, 2 ) == i*2
2239 </Original>
2240 <Expanded>
2241 6 == 6
2242 </Expanded>
2243 </Expression>
2244 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2245 <Original>
2246 multiply( j, 2 ) == j*2
2247 </Original>
2248 <Expanded>
2249 210 == 210
2250 </Expanded>
2251 </Expression>
2252 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2253 <Original>
2254 multiply( i, 2 ) == i*2
2255 </Original>
2256 <Expanded>
2257 8 == 8
2258 </Expanded>
2259 </Expression>
2260 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2261 <Original>
2262 multiply( j, 2 ) == j*2
2263 </Original>
2264 <Expanded>
2265 210 == 210
2266 </Expanded>
2267 </Expression>
2268 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2269 <Original>
2270 multiply( i, 2 ) == i*2
2271 </Original>
2272 <Expanded>
2273 10 == 10
2274 </Expanded>
2275 </Expression>
2276 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2277 <Original>
2278 multiply( j, 2 ) == j*2
2279 </Original>
2280 <Expanded>
2281 210 == 210
2282 </Expanded>
2283 </Expression>
2284 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2285 <Original>
2286 multiply( i, 2 ) == i*2
2287 </Original>
2288 <Expanded>
2289 30 == 30
2290 </Expanded>
2291 </Expression>
2292 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2293 <Original>
2294 multiply( j, 2 ) == j*2
2295 </Original>
2296 <Expanded>
2297 210 == 210
2298 </Expanded>
2299 </Expression>
2300 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2301 <Original>
2302 multiply( i, 2 ) == i*2
2303 </Original>
2304 <Expanded>
2305 40 == 40
2306 </Expanded>
2307 </Expression>
2308 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2309 <Original>
2310 multiply( j, 2 ) == j*2
2311 </Original>
2312 <Expanded>
2313 210 == 210
2314 </Expanded>
2315 </Expression>
2316 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2317 <Original>
2318 multiply( i, 2 ) == i*2
2319 </Original>
2320 <Expanded>
2321 42 == 42
2322 </Expanded>
2323 </Expression>
2324 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2325 <Original>
2326 multiply( j, 2 ) == j*2
2327 </Original>
2328 <Expanded>
2329 210 == 210
2330 </Expanded>
2331 </Expression>
2332 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2333 <Original>
2334 multiply( i, 2 ) == i*2
2335 </Original>
2336 <Expanded>
2337 72 == 72
2338 </Expanded>
2339 </Expression>
2340 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2341 <Original>
2342 multiply( j, 2 ) == j*2
2343 </Original>
2344 <Expanded>
2345 210 == 210
2346 </Expanded>
2347 </Expression>
2348 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2349 <Original>
2350 multiply( i, 2 ) == i*2
2351 </Original>
2352 <Expanded>
2353 2 == 2
2354 </Expanded>
2355 </Expression>
2356 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2357 <Original>
2358 multiply( j, 2 ) == j*2
2359 </Original>
2360 <Expanded>
2361 212 == 212
2362 </Expanded>
2363 </Expression>
2364 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2365 <Original>
2366 multiply( i, 2 ) == i*2
2367 </Original>
2368 <Expanded>
2369 4 == 4
2370 </Expanded>
2371 </Expression>
2372 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2373 <Original>
2374 multiply( j, 2 ) == j*2
2375 </Original>
2376 <Expanded>
2377 212 == 212
2378 </Expanded>
2379 </Expression>
2380 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2381 <Original>
2382 multiply( i, 2 ) == i*2
2383 </Original>
2384 <Expanded>
2385 6 == 6
2386 </Expanded>
2387 </Expression>
2388 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2389 <Original>
2390 multiply( j, 2 ) == j*2
2391 </Original>
2392 <Expanded>
2393 212 == 212
2394 </Expanded>
2395 </Expression>
2396 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2397 <Original>
2398 multiply( i, 2 ) == i*2
2399 </Original>
2400 <Expanded>
2401 8 == 8
2402 </Expanded>
2403 </Expression>
2404 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2405 <Original>
2406 multiply( j, 2 ) == j*2
2407 </Original>
2408 <Expanded>
2409 212 == 212
2410 </Expanded>
2411 </Expression>
2412 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2413 <Original>
2414 multiply( i, 2 ) == i*2
2415 </Original>
2416 <Expanded>
2417 10 == 10
2418 </Expanded>
2419 </Expression>
2420 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2421 <Original>
2422 multiply( j, 2 ) == j*2
2423 </Original>
2424 <Expanded>
2425 212 == 212
2426 </Expanded>
2427 </Expression>
2428 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2429 <Original>
2430 multiply( i, 2 ) == i*2
2431 </Original>
2432 <Expanded>
2433 30 == 30
2434 </Expanded>
2435 </Expression>
2436 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2437 <Original>
2438 multiply( j, 2 ) == j*2
2439 </Original>
2440 <Expanded>
2441 212 == 212
2442 </Expanded>
2443 </Expression>
2444 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2445 <Original>
2446 multiply( i, 2 ) == i*2
2447 </Original>
2448 <Expanded>
2449 40 == 40
2450 </Expanded>
2451 </Expression>
2452 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2453 <Original>
2454 multiply( j, 2 ) == j*2
2455 </Original>
2456 <Expanded>
2457 212 == 212
2458 </Expanded>
2459 </Expression>
2460 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2461 <Original>
2462 multiply( i, 2 ) == i*2
2463 </Original>
2464 <Expanded>
2465 42 == 42
2466 </Expanded>
2467 </Expression>
2468 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2469 <Original>
2470 multiply( j, 2 ) == j*2
2471 </Original>
2472 <Expanded>
2473 212 == 212
2474 </Expanded>
2475 </Expression>
2476 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2477 <Original>
2478 multiply( i, 2 ) == i*2
2479 </Original>
2480 <Expanded>
2481 72 == 72
2482 </Expanded>
2483 </Expression>
2484 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2485 <Original>
2486 multiply( j, 2 ) == j*2
2487 </Original>
2488 <Expanded>
2489 212 == 212
2490 </Expanded>
2491 </Expression>
2492 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2493 <Original>
2494 multiply( i, 2 ) == i*2
2495 </Original>
2496 <Expanded>
2497 2 == 2
2498 </Expanded>
2499 </Expression>
2500 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2501 <Original>
2502 multiply( j, 2 ) == j*2
2503 </Original>
2504 <Expanded>
2505 214 == 214
2506 </Expanded>
2507 </Expression>
2508 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2509 <Original>
2510 multiply( i, 2 ) == i*2
2511 </Original>
2512 <Expanded>
2513 4 == 4
2514 </Expanded>
2515 </Expression>
2516 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2517 <Original>
2518 multiply( j, 2 ) == j*2
2519 </Original>
2520 <Expanded>
2521 214 == 214
2522 </Expanded>
2523 </Expression>
2524 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2525 <Original>
2526 multiply( i, 2 ) == i*2
2527 </Original>
2528 <Expanded>
2529 6 == 6
2530 </Expanded>
2531 </Expression>
2532 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2533 <Original>
2534 multiply( j, 2 ) == j*2
2535 </Original>
2536 <Expanded>
2537 214 == 214
2538 </Expanded>
2539 </Expression>
2540 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2541 <Original>
2542 multiply( i, 2 ) == i*2
2543 </Original>
2544 <Expanded>
2545 8 == 8
2546 </Expanded>
2547 </Expression>
2548 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2549 <Original>
2550 multiply( j, 2 ) == j*2
2551 </Original>
2552 <Expanded>
2553 214 == 214
2554 </Expanded>
2555 </Expression>
2556 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2557 <Original>
2558 multiply( i, 2 ) == i*2
2559 </Original>
2560 <Expanded>
2561 10 == 10
2562 </Expanded>
2563 </Expression>
2564 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2565 <Original>
2566 multiply( j, 2 ) == j*2
2567 </Original>
2568 <Expanded>
2569 214 == 214
2570 </Expanded>
2571 </Expression>
2572 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2573 <Original>
2574 multiply( i, 2 ) == i*2
2575 </Original>
2576 <Expanded>
2577 30 == 30
2578 </Expanded>
2579 </Expression>
2580 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2581 <Original>
2582 multiply( j, 2 ) == j*2
2583 </Original>
2584 <Expanded>
2585 214 == 214
2586 </Expanded>
2587 </Expression>
2588 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2589 <Original>
2590 multiply( i, 2 ) == i*2
2591 </Original>
2592 <Expanded>
2593 40 == 40
2594 </Expanded>
2595 </Expression>
2596 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2597 <Original>
2598 multiply( j, 2 ) == j*2
2599 </Original>
2600 <Expanded>
2601 214 == 214
2602 </Expanded>
2603 </Expression>
2604 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2605 <Original>
2606 multiply( i, 2 ) == i*2
2607 </Original>
2608 <Expanded>
2609 42 == 42
2610 </Expanded>
2611 </Expression>
2612 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2613 <Original>
2614 multiply( j, 2 ) == j*2
2615 </Original>
2616 <Expanded>
2617 214 == 214
2618 </Expanded>
2619 </Expression>
2620 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2621 <Original>
2622 multiply( i, 2 ) == i*2
2623 </Original>
2624 <Expanded>
2625 72 == 72
2626 </Expanded>
2627 </Expression>
2628 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2629 <Original>
2630 multiply( j, 2 ) == j*2
2631 </Original>
2632 <Expanded>
2633 214 == 214
2634 </Expanded>
2635 </Expression>
2636 <OverallResult success="true"/>
2637 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002638 <TestCase name="Generator over a range of pairs">
Phil Nash2f7a2962013-09-27 19:01:14 +01002639 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2640 <Original>
2641 i->first == i->second-1
2642 </Original>
2643 <Expanded>
2644 0 == 0
2645 </Expanded>
2646 </Expression>
2647 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/GeneratorTests.cpp" >
2648 <Original>
2649 i->first == i->second-1
2650 </Original>
2651 <Expanded>
2652 2 == 2
2653 </Expanded>
2654 </Expression>
2655 <OverallResult success="true"/>
2656 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002657 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002658 <Info>
2659 this is a message
2660 </Info>
2661 <Warning>
2662 this is a warning
2663 </Warning>
2664 <OverallResult success="true"/>
2665 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002666 <TestCase name="SUCCEED counts as a test pass">
Phil Nash2f7a2962013-09-27 19:01:14 +01002667 <OverallResult success="true"/>
2668 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002669 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002670 <Info>
2671 this message should be logged
2672 </Info>
2673 <Info>
2674 so should this
2675 </Info>
2676 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2677 <Original>
2678 a == 1
2679 </Original>
2680 <Expanded>
2681 2 == 1
2682 </Expanded>
2683 </Expression>
2684 <OverallResult success="false"/>
2685 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002686 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nash2f7a2962013-09-27 19:01:14 +01002687 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2688 <Original>
2689 a == 2
2690 </Original>
2691 <Expanded>
2692 2 == 2
2693 </Expanded>
2694 </Expression>
2695 <Info>
2696 this message should be logged
2697 </Info>
2698 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2699 <Original>
2700 a == 1
2701 </Original>
2702 <Expanded>
2703 2 == 1
2704 </Expanded>
2705 </Expression>
2706 <Info>
2707 and this, but later
2708 </Info>
2709 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2710 <Original>
2711 a == 0
2712 </Original>
2713 <Expanded>
2714 2 == 0
2715 </Expanded>
2716 </Expression>
2717 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2718 <Original>
2719 a == 2
2720 </Original>
2721 <Expanded>
2722 2 == 2
2723 </Expanded>
2724 </Expression>
2725 <OverallResult success="false"/>
2726 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002727 <TestCase name="FAIL aborts the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002728 <Failure>
2729 This is a failure
2730 </Failure>
2731 <OverallResult success="false"/>
2732 </TestCase>
Phil Nash859760a2013-12-14 14:34:05 +00002733 <TestCase name="FAIL does not require an argument">
2734 <Failure/>
2735 <OverallResult success="false"/>
2736 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00002737 <TestCase name="SUCCESS does not require an argument">
2738 <OverallResult success="true"/>
2739 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002740 <TestCase name="Output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002741 <Section name="one">
2742 <Failure>
2743 Message from section one
2744 </Failure>
2745 <OverallResults successes="0" failures="1"/>
2746 </Section>
2747 <Section name="two">
2748 <Failure>
2749 Message from section two
2750 </Failure>
2751 <OverallResults successes="0" failures="1"/>
2752 </Section>
2753 <OverallResult success="false"/>
2754 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002755 <TestCase name="Standard output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002756 <Section name="one">
2757 <OverallResults successes="0" failures="1"/>
2758 </Section>
2759 <Section name="two">
2760 <OverallResults successes="0" failures="1"/>
2761 </Section>
2762 <OverallResult success="true"/>
2763 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002764 <TestCase name="SCOPED_INFO is reset for each loop">
Phil Nash2f7a2962013-09-27 19:01:14 +01002765 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2766 <Original>
2767 i &lt; 10
2768 </Original>
2769 <Expanded>
2770 0 &lt; 10
2771 </Expanded>
2772 </Expression>
2773 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2774 <Original>
2775 i &lt; 10
2776 </Original>
2777 <Expanded>
2778 1 &lt; 10
2779 </Expanded>
2780 </Expression>
2781 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2782 <Original>
2783 i &lt; 10
2784 </Original>
2785 <Expanded>
2786 2 &lt; 10
2787 </Expanded>
2788 </Expression>
2789 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2790 <Original>
2791 i &lt; 10
2792 </Original>
2793 <Expanded>
2794 3 &lt; 10
2795 </Expanded>
2796 </Expression>
2797 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2798 <Original>
2799 i &lt; 10
2800 </Original>
2801 <Expanded>
2802 4 &lt; 10
2803 </Expanded>
2804 </Expression>
2805 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2806 <Original>
2807 i &lt; 10
2808 </Original>
2809 <Expanded>
2810 5 &lt; 10
2811 </Expanded>
2812 </Expression>
2813 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2814 <Original>
2815 i &lt; 10
2816 </Original>
2817 <Expanded>
2818 6 &lt; 10
2819 </Expanded>
2820 </Expression>
2821 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2822 <Original>
2823 i &lt; 10
2824 </Original>
2825 <Expanded>
2826 7 &lt; 10
2827 </Expanded>
2828 </Expression>
2829 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2830 <Original>
2831 i &lt; 10
2832 </Original>
2833 <Expanded>
2834 8 &lt; 10
2835 </Expanded>
2836 </Expression>
2837 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2838 <Original>
2839 i &lt; 10
2840 </Original>
2841 <Expanded>
2842 9 &lt; 10
2843 </Expanded>
2844 </Expression>
2845 <Info>
2846 current counter 10
2847 </Info>
2848 <Info>
2849 i := 10
2850 </Info>
2851 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2852 <Original>
2853 i &lt; 10
2854 </Original>
2855 <Expanded>
2856 10 &lt; 10
2857 </Expanded>
2858 </Expression>
2859 <OverallResult success="false"/>
2860 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002861 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002862 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2863 <Original>
2864 1 == 2
2865 </Original>
2866 <Expanded>
2867 1 == 2
2868 </Expanded>
2869 </Expression>
2870 <OverallResult success="false"/>
2871 </TestCase>
2872 <TestCase name="just info">
2873 <OverallResult success="true"/>
2874 </TestCase>
2875 <TestCase name="just failure">
2876 <Failure>
2877 Previous info should not be seen
2878 </Failure>
2879 <OverallResult success="false"/>
2880 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002881 <TestCase name="sends information to INFO">
2882 <Info>
2883 hi
2884 </Info>
2885 <Info>
2886 i := 7
2887 </Info>
2888 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp" >
2889 <Original>
2890 false
2891 </Original>
2892 <Expanded>
2893 false
2894 </Expanded>
2895 </Expression>
2896 <OverallResult success="false"/>
2897 </TestCase>
2898 <TestCase name="random SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002899 <Section name="s1" description="doesn't equal">
2900 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2901 <Original>
2902 a != b
2903 </Original>
2904 <Expanded>
2905 1 != 2
2906 </Expanded>
2907 </Expression>
2908 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2909 <Original>
2910 b != a
2911 </Original>
2912 <Expanded>
2913 2 != 1
2914 </Expanded>
2915 </Expression>
2916 <OverallResults successes="2" failures="0"/>
2917 </Section>
2918 <Section name="s2" description="not equal">
2919 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2920 <Original>
2921 a != b
2922 </Original>
2923 <Expanded>
2924 1 != 2
2925 </Expanded>
2926 </Expression>
2927 <OverallResults successes="1" failures="0"/>
2928 </Section>
2929 <OverallResult success="true"/>
2930 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002931 <TestCase name="nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002932 <Section name="s1" description="doesn't equal">
2933 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2934 <Original>
2935 a != b
2936 </Original>
2937 <Expanded>
2938 1 != 2
2939 </Expanded>
2940 </Expression>
2941 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2942 <Original>
2943 b != a
2944 </Original>
2945 <Expanded>
2946 2 != 1
2947 </Expanded>
2948 </Expression>
2949 <OverallResults successes="2" failures="0"/>
2950 </Section>
2951 <Section name="s1" description="doesn't equal">
2952 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2953 <Original>
2954 a != b
2955 </Original>
2956 <Expanded>
2957 1 != 2
2958 </Expanded>
2959 </Expression>
2960 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2961 <Original>
2962 b != a
2963 </Original>
2964 <Expanded>
2965 2 != 1
2966 </Expanded>
2967 </Expression>
2968 <Section name="s2" description="not equal">
2969 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2970 <Original>
2971 a != b
2972 </Original>
2973 <Expanded>
2974 1 != 2
2975 </Expanded>
2976 </Expression>
2977 <OverallResults successes="1" failures="0"/>
2978 </Section>
2979 <OverallResults successes="3" failures="0"/>
2980 </Section>
2981 <OverallResult success="true"/>
2982 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002983 <TestCase name="more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002984 <Section name="s1" description="doesn't equal">
2985 <OverallResults successes="0" failures="0"/>
2986 </Section>
2987 <Section name="s1" description="doesn't equal">
2988 <Section name="s2" description="equal">
2989 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
2990 <Original>
2991 a == b
2992 </Original>
2993 <Expanded>
2994 1 == 2
2995 </Expanded>
2996 </Expression>
2997 <OverallResults successes="0" failures="1"/>
2998 </Section>
2999 <OverallResults successes="0" failures="1"/>
3000 </Section>
3001 <Section name="s1" description="doesn't equal">
3002 <Section name="s3" description="not equal">
3003 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3004 <Original>
3005 a != b
3006 </Original>
3007 <Expanded>
3008 1 != 2
3009 </Expanded>
3010 </Expression>
3011 <OverallResults successes="1" failures="0"/>
3012 </Section>
3013 <OverallResults successes="1" failures="0"/>
3014 </Section>
3015 <Section name="s1" description="doesn't equal">
3016 <Section name="s4" description="less than">
3017 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3018 <Original>
3019 a &lt; b
3020 </Original>
3021 <Expanded>
3022 1 &lt; 2
3023 </Expanded>
3024 </Expression>
3025 <OverallResults successes="1" failures="0"/>
3026 </Section>
3027 <OverallResults successes="1" failures="0"/>
3028 </Section>
3029 <OverallResult success="false"/>
3030 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003031 <TestCase name="even more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003032 <Section name="c">
3033 <OverallResults successes="0" failures="0"/>
3034 </Section>
3035 <Section name="c">
3036 <Section name="d (leaf)">
3037 <OverallResults successes="0" failures="1"/>
3038 </Section>
3039 <OverallResults successes="0" failures="1"/>
3040 </Section>
3041 <Section name="c">
3042 <Section name="e (leaf)">
3043 <OverallResults successes="0" failures="1"/>
3044 </Section>
3045 <OverallResults successes="0" failures="1"/>
3046 </Section>
3047 <Section name="f (leaf)">
3048 <OverallResults successes="0" failures="1"/>
3049 </Section>
3050 <OverallResult success="true"/>
3051 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003052 <TestCase name="looped SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003053 <Section name="s1" description="b is currently: 0">
3054 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3055 <Original>
3056 b > a
3057 </Original>
3058 <Expanded>
3059 0 > 1
3060 </Expanded>
3061 </Expression>
3062 <OverallResults successes="0" failures="1"/>
3063 </Section>
3064 <OverallResult success="false"/>
3065 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003066 <TestCase name="looped tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003067 <Info>
3068 Testing if fib[0] (1) is even
3069 </Info>
3070 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3071 <Original>
3072 ( fib[i] % 2 ) == 0
3073 </Original>
3074 <Expanded>
3075 1 == 0
3076 </Expanded>
3077 </Expression>
3078 <Info>
3079 Testing if fib[1] (1) is even
3080 </Info>
3081 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3082 <Original>
3083 ( fib[i] % 2 ) == 0
3084 </Original>
3085 <Expanded>
3086 1 == 0
3087 </Expanded>
3088 </Expression>
3089 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3090 <Original>
3091 ( fib[i] % 2 ) == 0
3092 </Original>
3093 <Expanded>
3094 0 == 0
3095 </Expanded>
3096 </Expression>
3097 <Info>
3098 Testing if fib[3] (3) is even
3099 </Info>
3100 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3101 <Original>
3102 ( fib[i] % 2 ) == 0
3103 </Original>
3104 <Expanded>
3105 1 == 0
3106 </Expanded>
3107 </Expression>
3108 <Info>
3109 Testing if fib[4] (5) is even
3110 </Info>
3111 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3112 <Original>
3113 ( fib[i] % 2 ) == 0
3114 </Original>
3115 <Expanded>
3116 1 == 0
3117 </Expanded>
3118 </Expression>
3119 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3120 <Original>
3121 ( fib[i] % 2 ) == 0
3122 </Original>
3123 <Expanded>
3124 0 == 0
3125 </Expanded>
3126 </Expression>
3127 <Info>
3128 Testing if fib[6] (13) is even
3129 </Info>
3130 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3131 <Original>
3132 ( fib[i] % 2 ) == 0
3133 </Original>
3134 <Expanded>
3135 1 == 0
3136 </Expanded>
3137 </Expression>
3138 <Info>
3139 Testing if fib[7] (21) is even
3140 </Info>
3141 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3142 <Original>
3143 ( fib[i] % 2 ) == 0
3144 </Original>
3145 <Expanded>
3146 1 == 0
3147 </Expanded>
3148 </Expression>
3149 <OverallResult success="false"/>
3150 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003151 <TestCase name="Sends stuff to stdout and stderr">
Phil Nash2f7a2962013-09-27 19:01:14 +01003152 <OverallResult success="true"/>
3153 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003154 <TestCase name="null strings">
Phil Nash2f7a2962013-09-27 19:01:14 +01003155 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3156 <Original>
3157 makeString( false ) != static_cast&lt;char*>(__null)
3158 </Original>
3159 <Expanded>
3160 &quot;valid string&quot; != {null string}
3161 </Expanded>
3162 </Expression>
3163 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3164 <Original>
3165 makeString( true ) == static_cast&lt;char*>(__null)
3166 </Original>
3167 <Expanded>
3168 {null string} == {null string}
3169 </Expanded>
3170 </Expression>
3171 <OverallResult success="true"/>
3172 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003173 <TestCase name="checkedIf">
Phil Nash2f7a2962013-09-27 19:01:14 +01003174 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3175 <Original>
3176 flag
3177 </Original>
3178 <Expanded>
3179 true
3180 </Expanded>
3181 </Expression>
3182 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3183 <Original>
3184 testCheckedIf( true )
3185 </Original>
3186 <Expanded>
3187 true
3188 </Expanded>
3189 </Expression>
3190 <OverallResult success="true"/>
3191 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003192 <TestCase name="checkedIf, failing">
Phil Nash2f7a2962013-09-27 19:01:14 +01003193 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3194 <Original>
3195 flag
3196 </Original>
3197 <Expanded>
3198 false
3199 </Expanded>
3200 </Expression>
3201 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3202 <Original>
3203 testCheckedIf( false )
3204 </Original>
3205 <Expanded>
3206 false
3207 </Expanded>
3208 </Expression>
3209 <OverallResult success="false"/>
3210 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003211 <TestCase name="checkedElse">
Phil Nash2f7a2962013-09-27 19:01:14 +01003212 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3213 <Original>
3214 flag
3215 </Original>
3216 <Expanded>
3217 true
3218 </Expanded>
3219 </Expression>
3220 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3221 <Original>
3222 testCheckedElse( true )
3223 </Original>
3224 <Expanded>
3225 true
3226 </Expanded>
3227 </Expression>
3228 <OverallResult success="true"/>
3229 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003230 <TestCase name="checkedElse, failing">
Phil Nash2f7a2962013-09-27 19:01:14 +01003231 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3232 <Original>
3233 flag
3234 </Original>
3235 <Expanded>
3236 false
3237 </Expanded>
3238 </Expression>
3239 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3240 <Original>
3241 testCheckedElse( false )
3242 </Original>
3243 <Expanded>
3244 false
3245 </Expanded>
3246 </Expression>
3247 <OverallResult success="false"/>
3248 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003249 <TestCase name="xmlentitycheck">
Phil Nash2f7a2962013-09-27 19:01:14 +01003250 <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>">
3251 <OverallResults successes="0" failures="1"/>
3252 </Section>
3253 <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;">
3254 <OverallResults successes="0" failures="1"/>
3255 </Section>
3256 <OverallResult success="true"/>
3257 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003258 <TestCase name="send a single char to INFO">
Phil Nash2f7a2962013-09-27 19:01:14 +01003259 <Info>
3260 3
3261 </Info>
3262 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3263 <Original>
3264 false
3265 </Original>
3266 <Expanded>
3267 false
3268 </Expanded>
3269 </Expression>
3270 <OverallResult success="false"/>
3271 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003272 <TestCase name="atomic if">
Phil Nash2f7a2962013-09-27 19:01:14 +01003273 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3274 <Original>
3275 x == 0
3276 </Original>
3277 <Expanded>
3278 0 == 0
3279 </Expanded>
3280 </Expression>
3281 <OverallResult success="true"/>
3282 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003283 <TestCase name="String matchers">
Phil Nash2f7a2962013-09-27 19:01:14 +01003284 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3285 <Original>
3286 testStringForMatching() Contains( &quot;string&quot; )
3287 </Original>
3288 <Expanded>
3289 &quot;this string contains 'abc' as a substring&quot; contains: &quot;string&quot;
3290 </Expanded>
3291 </Expression>
3292 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3293 <Original>
3294 testStringForMatching() Contains( &quot;abc&quot; )
3295 </Original>
3296 <Expanded>
3297 &quot;this string contains 'abc' as a substring&quot; contains: &quot;abc&quot;
3298 </Expanded>
3299 </Expression>
3300 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3301 <Original>
3302 testStringForMatching() StartsWith( &quot;this&quot; )
3303 </Original>
3304 <Expanded>
3305 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;this&quot;
3306 </Expanded>
3307 </Expression>
3308 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3309 <Original>
3310 testStringForMatching() EndsWith( &quot;substring&quot; )
3311 </Original>
3312 <Expanded>
3313 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;substring&quot;
3314 </Expanded>
3315 </Expression>
3316 <OverallResult success="true"/>
3317 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003318 <TestCase name="Contains string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003319 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3320 <Original>
3321 testStringForMatching() Contains( &quot;not there&quot; )
3322 </Original>
3323 <Expanded>
3324 &quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;
3325 </Expanded>
3326 </Expression>
3327 <OverallResult success="false"/>
3328 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003329 <TestCase name="StartsWith string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003330 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3331 <Original>
3332 testStringForMatching() StartsWith( &quot;string&quot; )
3333 </Original>
3334 <Expanded>
3335 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;
3336 </Expanded>
3337 </Expression>
3338 <OverallResult success="false"/>
3339 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003340 <TestCase name="EndsWith string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003341 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3342 <Original>
3343 testStringForMatching() EndsWith( &quot;this&quot; )
3344 </Original>
3345 <Expanded>
3346 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;
3347 </Expanded>
3348 </Expression>
3349 <OverallResult success="false"/>
3350 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003351 <TestCase name="Equals string matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003352 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3353 <Original>
3354 testStringForMatching() Equals( &quot;something else&quot; )
3355 </Original>
3356 <Expanded>
3357 &quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;
3358 </Expanded>
3359 </Expression>
3360 <OverallResult success="false"/>
3361 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003362 <TestCase name="Equals string matcher, with NULL">
Phil Nash2f7a2962013-09-27 19:01:14 +01003363 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3364 <Original>
3365 &quot;&quot; Equals(__null)
3366 </Original>
3367 <Expanded>
3368 &quot;&quot; equals: &quot;&quot;
3369 </Expanded>
3370 </Expression>
3371 <OverallResult success="true"/>
3372 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003373 <TestCase name="AllOf matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003374 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3375 <Original>
3376 testStringForMatching() AllOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;abc&quot; ) )
3377 </Original>
3378 <Expanded>
3379 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; and contains: &quot;abc&quot; )
3380 </Expanded>
3381 </Expression>
3382 <OverallResult success="true"/>
3383 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003384 <TestCase name="AnyOf matcher">
Phil Nash2f7a2962013-09-27 19:01:14 +01003385 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3386 <Original>
3387 testStringForMatching() AnyOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;not there&quot; ) )
3388 </Original>
3389 <Expanded>
3390 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; or contains: &quot;not there&quot; )
3391 </Expanded>
3392 </Expression>
3393 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3394 <Original>
3395 testStringForMatching() AnyOf( Catch::Contains( &quot;not there&quot; ), Catch::Contains( &quot;string&quot; ) )
3396 </Original>
3397 <Expanded>
3398 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;not there&quot; or contains: &quot;string&quot; )
3399 </Expanded>
3400 </Expression>
3401 <OverallResult success="true"/>
3402 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003403 <TestCase name="Equals">
Phil Nash2f7a2962013-09-27 19:01:14 +01003404 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3405 <Original>
3406 testStringForMatching() Equals( &quot;this string contains 'abc' as a substring&quot; )
3407 </Original>
3408 <Expanded>
3409 &quot;this string contains 'abc' as a substring&quot; equals: &quot;this string contains 'abc' as a substring&quot;
3410 </Expanded>
3411 </Expression>
3412 <OverallResult success="true"/>
3413 </TestCase>
3414 <TestCase name="Factorials are computed">
3415 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3416 <Original>
3417 Factorial(0) == 1
3418 </Original>
3419 <Expanded>
3420 1 == 1
3421 </Expanded>
3422 </Expression>
3423 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3424 <Original>
3425 Factorial(1) == 1
3426 </Original>
3427 <Expanded>
3428 1 == 1
3429 </Expanded>
3430 </Expression>
3431 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3432 <Original>
3433 Factorial(2) == 2
3434 </Original>
3435 <Expanded>
3436 2 == 2
3437 </Expanded>
3438 </Expression>
3439 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3440 <Original>
3441 Factorial(3) == 6
3442 </Original>
3443 <Expanded>
3444 6 == 6
3445 </Expanded>
3446 </Expression>
3447 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3448 <Original>
3449 Factorial(10) == 3628800
3450 </Original>
3451 <Expanded>
3452 0x<hex digits> == 3628800
3453 </Expanded>
3454 </Expression>
3455 <OverallResult success="true"/>
3456 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003457 <TestCase name="An empty test with no assertions">
Phil Nash2f7a2962013-09-27 19:01:14 +01003458 <OverallResult success="true"/>
3459 </TestCase>
3460 <TestCase name="Nice descriptive name">
3461 <Warning>
3462 This one ran
3463 </Warning>
3464 <OverallResult success="true"/>
3465 </TestCase>
3466 <TestCase name="first tag">
3467 <OverallResult success="true"/>
3468 </TestCase>
3469 <TestCase name="second tag">
3470 <OverallResult success="true"/>
3471 </TestCase>
3472 <TestCase name="vectors can be sized and resized">
3473 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3474 <Original>
3475 v.size() == 5
3476 </Original>
3477 <Expanded>
3478 5 == 5
3479 </Expanded>
3480 </Expression>
3481 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3482 <Original>
3483 v.capacity() >= 5
3484 </Original>
3485 <Expanded>
3486 5 >= 5
3487 </Expanded>
3488 </Expression>
3489 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3490 <Original>
3491 v.size() == 5
3492 </Original>
3493 <Expanded>
3494 5 == 5
3495 </Expanded>
3496 </Expression>
3497 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3498 <Original>
3499 v.capacity() >= 5
3500 </Original>
3501 <Expanded>
3502 5 >= 5
3503 </Expanded>
3504 </Expression>
3505 <Section name="resizing bigger changes size and capacity">
3506 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3507 <Original>
3508 v.size() == 10
3509 </Original>
3510 <Expanded>
3511 10 == 10
3512 </Expanded>
3513 </Expression>
3514 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3515 <Original>
3516 v.capacity() >= 10
3517 </Original>
3518 <Expanded>
3519 10 >= 10
3520 </Expanded>
3521 </Expression>
3522 <OverallResults successes="2" failures="0"/>
3523 </Section>
3524 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3525 <Original>
3526 v.size() == 5
3527 </Original>
3528 <Expanded>
3529 5 == 5
3530 </Expanded>
3531 </Expression>
3532 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3533 <Original>
3534 v.capacity() >= 5
3535 </Original>
3536 <Expanded>
3537 5 >= 5
3538 </Expanded>
3539 </Expression>
3540 <Section name="resizing smaller changes size but not capacity">
3541 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3542 <Original>
3543 v.size() == 0
3544 </Original>
3545 <Expanded>
3546 0 == 0
3547 </Expanded>
3548 </Expression>
3549 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3550 <Original>
3551 v.capacity() >= 5
3552 </Original>
3553 <Expanded>
3554 5 >= 5
3555 </Expanded>
3556 </Expression>
3557 <OverallResults successes="2" failures="0"/>
3558 </Section>
3559 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3560 <Original>
3561 v.size() == 5
3562 </Original>
3563 <Expanded>
3564 5 == 5
3565 </Expanded>
3566 </Expression>
3567 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3568 <Original>
3569 v.capacity() >= 5
3570 </Original>
3571 <Expanded>
3572 5 >= 5
3573 </Expanded>
3574 </Expression>
3575 <Section name="resizing smaller changes size but not capacity">
3576 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3577 <Original>
3578 v.size() == 0
3579 </Original>
3580 <Expanded>
3581 0 == 0
3582 </Expanded>
3583 </Expression>
3584 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3585 <Original>
3586 v.capacity() >= 5
3587 </Original>
3588 <Expanded>
3589 5 >= 5
3590 </Expanded>
3591 </Expression>
3592 <Section name="We can use the 'swap trick' to reset the capacity">
3593 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3594 <Original>
3595 v.capacity() == 0
3596 </Original>
3597 <Expanded>
3598 0 == 0
3599 </Expanded>
3600 </Expression>
3601 <OverallResults successes="1" failures="0"/>
3602 </Section>
3603 <OverallResults successes="3" failures="0"/>
3604 </Section>
3605 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3606 <Original>
3607 v.size() == 5
3608 </Original>
3609 <Expanded>
3610 5 == 5
3611 </Expanded>
3612 </Expression>
3613 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3614 <Original>
3615 v.capacity() >= 5
3616 </Original>
3617 <Expanded>
3618 5 >= 5
3619 </Expanded>
3620 </Expression>
3621 <Section name="reserving bigger changes capacity but not size">
3622 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3623 <Original>
3624 v.size() == 5
3625 </Original>
3626 <Expanded>
3627 5 == 5
3628 </Expanded>
3629 </Expression>
3630 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3631 <Original>
3632 v.capacity() >= 10
3633 </Original>
3634 <Expanded>
3635 10 >= 10
3636 </Expanded>
3637 </Expression>
3638 <OverallResults successes="2" failures="0"/>
3639 </Section>
3640 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3641 <Original>
3642 v.size() == 5
3643 </Original>
3644 <Expanded>
3645 5 == 5
3646 </Expanded>
3647 </Expression>
3648 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3649 <Original>
3650 v.capacity() >= 5
3651 </Original>
3652 <Expanded>
3653 5 >= 5
3654 </Expanded>
3655 </Expression>
3656 <Section name="reserving smaller does not change size or capacity">
3657 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3658 <Original>
3659 v.size() == 5
3660 </Original>
3661 <Expanded>
3662 5 == 5
3663 </Expanded>
3664 </Expression>
3665 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
3666 <Original>
3667 v.capacity() >= 5
3668 </Original>
3669 <Expanded>
3670 5 >= 5
3671 </Expanded>
3672 </Expression>
3673 <OverallResults successes="2" failures="0"/>
3674 </Section>
3675 <OverallResult success="true"/>
3676 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003677 <TestCase name="A couple of nested sections followed by a failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01003678 <Failure>
3679 to infinity and beyond
3680 </Failure>
3681 <Section name="Outer">
3682 <OverallResults successes="0" failures="0"/>
3683 </Section>
3684 <Failure>
3685 to infinity and beyond
3686 </Failure>
3687 <Section name="Outer">
3688 <Section name="Inner">
3689 <OverallResults successes="1" failures="0"/>
3690 </Section>
3691 <OverallResults successes="1" failures="0"/>
3692 </Section>
3693 <Failure>
3694 to infinity and beyond
3695 </Failure>
3696 <OverallResult success="false"/>
3697 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01003698 <TestCase name="Process can be configured on command line">
3699 <Section name="default - no arguments">
3700 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3701 <Original>
3702 parseIntoConfig( argv, config )
3703 </Original>
3704 <Expanded>
3705 parseIntoConfig( argv, config )
3706 </Expanded>
3707 </Expression>
3708 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3709 <Original>
3710 config.shouldDebugBreak == false
3711 </Original>
3712 <Expanded>
3713 false == false
3714 </Expanded>
3715 </Expression>
3716 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3717 <Original>
3718 config.abortAfter == -1
3719 </Original>
3720 <Expanded>
3721 -1 == -1
3722 </Expanded>
3723 </Expression>
3724 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3725 <Original>
3726 config.noThrow == false
3727 </Original>
3728 <Expanded>
3729 false == false
3730 </Expanded>
3731 </Expression>
3732 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3733 <Original>
3734 config.reporterName.empty()
3735 </Original>
3736 <Expanded>
3737 true
3738 </Expanded>
3739 </Expression>
3740 <OverallResults successes="5" failures="0"/>
3741 </Section>
3742 <Section name="test lists">
3743 <OverallResults successes="0" failures="0"/>
3744 </Section>
3745 <Section name="test lists">
3746 <Section name="1 test" description="Specify one test case using">
3747 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3748 <Original>
3749 parseIntoConfig( argv, config )
3750 </Original>
3751 <Expanded>
3752 parseIntoConfig( argv, config )
3753 </Expanded>
3754 </Expression>
3755 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3756 <Original>
3757 cfg.filters().size() == 1
3758 </Original>
3759 <Expanded>
3760 1 == 1
3761 </Expanded>
3762 </Expression>
3763 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3764 <Original>
3765 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;notIncluded&quot; ) ) == false
3766 </Original>
3767 <Expanded>
3768 false == false
3769 </Expanded>
3770 </Expression>
3771 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3772 <Original>
3773 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;test1&quot; ) )
3774 </Original>
3775 <Expanded>
3776 true
3777 </Expanded>
3778 </Expression>
3779 <OverallResults successes="4" failures="0"/>
3780 </Section>
3781 <OverallResults successes="4" failures="0"/>
3782 </Section>
3783 <Section name="test lists">
3784 <Section name="Specify one test case exclusion using exclude:">
3785 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3786 <Original>
3787 parseIntoConfig( argv, config )
3788 </Original>
3789 <Expanded>
3790 parseIntoConfig( argv, config )
3791 </Expanded>
3792 </Expression>
3793 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3794 <Original>
3795 cfg.filters().size() == 1
3796 </Original>
3797 <Expanded>
3798 1 == 1
3799 </Expanded>
3800 </Expression>
3801 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3802 <Original>
3803 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;test1&quot; ) ) == false
3804 </Original>
3805 <Expanded>
3806 false == false
3807 </Expanded>
3808 </Expression>
3809 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3810 <Original>
3811 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;alwaysIncluded&quot; ) )
3812 </Original>
3813 <Expanded>
3814 true
3815 </Expanded>
3816 </Expression>
3817 <OverallResults successes="4" failures="0"/>
3818 </Section>
3819 <OverallResults successes="4" failures="0"/>
3820 </Section>
3821 <Section name="test lists">
3822 <Section name="Specify one test case exclusion using ~">
3823 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3824 <Original>
3825 parseIntoConfig( argv, config )
3826 </Original>
3827 <Expanded>
3828 parseIntoConfig( argv, config )
3829 </Expanded>
3830 </Expression>
3831 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3832 <Original>
3833 cfg.filters().size() == 1
3834 </Original>
3835 <Expanded>
3836 1 == 1
3837 </Expanded>
3838 </Expression>
3839 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3840 <Original>
3841 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;test1&quot; ) ) == false
3842 </Original>
3843 <Expanded>
3844 false == false
3845 </Expanded>
3846 </Expression>
3847 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3848 <Original>
3849 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;alwaysIncluded&quot; ) )
3850 </Original>
3851 <Expanded>
3852 true
3853 </Expanded>
3854 </Expression>
3855 <OverallResults successes="4" failures="0"/>
3856 </Section>
3857 <OverallResults successes="4" failures="0"/>
3858 </Section>
3859 <Section name="test lists">
3860 <Section name="Specify two test cases using -t">
3861 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3862 <Original>
3863 parseIntoConfig( argv, config )
3864 </Original>
3865 <Expanded>
3866 parseIntoConfig( argv, config )
3867 </Expanded>
3868 </Expression>
3869 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3870 <Original>
3871 cfg.filters().size() == 1
3872 </Original>
3873 <Expanded>
3874 1 == 1
3875 </Expanded>
3876 </Expression>
3877 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3878 <Original>
3879 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;notIncluded&quot; ) ) == false
3880 </Original>
3881 <Expanded>
3882 false == false
3883 </Expanded>
3884 </Expression>
3885 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3886 <Original>
3887 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;test1&quot; ) )
3888 </Original>
3889 <Expanded>
3890 true
3891 </Expanded>
3892 </Expression>
3893 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3894 <Original>
3895 cfg.filters()[0].shouldInclude( fakeTestCase( &quot;test2&quot; ) )
3896 </Original>
3897 <Expanded>
3898 true
3899 </Expanded>
3900 </Expression>
3901 <OverallResults successes="5" failures="0"/>
3902 </Section>
3903 <OverallResults successes="5" failures="0"/>
3904 </Section>
3905 <Section name="reporter">
3906 <OverallResults successes="0" failures="0"/>
3907 </Section>
3908 <Section name="reporter">
3909 <Section name="-r/console">
3910 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3911 <Original>
3912 parseIntoConfig( argv, config )
3913 </Original>
3914 <Expanded>
3915 parseIntoConfig( argv, config )
3916 </Expanded>
3917 </Expression>
3918 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3919 <Original>
3920 config.reporterName == &quot;console&quot;
3921 </Original>
3922 <Expanded>
3923 &quot;console&quot; == &quot;console&quot;
3924 </Expanded>
3925 </Expression>
3926 <OverallResults successes="2" failures="0"/>
3927 </Section>
3928 <OverallResults successes="2" failures="0"/>
3929 </Section>
3930 <Section name="reporter">
3931 <Section name="-r/xml">
3932 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3933 <Original>
3934 parseIntoConfig( argv, config )
3935 </Original>
3936 <Expanded>
3937 parseIntoConfig( argv, config )
3938 </Expanded>
3939 </Expression>
3940 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3941 <Original>
3942 config.reporterName == &quot;xml&quot;
3943 </Original>
3944 <Expanded>
3945 &quot;xml&quot; == &quot;xml&quot;
3946 </Expanded>
3947 </Expression>
3948 <OverallResults successes="2" failures="0"/>
3949 </Section>
3950 <OverallResults successes="2" failures="0"/>
3951 </Section>
3952 <Section name="reporter">
3953 <Section name="--reporter/junit">
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.reporterName == &quot;junit&quot;
3965 </Original>
3966 <Expanded>
3967 &quot;junit&quot; == &quot;junit&quot;
3968 </Expanded>
3969 </Expression>
3970 <OverallResults successes="2" failures="0"/>
3971 </Section>
3972 <OverallResults successes="2" failures="0"/>
3973 </Section>
3974 <Section name="debugger">
3975 <OverallResults successes="0" failures="0"/>
3976 </Section>
3977 <Section name="debugger">
3978 <Section name="-b">
3979 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3980 <Original>
3981 parseIntoConfig( argv, config )
3982 </Original>
3983 <Expanded>
3984 parseIntoConfig( argv, config )
3985 </Expanded>
3986 </Expression>
3987 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
3988 <Original>
3989 config.shouldDebugBreak == true
3990 </Original>
3991 <Expanded>
3992 true == true
3993 </Expanded>
3994 </Expression>
3995 <OverallResults successes="2" failures="0"/>
3996 </Section>
3997 <OverallResults successes="2" failures="0"/>
3998 </Section>
3999 <Section name="debugger">
4000 <Section name="--break">
4001 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4002 <Original>
4003 parseIntoConfig( argv, config )
4004 </Original>
4005 <Expanded>
4006 parseIntoConfig( argv, config )
4007 </Expanded>
4008 </Expression>
4009 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4010 <Original>
4011 config.shouldDebugBreak
4012 </Original>
4013 <Expanded>
4014 true
4015 </Expanded>
4016 </Expression>
4017 <OverallResults successes="2" failures="0"/>
4018 </Section>
4019 <OverallResults successes="2" failures="0"/>
4020 </Section>
4021 <Section name="abort">
4022 <OverallResults successes="0" failures="0"/>
4023 </Section>
4024 <Section name="abort">
4025 <Section name="-a aborts after first failure">
4026 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4027 <Original>
4028 parseIntoConfig( argv, config )
4029 </Original>
4030 <Expanded>
4031 parseIntoConfig( argv, config )
4032 </Expanded>
4033 </Expression>
4034 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4035 <Original>
4036 config.abortAfter == 1
4037 </Original>
4038 <Expanded>
4039 1 == 1
4040 </Expanded>
4041 </Expression>
4042 <OverallResults successes="2" failures="0"/>
4043 </Section>
4044 <OverallResults successes="2" failures="0"/>
4045 </Section>
4046 <Section name="abort">
4047 <Section name="-x 2 aborts after two failures">
4048 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4049 <Original>
4050 parseIntoConfig( argv, config )
4051 </Original>
4052 <Expanded>
4053 parseIntoConfig( argv, config )
4054 </Expanded>
4055 </Expression>
4056 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4057 <Original>
4058 config.abortAfter == 2
4059 </Original>
4060 <Expanded>
4061 2 == 2
4062 </Expanded>
4063 </Expression>
4064 <OverallResults successes="2" failures="0"/>
4065 </Section>
4066 <OverallResults successes="2" failures="0"/>
4067 </Section>
4068 <Section name="abort">
4069 <Section name="-x must be greater than zero">
4070 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4071 <Original>
4072 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;greater than zero&quot; )
4073 </Original>
4074 <Expanded>
4075 &quot;Value after -x or --abortAfter must be greater than zero
4076- while parsing: (-x, --abortx &lt;number of failures>)&quot; contains: &quot;greater than zero&quot;
4077 </Expanded>
4078 </Expression>
4079 <OverallResults successes="1" failures="0"/>
4080 </Section>
4081 <OverallResults successes="1" failures="0"/>
4082 </Section>
4083 <Section name="abort">
4084 <Section name="-x must be numeric">
4085 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4086 <Original>
4087 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;-x&quot; )
4088 </Original>
4089 <Expanded>
4090 &quot;Unable to convert oops to destination type
4091- while parsing: (-x, --abortx &lt;number of failures>)&quot; contains: &quot;-x&quot;
4092 </Expanded>
4093 </Expression>
4094 <OverallResults successes="1" failures="0"/>
4095 </Section>
4096 <OverallResults successes="1" failures="0"/>
4097 </Section>
4098 <Section name="nothrow">
4099 <OverallResults successes="0" failures="0"/>
4100 </Section>
4101 <Section name="nothrow">
4102 <Section name="-e">
4103 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4104 <Original>
4105 parseIntoConfig( argv, config )
4106 </Original>
4107 <Expanded>
4108 parseIntoConfig( argv, config )
4109 </Expanded>
4110 </Expression>
4111 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4112 <Original>
4113 config.noThrow == true
4114 </Original>
4115 <Expanded>
4116 true == true
4117 </Expanded>
4118 </Expression>
4119 <OverallResults successes="2" failures="0"/>
4120 </Section>
4121 <OverallResults successes="2" failures="0"/>
4122 </Section>
4123 <Section name="nothrow">
4124 <Section name="--nothrow">
4125 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4126 <Original>
4127 parseIntoConfig( argv, config )
4128 </Original>
4129 <Expanded>
4130 parseIntoConfig( argv, config )
4131 </Expanded>
4132 </Expression>
4133 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4134 <Original>
4135 config.noThrow == true
4136 </Original>
4137 <Expanded>
4138 true == true
4139 </Expanded>
4140 </Expression>
4141 <OverallResults successes="2" failures="0"/>
4142 </Section>
4143 <OverallResults successes="2" failures="0"/>
4144 </Section>
4145 <Section name="output filename">
4146 <OverallResults successes="0" failures="0"/>
4147 </Section>
4148 <Section name="output filename">
4149 <Section name="-o filename">
4150 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4151 <Original>
4152 parseIntoConfig( argv, config )
4153 </Original>
4154 <Expanded>
4155 parseIntoConfig( argv, config )
4156 </Expanded>
4157 </Expression>
4158 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4159 <Original>
4160 config.outputFilename == &quot;filename.ext&quot;
4161 </Original>
4162 <Expanded>
4163 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4164 </Expanded>
4165 </Expression>
4166 <OverallResults successes="2" failures="0"/>
4167 </Section>
4168 <OverallResults successes="2" failures="0"/>
4169 </Section>
4170 <Section name="output filename">
4171 <Section name="--out">
4172 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4173 <Original>
4174 parseIntoConfig( argv, config )
4175 </Original>
4176 <Expanded>
4177 parseIntoConfig( argv, config )
4178 </Expanded>
4179 </Expression>
4180 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4181 <Original>
4182 config.outputFilename == &quot;filename.ext&quot;
4183 </Original>
4184 <Expanded>
4185 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4186 </Expanded>
4187 </Expression>
4188 <OverallResults successes="2" failures="0"/>
4189 </Section>
4190 <OverallResults successes="2" failures="0"/>
4191 </Section>
4192 <Section name="combinations">
4193 <OverallResults successes="0" failures="0"/>
4194 </Section>
4195 <Section name="combinations">
4196 <Section name="Single character flags can be combined">
4197 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4198 <Original>
4199 parseIntoConfig( argv, config )
4200 </Original>
4201 <Expanded>
4202 parseIntoConfig( argv, config )
4203 </Expanded>
4204 </Expression>
4205 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4206 <Original>
4207 config.abortAfter == 1
4208 </Original>
4209 <Expanded>
4210 1 == 1
4211 </Expanded>
4212 </Expression>
4213 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4214 <Original>
4215 config.shouldDebugBreak
4216 </Original>
4217 <Expanded>
4218 true
4219 </Expanded>
4220 </Expression>
4221 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4222 <Original>
4223 config.noThrow == true
4224 </Original>
4225 <Expanded>
4226 true == true
4227 </Expanded>
4228 </Expression>
4229 <OverallResults successes="4" failures="0"/>
4230 </Section>
4231 <OverallResults successes="4" failures="0"/>
4232 </Section>
4233 <OverallResult success="true"/>
4234 </TestCase>
4235 <TestCase name="selftest/test filter">
4236 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4237 <Original>
4238 matchAny.shouldInclude( fakeTestCase( &quot;any&quot; ) )
4239 </Original>
4240 <Expanded>
4241 true
4242 </Expanded>
4243 </Expression>
4244 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4245 <Original>
4246 matchNone.shouldInclude( fakeTestCase( &quot;any&quot; ) ) == false
4247 </Original>
4248 <Expanded>
4249 false == false
4250 </Expanded>
4251 </Expression>
4252 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4253 <Original>
4254 matchHidden.shouldInclude( fakeTestCase( &quot;any&quot; ) ) == false
4255 </Original>
4256 <Expanded>
4257 false == false
4258 </Expanded>
4259 </Expression>
4260 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4261 <Original>
4262 matchNonHidden.shouldInclude( fakeTestCase( &quot;any&quot; ) )
4263 </Original>
4264 <Expanded>
4265 true
4266 </Expanded>
4267 </Expression>
4268 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4269 <Original>
4270 matchHidden.shouldInclude( fakeTestCase( &quot;./any&quot; ) )
4271 </Original>
4272 <Expanded>
4273 true
4274 </Expanded>
4275 </Expression>
4276 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4277 <Original>
4278 matchNonHidden.shouldInclude( fakeTestCase( &quot;./any&quot; ) ) == false
4279 </Original>
4280 <Expanded>
4281 false == false
4282 </Expanded>
4283 </Expression>
4284 <OverallResult success="true"/>
4285 </TestCase>
4286 <TestCase name="selftest/test filters">
4287 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4288 <Original>
4289 matchHidden.shouldInclude( fakeTestCase( &quot;./something&quot; ) )
4290 </Original>
4291 <Expanded>
4292 true
4293 </Expanded>
4294 </Expression>
4295 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4296 <Original>
4297 filters.shouldInclude( fakeTestCase( &quot;any&quot; ) ) == false
4298 </Original>
4299 <Expanded>
4300 false == false
4301 </Expanded>
4302 </Expression>
4303 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4304 <Original>
4305 filters.shouldInclude( fakeTestCase( &quot;./something&quot; ) )
4306 </Original>
4307 <Expanded>
4308 true
4309 </Expanded>
4310 </Expression>
4311 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4312 <Original>
4313 filters.shouldInclude( fakeTestCase( &quot;./anything&quot; ) ) == false
4314 </Original>
4315 <Expanded>
4316 false == false
4317 </Expanded>
4318 </Expression>
4319 <OverallResult success="true"/>
4320 </TestCase>
4321 <TestCase name="selftest/filter/prefix wildcard">
4322 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4323 <Original>
4324 matchBadgers.shouldInclude( fakeTestCase( &quot;big badger&quot; ) )
4325 </Original>
4326 <Expanded>
4327 true
4328 </Expanded>
4329 </Expression>
4330 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4331 <Original>
4332 matchBadgers.shouldInclude( fakeTestCase( &quot;little badgers&quot; ) ) == false
4333 </Original>
4334 <Expanded>
4335 false == false
4336 </Expanded>
4337 </Expression>
4338 <OverallResult success="true"/>
4339 </TestCase>
4340 <TestCase name="selftest/filter/wildcard at both ends">
4341 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4342 <Original>
4343 matchBadgers.shouldInclude( fakeTestCase( &quot;big badger&quot; ) )
4344 </Original>
4345 <Expanded>
4346 true
4347 </Expanded>
4348 </Expression>
4349 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4350 <Original>
4351 matchBadgers.shouldInclude( fakeTestCase( &quot;little badgers&quot; ) )
4352 </Original>
4353 <Expanded>
4354 true
4355 </Expanded>
4356 </Expression>
4357 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4358 <Original>
4359 matchBadgers.shouldInclude( fakeTestCase( &quot;badgers are big&quot; ) )
4360 </Original>
4361 <Expanded>
4362 true
4363 </Expanded>
4364 </Expression>
4365 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4366 <Original>
4367 matchBadgers.shouldInclude( fakeTestCase( &quot;hedgehogs&quot; ) ) == false
4368 </Original>
4369 <Expanded>
4370 false == false
4371 </Expanded>
4372 </Expression>
4373 <OverallResult success="true"/>
4374 </TestCase>
4375 <TestCase name="selftest/tags">
Phil Nash93a945c2013-10-23 15:35:07 +01004376 <Section name="single [one] tag">
Phil Nash2f7a2962013-09-27 19:01:14 +01004377 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4378 <Original>
4379 oneTag.getTestCaseInfo().description == &quot;&quot;
4380 </Original>
4381 <Expanded>
4382 &quot;&quot; == &quot;&quot;
4383 </Expanded>
4384 </Expression>
4385 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4386 <Original>
4387 oneTag.hasTag( &quot;one&quot; )
4388 </Original>
4389 <Expanded>
4390 true
4391 </Expanded>
4392 </Expression>
4393 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4394 <Original>
4395 oneTag.getTags().size() == 1
4396 </Original>
4397 <Expanded>
4398 1 == 1
4399 </Expanded>
4400 </Expression>
4401 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4402 <Original>
4403 oneTag.matchesTags( p1 ) == true
4404 </Original>
4405 <Expanded>
4406 true == true
4407 </Expanded>
4408 </Expression>
4409 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4410 <Original>
4411 oneTag.matchesTags( p2 ) == true
4412 </Original>
4413 <Expanded>
4414 true == true
4415 </Expanded>
4416 </Expression>
4417 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4418 <Original>
4419 oneTag.matchesTags( p3 ) == false
4420 </Original>
4421 <Expanded>
4422 false == false
4423 </Expanded>
4424 </Expression>
4425 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4426 <Original>
4427 oneTag.matchesTags( p4 ) == false
4428 </Original>
4429 <Expanded>
4430 false == false
4431 </Expanded>
4432 </Expression>
4433 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4434 <Original>
4435 oneTag.matchesTags( p5 ) == false
4436 </Original>
4437 <Expanded>
4438 false == false
4439 </Expanded>
4440 </Expression>
4441 <OverallResults successes="8" failures="0"/>
4442 </Section>
Phil Nash93a945c2013-10-23 15:35:07 +01004443 <Section name="single [two] tag">
4444 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4445 <Original>
4446 oneTag.getTestCaseInfo().description == &quot;&quot;
4447 </Original>
4448 <Expanded>
4449 &quot;&quot; == &quot;&quot;
4450 </Expanded>
4451 </Expression>
4452 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4453 <Original>
4454 oneTag.hasTag( &quot;two&quot; )
4455 </Original>
4456 <Expanded>
4457 true
4458 </Expanded>
4459 </Expression>
4460 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4461 <Original>
4462 oneTag.getTags().size() == 1
4463 </Original>
4464 <Expanded>
4465 1 == 1
4466 </Expanded>
4467 </Expression>
4468 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4469 <Original>
4470 oneTag.matchesTags( p1 ) == false
4471 </Original>
4472 <Expanded>
4473 false == false
4474 </Expanded>
4475 </Expression>
4476 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4477 <Original>
4478 oneTag.matchesTags( p2 ) == true
4479 </Original>
4480 <Expanded>
4481 true == true
4482 </Expanded>
4483 </Expression>
4484 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4485 <Original>
4486 oneTag.matchesTags( p3 ) == false
4487 </Original>
4488 <Expanded>
4489 false == false
4490 </Expanded>
4491 </Expression>
4492 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4493 <Original>
4494 oneTag.matchesTags( p4 ) == false
4495 </Original>
4496 <Expanded>
4497 false == false
4498 </Expanded>
4499 </Expression>
4500 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4501 <Original>
4502 oneTag.matchesTags( p5 ) == false
4503 </Original>
4504 <Expanded>
4505 false == false
4506 </Expanded>
4507 </Expression>
4508 <OverallResults successes="8" failures="0"/>
4509 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01004510 <Section name="two tags">
4511 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4512 <Original>
4513 twoTags.getTestCaseInfo().description == &quot;&quot;
4514 </Original>
4515 <Expanded>
4516 &quot;&quot; == &quot;&quot;
4517 </Expanded>
4518 </Expression>
4519 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4520 <Original>
4521 twoTags.hasTag( &quot;one&quot; )
4522 </Original>
4523 <Expanded>
4524 true
4525 </Expanded>
4526 </Expression>
4527 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4528 <Original>
4529 twoTags.hasTag( &quot;two&quot; )
4530 </Original>
4531 <Expanded>
4532 true
4533 </Expanded>
4534 </Expression>
4535 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4536 <Original>
4537 twoTags.hasTag( &quot;Two&quot; )
4538 </Original>
4539 <Expanded>
4540 true
4541 </Expanded>
4542 </Expression>
4543 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4544 <Original>
4545 twoTags.hasTag( &quot;three&quot; ) == false
4546 </Original>
4547 <Expanded>
4548 false == false
4549 </Expanded>
4550 </Expression>
4551 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4552 <Original>
4553 twoTags.getTags().size() == 2
4554 </Original>
4555 <Expanded>
4556 2 == 2
4557 </Expanded>
4558 </Expression>
4559 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4560 <Original>
4561 twoTags.matchesTags( p1 ) == true
4562 </Original>
4563 <Expanded>
4564 true == true
4565 </Expanded>
4566 </Expression>
4567 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4568 <Original>
4569 twoTags.matchesTags( p2 ) == true
4570 </Original>
4571 <Expanded>
4572 true == true
4573 </Expanded>
4574 </Expression>
4575 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4576 <Original>
4577 twoTags.matchesTags( p3 ) == true
4578 </Original>
4579 <Expanded>
4580 true == true
4581 </Expanded>
4582 </Expression>
4583 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4584 <Original>
4585 twoTags.matchesTags( p4 ) == true
4586 </Original>
4587 <Expanded>
4588 true == true
4589 </Expanded>
4590 </Expression>
4591 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4592 <Original>
4593 twoTags.matchesTags( p5 ) == true
4594 </Original>
4595 <Expanded>
4596 true == true
4597 </Expanded>
4598 </Expression>
4599 <OverallResults successes="11" failures="0"/>
4600 </Section>
4601 <Section name="complex">
4602 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4603 <Original>
4604 fakeTestCase( &quot;test&quot;, &quot;[one][.]&quot; ).matchesTags( p1 )
4605 </Original>
4606 <Expanded>
4607 true
4608 </Expanded>
4609 </Expression>
4610 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4611 <Original>
4612 !fakeTestCase( &quot;test&quot;, &quot;[one][.]&quot; ).matchesTags( p5 )
4613 </Original>
4614 <Expanded>
4615 !false
4616 </Expanded>
4617 </Expression>
4618 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4619 <Original>
4620 fakeTestCase( &quot;test&quot;, &quot;[three]&quot; ).matchesTags( p4 )
4621 </Original>
4622 <Expanded>
4623 true
4624 </Expanded>
4625 </Expression>
4626 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4627 <Original>
4628 fakeTestCase( &quot;test&quot;, &quot;[three]&quot; ).matchesTags( p5 )
4629 </Original>
4630 <Expanded>
4631 true
4632 </Expanded>
4633 </Expression>
4634 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4635 <Original>
4636 fakeTestCase( &quot;test&quot;, &quot;[three]&quot; ).matchesTags( &quot;[three]~[one]&quot; )
4637 </Original>
4638 <Expanded>
4639 true
4640 </Expanded>
4641 </Expression>
4642 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4643 <Original>
4644 fakeTestCase( &quot;test&quot;, &quot;[unit][not_apple]&quot; ).matchesTags( &quot;[unit]&quot; )
4645 </Original>
4646 <Expanded>
4647 true
4648 </Expanded>
4649 </Expression>
4650 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4651 <Original>
4652 !fakeTestCase( &quot;test&quot;, &quot;[unit][not_apple]&quot; ).matchesTags( &quot;[unit]~[not_apple]&quot; )
4653 </Original>
4654 <Expanded>
4655 !false
4656 </Expanded>
4657 </Expression>
4658 <OverallResults successes="7" failures="0"/>
4659 </Section>
4660 <Section name="one tag with characters either side">
4661 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4662 <Original>
4663 oneTagWithExtras.getTestCaseInfo().description == &quot;1234&quot;
4664 </Original>
4665 <Expanded>
4666 &quot;1234&quot; == &quot;1234&quot;
4667 </Expanded>
4668 </Expression>
4669 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4670 <Original>
4671 oneTagWithExtras.hasTag( &quot;one&quot; )
4672 </Original>
4673 <Expanded>
4674 true
4675 </Expanded>
4676 </Expression>
4677 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4678 <Original>
4679 oneTagWithExtras.hasTag( &quot;two&quot; ) == false
4680 </Original>
4681 <Expanded>
4682 false == false
4683 </Expanded>
4684 </Expression>
4685 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4686 <Original>
4687 oneTagWithExtras.getTags().size() == 1
4688 </Original>
4689 <Expanded>
4690 1 == 1
4691 </Expanded>
4692 </Expression>
4693 <OverallResults successes="4" failures="0"/>
4694 </Section>
4695 <Section name="start of a tag, but not closed">
4696 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4697 <Original>
4698 oneTagOpen.getTestCaseInfo().description == &quot;[one&quot;
4699 </Original>
4700 <Expanded>
4701 &quot;[one&quot; == &quot;[one&quot;
4702 </Expanded>
4703 </Expression>
4704 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4705 <Original>
4706 oneTagOpen.hasTag( &quot;one&quot; ) == false
4707 </Original>
4708 <Expanded>
4709 false == false
4710 </Expanded>
4711 </Expression>
4712 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4713 <Original>
4714 oneTagOpen.getTags().size() == 0
4715 </Original>
4716 <Expanded>
4717 0 == 0
4718 </Expanded>
4719 </Expression>
4720 <OverallResults successes="3" failures="0"/>
4721 </Section>
4722 <Section name="hidden">
4723 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4724 <Original>
4725 oneTag.getTestCaseInfo().description == &quot;&quot;
4726 </Original>
4727 <Expanded>
4728 &quot;&quot; == &quot;&quot;
4729 </Expanded>
4730 </Expression>
4731 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4732 <Original>
4733 oneTag.hasTag( &quot;.&quot; )
4734 </Original>
4735 <Expanded>
4736 true
4737 </Expanded>
4738 </Expression>
4739 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4740 <Original>
4741 oneTag.isHidden()
4742 </Original>
4743 <Expanded>
4744 true
4745 </Expanded>
4746 </Expression>
4747 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4748 <Original>
4749 oneTag.matchesTags( &quot;~[.]&quot; ) == false
4750 </Original>
4751 <Expanded>
4752 false == false
4753 </Expanded>
4754 </Expression>
4755 <OverallResults successes="4" failures="0"/>
4756 </Section>
4757 <OverallResult success="true"/>
4758 </TestCase>
4759 <TestCase name="Long strings can be wrapped">
4760 <Section name="plain string">
4761 <OverallResults successes="0" failures="0"/>
4762 </Section>
4763 <Section name="plain string">
4764 <Section name="No wrapping">
4765 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4766 <Original>
4767 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4768 </Original>
4769 <Expanded>
4770 &quot;one two three four&quot;
4771==
4772&quot;one two three four&quot;
4773 </Expanded>
4774 </Expression>
4775 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4776 <Original>
4777 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4778 </Original>
4779 <Expanded>
4780 &quot;one two three four&quot;
4781==
4782&quot;one two three four&quot;
4783 </Expanded>
4784 </Expression>
4785 <OverallResults successes="2" failures="0"/>
4786 </Section>
4787 <OverallResults successes="2" failures="0"/>
4788 </Section>
4789 <Section name="plain string">
4790 <Section name="Wrapped once">
4791 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4792 <Original>
4793 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == &quot;one two three\nfour&quot;
4794 </Original>
4795 <Expanded>
4796 &quot;one two three
4797four&quot;
4798==
4799&quot;one two three
4800four&quot;
4801 </Expanded>
4802 </Expression>
4803 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4804 <Original>
4805 Text( testString, TextAttributes().setWidth( 16 ) ).toString() == &quot;one two three\nfour&quot;
4806 </Original>
4807 <Expanded>
4808 &quot;one two three
4809four&quot;
4810==
4811&quot;one two three
4812four&quot;
4813 </Expanded>
4814 </Expression>
4815 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4816 <Original>
4817 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == &quot;one two three\nfour&quot;
4818 </Original>
4819 <Expanded>
4820 &quot;one two three
4821four&quot;
4822==
4823&quot;one two three
4824four&quot;
4825 </Expanded>
4826 </Expression>
4827 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4828 <Original>
4829 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == &quot;one two three\nfour&quot;
4830 </Original>
4831 <Expanded>
4832 &quot;one two three
4833four&quot;
4834==
4835&quot;one two three
4836four&quot;
4837 </Expanded>
4838 </Expression>
4839 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4840 <Original>
4841 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == &quot;one two\nthree four&quot;
4842 </Original>
4843 <Expanded>
4844 &quot;one two
4845three four&quot;
4846==
4847&quot;one two
4848three four&quot;
4849 </Expanded>
4850 </Expression>
4851 <OverallResults successes="5" failures="0"/>
4852 </Section>
4853 <OverallResults successes="5" failures="0"/>
4854 </Section>
4855 <Section name="plain string">
4856 <Section name="Wrapped twice">
4857 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4858 <Original>
4859 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4860 </Original>
4861 <Expanded>
4862 &quot;one two
4863three
4864four&quot;
4865==
4866&quot;one two
4867three
4868four&quot;
4869 </Expanded>
4870 </Expression>
4871 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4872 <Original>
4873 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4874 </Original>
4875 <Expanded>
4876 &quot;one two
4877three
4878four&quot;
4879==
4880&quot;one two
4881three
4882four&quot;
4883 </Expanded>
4884 </Expression>
4885 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4886 <Original>
4887 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4888 </Original>
4889 <Expanded>
4890 &quot;one two
4891three
4892four&quot;
4893==
4894&quot;one two
4895three
4896four&quot;
4897 </Expanded>
4898 </Expression>
4899 <OverallResults successes="3" failures="0"/>
4900 </Section>
4901 <OverallResults successes="3" failures="0"/>
4902 </Section>
4903 <Section name="plain string">
4904 <Section name="Wrapped three times">
4905 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4906 <Original>
4907 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4908 </Original>
4909 <Expanded>
4910 &quot;one
4911two
4912three
4913four&quot;
4914==
4915&quot;one
4916two
4917three
4918four&quot;
4919 </Expanded>
4920 </Expression>
4921 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4922 <Original>
4923 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4924 </Original>
4925 <Expanded>
4926 &quot;one
4927two
4928three
4929four&quot;
4930==
4931&quot;one
4932two
4933three
4934four&quot;
4935 </Expanded>
4936 </Expression>
4937 <OverallResults successes="2" failures="0"/>
4938 </Section>
4939 <OverallResults successes="2" failures="0"/>
4940 </Section>
4941 <Section name="plain string">
4942 <Section name="Short wrap">
4943 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4944 <Original>
4945 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef&quot;
4946 </Original>
4947 <Expanded>
4948 &quot;abc-
4949def&quot;
4950==
4951&quot;abc-
4952def&quot;
4953 </Expanded>
4954 </Expression>
4955 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4956 <Original>
4957 Text( &quot;abcdefg&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndefg&quot;
4958 </Original>
4959 <Expanded>
4960 &quot;abc-
4961defg&quot;
4962==
4963&quot;abc-
4964defg&quot;
4965 </Expanded>
4966 </Expression>
4967 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4968 <Original>
4969 Text( &quot;abcdefgh&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef-\ngh&quot;
4970 </Original>
4971 <Expanded>
4972 &quot;abc-
4973def-
4974gh&quot;
4975==
4976&quot;abc-
4977def-
4978gh&quot;
4979 </Expanded>
4980 </Expression>
4981 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
4982 <Original>
4983 Text( testString, TextAttributes().setWidth( 4 ) ).toString() == &quot;one\ntwo\nthr-\nee\nfour&quot;
4984 </Original>
4985 <Expanded>
4986 &quot;one
4987two
4988thr-
4989ee
4990four&quot;
4991==
4992&quot;one
4993two
4994thr-
4995ee
4996four&quot;
4997 </Expanded>
4998 </Expression>
4999 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5000 <Original>
5001 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == &quot;one\ntwo\nth-\nree\nfo-\nur&quot;
5002 </Original>
5003 <Expanded>
5004 &quot;one
5005two
5006th-
5007ree
5008fo-
5009ur&quot;
5010==
5011&quot;one
5012two
5013th-
5014ree
5015fo-
5016ur&quot;
5017 </Expanded>
5018 </Expression>
5019 <OverallResults successes="5" failures="0"/>
5020 </Section>
5021 <OverallResults successes="5" failures="0"/>
5022 </Section>
5023 <Section name="plain string">
5024 <Section name="As container">
5025 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5026 <Original>
5027 text.size() == 4
5028 </Original>
5029 <Expanded>
5030 4 == 4
5031 </Expanded>
5032 </Expression>
5033 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5034 <Original>
5035 text[0] == &quot;one&quot;
5036 </Original>
5037 <Expanded>
5038 &quot;one&quot; == &quot;one&quot;
5039 </Expanded>
5040 </Expression>
5041 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5042 <Original>
5043 text[1] == &quot;two&quot;
5044 </Original>
5045 <Expanded>
5046 &quot;two&quot; == &quot;two&quot;
5047 </Expanded>
5048 </Expression>
5049 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5050 <Original>
5051 text[2] == &quot;three&quot;
5052 </Original>
5053 <Expanded>
5054 &quot;three&quot; == &quot;three&quot;
5055 </Expanded>
5056 </Expression>
5057 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5058 <Original>
5059 text[3] == &quot;four&quot;
5060 </Original>
5061 <Expanded>
5062 &quot;four&quot; == &quot;four&quot;
5063 </Expanded>
5064 </Expression>
5065 <OverallResults successes="5" failures="0"/>
5066 </Section>
5067 <OverallResults successes="5" failures="0"/>
5068 </Section>
5069 <Section name="plain string">
5070 <Section name="Indent first line differently">
5071 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5072 <Original>
5073 text.toString() == &quot; one two\n three\n four&quot;
5074 </Original>
5075 <Expanded>
5076 &quot; one two
5077 three
5078 four&quot;
5079==
5080&quot; one two
5081 three
5082 four&quot;
5083 </Expanded>
5084 </Expression>
5085 <OverallResults successes="1" failures="0"/>
5086 </Section>
5087 <OverallResults successes="1" failures="0"/>
5088 </Section>
5089 <Section name="With newlines">
5090 <OverallResults successes="0" failures="0"/>
5091 </Section>
5092 <Section name="With newlines">
5093 <Section name="No wrapping">
5094 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5095 <Original>
5096 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
5097 </Original>
5098 <Expanded>
5099 &quot;one two
5100three four&quot;
5101==
5102&quot;one two
5103three four&quot;
5104 </Expanded>
5105 </Expression>
5106 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5107 <Original>
5108 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
5109 </Original>
5110 <Expanded>
5111 &quot;one two
5112three four&quot;
5113==
5114&quot;one two
5115three four&quot;
5116 </Expanded>
5117 </Expression>
5118 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5119 <Original>
5120 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
5121 </Original>
5122 <Expanded>
5123 &quot;one two
5124three four&quot;
5125==
5126&quot;one two
5127three four&quot;
5128 </Expanded>
5129 </Expression>
5130 <OverallResults successes="3" failures="0"/>
5131 </Section>
5132 <OverallResults successes="3" failures="0"/>
5133 </Section>
5134 <Section name="With newlines">
5135 <Section name="Trailing newline">
5136 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5137 <Original>
5138 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 10 ) ).toString() == &quot;abcdef\n&quot;
5139 </Original>
5140 <Expanded>
5141 &quot;abcdef
5142&quot;
5143==
5144&quot;abcdef
5145&quot;
5146 </Expanded>
5147 </Expression>
5148 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5149 <Original>
5150 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef&quot;
5151 </Original>
5152 <Expanded>
5153 &quot;abcdef&quot; == &quot;abcdef&quot;
5154 </Expanded>
5155 </Expression>
5156 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5157 <Original>
5158 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef\n&quot;
5159 </Original>
5160 <Expanded>
5161 &quot;abcdef
5162&quot;
5163==
5164&quot;abcdef
5165&quot;
5166 </Expanded>
5167 </Expression>
5168 <OverallResults successes="3" failures="0"/>
5169 </Section>
5170 <OverallResults successes="3" failures="0"/>
5171 </Section>
5172 <Section name="With newlines">
5173 <Section name="Wrapped once">
5174 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5175 <Original>
5176 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
5177 </Original>
5178 <Expanded>
5179 &quot;one two
5180three
5181four&quot;
5182==
5183&quot;one two
5184three
5185four&quot;
5186 </Expanded>
5187 </Expression>
5188 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5189 <Original>
5190 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
5191 </Original>
5192 <Expanded>
5193 &quot;one two
5194three
5195four&quot;
5196==
5197&quot;one two
5198three
5199four&quot;
5200 </Expanded>
5201 </Expression>
5202 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5203 <Original>
5204 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
5205 </Original>
5206 <Expanded>
5207 &quot;one two
5208three
5209four&quot;
5210==
5211&quot;one two
5212three
5213four&quot;
5214 </Expanded>
5215 </Expression>
5216 <OverallResults successes="3" failures="0"/>
5217 </Section>
5218 <OverallResults successes="3" failures="0"/>
5219 </Section>
5220 <Section name="With newlines">
5221 <Section name="Wrapped twice">
5222 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5223 <Original>
5224 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
5225 </Original>
5226 <Expanded>
5227 &quot;one
5228two
5229three
5230four&quot;
5231==
5232&quot;one
5233two
5234three
5235four&quot;
5236 </Expanded>
5237 </Expression>
5238 <OverallResults successes="1" failures="0"/>
5239 </Section>
5240 <OverallResults successes="1" failures="0"/>
5241 </Section>
5242 <Section name="With tabs">
5243 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5244 <Original>
5245 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == &quot;one two three\n four\n five\n six&quot;
5246 </Original>
5247 <Expanded>
5248 &quot;one two three
5249 four
5250 five
5251 six&quot;
5252==
5253&quot;one two three
5254 four
5255 five
5256 six&quot;
5257 </Expanded>
5258 </Expression>
5259 <OverallResults successes="1" failures="0"/>
5260 </Section>
5261 <OverallResult success="true"/>
5262 </TestCase>
5263 <TestCase name="Strings can be rendered with colour">
5264 <OverallResult success="true"/>
5265 </TestCase>
5266 <TestCase name="Text can be formatted using the Text class">
5267 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5268 <Original>
5269 Text( &quot;hi there&quot; ).toString() == &quot;hi there&quot;
5270 </Original>
5271 <Expanded>
5272 &quot;hi there&quot; == &quot;hi there&quot;
5273 </Expanded>
5274 </Expression>
5275 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5276 <Original>
5277 Text( &quot;hi there&quot;, narrow ).toString() == &quot;hi\nthere&quot;
5278 </Original>
5279 <Expanded>
5280 &quot;hi
5281there&quot;
5282==
5283&quot;hi
5284there&quot;
5285 </Expanded>
5286 </Expression>
5287 <OverallResult success="true"/>
5288 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01005289 <TestCase name="Long text is truncted">
5290 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TestMain.cpp" >
5291 <Original>
5292 t.toString() EndsWith( &quot;... message truncated due to excessive size&quot; )
5293 </Original>
5294 <Expanded>
5295 &quot;******************************************************************************-
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******************************************************************************-
5611******************************************************************************-
5612************************
5613******************************************************************************-
5614******************************************************************************-
5615************************
5616******************************************************************************-
5617******************************************************************************-
5618************************
5619******************************************************************************-
5620******************************************************************************-
5621************************
5622******************************************************************************-
5623******************************************************************************-
5624************************
5625******************************************************************************-
5626******************************************************************************-
5627************************
5628******************************************************************************-
5629******************************************************************************-
5630************************
5631******************************************************************************-
5632******************************************************************************-
5633************************
5634******************************************************************************-
5635******************************************************************************-
5636************************
5637******************************************************************************-
5638******************************************************************************-
5639************************
5640******************************************************************************-
5641******************************************************************************-
5642************************
5643******************************************************************************-
5644******************************************************************************-
5645************************
5646******************************************************************************-
5647******************************************************************************-
5648************************
5649******************************************************************************-
5650******************************************************************************-
5651************************
5652******************************************************************************-
5653******************************************************************************-
5654************************
5655******************************************************************************-
5656******************************************************************************-
5657************************
5658******************************************************************************-
5659******************************************************************************-
5660************************
5661******************************************************************************-
5662******************************************************************************-
5663************************
5664******************************************************************************-
5665******************************************************************************-
5666************************
5667******************************************************************************-
5668******************************************************************************-
5669************************
5670******************************************************************************-
5671******************************************************************************-
5672************************
5673******************************************************************************-
5674******************************************************************************-
5675************************
5676******************************************************************************-
5677******************************************************************************-
5678************************
5679******************************************************************************-
5680******************************************************************************-
5681************************
5682******************************************************************************-
5683******************************************************************************-
5684************************
5685******************************************************************************-
5686******************************************************************************-
5687************************
5688******************************************************************************-
5689******************************************************************************-
5690************************
5691******************************************************************************-
5692******************************************************************************-
5693************************
5694******************************************************************************-
5695******************************************************************************-
5696************************
5697******************************************************************************-
5698******************************************************************************-
5699************************
5700******************************************************************************-
5701******************************************************************************-
5702************************
5703******************************************************************************-
5704******************************************************************************-
5705************************
5706******************************************************************************-
5707******************************************************************************-
5708************************
5709******************************************************************************-
5710******************************************************************************-
5711************************
5712******************************************************************************-
5713******************************************************************************-
5714************************
5715******************************************************************************-
5716******************************************************************************-
5717************************
5718******************************************************************************-
5719******************************************************************************-
5720************************
5721******************************************************************************-
5722******************************************************************************-
5723************************
5724******************************************************************************-
5725******************************************************************************-
5726************************
5727******************************************************************************-
5728******************************************************************************-
5729************************
5730******************************************************************************-
5731******************************************************************************-
5732************************
5733******************************************************************************-
5734******************************************************************************-
5735************************
5736******************************************************************************-
5737******************************************************************************-
5738************************
5739******************************************************************************-
5740******************************************************************************-
5741************************
5742******************************************************************************-
5743******************************************************************************-
5744************************
5745******************************************************************************-
5746******************************************************************************-
5747************************
5748******************************************************************************-
5749******************************************************************************-
5750************************
5751******************************************************************************-
5752******************************************************************************-
5753************************
5754******************************************************************************-
5755******************************************************************************-
5756************************
5757******************************************************************************-
5758******************************************************************************-
5759************************
5760******************************************************************************-
5761******************************************************************************-
5762************************
5763******************************************************************************-
5764******************************************************************************-
5765************************
5766******************************************************************************-
5767******************************************************************************-
5768************************
5769******************************************************************************-
5770******************************************************************************-
5771************************
5772******************************************************************************-
5773******************************************************************************-
5774************************
5775******************************************************************************-
5776******************************************************************************-
5777************************
5778******************************************************************************-
5779******************************************************************************-
5780************************
5781******************************************************************************-
5782******************************************************************************-
5783************************
5784******************************************************************************-
5785******************************************************************************-
5786************************
5787******************************************************************************-
5788******************************************************************************-
5789************************
5790******************************************************************************-
5791******************************************************************************-
5792************************
5793******************************************************************************-
5794******************************************************************************-
5795************************
5796******************************************************************************-
5797******************************************************************************-
5798************************
5799******************************************************************************-
5800******************************************************************************-
5801************************
5802******************************************************************************-
5803******************************************************************************-
5804************************
5805******************************************************************************-
5806******************************************************************************-
5807************************
5808******************************************************************************-
5809******************************************************************************-
5810************************
5811******************************************************************************-
5812******************************************************************************-
5813************************
5814******************************************************************************-
5815******************************************************************************-
5816************************
5817******************************************************************************-
5818******************************************************************************-
5819************************
5820******************************************************************************-
5821******************************************************************************-
5822************************
5823******************************************************************************-
5824******************************************************************************-
5825************************
5826******************************************************************************-
5827******************************************************************************-
5828************************
5829******************************************************************************-
5830******************************************************************************-
5831************************
5832******************************************************************************-
5833******************************************************************************-
5834************************
5835******************************************************************************-
5836******************************************************************************-
5837************************
5838******************************************************************************-
5839******************************************************************************-
5840************************
5841******************************************************************************-
5842******************************************************************************-
5843************************
5844******************************************************************************-
5845******************************************************************************-
5846************************
5847******************************************************************************-
5848******************************************************************************-
5849************************
5850******************************************************************************-
5851******************************************************************************-
5852************************
5853******************************************************************************-
5854******************************************************************************-
5855************************
5856******************************************************************************-
5857******************************************************************************-
5858************************
5859******************************************************************************-
5860******************************************************************************-
5861************************
5862******************************************************************************-
5863******************************************************************************-
5864************************
5865******************************************************************************-
5866******************************************************************************-
5867************************
5868******************************************************************************-
5869******************************************************************************-
5870************************
5871******************************************************************************-
5872******************************************************************************-
5873************************
5874******************************************************************************-
5875******************************************************************************-
5876************************
5877******************************************************************************-
5878******************************************************************************-
5879************************
5880******************************************************************************-
5881******************************************************************************-
5882************************
5883******************************************************************************-
5884******************************************************************************-
5885************************
5886******************************************************************************-
5887******************************************************************************-
5888************************
5889******************************************************************************-
5890******************************************************************************-
5891************************
5892******************************************************************************-
5893******************************************************************************-
5894************************
5895******************************************************************************-
5896******************************************************************************-
5897************************
5898******************************************************************************-
5899******************************************************************************-
5900************************
5901******************************************************************************-
5902******************************************************************************-
5903************************
5904******************************************************************************-
5905******************************************************************************-
5906************************
5907******************************************************************************-
5908******************************************************************************-
5909************************
5910******************************************************************************-
5911******************************************************************************-
5912************************
5913******************************************************************************-
5914******************************************************************************-
5915************************
5916******************************************************************************-
5917******************************************************************************-
5918************************
5919******************************************************************************-
5920******************************************************************************-
5921************************
5922******************************************************************************-
5923******************************************************************************-
5924************************
5925******************************************************************************-
5926******************************************************************************-
5927************************
5928******************************************************************************-
5929******************************************************************************-
5930************************
5931******************************************************************************-
5932******************************************************************************-
5933************************
5934******************************************************************************-
5935******************************************************************************-
5936************************
5937******************************************************************************-
5938******************************************************************************-
5939************************
5940******************************************************************************-
5941******************************************************************************-
5942************************
5943******************************************************************************-
5944******************************************************************************-
5945************************
5946******************************************************************************-
5947******************************************************************************-
5948************************
5949******************************************************************************-
5950******************************************************************************-
5951************************
5952******************************************************************************-
5953******************************************************************************-
5954************************
5955******************************************************************************-
5956******************************************************************************-
5957************************
5958******************************************************************************-
5959******************************************************************************-
5960************************
5961******************************************************************************-
5962******************************************************************************-
5963************************
5964******************************************************************************-
5965******************************************************************************-
5966************************
5967******************************************************************************-
5968******************************************************************************-
5969************************
5970******************************************************************************-
5971******************************************************************************-
5972************************
5973******************************************************************************-
5974******************************************************************************-
5975************************
5976******************************************************************************-
5977******************************************************************************-
5978************************
5979******************************************************************************-
5980******************************************************************************-
5981************************
5982******************************************************************************-
5983******************************************************************************-
5984************************
5985******************************************************************************-
5986******************************************************************************-
5987************************
5988******************************************************************************-
5989******************************************************************************-
5990************************
5991******************************************************************************-
5992******************************************************************************-
5993************************
5994******************************************************************************-
5995******************************************************************************-
5996************************
5997******************************************************************************-
5998******************************************************************************-
5999************************
6000******************************************************************************-
6001******************************************************************************-
6002************************
6003******************************************************************************-
6004******************************************************************************-
6005************************
6006******************************************************************************-
6007******************************************************************************-
6008************************
6009******************************************************************************-
6010******************************************************************************-
6011************************
6012******************************************************************************-
6013******************************************************************************-
6014************************
6015******************************************************************************-
6016******************************************************************************-
6017************************
6018******************************************************************************-
6019******************************************************************************-
6020************************
6021******************************************************************************-
6022******************************************************************************-
6023************************
6024******************************************************************************-
6025******************************************************************************-
6026************************
6027******************************************************************************-
6028******************************************************************************-
6029************************
6030******************************************************************************-
6031******************************************************************************-
6032************************
6033******************************************************************************-
6034******************************************************************************-
6035************************
6036******************************************************************************-
6037******************************************************************************-
6038************************
6039******************************************************************************-
6040******************************************************************************-
6041************************
6042******************************************************************************-
6043******************************************************************************-
6044************************
6045******************************************************************************-
6046******************************************************************************-
6047************************
6048******************************************************************************-
6049******************************************************************************-
6050************************
6051******************************************************************************-
6052******************************************************************************-
6053************************
6054******************************************************************************-
6055******************************************************************************-
6056************************
6057******************************************************************************-
6058******************************************************************************-
6059************************
6060******************************************************************************-
6061******************************************************************************-
6062************************
6063******************************************************************************-
6064******************************************************************************-
6065************************
6066******************************************************************************-
6067******************************************************************************-
6068************************
6069******************************************************************************-
6070******************************************************************************-
6071************************
6072******************************************************************************-
6073******************************************************************************-
6074************************
6075******************************************************************************-
6076******************************************************************************-
6077************************
6078******************************************************************************-
6079******************************************************************************-
6080************************
6081******************************************************************************-
6082******************************************************************************-
6083************************
6084******************************************************************************-
6085******************************************************************************-
6086************************
6087******************************************************************************-
6088******************************************************************************-
6089************************
6090******************************************************************************-
6091******************************************************************************-
6092************************
6093******************************************************************************-
6094******************************************************************************-
6095************************
6096******************************************************************************-
6097******************************************************************************-
6098************************
6099******************************************************************************-
6100******************************************************************************-
6101************************
6102******************************************************************************-
6103******************************************************************************-
6104************************
6105******************************************************************************-
6106******************************************************************************-
6107************************
6108******************************************************************************-
6109******************************************************************************-
6110************************
6111******************************************************************************-
6112******************************************************************************-
6113************************
6114******************************************************************************-
6115******************************************************************************-
6116************************
6117******************************************************************************-
6118******************************************************************************-
6119************************
6120******************************************************************************-
6121******************************************************************************-
6122************************
6123******************************************************************************-
6124******************************************************************************-
6125************************
6126******************************************************************************-
6127******************************************************************************-
6128************************
6129******************************************************************************-
6130******************************************************************************-
6131************************
6132******************************************************************************-
6133******************************************************************************-
6134************************
6135******************************************************************************-
6136******************************************************************************-
6137************************
6138******************************************************************************-
6139******************************************************************************-
6140************************
6141******************************************************************************-
6142******************************************************************************-
6143************************
6144******************************************************************************-
6145******************************************************************************-
6146************************
6147******************************************************************************-
6148******************************************************************************-
6149************************
6150******************************************************************************-
6151******************************************************************************-
6152************************
6153******************************************************************************-
6154******************************************************************************-
6155************************
6156******************************************************************************-
6157******************************************************************************-
6158************************
6159******************************************************************************-
6160******************************************************************************-
6161************************
6162******************************************************************************-
6163******************************************************************************-
6164************************
6165******************************************************************************-
6166******************************************************************************-
6167************************
6168******************************************************************************-
6169******************************************************************************-
6170************************
6171******************************************************************************-
6172******************************************************************************-
6173************************
6174******************************************************************************-
6175******************************************************************************-
6176************************
6177******************************************************************************-
6178******************************************************************************-
6179************************
6180******************************************************************************-
6181******************************************************************************-
6182************************
6183******************************************************************************-
6184******************************************************************************-
6185************************
6186******************************************************************************-
6187******************************************************************************-
6188************************
6189******************************************************************************-
6190******************************************************************************-
6191************************
6192******************************************************************************-
6193******************************************************************************-
6194************************
6195******************************************************************************-
6196******************************************************************************-
6197************************
6198******************************************************************************-
6199******************************************************************************-
6200************************
6201******************************************************************************-
6202******************************************************************************-
6203************************
6204******************************************************************************-
6205******************************************************************************-
6206************************
6207******************************************************************************-
6208******************************************************************************-
6209************************
6210******************************************************************************-
6211******************************************************************************-
6212************************
6213******************************************************************************-
6214******************************************************************************-
6215************************
6216******************************************************************************-
6217******************************************************************************-
6218************************
6219******************************************************************************-
6220******************************************************************************-
6221************************
6222******************************************************************************-
6223******************************************************************************-
6224************************
6225******************************************************************************-
6226******************************************************************************-
6227************************
6228******************************************************************************-
6229******************************************************************************-
6230************************
6231******************************************************************************-
6232******************************************************************************-
6233************************
6234******************************************************************************-
6235******************************************************************************-
6236************************
6237******************************************************************************-
6238******************************************************************************-
6239************************
6240******************************************************************************-
6241******************************************************************************-
6242************************
6243******************************************************************************-
6244******************************************************************************-
6245************************
6246******************************************************************************-
6247******************************************************************************-
6248************************
6249******************************************************************************-
6250******************************************************************************-
6251************************
6252******************************************************************************-
6253******************************************************************************-
6254************************
6255******************************************************************************-
6256******************************************************************************-
6257************************
6258******************************************************************************-
6259******************************************************************************-
6260************************
6261******************************************************************************-
6262******************************************************************************-
6263************************
6264******************************************************************************-
6265******************************************************************************-
6266************************
6267******************************************************************************-
6268******************************************************************************-
6269************************
6270******************************************************************************-
6271******************************************************************************-
6272************************
6273******************************************************************************-
6274******************************************************************************-
6275************************
6276******************************************************************************-
6277******************************************************************************-
6278************************
6279******************************************************************************-
6280******************************************************************************-
6281************************
6282******************************************************************************-
6283******************************************************************************-
6284************************
6285******************************************************************************-
6286******************************************************************************-
6287************************
6288******************************************************************************-
6289******************************************************************************-
6290************************
6291******************************************************************************-
6292******************************************************************************-
6293************************
6294******************************************************************************-
6295... message truncated due to excessive size&quot; ends with: &quot;... message truncated due to excessive size&quot;
6296 </Expanded>
6297 </Expression>
6298 <OverallResult success="true"/>
6299 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006300 <TestCase name="Parsing a std::pair">
Phil Nash2f7a2962013-09-27 19:01:14 +01006301 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6302 <Original>
6303 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
6304 </Original>
6305 <Expanded>
6306 std::pair( 1, 2 ) == std::pair( 1, 2 )
6307 </Expanded>
6308 </Expression>
6309 <OverallResult success="true"/>
6310 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006311 <TestCase name="Where the is more to the expression after the RHS[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01006312 <Warning>
6313 Uncomment the code in this test to check that it gives a sensible compiler error
6314 </Warning>
6315 <OverallResult success="true"/>
6316 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006317 <TestCase name="Where the LHS is not a simple value[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01006318 <Warning>
6319 Uncomment the code in this test to check that it gives a sensible compiler error
6320 </Warning>
6321 <OverallResult success="true"/>
6322 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006323 <TestCase name="A failing expression with a non streamable type is still captured[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01006324 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6325 <Original>
6326 &amp;o1 == &amp;o2
6327 </Original>
6328 <Expanded>
6329 0x<hex digits> == 0x<hex digits>
6330 </Expanded>
6331 </Expression>
6332 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6333 <Original>
6334 o1 == o2
6335 </Original>
6336 <Expanded>
6337 {?} == {?}
6338 </Expanded>
6339 </Expression>
6340 <OverallResult success="false"/>
6341 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006342 <TestCase name="string literals of different sizes can be compared[failing]">
Phil Nash2f7a2962013-09-27 19:01:14 +01006343 <Expression success="false" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6344 <Original>
6345 std::string( &quot;first&quot; ) == &quot;second&quot;
6346 </Original>
6347 <Expanded>
6348 &quot;first&quot; == &quot;second&quot;
6349 </Expanded>
6350 </Expression>
6351 <OverallResult success="false"/>
6352 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006353 <TestCase name="An expression with side-effects should only be evaluated once">
Phil Nash2f7a2962013-09-27 19:01:14 +01006354 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6355 <Original>
6356 i++ == 7
6357 </Original>
6358 <Expanded>
6359 7 == 7
6360 </Expanded>
6361 </Expression>
6362 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6363 <Original>
6364 i++ == 8
6365 </Original>
6366 <Expanded>
6367 8 == 8
6368 </Expanded>
6369 </Expression>
6370 <OverallResult success="true"/>
6371 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006372 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nash2f7a2962013-09-27 19:01:14 +01006373 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6374 <Original>
6375 0x<hex digits> == o
6376 </Original>
6377 <Expanded>
6378 0x<hex digits> == {?}
6379 </Expanded>
6380 </Expression>
6381 <OverallResult success="true"/>
6382 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006383 <TestCase name="Demonstrate that a non-const == is not used">
Phil Nash2f7a2962013-09-27 19:01:14 +01006384 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6385 <Original>
6386 t == 1u
6387 </Original>
6388 <Expanded>
6389 {?} == 1
6390 </Expanded>
6391 </Expression>
6392 <OverallResult success="true"/>
6393 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006394 <TestCase name="Test enum bit values">
Phil Nash2f7a2962013-09-27 19:01:14 +01006395 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6396 <Original>
6397 0x<hex digits> == bit30and31
6398 </Original>
6399 <Expanded>
6400 0x<hex digits> == 3221225472
6401 </Expanded>
6402 </Expression>
6403 <OverallResult success="true"/>
6404 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006405 <TestCase name="boolean member">
Phil Nash2f7a2962013-09-27 19:01:14 +01006406 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6407 <Original>
6408 obj.prop != __null
6409 </Original>
6410 <Expanded>
6411 0x<hex digits> != 0
6412 </Expanded>
6413 </Expression>
6414 <OverallResult success="true"/>
6415 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006416 <TestCase name="(unimplemented) static bools can be evaluated">
Phil Nash2f7a2962013-09-27 19:01:14 +01006417 <Section name="compare to true">
6418 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6419 <Original>
6420 is_true&lt;true>::value == true
6421 </Original>
6422 <Expanded>
6423 true == true
6424 </Expanded>
6425 </Expression>
6426 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6427 <Original>
6428 true == is_true&lt;true>::value
6429 </Original>
6430 <Expanded>
6431 true == true
6432 </Expanded>
6433 </Expression>
6434 <OverallResults successes="2" failures="0"/>
6435 </Section>
6436 <Section name="compare to false">
6437 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6438 <Original>
6439 is_true&lt;false>::value == false
6440 </Original>
6441 <Expanded>
6442 false == false
6443 </Expanded>
6444 </Expression>
6445 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6446 <Original>
6447 false == is_true&lt;false>::value
6448 </Original>
6449 <Expanded>
6450 false == false
6451 </Expanded>
6452 </Expression>
6453 <OverallResults successes="2" failures="0"/>
6454 </Section>
6455 <Section name="negation">
6456 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6457 <Original>
6458 !is_true&lt;false>::value
6459 </Original>
6460 <Expanded>
6461 true
6462 </Expanded>
6463 </Expression>
6464 <OverallResults successes="1" failures="0"/>
6465 </Section>
6466 <Section name="double negation">
6467 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6468 <Original>
6469 !!is_true&lt;true>::value
6470 </Original>
6471 <Expanded>
6472 true
6473 </Expanded>
6474 </Expression>
6475 <OverallResults successes="1" failures="0"/>
6476 </Section>
6477 <Section name="direct">
6478 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6479 <Original>
6480 is_true&lt;true>::value
6481 </Original>
6482 <Expanded>
6483 true
6484 </Expanded>
6485 </Expression>
6486 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6487 <Original>
6488 !is_true&lt;false>::value
6489 </Original>
6490 <Expanded>
6491 !false
6492 </Expanded>
6493 </Expression>
6494 <OverallResults successes="2" failures="0"/>
6495 </Section>
6496 <OverallResult success="true"/>
6497 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006498 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nash2f7a2962013-09-27 19:01:14 +01006499 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6500 <Original>
6501 True
6502 </Original>
6503 <Expanded>
6504 true
6505 </Expanded>
6506 </Expression>
6507 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6508 <Original>
6509 !False
6510 </Original>
6511 <Expanded>
6512 true
6513 </Expanded>
6514 </Expression>
6515 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6516 <Original>
6517 !False
6518 </Original>
6519 <Expanded>
6520 !false
6521 </Expanded>
6522 </Expression>
6523 <OverallResult success="true"/>
6524 </TestCase>
6525 <TestCase name="Assertions then sections">
6526 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6527 <Original>
6528 Catch::isTrue( true )
6529 </Original>
6530 <Expanded>
6531 true
6532 </Expanded>
6533 </Expression>
6534 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6535 <Original>
6536 Catch::isTrue( true )
6537 </Original>
6538 <Expanded>
6539 true
6540 </Expanded>
6541 </Expression>
6542 <Section name="A section">
6543 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6544 <Original>
6545 Catch::isTrue( true )
6546 </Original>
6547 <Expanded>
6548 true
6549 </Expanded>
6550 </Expression>
6551 <OverallResults successes="1" failures="0"/>
6552 </Section>
6553 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6554 <Original>
6555 Catch::isTrue( true )
6556 </Original>
6557 <Expanded>
6558 true
6559 </Expanded>
6560 </Expression>
6561 <Section name="A section">
6562 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6563 <Original>
6564 Catch::isTrue( true )
6565 </Original>
6566 <Expanded>
6567 true
6568 </Expanded>
6569 </Expression>
6570 <Section name="Another section">
6571 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6572 <Original>
6573 Catch::isTrue( true )
6574 </Original>
6575 <Expanded>
6576 true
6577 </Expanded>
6578 </Expression>
6579 <OverallResults successes="1" failures="0"/>
6580 </Section>
6581 <OverallResults successes="2" failures="0"/>
6582 </Section>
6583 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6584 <Original>
6585 Catch::isTrue( true )
6586 </Original>
6587 <Expanded>
6588 true
6589 </Expanded>
6590 </Expression>
6591 <Section name="A section">
6592 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6593 <Original>
6594 Catch::isTrue( true )
6595 </Original>
6596 <Expanded>
6597 true
6598 </Expanded>
6599 </Expression>
6600 <Section name="Another other section">
6601 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6602 <Original>
6603 Catch::isTrue( true )
6604 </Original>
6605 <Expanded>
6606 true
6607 </Expanded>
6608 </Expression>
6609 <OverallResults successes="1" failures="0"/>
6610 </Section>
6611 <OverallResults successes="2" failures="0"/>
6612 </Section>
6613 <OverallResult success="true"/>
6614 </TestCase>
6615 <TestCase name="non streamable - with conv. op">
6616 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6617 <Original>
6618 s == &quot;7&quot;
6619 </Original>
6620 <Expanded>
6621 &quot;7&quot; == &quot;7&quot;
6622 </Expanded>
6623 </Expression>
6624 <OverallResult success="true"/>
6625 </TestCase>
6626 <TestCase name="Comparing function pointers">
6627 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6628 <Original>
6629 a
6630 </Original>
6631 <Expanded>
6632 true
6633 </Expanded>
6634 </Expression>
6635 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6636 <Original>
6637 a == &amp;foo
6638 </Original>
6639 <Expanded>
6640 1 == 1
6641 </Expanded>
6642 </Expression>
6643 <OverallResult success="true"/>
6644 </TestCase>
6645 <TestCase name="pointer to class">
6646 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
6647 <Original>
6648 p == 0
6649 </Original>
6650 <Expanded>
6651 __null == 0
6652 </Expanded>
6653 </Expression>
6654 <OverallResult success="true"/>
6655 </TestCase>
6656 <TestCase name="X/level/0/a">
6657 <OverallResult success="true"/>
6658 </TestCase>
6659 <TestCase name="X/level/0/b">
6660 <OverallResult success="true"/>
6661 </TestCase>
6662 <TestCase name="X/level/1/a">
6663 <OverallResult success="true"/>
6664 </TestCase>
6665 <TestCase name="X/level/1/b">
6666 <OverallResult success="true"/>
6667 </TestCase>
6668 <TestCase name="Anonymous test case 1">
6669 <OverallResult success="true"/>
6670 </TestCase>
6671 <TestCase name="Test case with one argument">
6672 <OverallResult success="true"/>
6673 </TestCase>
6674 <TestCase name="Variadic macros">
6675 <Section name="Section with one argument">
6676 <OverallResults successes="1" failures="0"/>
6677 </Section>
6678 <OverallResult success="true"/>
6679 </TestCase>
6680 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00006681 <Section name="Given: This stuff exists">
Phil Nash2f7a2962013-09-27 19:01:14 +01006682 <OverallResults successes="0" failures="0"/>
6683 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006684 <Section name="Given: This stuff exists">
6685 <Section name="When: I do this">
Phil Nash2f7a2962013-09-27 19:01:14 +01006686 <OverallResults successes="0" failures="0"/>
6687 </Section>
6688 <OverallResults successes="0" failures="0"/>
6689 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006690 <Section name="Given: This stuff exists">
6691 <Section name="When: I do this">
6692 <Section name="Then: it should do this">
Phil Nash2f7a2962013-09-27 19:01:14 +01006693 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6694 <Original>
6695 itDoesThis()
6696 </Original>
6697 <Expanded>
6698 true
6699 </Expanded>
6700 </Expression>
6701 <OverallResults successes="1" failures="0"/>
6702 </Section>
6703 <OverallResults successes="1" failures="0"/>
6704 </Section>
6705 <OverallResults successes="1" failures="0"/>
6706 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006707 <Section name="Given: This stuff exists">
6708 <Section name="When: I do this">
6709 <Section name="Then: it should do this">
Phil Nash2f7a2962013-09-27 19:01:14 +01006710 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6711 <Original>
6712 itDoesThis()
6713 </Original>
6714 <Expanded>
6715 true
6716 </Expanded>
6717 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006718 <Section name="And: do that">
Phil Nash2f7a2962013-09-27 19:01:14 +01006719 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6720 <Original>
6721 itDoesThat()
6722 </Original>
6723 <Expanded>
6724 true
6725 </Expanded>
6726 </Expression>
6727 <OverallResults successes="1" failures="0"/>
6728 </Section>
6729 <OverallResults successes="2" failures="0"/>
6730 </Section>
6731 <OverallResults successes="2" failures="0"/>
6732 </Section>
6733 <OverallResults successes="2" failures="0"/>
6734 </Section>
6735 <OverallResult success="true"/>
6736 </TestCase>
6737 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00006738 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006739 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6740 <Original>
6741 v.size() == 0
6742 </Original>
6743 <Expanded>
6744 0 == 0
6745 </Expanded>
6746 </Expression>
6747 <OverallResults successes="1" failures="0"/>
6748 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006749 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006750 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6751 <Original>
6752 v.size() == 0
6753 </Original>
6754 <Expanded>
6755 0 == 0
6756 </Expanded>
6757 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006758 <Section name="When: it is made larger">
Phil Nash2f7a2962013-09-27 19:01:14 +01006759 <OverallResults successes="0" failures="0"/>
6760 </Section>
6761 <OverallResults successes="1" failures="0"/>
6762 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006763 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006764 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6765 <Original>
6766 v.size() == 0
6767 </Original>
6768 <Expanded>
6769 0 == 0
6770 </Expanded>
6771 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006772 <Section name="When: it is made larger">
6773 <Section name="Then: the size and capacity go up">
Phil Nash2f7a2962013-09-27 19:01:14 +01006774 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6775 <Original>
6776 v.size() == 10
6777 </Original>
6778 <Expanded>
6779 10 == 10
6780 </Expanded>
6781 </Expression>
6782 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6783 <Original>
6784 v.capacity() >= 10
6785 </Original>
6786 <Expanded>
6787 10 >= 10
6788 </Expanded>
6789 </Expression>
6790 <OverallResults successes="2" failures="0"/>
6791 </Section>
6792 <OverallResults successes="2" failures="0"/>
6793 </Section>
6794 <OverallResults successes="3" failures="0"/>
6795 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006796 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006797 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6798 <Original>
6799 v.size() == 0
6800 </Original>
6801 <Expanded>
6802 0 == 0
6803 </Expanded>
6804 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006805 <Section name="When: it is made larger">
6806 <Section name="Then: the size and capacity go up">
Phil Nash2f7a2962013-09-27 19:01:14 +01006807 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6808 <Original>
6809 v.size() == 10
6810 </Original>
6811 <Expanded>
6812 10 == 10
6813 </Expanded>
6814 </Expression>
6815 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6816 <Original>
6817 v.capacity() >= 10
6818 </Original>
6819 <Expanded>
6820 10 >= 10
6821 </Expanded>
6822 </Expression>
6823 <Section name="And when: it is made smaller again">
6824 <OverallResults successes="0" failures="0"/>
6825 </Section>
6826 <OverallResults successes="2" failures="0"/>
6827 </Section>
6828 <OverallResults successes="2" failures="0"/>
6829 </Section>
6830 <OverallResults successes="3" failures="0"/>
6831 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006832 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006833 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6834 <Original>
6835 v.size() == 0
6836 </Original>
6837 <Expanded>
6838 0 == 0
6839 </Expanded>
6840 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006841 <Section name="When: it is made larger">
6842 <Section name="Then: the size and capacity go up">
Phil Nash2f7a2962013-09-27 19:01:14 +01006843 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6844 <Original>
6845 v.size() == 10
6846 </Original>
6847 <Expanded>
6848 10 == 10
6849 </Expanded>
6850 </Expression>
6851 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6852 <Original>
6853 v.capacity() >= 10
6854 </Original>
6855 <Expanded>
6856 10 >= 10
6857 </Expanded>
6858 </Expression>
6859 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00006860 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nash2f7a2962013-09-27 19:01:14 +01006861 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6862 <Original>
6863 v.size() == 5
6864 </Original>
6865 <Expanded>
6866 5 == 5
6867 </Expanded>
6868 </Expression>
6869 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6870 <Original>
6871 v.capacity() >= 10
6872 </Original>
6873 <Expanded>
6874 10 >= 10
6875 </Expanded>
6876 </Expression>
6877 <OverallResults successes="2" failures="0"/>
6878 </Section>
6879 <OverallResults successes="2" failures="0"/>
6880 </Section>
6881 <OverallResults successes="4" failures="0"/>
6882 </Section>
6883 <OverallResults successes="4" failures="0"/>
6884 </Section>
6885 <OverallResults successes="5" failures="0"/>
6886 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006887 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006888 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6889 <Original>
6890 v.size() == 0
6891 </Original>
6892 <Expanded>
6893 0 == 0
6894 </Expanded>
6895 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006896 <Section name="When: we reserve more space">
Phil Nash2f7a2962013-09-27 19:01:14 +01006897 <OverallResults successes="0" failures="0"/>
6898 </Section>
6899 <OverallResults successes="1" failures="0"/>
6900 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006901 <Section name="Given: an empty vector">
Phil Nash2f7a2962013-09-27 19:01:14 +01006902 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6903 <Original>
6904 v.size() == 0
6905 </Original>
6906 <Expanded>
6907 0 == 0
6908 </Expanded>
6909 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00006910 <Section name="When: we reserve more space">
6911 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nash2f7a2962013-09-27 19:01:14 +01006912 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6913 <Original>
6914 v.capacity() >= 10
6915 </Original>
6916 <Expanded>
6917 10 >= 10
6918 </Expanded>
6919 </Expression>
6920 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/BDDTests.cpp" >
6921 <Original>
6922 v.size() == 0
6923 </Original>
6924 <Expanded>
6925 0 == 0
6926 </Expanded>
6927 </Expression>
6928 <OverallResults successes="2" failures="0"/>
6929 </Section>
6930 <OverallResults successes="2" failures="0"/>
6931 </Section>
6932 <OverallResults successes="3" failures="0"/>
6933 </Section>
6934 <OverallResult success="true"/>
6935 </TestCase>
6936 <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 +00006937 <Section name="Given: A section name that is so long that it cannot fit in a single console width">
Phil Nash2f7a2962013-09-27 19:01:14 +01006938 <OverallResults successes="0" failures="0"/>
6939 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006940 <Section name="Given: A section name that is so long that it cannot fit in a single console width">
6941 <Section name="When: The test headers are printed as part of the normal running of the scenario">
Phil Nash2f7a2962013-09-27 19:01:14 +01006942 <OverallResults successes="0" failures="0"/>
6943 </Section>
6944 <OverallResults successes="0" failures="0"/>
6945 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00006946 <Section name="Given: A section name that is so long that it cannot fit in a single console width">
6947 <Section name="When: The test headers are printed as part of the normal running of the scenario">
6948 <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 +01006949 <OverallResults successes="1" failures="0"/>
6950 </Section>
6951 <OverallResults successes="1" failures="0"/>
6952 </Section>
6953 <OverallResults successes="1" failures="0"/>
6954 </Section>
6955 <OverallResult success="true"/>
6956 </TestCase>
6957 <TestCase name="cmdline">
6958 <Section name="process name">
6959 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6960 <Original>
6961 config.processName == &quot;test&quot;
6962 </Original>
6963 <Expanded>
6964 &quot;test&quot; == &quot;test&quot;
6965 </Expanded>
6966 </Expression>
6967 <OverallResults successes="1" failures="0"/>
6968 </Section>
6969 <Section name="arg separated by spaces">
6970 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6971 <Original>
6972 config.fileName == &quot;filename.ext&quot;
6973 </Original>
6974 <Expanded>
6975 &quot;filename.ext&quot; == &quot;filename.ext&quot;
6976 </Expanded>
6977 </Expression>
6978 <OverallResults successes="1" failures="0"/>
6979 </Section>
6980 <Section name="arg separated by colon">
6981 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6982 <Original>
6983 config.fileName == &quot;filename.ext&quot;
6984 </Original>
6985 <Expanded>
6986 &quot;filename.ext&quot; == &quot;filename.ext&quot;
6987 </Expanded>
6988 </Expression>
6989 <OverallResults successes="1" failures="0"/>
6990 </Section>
6991 <Section name="arg separated by =">
6992 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
6993 <Original>
6994 config.fileName == &quot;filename.ext&quot;
6995 </Original>
6996 <Expanded>
6997 &quot;filename.ext&quot; == &quot;filename.ext&quot;
6998 </Expanded>
6999 </Expression>
7000 <OverallResults successes="1" failures="0"/>
7001 </Section>
7002 <Section name="long opt">
7003 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7004 <Original>
7005 config.fileName == &quot;%stdout&quot;
7006 </Original>
7007 <Expanded>
7008 &quot;%stdout&quot; == &quot;%stdout&quot;
7009 </Expanded>
7010 </Expression>
7011 <OverallResults successes="1" failures="0"/>
7012 </Section>
7013 <Section name="a number">
7014 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7015 <Original>
7016 config.number == 42
7017 </Original>
7018 <Expanded>
7019 42 == 42
7020 </Expanded>
7021 </Expression>
7022 <OverallResults successes="1" failures="0"/>
7023 </Section>
7024 <Section name="not a number">
7025 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7026 <Original>
7027 parseInto( cli, argv, config )
7028 </Original>
7029 <Expanded>
7030 parseInto( cli, argv, config )
7031 </Expanded>
7032 </Expression>
7033 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7034 <Original>
7035 config.number == 0
7036 </Original>
7037 <Expanded>
7038 0 == 0
7039 </Expanded>
7040 </Expression>
7041 <OverallResults successes="2" failures="0"/>
7042 </Section>
7043 <Section name="two parsers">
7044 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7045 <Original>
7046 config1.number == 42
7047 </Original>
7048 <Expanded>
7049 42 == 42
7050 </Expanded>
7051 </Expression>
7052 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7053 <Original>
7054 !unusedTokens.empty()
7055 </Original>
7056 <Expanded>
7057 !false
7058 </Expanded>
7059 </Expression>
7060 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7061 <Original>
7062 config2.description == &quot;some text&quot;
7063 </Original>
7064 <Expanded>
7065 &quot;some text&quot; == &quot;some text&quot;
7066 </Expanded>
7067 </Expression>
7068 <OverallResults successes="3" failures="0"/>
7069 </Section>
7070 <Section name="methods">
7071 <OverallResults successes="0" failures="0"/>
7072 </Section>
7073 <Section name="methods">
7074 <Section name="in range">
7075 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7076 <Original>
7077 config.index == 3
7078 </Original>
7079 <Expanded>
7080 3 == 3
7081 </Expanded>
7082 </Expression>
7083 <OverallResults successes="1" failures="0"/>
7084 </Section>
7085 <OverallResults successes="1" failures="0"/>
7086 </Section>
7087 <Section name="methods">
7088 <Section name="out of range">
7089 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7090 <Original>
7091 parseInto( cli, argv, config )
7092 </Original>
7093 <Expanded>
7094 parseInto( cli, argv, config )
7095 </Expanded>
7096 </Expression>
7097 <OverallResults successes="1" failures="0"/>
7098 </Section>
7099 <OverallResults successes="1" failures="0"/>
7100 </Section>
7101 <Section name="flags">
7102 <OverallResults successes="0" failures="0"/>
7103 </Section>
7104 <Section name="flags">
7105 <Section name="set">
7106 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7107 <Original>
7108 config.flag
7109 </Original>
7110 <Expanded>
7111 true
7112 </Expanded>
7113 </Expression>
7114 <OverallResults successes="1" failures="0"/>
7115 </Section>
7116 <OverallResults successes="1" failures="0"/>
7117 </Section>
7118 <Section name="flags">
7119 <Section name="not set">
7120 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7121 <Original>
7122 config.flag == false
7123 </Original>
7124 <Expanded>
7125 false == false
7126 </Expanded>
7127 </Expression>
7128 <OverallResults successes="1" failures="0"/>
7129 </Section>
7130 <OverallResults successes="1" failures="0"/>
7131 </Section>
7132 <Section name="positional">
7133 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7134 <Original>
7135 config.firstPos == &quot;1st&quot;
7136 </Original>
7137 <Expanded>
7138 &quot;1st&quot; == &quot;1st&quot;
7139 </Expanded>
7140 </Expression>
7141 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7142 <Original>
7143 config.secondPos == &quot;2nd&quot;
7144 </Original>
7145 <Expanded>
7146 &quot;2nd&quot; == &quot;2nd&quot;
7147 </Expanded>
7148 </Expression>
7149 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/CmdLineTests.cpp" >
7150 <Original>
7151 config.unpositional == &quot;3rd&quot;
7152 </Original>
7153 <Expanded>
7154 &quot;3rd&quot; == &quot;3rd&quot;
7155 </Expanded>
7156 </Expression>
7157 <OverallResults successes="3" failures="0"/>
7158 </Section>
7159 <OverallResult success="true"/>
7160 </TestCase>
7161 <TestCase name="section tracking">
7162 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7163 <Original>
7164 !testCaseTracker.isCompleted()
7165 </Original>
7166 <Expanded>
7167 !false
7168 </Expanded>
7169 </Expression>
7170 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7171 <Original>
7172 !testCaseTracker.isCompleted()
7173 </Original>
7174 <Expanded>
7175 !false
7176 </Expanded>
7177 </Expression>
7178 <Section name="test case with no sections">
7179 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7180 <Original>
7181 !testCaseTracker.isCompleted()
7182 </Original>
7183 <Expanded>
7184 !false
7185 </Expanded>
7186 </Expression>
7187 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7188 <Original>
7189 testCaseTracker.isCompleted()
7190 </Original>
7191 <Expanded>
7192 true
7193 </Expanded>
7194 </Expression>
7195 <OverallResults successes="2" failures="0"/>
7196 </Section>
7197 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7198 <Original>
7199 !testCaseTracker.isCompleted()
7200 </Original>
7201 <Expanded>
7202 !false
7203 </Expanded>
7204 </Expression>
7205 <Section name="test case with one section">
7206 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7207 <Original>
7208 !testCaseTracker.enterSection( section1Name )
7209 </Original>
7210 <Expanded>
7211 !false
7212 </Expanded>
7213 </Expression>
7214 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7215 <Original>
7216 !testCaseTracker.isCompleted()
7217 </Original>
7218 <Expanded>
7219 !false
7220 </Expanded>
7221 </Expression>
7222 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7223 <Original>
7224 !testCaseTracker.isCompleted()
7225 </Original>
7226 <Expanded>
7227 !false
7228 </Expanded>
7229 </Expression>
7230 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7231 <Original>
7232 testCaseTracker.enterSection( section1Name )
7233 </Original>
7234 <Expanded>
7235 true
7236 </Expanded>
7237 </Expression>
7238 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7239 <Original>
7240 testCaseTracker.isCompleted()
7241 </Original>
7242 <Expanded>
7243 true
7244 </Expanded>
7245 </Expression>
7246 <OverallResults successes="5" failures="0"/>
7247 </Section>
7248 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7249 <Original>
7250 !testCaseTracker.isCompleted()
7251 </Original>
7252 <Expanded>
7253 !false
7254 </Expanded>
7255 </Expression>
7256 <Section name="test case with two consecutive sections">
7257 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7258 <Original>
7259 !testCaseTracker.enterSection( section1Name )
7260 </Original>
7261 <Expanded>
7262 !false
7263 </Expanded>
7264 </Expression>
7265 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7266 <Original>
7267 !testCaseTracker.enterSection( section2Name )
7268 </Original>
7269 <Expanded>
7270 !false
7271 </Expanded>
7272 </Expression>
7273 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7274 <Original>
7275 !testCaseTracker.isCompleted()
7276 </Original>
7277 <Expanded>
7278 !false
7279 </Expanded>
7280 </Expression>
7281 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7282 <Original>
7283 testCaseTracker.enterSection( section1Name )
7284 </Original>
7285 <Expanded>
7286 true
7287 </Expanded>
7288 </Expression>
7289 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7290 <Original>
7291 !testCaseTracker.enterSection( section2Name )
7292 </Original>
7293 <Expanded>
7294 !false
7295 </Expanded>
7296 </Expression>
7297 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7298 <Original>
7299 !testCaseTracker.isCompleted()
7300 </Original>
7301 <Expanded>
7302 !false
7303 </Expanded>
7304 </Expression>
7305 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7306 <Original>
7307 !testCaseTracker.enterSection( section1Name )
7308 </Original>
7309 <Expanded>
7310 !false
7311 </Expanded>
7312 </Expression>
7313 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7314 <Original>
7315 testCaseTracker.enterSection( section2Name )
7316 </Original>
7317 <Expanded>
7318 true
7319 </Expanded>
7320 </Expression>
7321 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7322 <Original>
7323 testCaseTracker.isCompleted()
7324 </Original>
7325 <Expanded>
7326 true
7327 </Expanded>
7328 </Expression>
7329 <OverallResults successes="9" failures="0"/>
7330 </Section>
7331 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7332 <Original>
7333 !testCaseTracker.isCompleted()
7334 </Original>
7335 <Expanded>
7336 !false
7337 </Expanded>
7338 </Expression>
7339 <Section name="test case with one section within another">
7340 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7341 <Original>
7342 !testCaseTracker.enterSection( section1Name )
7343 </Original>
7344 <Expanded>
7345 !false
7346 </Expanded>
7347 </Expression>
7348 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7349 <Original>
7350 !testCaseTracker.isCompleted()
7351 </Original>
7352 <Expanded>
7353 !false
7354 </Expanded>
7355 </Expression>
7356 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7357 <Original>
7358 testCaseTracker.enterSection( section1Name )
7359 </Original>
7360 <Expanded>
7361 true
7362 </Expanded>
7363 </Expression>
7364 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7365 <Original>
7366 !testCaseTracker.enterSection( section2Name )
7367 </Original>
7368 <Expanded>
7369 !false
7370 </Expanded>
7371 </Expression>
7372 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7373 <Original>
7374 !testCaseTracker.isCompleted()
7375 </Original>
7376 <Expanded>
7377 !false
7378 </Expanded>
7379 </Expression>
7380 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7381 <Original>
7382 testCaseTracker.enterSection( section1Name )
7383 </Original>
7384 <Expanded>
7385 true
7386 </Expanded>
7387 </Expression>
7388 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7389 <Original>
7390 testCaseTracker.enterSection( section2Name )
7391 </Original>
7392 <Expanded>
7393 true
7394 </Expanded>
7395 </Expression>
7396 <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/SectionTrackerTests.cpp" >
7397 <Original>
7398 testCaseTracker.isCompleted()
7399 </Original>
7400 <Expanded>
7401 true
7402 </Expanded>
7403 </Expression>
7404 <OverallResults successes="8" failures="0"/>
7405 </Section>
7406 <OverallResult success="true"/>
7407 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00007408 <OverallResults successes="584" failures="110"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007409 </Group>
Phil Nash557b3bd2013-12-14 23:16:03 +00007410 <OverallResults successes="584" failures="110"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007411</Catch>