blob: 01144a0d696a56f27caed80a10e0f8107ae1e3bc [file] [log] [blame]
Phil Nash2f7a2962013-09-27 19:01:14 +01001<Catch name="CatchSelfTest">
Phil Nash3e1d3c72014-09-08 08:14:22 +01002 <Group name="all tests">
Phil Nash5ea32662014-09-03 19:22:47 +01003 <TestCase name="toString(enum)">
Phil Nashc6635a72014-12-30 18:25:27 +00004 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01005 <Original>
6 Catch::toString(e0) == &quot;0&quot;
7 </Original>
8 <Expanded>
9 &quot;0&quot; == &quot;0&quot;
10 </Expanded>
11 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +000012 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010013 <Original>
14 Catch::toString(e1) == &quot;1&quot;
15 </Original>
16 <Expanded>
17 &quot;1&quot; == &quot;1&quot;
18 </Expanded>
19 </Expression>
20 <OverallResult success="true"/>
21 </TestCase>
22 <TestCase name="toString(enum w/operator&lt;&lt;)">
Phil Nashc6635a72014-12-30 18:25:27 +000023 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010024 <Original>
25 Catch::toString(e0) == &quot;E2{0}&quot;
26 </Original>
27 <Expanded>
28 &quot;E2{0}&quot; == &quot;E2{0}&quot;
29 </Expanded>
30 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +000031 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010032 <Original>
33 Catch::toString(e1) == &quot;E2{1}&quot;
34 </Original>
35 <Expanded>
36 &quot;E2{1}&quot; == &quot;E2{1}&quot;
37 </Expanded>
38 </Expression>
39 <OverallResult success="true"/>
40 </TestCase>
41 <TestCase name="toString(enum class)">
Phil Nashc6635a72014-12-30 18:25:27 +000042 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010043 <Original>
44 Catch::toString(e0) == &quot;0&quot;
45 </Original>
46 <Expanded>
47 &quot;0&quot; == &quot;0&quot;
48 </Expanded>
49 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +000050 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010051 <Original>
52 Catch::toString(e1) == &quot;1&quot;
53 </Original>
54 <Expanded>
55 &quot;1&quot; == &quot;1&quot;
56 </Expanded>
57 </Expression>
58 <OverallResult success="true"/>
59 </TestCase>
60 <TestCase name="toString(enum class w/operator&lt;&lt;)">
Phil Nashc6635a72014-12-30 18:25:27 +000061 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010062 <Original>
63 Catch::toString(e0) == &quot;E2/V0&quot;
64 </Original>
65 <Expanded>
66 &quot;E2/V0&quot; == &quot;E2/V0&quot;
67 </Expanded>
68 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +000069 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +010070 <Original>
71 Catch::toString(e1) == &quot;E2/V1&quot;
72 </Original>
73 <Expanded>
74 &quot;E2/V1&quot; == &quot;E2/V1&quot;
75 </Expanded>
76 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +000077 <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
Phil Nash886ef162014-09-04 07:27:09 +010078 <Original>
79 Catch::toString(e3) == &quot;Unknown enum value 10&quot;
80 </Original>
81 <Expanded>
82 &quot;Unknown enum value 10&quot;
83==
84&quot;Unknown enum value 10&quot;
85 </Expanded>
86 </Expression>
Phil Nash5ea32662014-09-03 19:22:47 +010087 <OverallResult success="true"/>
88 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +000089 <TestCase name="Some simple comparisons between doubles">
Phil Nashc6635a72014-12-30 18:25:27 +000090 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +010091 <Original>
92 d == Approx( 1.23 )
93 </Original>
94 <Expanded>
95 1.23 == Approx( 1.23 )
96 </Expanded>
97 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +000098 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +010099 <Original>
100 d != Approx( 1.22 )
101 </Original>
102 <Expanded>
103 1.23 != Approx( 1.22 )
104 </Expanded>
105 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000106 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100107 <Original>
108 d != Approx( 1.24 )
109 </Original>
110 <Expanded>
111 1.23 != Approx( 1.24 )
112 </Expanded>
113 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000114 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100115 <Original>
116 Approx( d ) == 1.23
117 </Original>
118 <Expanded>
119 Approx( 1.23 ) == 1.23
120 </Expanded>
121 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000122 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100123 <Original>
124 Approx( d ) != 1.22
125 </Original>
126 <Expanded>
127 Approx( 1.23 ) != 1.22
128 </Expanded>
129 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000130 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100131 <Original>
132 Approx( d ) != 1.24
133 </Original>
134 <Expanded>
135 Approx( 1.23 ) != 1.24
136 </Expanded>
137 </Expression>
138 <OverallResult success="true"/>
139 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000140 <TestCase name="Approximate comparisons with different epsilons">
Phil Nashc6635a72014-12-30 18:25:27 +0000141 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100142 <Original>
143 d != Approx( 1.231 )
144 </Original>
145 <Expanded>
146 1.23 != Approx( 1.231 )
147 </Expanded>
148 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000149 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100150 <Original>
151 d == Approx( 1.231 ).epsilon( 0.1 )
152 </Original>
153 <Expanded>
154 1.23 == Approx( 1.231 )
155 </Expanded>
156 </Expression>
157 <OverallResult success="true"/>
158 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000159 <TestCase name="Approximate comparisons with floats">
Phil Nashc6635a72014-12-30 18:25:27 +0000160 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100161 <Original>
162 1.23f == Approx( 1.23f )
163 </Original>
164 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100165 1.23f == Approx( 1.2300000191 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100166 </Expanded>
167 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000168 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100169 <Original>
170 0.0f == Approx( 0.0f )
171 </Original>
172 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100173 0.0f == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100174 </Expanded>
175 </Expression>
176 <OverallResult success="true"/>
177 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000178 <TestCase name="Approximate comparisons with ints">
Phil Nashc6635a72014-12-30 18:25:27 +0000179 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100180 <Original>
181 1 == Approx( 1 )
182 </Original>
183 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000184 1 == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100185 </Expanded>
186 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000187 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100188 <Original>
189 0 == Approx( 0 )
190 </Original>
191 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000192 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100193 </Expanded>
194 </Expression>
195 <OverallResult success="true"/>
196 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000197 <TestCase name="Approximate comparisons with mixed numeric types">
Phil Nashc6635a72014-12-30 18:25:27 +0000198 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100199 <Original>
200 1.0f == Approx( 1 )
201 </Original>
202 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100203 1.0f == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100204 </Expanded>
205 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000206 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100207 <Original>
208 0 == Approx( dZero)
209 </Original>
210 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000211 0 == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100212 </Expanded>
213 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000214 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100215 <Original>
216 0 == Approx( dSmall ).epsilon( 0.001 )
217 </Original>
218 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000219 0 == Approx( 0.00001 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100220 </Expanded>
221 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000222 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100223 <Original>
224 1.234f == Approx( dMedium )
225 </Original>
226 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100227 1.234f == Approx( 1.234 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100228 </Expanded>
229 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000230 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100231 <Original>
232 dMedium == Approx( 1.234f )
233 </Original>
234 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000235 1.234 == Approx( 1.2339999676 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100236 </Expanded>
237 </Expression>
238 <OverallResult success="true"/>
239 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000240 <TestCase name="Use a custom approx">
Phil Nashc6635a72014-12-30 18:25:27 +0000241 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100242 <Original>
243 d == approx( 1.23 )
244 </Original>
245 <Expanded>
246 1.23 == Approx( 1.23 )
247 </Expanded>
248 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000249 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100250 <Original>
251 d == approx( 1.22 )
252 </Original>
253 <Expanded>
254 1.23 == Approx( 1.22 )
255 </Expanded>
256 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000257 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100258 <Original>
259 d == approx( 1.24 )
260 </Original>
261 <Expanded>
262 1.23 == Approx( 1.24 )
263 </Expanded>
264 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000265 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100266 <Original>
267 d != approx( 1.25 )
268 </Original>
269 <Expanded>
270 1.23 != Approx( 1.25 )
271 </Expanded>
272 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000273 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100274 <Original>
275 approx( d ) == 1.23
276 </Original>
277 <Expanded>
278 Approx( 1.23 ) == 1.23
279 </Expanded>
280 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000281 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100282 <Original>
283 approx( d ) == 1.22
284 </Original>
285 <Expanded>
286 Approx( 1.23 ) == 1.22
287 </Expanded>
288 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000289 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100290 <Original>
291 approx( d ) == 1.24
292 </Original>
293 <Expanded>
294 Approx( 1.23 ) == 1.24
295 </Expanded>
296 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000297 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100298 <Original>
299 approx( d ) != 1.25
300 </Original>
301 <Expanded>
302 Approx( 1.23 ) != 1.25
303 </Expanded>
304 </Expression>
305 <OverallResult success="true"/>
306 </TestCase>
307 <TestCase name="Approximate PI">
Phil Nashc6635a72014-12-30 18:25:27 +0000308 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100309 <Original>
310 divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 )
311 </Original>
312 <Expanded>
313 3.1428571429 == Approx( 3.141 )
314 </Expanded>
315 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000316 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100317 <Original>
318 divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 )
319 </Original>
320 <Expanded>
321 3.1428571429 != Approx( 3.141 )
322 </Expanded>
323 </Expression>
324 <OverallResult success="true"/>
325 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000326 <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds">
Phil Nashc6635a72014-12-30 18:25:27 +0000327 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100328 <Original>
329 s == &quot;hello&quot;
330 </Original>
331 <Expanded>
332 &quot;hello&quot; == &quot;hello&quot;
333 </Expanded>
334 </Expression>
335 <OverallResult success="true"/>
336 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000337 <TestCase name="A METHOD_AS_TEST_CASE based test run that fails">
Phil Nashc6635a72014-12-30 18:25:27 +0000338 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100339 <Original>
340 s == &quot;world&quot;
341 </Original>
342 <Expanded>
343 &quot;hello&quot; == &quot;world&quot;
344 </Expanded>
345 </Expression>
346 <OverallResult success="false"/>
347 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000348 <TestCase name="A TEST_CASE_METHOD based test run that succeeds">
Phil Nashc6635a72014-12-30 18:25:27 +0000349 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100350 <Original>
351 m_a == 1
352 </Original>
353 <Expanded>
354 1 == 1
355 </Expanded>
356 </Expression>
357 <OverallResult success="true"/>
358 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000359 <TestCase name="A TEST_CASE_METHOD based test run that fails">
Phil Nashc6635a72014-12-30 18:25:27 +0000360 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100361 <Original>
362 m_a == 2
363 </Original>
364 <Expanded>
365 1 == 2
366 </Expanded>
367 </Expression>
368 <OverallResult success="false"/>
369 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000370 <TestCase name="Equality checks that should succeed">
Phil Nashc6635a72014-12-30 18:25:27 +0000371 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100372 <Original>
373 data.int_seven == 7
374 </Original>
375 <Expanded>
376 7 == 7
377 </Expanded>
378 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000379 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100380 <Original>
381 data.float_nine_point_one == Approx( 9.1f )
382 </Original>
383 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100384 9.1f == Approx( 9.1000003815 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100385 </Expanded>
386 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000387 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100388 <Original>
389 data.double_pi == Approx( 3.1415926535 )
390 </Original>
391 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000392 3.1415926535 == Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100393 </Expanded>
394 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000395 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100396 <Original>
397 data.str_hello == &quot;hello&quot;
398 </Original>
399 <Expanded>
400 &quot;hello&quot; == &quot;hello&quot;
401 </Expanded>
402 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000403 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100404 <Original>
405 &quot;hello&quot; == data.str_hello
406 </Original>
407 <Expanded>
408 &quot;hello&quot; == &quot;hello&quot;
409 </Expanded>
410 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000411 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100412 <Original>
413 data.str_hello.size() == 5
414 </Original>
415 <Expanded>
416 5 == 5
417 </Expanded>
418 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000419 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100420 <Original>
421 x == Approx( 1.3 )
422 </Original>
423 <Expanded>
424 1.3 == Approx( 1.3 )
425 </Expanded>
426 </Expression>
427 <OverallResult success="true"/>
428 </TestCase>
Phil Nashbaf181f2014-05-20 18:11:43 +0100429 <TestCase name="Equality checks that should fail">
Phil Nashc6635a72014-12-30 18:25:27 +0000430 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100431 <Original>
432 data.int_seven == 6
433 </Original>
434 <Expanded>
435 7 == 6
436 </Expanded>
437 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000438 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100439 <Original>
440 data.int_seven == 8
441 </Original>
442 <Expanded>
443 7 == 8
444 </Expanded>
445 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000446 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100447 <Original>
448 data.int_seven == 0
449 </Original>
450 <Expanded>
451 7 == 0
452 </Expanded>
453 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000454 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100455 <Original>
456 data.float_nine_point_one == Approx( 9.11f )
457 </Original>
458 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100459 9.1f == Approx( 9.1099996567 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100460 </Expanded>
461 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000462 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100463 <Original>
464 data.float_nine_point_one == Approx( 9.0f )
465 </Original>
466 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100467 9.1f == Approx( 9.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100468 </Expanded>
469 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000470 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100471 <Original>
472 data.float_nine_point_one == Approx( 1 )
473 </Original>
474 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100475 9.1f == Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100476 </Expanded>
477 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000478 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100479 <Original>
480 data.float_nine_point_one == Approx( 0 )
481 </Original>
482 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100483 9.1f == Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100484 </Expanded>
485 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000486 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100487 <Original>
488 data.double_pi == Approx( 3.1415 )
489 </Original>
490 <Expanded>
491 3.1415926535 == Approx( 3.1415 )
492 </Expanded>
493 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000494 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100495 <Original>
496 data.str_hello == &quot;goodbye&quot;
497 </Original>
498 <Expanded>
499 &quot;hello&quot; == &quot;goodbye&quot;
500 </Expanded>
501 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000502 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100503 <Original>
504 data.str_hello == &quot;hell&quot;
505 </Original>
506 <Expanded>
507 &quot;hello&quot; == &quot;hell&quot;
508 </Expanded>
509 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000510 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100511 <Original>
512 data.str_hello == &quot;hello1&quot;
513 </Original>
514 <Expanded>
515 &quot;hello&quot; == &quot;hello1&quot;
516 </Expanded>
517 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000518 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100519 <Original>
520 data.str_hello.size() == 6
521 </Original>
522 <Expanded>
523 5 == 6
524 </Expanded>
525 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000526 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100527 <Original>
528 x == Approx( 1.301 )
529 </Original>
530 <Expanded>
531 1.3 == Approx( 1.301 )
532 </Expanded>
533 </Expression>
Phil Nash6817bb02014-12-30 18:24:31 +0000534 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +0100535 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000536 <TestCase name="Inequality checks that should succeed">
Phil Nashc6635a72014-12-30 18:25:27 +0000537 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100538 <Original>
539 data.int_seven != 6
540 </Original>
541 <Expanded>
542 7 != 6
543 </Expanded>
544 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000545 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100546 <Original>
547 data.int_seven != 8
548 </Original>
549 <Expanded>
550 7 != 8
551 </Expanded>
552 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000553 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100554 <Original>
555 data.float_nine_point_one != Approx( 9.11f )
556 </Original>
557 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100558 9.1f != Approx( 9.1099996567 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100559 </Expanded>
560 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000561 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100562 <Original>
563 data.float_nine_point_one != Approx( 9.0f )
564 </Original>
565 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100566 9.1f != Approx( 9.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100567 </Expanded>
568 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000569 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100570 <Original>
571 data.float_nine_point_one != Approx( 1 )
572 </Original>
573 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100574 9.1f != Approx( 1.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100575 </Expanded>
576 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000577 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100578 <Original>
579 data.float_nine_point_one != Approx( 0 )
580 </Original>
581 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100582 9.1f != Approx( 0.0 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100583 </Expanded>
584 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000585 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100586 <Original>
587 data.double_pi != Approx( 3.1415 )
588 </Original>
589 <Expanded>
590 3.1415926535 != Approx( 3.1415 )
591 </Expanded>
592 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000593 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100594 <Original>
595 data.str_hello != &quot;goodbye&quot;
596 </Original>
597 <Expanded>
598 &quot;hello&quot; != &quot;goodbye&quot;
599 </Expanded>
600 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000601 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100602 <Original>
603 data.str_hello != &quot;hell&quot;
604 </Original>
605 <Expanded>
606 &quot;hello&quot; != &quot;hell&quot;
607 </Expanded>
608 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000609 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100610 <Original>
611 data.str_hello != &quot;hello1&quot;
612 </Original>
613 <Expanded>
614 &quot;hello&quot; != &quot;hello1&quot;
615 </Expanded>
616 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000617 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100618 <Original>
619 data.str_hello.size() != 6
620 </Original>
621 <Expanded>
622 5 != 6
623 </Expanded>
624 </Expression>
625 <OverallResult success="true"/>
626 </TestCase>
Phil Nashbaf181f2014-05-20 18:11:43 +0100627 <TestCase name="Inequality checks that should fail">
Phil Nashc6635a72014-12-30 18:25:27 +0000628 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100629 <Original>
630 data.int_seven != 7
631 </Original>
632 <Expanded>
633 7 != 7
634 </Expanded>
635 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000636 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100637 <Original>
638 data.float_nine_point_one != Approx( 9.1f )
639 </Original>
640 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100641 9.1f != Approx( 9.1000003815 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100642 </Expanded>
643 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000644 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100645 <Original>
646 data.double_pi != Approx( 3.1415926535 )
647 </Original>
648 <Expanded>
Phil Nash1aa60fa2013-12-19 18:41:55 +0000649 3.1415926535 != Approx( 3.1415926535 )
Phil Nash2f7a2962013-09-27 19:01:14 +0100650 </Expanded>
651 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000652 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100653 <Original>
654 data.str_hello != &quot;hello&quot;
655 </Original>
656 <Expanded>
657 &quot;hello&quot; != &quot;hello&quot;
658 </Expanded>
659 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000660 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100661 <Original>
662 data.str_hello.size() != 5
663 </Original>
664 <Expanded>
665 5 != 5
666 </Expanded>
667 </Expression>
668 <OverallResult success="false"/>
669 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000670 <TestCase name="Ordering comparison checks that should succeed">
Phil Nashc6635a72014-12-30 18:25:27 +0000671 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100672 <Original>
673 data.int_seven &lt; 8
674 </Original>
675 <Expanded>
676 7 &lt; 8
677 </Expanded>
678 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000679 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100680 <Original>
681 data.int_seven > 6
682 </Original>
683 <Expanded>
684 7 > 6
685 </Expanded>
686 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000687 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100688 <Original>
689 data.int_seven > 0
690 </Original>
691 <Expanded>
692 7 > 0
693 </Expanded>
694 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000695 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100696 <Original>
697 data.int_seven > -1
698 </Original>
699 <Expanded>
700 7 > -1
701 </Expanded>
702 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000703 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100704 <Original>
705 data.int_seven >= 7
706 </Original>
707 <Expanded>
708 7 >= 7
709 </Expanded>
710 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000711 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100712 <Original>
713 data.int_seven >= 6
714 </Original>
715 <Expanded>
716 7 >= 6
717 </Expanded>
718 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000719 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100720 <Original>
721 data.int_seven &lt;= 7
722 </Original>
723 <Expanded>
724 7 &lt;= 7
725 </Expanded>
726 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000727 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100728 <Original>
729 data.int_seven &lt;= 8
730 </Original>
731 <Expanded>
732 7 &lt;= 8
733 </Expanded>
734 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000735 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100736 <Original>
737 data.float_nine_point_one > 9
738 </Original>
739 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100740 9.1f > 9
Phil Nash2f7a2962013-09-27 19:01:14 +0100741 </Expanded>
742 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000743 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100744 <Original>
745 data.float_nine_point_one &lt; 10
746 </Original>
747 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100748 9.1f &lt; 10
Phil Nash2f7a2962013-09-27 19:01:14 +0100749 </Expanded>
750 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000751 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100752 <Original>
753 data.float_nine_point_one &lt; 9.2
754 </Original>
755 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100756 9.1f &lt; 9.2
Phil Nash2f7a2962013-09-27 19:01:14 +0100757 </Expanded>
758 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000759 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100760 <Original>
761 data.str_hello &lt;= &quot;hello&quot;
762 </Original>
763 <Expanded>
764 &quot;hello&quot; &lt;= &quot;hello&quot;
765 </Expanded>
766 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000767 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100768 <Original>
769 data.str_hello >= &quot;hello&quot;
770 </Original>
771 <Expanded>
772 &quot;hello&quot; >= &quot;hello&quot;
773 </Expanded>
774 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000775 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100776 <Original>
777 data.str_hello &lt; &quot;hellp&quot;
778 </Original>
779 <Expanded>
780 &quot;hello&quot; &lt; &quot;hellp&quot;
781 </Expanded>
782 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000783 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100784 <Original>
785 data.str_hello &lt; &quot;zebra&quot;
786 </Original>
787 <Expanded>
788 &quot;hello&quot; &lt; &quot;zebra&quot;
789 </Expanded>
790 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000791 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100792 <Original>
793 data.str_hello > &quot;hellm&quot;
794 </Original>
795 <Expanded>
796 &quot;hello&quot; > &quot;hellm&quot;
797 </Expanded>
798 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000799 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100800 <Original>
801 data.str_hello > &quot;a&quot;
802 </Original>
803 <Expanded>
804 &quot;hello&quot; > &quot;a&quot;
805 </Expanded>
806 </Expression>
807 <OverallResult success="true"/>
808 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000809 <TestCase name="Ordering comparison checks that should fail">
Phil Nashc6635a72014-12-30 18:25:27 +0000810 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100811 <Original>
812 data.int_seven > 7
813 </Original>
814 <Expanded>
815 7 > 7
816 </Expanded>
817 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000818 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100819 <Original>
820 data.int_seven &lt; 7
821 </Original>
822 <Expanded>
823 7 &lt; 7
824 </Expanded>
825 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000826 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100827 <Original>
828 data.int_seven > 8
829 </Original>
830 <Expanded>
831 7 > 8
832 </Expanded>
833 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000834 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100835 <Original>
836 data.int_seven &lt; 6
837 </Original>
838 <Expanded>
839 7 &lt; 6
840 </Expanded>
841 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000842 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100843 <Original>
844 data.int_seven &lt; 0
845 </Original>
846 <Expanded>
847 7 &lt; 0
848 </Expanded>
849 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000850 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100851 <Original>
852 data.int_seven &lt; -1
853 </Original>
854 <Expanded>
855 7 &lt; -1
856 </Expanded>
857 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000858 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100859 <Original>
860 data.int_seven >= 8
861 </Original>
862 <Expanded>
863 7 >= 8
864 </Expanded>
865 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000866 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100867 <Original>
868 data.int_seven &lt;= 6
869 </Original>
870 <Expanded>
871 7 &lt;= 6
872 </Expanded>
873 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000874 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100875 <Original>
876 data.float_nine_point_one &lt; 9
877 </Original>
878 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100879 9.1f &lt; 9
Phil Nash2f7a2962013-09-27 19:01:14 +0100880 </Expanded>
881 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000882 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100883 <Original>
884 data.float_nine_point_one > 10
885 </Original>
886 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100887 9.1f > 10
Phil Nash2f7a2962013-09-27 19:01:14 +0100888 </Expanded>
889 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000890 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100891 <Original>
892 data.float_nine_point_one > 9.2
893 </Original>
894 <Expanded>
Phil Nashd89e74f2014-07-09 18:16:40 +0100895 9.1f > 9.2
Phil Nash2f7a2962013-09-27 19:01:14 +0100896 </Expanded>
897 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000898 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100899 <Original>
900 data.str_hello > &quot;hello&quot;
901 </Original>
902 <Expanded>
903 &quot;hello&quot; > &quot;hello&quot;
904 </Expanded>
905 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000906 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100907 <Original>
908 data.str_hello &lt; &quot;hello&quot;
909 </Original>
910 <Expanded>
911 &quot;hello&quot; &lt; &quot;hello&quot;
912 </Expanded>
913 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000914 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100915 <Original>
916 data.str_hello > &quot;hellp&quot;
917 </Original>
918 <Expanded>
919 &quot;hello&quot; > &quot;hellp&quot;
920 </Expanded>
921 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000922 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100923 <Original>
924 data.str_hello > &quot;z&quot;
925 </Original>
926 <Expanded>
927 &quot;hello&quot; > &quot;z&quot;
928 </Expanded>
929 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000930 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100931 <Original>
932 data.str_hello &lt; &quot;hellm&quot;
933 </Original>
934 <Expanded>
935 &quot;hello&quot; &lt; &quot;hellm&quot;
936 </Expanded>
937 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000938 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100939 <Original>
940 data.str_hello &lt; &quot;a&quot;
941 </Original>
942 <Expanded>
943 &quot;hello&quot; &lt; &quot;a&quot;
944 </Expanded>
945 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000946 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100947 <Original>
948 data.str_hello >= &quot;z&quot;
949 </Original>
950 <Expanded>
951 &quot;hello&quot; >= &quot;z&quot;
952 </Expanded>
953 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000954 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100955 <Original>
956 data.str_hello &lt;= &quot;a&quot;
957 </Original>
958 <Expanded>
959 &quot;hello&quot; &lt;= &quot;a&quot;
960 </Expanded>
961 </Expression>
962 <OverallResult success="false"/>
963 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000964 <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned">
Phil Nashc6635a72014-12-30 18:25:27 +0000965 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100966 <Original>
967 i == 1
968 </Original>
969 <Expanded>
970 1 == 1
971 </Expanded>
972 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000973 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100974 <Original>
975 ui == 2
976 </Original>
977 <Expanded>
978 2 == 2
979 </Expanded>
980 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000981 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100982 <Original>
983 l == 3
984 </Original>
985 <Expanded>
986 3 == 3
987 </Expanded>
988 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000989 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100990 <Original>
991 ul == 4
992 </Original>
993 <Expanded>
994 4 == 4
995 </Expanded>
996 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000997 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100998 <Original>
999 c == 5
1000 </Original>
1001 <Expanded>
1002 5 == 5
1003 </Expanded>
1004 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001005 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001006 <Original>
1007 uc == 6
1008 </Original>
1009 <Expanded>
1010 6 == 6
1011 </Expanded>
1012 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001013 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001014 <Original>
1015 1 == i
1016 </Original>
1017 <Expanded>
1018 1 == 1
1019 </Expanded>
1020 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001021 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001022 <Original>
1023 2 == ui
1024 </Original>
1025 <Expanded>
1026 2 == 2
1027 </Expanded>
1028 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001029 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001030 <Original>
1031 3 == l
1032 </Original>
1033 <Expanded>
1034 3 == 3
1035 </Expanded>
1036 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001037 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001038 <Original>
1039 4 == ul
1040 </Original>
1041 <Expanded>
1042 4 == 4
1043 </Expanded>
1044 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001045 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001046 <Original>
1047 5 == c
1048 </Original>
1049 <Expanded>
1050 5 == 5
1051 </Expanded>
1052 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001053 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001054 <Original>
1055 6 == uc
1056 </Original>
1057 <Expanded>
1058 6 == 6
1059 </Expanded>
1060 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001061 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001062 <Original>
1063 (std::numeric_limits&lt;unsigned long>::max)() > ul
1064 </Original>
1065 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01001066 18446744073709551615 (0x<hex digits>)
1067>
10684
Phil Nash2f7a2962013-09-27 19:01:14 +01001069 </Expanded>
1070 </Expression>
1071 <OverallResult success="true"/>
1072 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001073 <TestCase name="comparisons between int variables">
Phil Nashc6635a72014-12-30 18:25:27 +00001074 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001075 <Original>
1076 long_var == unsigned_char_var
1077 </Original>
1078 <Expanded>
1079 1 == 1
1080 </Expanded>
1081 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001082 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001083 <Original>
1084 long_var == unsigned_short_var
1085 </Original>
1086 <Expanded>
1087 1 == 1
1088 </Expanded>
1089 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001090 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001091 <Original>
1092 long_var == unsigned_int_var
1093 </Original>
1094 <Expanded>
1095 1 == 1
1096 </Expanded>
1097 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001098 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001099 <Original>
1100 long_var == unsigned_long_var
1101 </Original>
1102 <Expanded>
1103 1 == 1
1104 </Expanded>
1105 </Expression>
1106 <OverallResult success="true"/>
1107 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001108 <TestCase name="comparisons between const int variables">
Phil Nashc6635a72014-12-30 18:25:27 +00001109 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001110 <Original>
1111 unsigned_char_var == 1
1112 </Original>
1113 <Expanded>
1114 1 == 1
1115 </Expanded>
1116 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001117 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001118 <Original>
1119 unsigned_short_var == 1
1120 </Original>
1121 <Expanded>
1122 1 == 1
1123 </Expanded>
1124 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001125 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001126 <Original>
1127 unsigned_int_var == 1
1128 </Original>
1129 <Expanded>
1130 1 == 1
1131 </Expanded>
1132 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001133 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001134 <Original>
1135 unsigned_long_var == 1
1136 </Original>
1137 <Expanded>
1138 1 == 1
1139 </Expanded>
1140 </Expression>
1141 <OverallResult success="true"/>
1142 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001143 <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour">
Phil Nashc6635a72014-12-30 18:25:27 +00001144 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001145 <Original>
1146 ( -1 > 2u )
1147 </Original>
1148 <Expanded>
1149 true
1150 </Expanded>
1151 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001152 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001153 <Original>
1154 -1 > 2u
1155 </Original>
1156 <Expanded>
1157 -1 > 2
1158 </Expanded>
1159 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001160 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001161 <Original>
1162 ( 2u &lt; -1 )
1163 </Original>
1164 <Expanded>
1165 true
1166 </Expanded>
1167 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001168 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001169 <Original>
1170 2u &lt; -1
1171 </Original>
1172 <Expanded>
1173 2 &lt; -1
1174 </Expanded>
1175 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001176 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001177 <Original>
1178 ( minInt > 2u )
1179 </Original>
1180 <Expanded>
1181 true
1182 </Expanded>
1183 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001184 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001185 <Original>
1186 minInt > 2u
1187 </Original>
1188 <Expanded>
1189 -2147483648 > 2
1190 </Expanded>
1191 </Expression>
1192 <OverallResult success="true"/>
1193 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001194 <TestCase name="Comparisons between ints where one side is computed">
Phil Nashc6635a72014-12-30 18:25:27 +00001195 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001196 <Original>
1197 54 == 6*9
1198 </Original>
1199 <Expanded>
1200 54 == 54
1201 </Expanded>
1202 </Expression>
1203 <OverallResult success="true"/>
1204 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001205 <TestCase name="Pointers can be compared to null">
Phil Nashc6635a72014-12-30 18:25:27 +00001206 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001207 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001208 p == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001209 </Original>
1210 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001211 NULL == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001212 </Expanded>
1213 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001214 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001215 <Original>
1216 p == pNULL
1217 </Original>
1218 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001219 NULL == NULL
Phil Nash2f7a2962013-09-27 19:01:14 +01001220 </Expanded>
1221 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001222 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001223 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001224 p != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001225 </Original>
1226 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001227 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001228 </Expanded>
1229 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001230 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001231 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001232 cp != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001233 </Original>
1234 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001235 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001236 </Expanded>
1237 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001238 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001239 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001240 cpc != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001241 </Original>
1242 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001243 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001244 </Expanded>
1245 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001246 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001247 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001248 returnsNull() == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001249 </Original>
1250 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001251 {null string} == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001252 </Expanded>
1253 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001254 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001255 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001256 returnsConstNull() == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001257 </Original>
1258 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001259 {null string} == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001260 </Expanded>
1261 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001262 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001263 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001264 nullptr != p
Phil Nash2f7a2962013-09-27 19:01:14 +01001265 </Original>
1266 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001267 nullptr != 0x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01001268 </Expanded>
1269 </Expression>
1270 <OverallResult success="true"/>
1271 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001272 <TestCase name="'Not' checks that should succeed">
Phil Nashc6635a72014-12-30 18:25:27 +00001273 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001274 <Original>
1275 false == false
1276 </Original>
1277 <Expanded>
1278 false == false
1279 </Expanded>
1280 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001281 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001282 <Original>
1283 true == true
1284 </Original>
1285 <Expanded>
1286 true == true
1287 </Expanded>
1288 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001289 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001290 <Original>
1291 !false
1292 </Original>
1293 <Expanded>
1294 true
1295 </Expanded>
1296 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001297 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001298 <Original>
1299 !false
1300 </Original>
1301 <Expanded>
1302 !false
1303 </Expanded>
1304 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001305 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001306 <Original>
1307 !falseValue
1308 </Original>
1309 <Expanded>
1310 true
1311 </Expanded>
1312 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001313 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001314 <Original>
1315 !falseValue
1316 </Original>
1317 <Expanded>
1318 !false
1319 </Expanded>
1320 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001321 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001322 <Original>
1323 !(1 == 2)
1324 </Original>
1325 <Expanded>
1326 true
1327 </Expanded>
1328 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001329 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001330 <Original>
1331 !1 == 2
1332 </Original>
1333 <Expanded>
1334 !(1 == 2)
1335 </Expanded>
1336 </Expression>
1337 <OverallResult success="true"/>
1338 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001339 <TestCase name="'Not' checks that should fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001340 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001341 <Original>
1342 false != false
1343 </Original>
1344 <Expanded>
1345 false != false
1346 </Expanded>
1347 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001348 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001349 <Original>
1350 true != true
1351 </Original>
1352 <Expanded>
1353 true != true
1354 </Expanded>
1355 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001356 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001357 <Original>
1358 !true
1359 </Original>
1360 <Expanded>
1361 false
1362 </Expanded>
1363 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001364 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001365 <Original>
1366 !true
1367 </Original>
1368 <Expanded>
1369 !true
1370 </Expanded>
1371 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001372 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001373 <Original>
1374 !trueValue
1375 </Original>
1376 <Expanded>
1377 false
1378 </Expanded>
1379 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001380 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001381 <Original>
1382 !trueValue
1383 </Original>
1384 <Expanded>
1385 !true
1386 </Expanded>
1387 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001388 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001389 <Original>
1390 !(1 == 1)
1391 </Original>
1392 <Expanded>
1393 false
1394 </Expanded>
1395 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001396 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001397 <Original>
1398 !1 == 1
1399 </Original>
1400 <Expanded>
1401 !(1 == 1)
1402 </Expanded>
1403 </Expression>
1404 <OverallResult success="false"/>
1405 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001406 <TestCase name="When checked exceptions are thrown they can be expected or unexpected">
Phil Nashc6635a72014-12-30 18:25:27 +00001407 <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001408 <Original>
1409 thisThrows()
1410 </Original>
1411 <Expanded>
1412 thisThrows()
1413 </Expanded>
1414 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001415 <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001416 <Original>
1417 thisDoesntThrow()
1418 </Original>
1419 <Expanded>
1420 thisDoesntThrow()
1421 </Expanded>
1422 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001423 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001424 <Original>
1425 thisThrows()
1426 </Original>
1427 <Expanded>
1428 thisThrows()
1429 </Expanded>
1430 </Expression>
1431 <OverallResult success="true"/>
1432 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001433 <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00001434 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001435 <Original>
1436 thisThrows()
1437 </Original>
1438 <Expanded>
1439 thisThrows()
1440 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001441 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001442 expected exception
1443 </Exception>
1444 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001445 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001446 <Original>
1447 thisDoesntThrow()
1448 </Original>
1449 <Expanded>
1450 thisDoesntThrow()
1451 </Expanded>
1452 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001453 <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001454 <Original>
1455 thisThrows()
1456 </Original>
1457 <Expanded>
1458 thisThrows()
1459 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001460 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001461 expected exception
1462 </Exception>
1463 </Expression>
1464 <OverallResult success="false"/>
1465 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001466 <TestCase name="When unchecked exceptions are thrown directly they are always failures">
Phil Nasha99e75b2014-12-11 23:40:29 +00001467 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001468 unexpected exception
1469 </Exception>
1470 <OverallResult success="false"/>
1471 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001472 <TestCase name="An unchecked exception reports the line of the last assertion">
Phil Nashc6635a72014-12-30 18:25:27 +00001473 <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001474 <Original>
1475 1 == 1
1476 </Original>
1477 <Expanded>
1478 1 == 1
1479 </Expanded>
1480 </Expression>
Phil Nasha99e75b2014-12-11 23:40:29 +00001481 <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001482 <Original>
1483 {Unknown expression after the reported line}
1484 </Original>
1485 <Expanded>
1486 {Unknown expression after the reported line}
1487 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001488 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001489 unexpected exception
1490 </Exception>
1491 </Expression>
1492 <OverallResult success="false"/>
1493 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001494 <TestCase name="When unchecked exceptions are thrown from sections they are always failures">
Phil Nash2f7a2962013-09-27 19:01:14 +01001495 <Section name="section name">
Phil Nasha99e75b2014-12-11 23:40:29 +00001496 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001497 unexpected exception
1498 </Exception>
Phil Nash9c1f9a82014-07-03 08:09:57 +01001499 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01001500 </Section>
1501 <OverallResult success="false"/>
1502 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001503 <TestCase name="When unchecked exceptions are thrown from functions they are always failures">
Phil Nashc6635a72014-12-30 18:25:27 +00001504 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001505 <Original>
1506 thisThrows() == 0
1507 </Original>
1508 <Expanded>
1509 thisThrows() == 0
1510 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001511 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001512 expected exception
1513 </Exception>
1514 </Expression>
1515 <OverallResult success="false"/>
1516 </TestCase>
Phil Nash1bccc032014-04-12 19:20:46 +01001517 <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001518 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash1bccc032014-04-12 19:20:46 +01001519 <Original>
1520 thisThrows() == 0
1521 </Original>
1522 <Expanded>
1523 thisThrows() == 0
1524 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001525 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash1bccc032014-04-12 19:20:46 +01001526 expected exception
1527 </Exception>
1528 </Expression>
1529 <OverallResult success="false"/>
1530 </TestCase>
1531 <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001532 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nasha176b932014-04-12 19:07:24 +01001533 <Original>
1534 thisThrows() == 0
1535 </Original>
1536 <Expanded>
1537 thisThrows() == 0
1538 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001539 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nasha176b932014-04-12 19:07:24 +01001540 expected exception
1541 </Exception>
1542 </Expression>
1543 <OverallResult success="false"/>
1544 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001545 <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test">
Phil Nash6817bb02014-12-30 18:24:31 +00001546 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01001547 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001548 <TestCase name="Unexpected custom exceptions can be translated">
Phil Nasha99e75b2014-12-11 23:40:29 +00001549 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001550 custom exception
1551 </Exception>
1552 <OverallResult success="false"/>
1553 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001554 <TestCase name="Custom exceptions can be translated when testing for nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00001555 <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001556 <Original>
1557 throwCustom()
1558 </Original>
1559 <Expanded>
1560 throwCustom()
1561 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001562 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001563 custom exception - not std
1564 </Exception>
1565 </Expression>
1566 <OverallResult success="false"/>
1567 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001568 <TestCase name="Custom exceptions can be translated when testing for throwing as something else">
Phil Nashc6635a72014-12-30 18:25:27 +00001569 <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001570 <Original>
1571 throwCustom()
1572 </Original>
1573 <Expanded>
1574 throwCustom()
1575 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001576 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001577 custom exception - not std
1578 </Exception>
1579 </Expression>
1580 <OverallResult success="false"/>
1581 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001582 <TestCase name="Unexpected exceptions can be translated">
Phil Nasha99e75b2014-12-11 23:40:29 +00001583 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001584 3.14
1585 </Exception>
1586 <OverallResult success="false"/>
1587 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001588 <TestCase name="NotImplemented exception">
Phil Nashc6635a72014-12-30 18:25:27 +00001589 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001590 <Original>
1591 thisFunctionNotImplemented( 7 )
1592 </Original>
1593 <Expanded>
1594 thisFunctionNotImplemented( 7 )
1595 </Expanded>
1596 </Expression>
1597 <OverallResult success="true"/>
1598 </TestCase>
Phil Nash85de7432015-07-13 06:34:41 +01001599 <TestCase name="Exception messages can be tested for">
1600 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1601 <Original>
1602 thisThrows(), &quot;expected exception&quot;
1603 </Original>
1604 <Expanded>
1605 thisThrows(), &quot;expected exception&quot;
1606 </Expanded>
1607 </Expression>
1608 <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1609 <Original>
1610 thisThrows(), &quot;should fail&quot;
1611 </Original>
1612 <Expanded>
1613 expected exception
1614 </Expanded>
1615 </Expression>
1616 <OverallResult success="false"/>
1617 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001618 <TestCase name="Generators over two ranges">
Phil Nashc6635a72014-12-30 18:25:27 +00001619 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001620 <Original>
1621 multiply( i, 2 ) == i*2
1622 </Original>
1623 <Expanded>
1624 2 == 2
1625 </Expanded>
1626 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001627 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001628 <Original>
1629 multiply( j, 2 ) == j*2
1630 </Original>
1631 <Expanded>
1632 200 == 200
1633 </Expanded>
1634 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001635 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001636 <Original>
1637 multiply( i, 2 ) == i*2
1638 </Original>
1639 <Expanded>
1640 4 == 4
1641 </Expanded>
1642 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001643 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001644 <Original>
1645 multiply( j, 2 ) == j*2
1646 </Original>
1647 <Expanded>
1648 200 == 200
1649 </Expanded>
1650 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001651 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001652 <Original>
1653 multiply( i, 2 ) == i*2
1654 </Original>
1655 <Expanded>
1656 6 == 6
1657 </Expanded>
1658 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001659 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001660 <Original>
1661 multiply( j, 2 ) == j*2
1662 </Original>
1663 <Expanded>
1664 200 == 200
1665 </Expanded>
1666 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001667 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001668 <Original>
1669 multiply( i, 2 ) == i*2
1670 </Original>
1671 <Expanded>
1672 8 == 8
1673 </Expanded>
1674 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001675 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001676 <Original>
1677 multiply( j, 2 ) == j*2
1678 </Original>
1679 <Expanded>
1680 200 == 200
1681 </Expanded>
1682 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001683 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001684 <Original>
1685 multiply( i, 2 ) == i*2
1686 </Original>
1687 <Expanded>
1688 10 == 10
1689 </Expanded>
1690 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001691 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001692 <Original>
1693 multiply( j, 2 ) == j*2
1694 </Original>
1695 <Expanded>
1696 200 == 200
1697 </Expanded>
1698 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001699 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001700 <Original>
1701 multiply( i, 2 ) == i*2
1702 </Original>
1703 <Expanded>
1704 30 == 30
1705 </Expanded>
1706 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001707 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001708 <Original>
1709 multiply( j, 2 ) == j*2
1710 </Original>
1711 <Expanded>
1712 200 == 200
1713 </Expanded>
1714 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001715 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001716 <Original>
1717 multiply( i, 2 ) == i*2
1718 </Original>
1719 <Expanded>
1720 40 == 40
1721 </Expanded>
1722 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001723 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001724 <Original>
1725 multiply( j, 2 ) == j*2
1726 </Original>
1727 <Expanded>
1728 200 == 200
1729 </Expanded>
1730 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001731 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001732 <Original>
1733 multiply( i, 2 ) == i*2
1734 </Original>
1735 <Expanded>
1736 42 == 42
1737 </Expanded>
1738 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001739 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001740 <Original>
1741 multiply( j, 2 ) == j*2
1742 </Original>
1743 <Expanded>
1744 200 == 200
1745 </Expanded>
1746 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001747 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001748 <Original>
1749 multiply( i, 2 ) == i*2
1750 </Original>
1751 <Expanded>
1752 72 == 72
1753 </Expanded>
1754 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001755 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001756 <Original>
1757 multiply( j, 2 ) == j*2
1758 </Original>
1759 <Expanded>
1760 200 == 200
1761 </Expanded>
1762 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001763 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001764 <Original>
1765 multiply( i, 2 ) == i*2
1766 </Original>
1767 <Expanded>
1768 2 == 2
1769 </Expanded>
1770 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001771 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001772 <Original>
1773 multiply( j, 2 ) == j*2
1774 </Original>
1775 <Expanded>
1776 202 == 202
1777 </Expanded>
1778 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001779 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001780 <Original>
1781 multiply( i, 2 ) == i*2
1782 </Original>
1783 <Expanded>
1784 4 == 4
1785 </Expanded>
1786 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001787 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001788 <Original>
1789 multiply( j, 2 ) == j*2
1790 </Original>
1791 <Expanded>
1792 202 == 202
1793 </Expanded>
1794 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001795 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001796 <Original>
1797 multiply( i, 2 ) == i*2
1798 </Original>
1799 <Expanded>
1800 6 == 6
1801 </Expanded>
1802 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001803 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001804 <Original>
1805 multiply( j, 2 ) == j*2
1806 </Original>
1807 <Expanded>
1808 202 == 202
1809 </Expanded>
1810 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001811 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001812 <Original>
1813 multiply( i, 2 ) == i*2
1814 </Original>
1815 <Expanded>
1816 8 == 8
1817 </Expanded>
1818 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001819 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001820 <Original>
1821 multiply( j, 2 ) == j*2
1822 </Original>
1823 <Expanded>
1824 202 == 202
1825 </Expanded>
1826 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001827 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001828 <Original>
1829 multiply( i, 2 ) == i*2
1830 </Original>
1831 <Expanded>
1832 10 == 10
1833 </Expanded>
1834 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001835 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001836 <Original>
1837 multiply( j, 2 ) == j*2
1838 </Original>
1839 <Expanded>
1840 202 == 202
1841 </Expanded>
1842 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001843 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001844 <Original>
1845 multiply( i, 2 ) == i*2
1846 </Original>
1847 <Expanded>
1848 30 == 30
1849 </Expanded>
1850 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001851 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001852 <Original>
1853 multiply( j, 2 ) == j*2
1854 </Original>
1855 <Expanded>
1856 202 == 202
1857 </Expanded>
1858 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001859 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001860 <Original>
1861 multiply( i, 2 ) == i*2
1862 </Original>
1863 <Expanded>
1864 40 == 40
1865 </Expanded>
1866 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001867 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001868 <Original>
1869 multiply( j, 2 ) == j*2
1870 </Original>
1871 <Expanded>
1872 202 == 202
1873 </Expanded>
1874 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001875 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001876 <Original>
1877 multiply( i, 2 ) == i*2
1878 </Original>
1879 <Expanded>
1880 42 == 42
1881 </Expanded>
1882 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001883 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001884 <Original>
1885 multiply( j, 2 ) == j*2
1886 </Original>
1887 <Expanded>
1888 202 == 202
1889 </Expanded>
1890 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001891 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001892 <Original>
1893 multiply( i, 2 ) == i*2
1894 </Original>
1895 <Expanded>
1896 72 == 72
1897 </Expanded>
1898 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001899 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001900 <Original>
1901 multiply( j, 2 ) == j*2
1902 </Original>
1903 <Expanded>
1904 202 == 202
1905 </Expanded>
1906 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001907 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001908 <Original>
1909 multiply( i, 2 ) == i*2
1910 </Original>
1911 <Expanded>
1912 2 == 2
1913 </Expanded>
1914 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001915 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001916 <Original>
1917 multiply( j, 2 ) == j*2
1918 </Original>
1919 <Expanded>
1920 204 == 204
1921 </Expanded>
1922 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001923 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001924 <Original>
1925 multiply( i, 2 ) == i*2
1926 </Original>
1927 <Expanded>
1928 4 == 4
1929 </Expanded>
1930 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001931 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001932 <Original>
1933 multiply( j, 2 ) == j*2
1934 </Original>
1935 <Expanded>
1936 204 == 204
1937 </Expanded>
1938 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001939 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001940 <Original>
1941 multiply( i, 2 ) == i*2
1942 </Original>
1943 <Expanded>
1944 6 == 6
1945 </Expanded>
1946 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001947 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001948 <Original>
1949 multiply( j, 2 ) == j*2
1950 </Original>
1951 <Expanded>
1952 204 == 204
1953 </Expanded>
1954 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001955 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001956 <Original>
1957 multiply( i, 2 ) == i*2
1958 </Original>
1959 <Expanded>
1960 8 == 8
1961 </Expanded>
1962 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001963 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001964 <Original>
1965 multiply( j, 2 ) == j*2
1966 </Original>
1967 <Expanded>
1968 204 == 204
1969 </Expanded>
1970 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001971 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001972 <Original>
1973 multiply( i, 2 ) == i*2
1974 </Original>
1975 <Expanded>
1976 10 == 10
1977 </Expanded>
1978 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001979 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001980 <Original>
1981 multiply( j, 2 ) == j*2
1982 </Original>
1983 <Expanded>
1984 204 == 204
1985 </Expanded>
1986 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001987 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001988 <Original>
1989 multiply( i, 2 ) == i*2
1990 </Original>
1991 <Expanded>
1992 30 == 30
1993 </Expanded>
1994 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001995 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001996 <Original>
1997 multiply( j, 2 ) == j*2
1998 </Original>
1999 <Expanded>
2000 204 == 204
2001 </Expanded>
2002 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002003 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002004 <Original>
2005 multiply( i, 2 ) == i*2
2006 </Original>
2007 <Expanded>
2008 40 == 40
2009 </Expanded>
2010 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002011 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002012 <Original>
2013 multiply( j, 2 ) == j*2
2014 </Original>
2015 <Expanded>
2016 204 == 204
2017 </Expanded>
2018 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002019 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002020 <Original>
2021 multiply( i, 2 ) == i*2
2022 </Original>
2023 <Expanded>
2024 42 == 42
2025 </Expanded>
2026 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002027 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002028 <Original>
2029 multiply( j, 2 ) == j*2
2030 </Original>
2031 <Expanded>
2032 204 == 204
2033 </Expanded>
2034 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002035 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002036 <Original>
2037 multiply( i, 2 ) == i*2
2038 </Original>
2039 <Expanded>
2040 72 == 72
2041 </Expanded>
2042 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002043 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002044 <Original>
2045 multiply( j, 2 ) == j*2
2046 </Original>
2047 <Expanded>
2048 204 == 204
2049 </Expanded>
2050 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002051 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002052 <Original>
2053 multiply( i, 2 ) == i*2
2054 </Original>
2055 <Expanded>
2056 2 == 2
2057 </Expanded>
2058 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002059 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002060 <Original>
2061 multiply( j, 2 ) == j*2
2062 </Original>
2063 <Expanded>
2064 206 == 206
2065 </Expanded>
2066 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002067 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002068 <Original>
2069 multiply( i, 2 ) == i*2
2070 </Original>
2071 <Expanded>
2072 4 == 4
2073 </Expanded>
2074 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002075 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002076 <Original>
2077 multiply( j, 2 ) == j*2
2078 </Original>
2079 <Expanded>
2080 206 == 206
2081 </Expanded>
2082 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002083 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002084 <Original>
2085 multiply( i, 2 ) == i*2
2086 </Original>
2087 <Expanded>
2088 6 == 6
2089 </Expanded>
2090 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002091 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002092 <Original>
2093 multiply( j, 2 ) == j*2
2094 </Original>
2095 <Expanded>
2096 206 == 206
2097 </Expanded>
2098 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002099 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002100 <Original>
2101 multiply( i, 2 ) == i*2
2102 </Original>
2103 <Expanded>
2104 8 == 8
2105 </Expanded>
2106 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002107 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002108 <Original>
2109 multiply( j, 2 ) == j*2
2110 </Original>
2111 <Expanded>
2112 206 == 206
2113 </Expanded>
2114 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002115 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002116 <Original>
2117 multiply( i, 2 ) == i*2
2118 </Original>
2119 <Expanded>
2120 10 == 10
2121 </Expanded>
2122 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002123 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002124 <Original>
2125 multiply( j, 2 ) == j*2
2126 </Original>
2127 <Expanded>
2128 206 == 206
2129 </Expanded>
2130 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002131 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002132 <Original>
2133 multiply( i, 2 ) == i*2
2134 </Original>
2135 <Expanded>
2136 30 == 30
2137 </Expanded>
2138 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002139 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002140 <Original>
2141 multiply( j, 2 ) == j*2
2142 </Original>
2143 <Expanded>
2144 206 == 206
2145 </Expanded>
2146 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002147 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002148 <Original>
2149 multiply( i, 2 ) == i*2
2150 </Original>
2151 <Expanded>
2152 40 == 40
2153 </Expanded>
2154 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002155 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002156 <Original>
2157 multiply( j, 2 ) == j*2
2158 </Original>
2159 <Expanded>
2160 206 == 206
2161 </Expanded>
2162 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002163 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002164 <Original>
2165 multiply( i, 2 ) == i*2
2166 </Original>
2167 <Expanded>
2168 42 == 42
2169 </Expanded>
2170 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002171 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002172 <Original>
2173 multiply( j, 2 ) == j*2
2174 </Original>
2175 <Expanded>
2176 206 == 206
2177 </Expanded>
2178 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002179 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002180 <Original>
2181 multiply( i, 2 ) == i*2
2182 </Original>
2183 <Expanded>
2184 72 == 72
2185 </Expanded>
2186 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002187 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002188 <Original>
2189 multiply( j, 2 ) == j*2
2190 </Original>
2191 <Expanded>
2192 206 == 206
2193 </Expanded>
2194 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002195 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002196 <Original>
2197 multiply( i, 2 ) == i*2
2198 </Original>
2199 <Expanded>
2200 2 == 2
2201 </Expanded>
2202 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002203 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002204 <Original>
2205 multiply( j, 2 ) == j*2
2206 </Original>
2207 <Expanded>
2208 208 == 208
2209 </Expanded>
2210 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002211 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002212 <Original>
2213 multiply( i, 2 ) == i*2
2214 </Original>
2215 <Expanded>
2216 4 == 4
2217 </Expanded>
2218 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002219 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002220 <Original>
2221 multiply( j, 2 ) == j*2
2222 </Original>
2223 <Expanded>
2224 208 == 208
2225 </Expanded>
2226 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002227 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002228 <Original>
2229 multiply( i, 2 ) == i*2
2230 </Original>
2231 <Expanded>
2232 6 == 6
2233 </Expanded>
2234 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002235 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002236 <Original>
2237 multiply( j, 2 ) == j*2
2238 </Original>
2239 <Expanded>
2240 208 == 208
2241 </Expanded>
2242 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002243 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002244 <Original>
2245 multiply( i, 2 ) == i*2
2246 </Original>
2247 <Expanded>
2248 8 == 8
2249 </Expanded>
2250 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002251 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002252 <Original>
2253 multiply( j, 2 ) == j*2
2254 </Original>
2255 <Expanded>
2256 208 == 208
2257 </Expanded>
2258 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002259 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002260 <Original>
2261 multiply( i, 2 ) == i*2
2262 </Original>
2263 <Expanded>
2264 10 == 10
2265 </Expanded>
2266 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002267 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002268 <Original>
2269 multiply( j, 2 ) == j*2
2270 </Original>
2271 <Expanded>
2272 208 == 208
2273 </Expanded>
2274 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002275 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002276 <Original>
2277 multiply( i, 2 ) == i*2
2278 </Original>
2279 <Expanded>
2280 30 == 30
2281 </Expanded>
2282 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002283 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002284 <Original>
2285 multiply( j, 2 ) == j*2
2286 </Original>
2287 <Expanded>
2288 208 == 208
2289 </Expanded>
2290 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002291 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002292 <Original>
2293 multiply( i, 2 ) == i*2
2294 </Original>
2295 <Expanded>
2296 40 == 40
2297 </Expanded>
2298 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002299 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002300 <Original>
2301 multiply( j, 2 ) == j*2
2302 </Original>
2303 <Expanded>
2304 208 == 208
2305 </Expanded>
2306 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002307 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002308 <Original>
2309 multiply( i, 2 ) == i*2
2310 </Original>
2311 <Expanded>
2312 42 == 42
2313 </Expanded>
2314 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002315 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002316 <Original>
2317 multiply( j, 2 ) == j*2
2318 </Original>
2319 <Expanded>
2320 208 == 208
2321 </Expanded>
2322 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002323 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002324 <Original>
2325 multiply( i, 2 ) == i*2
2326 </Original>
2327 <Expanded>
2328 72 == 72
2329 </Expanded>
2330 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002331 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002332 <Original>
2333 multiply( j, 2 ) == j*2
2334 </Original>
2335 <Expanded>
2336 208 == 208
2337 </Expanded>
2338 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002339 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002340 <Original>
2341 multiply( i, 2 ) == i*2
2342 </Original>
2343 <Expanded>
2344 2 == 2
2345 </Expanded>
2346 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002347 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002348 <Original>
2349 multiply( j, 2 ) == j*2
2350 </Original>
2351 <Expanded>
2352 210 == 210
2353 </Expanded>
2354 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002355 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002356 <Original>
2357 multiply( i, 2 ) == i*2
2358 </Original>
2359 <Expanded>
2360 4 == 4
2361 </Expanded>
2362 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002363 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002364 <Original>
2365 multiply( j, 2 ) == j*2
2366 </Original>
2367 <Expanded>
2368 210 == 210
2369 </Expanded>
2370 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002371 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002372 <Original>
2373 multiply( i, 2 ) == i*2
2374 </Original>
2375 <Expanded>
2376 6 == 6
2377 </Expanded>
2378 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002379 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002380 <Original>
2381 multiply( j, 2 ) == j*2
2382 </Original>
2383 <Expanded>
2384 210 == 210
2385 </Expanded>
2386 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002387 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002388 <Original>
2389 multiply( i, 2 ) == i*2
2390 </Original>
2391 <Expanded>
2392 8 == 8
2393 </Expanded>
2394 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002395 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002396 <Original>
2397 multiply( j, 2 ) == j*2
2398 </Original>
2399 <Expanded>
2400 210 == 210
2401 </Expanded>
2402 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002403 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002404 <Original>
2405 multiply( i, 2 ) == i*2
2406 </Original>
2407 <Expanded>
2408 10 == 10
2409 </Expanded>
2410 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002411 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002412 <Original>
2413 multiply( j, 2 ) == j*2
2414 </Original>
2415 <Expanded>
2416 210 == 210
2417 </Expanded>
2418 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002419 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002420 <Original>
2421 multiply( i, 2 ) == i*2
2422 </Original>
2423 <Expanded>
2424 30 == 30
2425 </Expanded>
2426 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002427 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002428 <Original>
2429 multiply( j, 2 ) == j*2
2430 </Original>
2431 <Expanded>
2432 210 == 210
2433 </Expanded>
2434 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002435 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002436 <Original>
2437 multiply( i, 2 ) == i*2
2438 </Original>
2439 <Expanded>
2440 40 == 40
2441 </Expanded>
2442 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002443 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002444 <Original>
2445 multiply( j, 2 ) == j*2
2446 </Original>
2447 <Expanded>
2448 210 == 210
2449 </Expanded>
2450 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002451 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002452 <Original>
2453 multiply( i, 2 ) == i*2
2454 </Original>
2455 <Expanded>
2456 42 == 42
2457 </Expanded>
2458 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002459 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002460 <Original>
2461 multiply( j, 2 ) == j*2
2462 </Original>
2463 <Expanded>
2464 210 == 210
2465 </Expanded>
2466 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002467 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002468 <Original>
2469 multiply( i, 2 ) == i*2
2470 </Original>
2471 <Expanded>
2472 72 == 72
2473 </Expanded>
2474 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002475 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002476 <Original>
2477 multiply( j, 2 ) == j*2
2478 </Original>
2479 <Expanded>
2480 210 == 210
2481 </Expanded>
2482 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002483 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002484 <Original>
2485 multiply( i, 2 ) == i*2
2486 </Original>
2487 <Expanded>
2488 2 == 2
2489 </Expanded>
2490 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002491 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002492 <Original>
2493 multiply( j, 2 ) == j*2
2494 </Original>
2495 <Expanded>
2496 212 == 212
2497 </Expanded>
2498 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002499 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002500 <Original>
2501 multiply( i, 2 ) == i*2
2502 </Original>
2503 <Expanded>
2504 4 == 4
2505 </Expanded>
2506 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002507 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002508 <Original>
2509 multiply( j, 2 ) == j*2
2510 </Original>
2511 <Expanded>
2512 212 == 212
2513 </Expanded>
2514 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002515 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002516 <Original>
2517 multiply( i, 2 ) == i*2
2518 </Original>
2519 <Expanded>
2520 6 == 6
2521 </Expanded>
2522 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002523 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002524 <Original>
2525 multiply( j, 2 ) == j*2
2526 </Original>
2527 <Expanded>
2528 212 == 212
2529 </Expanded>
2530 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002531 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002532 <Original>
2533 multiply( i, 2 ) == i*2
2534 </Original>
2535 <Expanded>
2536 8 == 8
2537 </Expanded>
2538 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002539 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002540 <Original>
2541 multiply( j, 2 ) == j*2
2542 </Original>
2543 <Expanded>
2544 212 == 212
2545 </Expanded>
2546 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002547 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002548 <Original>
2549 multiply( i, 2 ) == i*2
2550 </Original>
2551 <Expanded>
2552 10 == 10
2553 </Expanded>
2554 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002555 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002556 <Original>
2557 multiply( j, 2 ) == j*2
2558 </Original>
2559 <Expanded>
2560 212 == 212
2561 </Expanded>
2562 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002563 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002564 <Original>
2565 multiply( i, 2 ) == i*2
2566 </Original>
2567 <Expanded>
2568 30 == 30
2569 </Expanded>
2570 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002571 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002572 <Original>
2573 multiply( j, 2 ) == j*2
2574 </Original>
2575 <Expanded>
2576 212 == 212
2577 </Expanded>
2578 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002579 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002580 <Original>
2581 multiply( i, 2 ) == i*2
2582 </Original>
2583 <Expanded>
2584 40 == 40
2585 </Expanded>
2586 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002587 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002588 <Original>
2589 multiply( j, 2 ) == j*2
2590 </Original>
2591 <Expanded>
2592 212 == 212
2593 </Expanded>
2594 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002595 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002596 <Original>
2597 multiply( i, 2 ) == i*2
2598 </Original>
2599 <Expanded>
2600 42 == 42
2601 </Expanded>
2602 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002603 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002604 <Original>
2605 multiply( j, 2 ) == j*2
2606 </Original>
2607 <Expanded>
2608 212 == 212
2609 </Expanded>
2610 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002611 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002612 <Original>
2613 multiply( i, 2 ) == i*2
2614 </Original>
2615 <Expanded>
2616 72 == 72
2617 </Expanded>
2618 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002619 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002620 <Original>
2621 multiply( j, 2 ) == j*2
2622 </Original>
2623 <Expanded>
2624 212 == 212
2625 </Expanded>
2626 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002627 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002628 <Original>
2629 multiply( i, 2 ) == i*2
2630 </Original>
2631 <Expanded>
2632 2 == 2
2633 </Expanded>
2634 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002635 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002636 <Original>
2637 multiply( j, 2 ) == j*2
2638 </Original>
2639 <Expanded>
2640 214 == 214
2641 </Expanded>
2642 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002643 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002644 <Original>
2645 multiply( i, 2 ) == i*2
2646 </Original>
2647 <Expanded>
2648 4 == 4
2649 </Expanded>
2650 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002651 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002652 <Original>
2653 multiply( j, 2 ) == j*2
2654 </Original>
2655 <Expanded>
2656 214 == 214
2657 </Expanded>
2658 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002659 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002660 <Original>
2661 multiply( i, 2 ) == i*2
2662 </Original>
2663 <Expanded>
2664 6 == 6
2665 </Expanded>
2666 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002667 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002668 <Original>
2669 multiply( j, 2 ) == j*2
2670 </Original>
2671 <Expanded>
2672 214 == 214
2673 </Expanded>
2674 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002675 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002676 <Original>
2677 multiply( i, 2 ) == i*2
2678 </Original>
2679 <Expanded>
2680 8 == 8
2681 </Expanded>
2682 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002683 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002684 <Original>
2685 multiply( j, 2 ) == j*2
2686 </Original>
2687 <Expanded>
2688 214 == 214
2689 </Expanded>
2690 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002691 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002692 <Original>
2693 multiply( i, 2 ) == i*2
2694 </Original>
2695 <Expanded>
2696 10 == 10
2697 </Expanded>
2698 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002699 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002700 <Original>
2701 multiply( j, 2 ) == j*2
2702 </Original>
2703 <Expanded>
2704 214 == 214
2705 </Expanded>
2706 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002707 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002708 <Original>
2709 multiply( i, 2 ) == i*2
2710 </Original>
2711 <Expanded>
2712 30 == 30
2713 </Expanded>
2714 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002715 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002716 <Original>
2717 multiply( j, 2 ) == j*2
2718 </Original>
2719 <Expanded>
2720 214 == 214
2721 </Expanded>
2722 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002723 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002724 <Original>
2725 multiply( i, 2 ) == i*2
2726 </Original>
2727 <Expanded>
2728 40 == 40
2729 </Expanded>
2730 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002731 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002732 <Original>
2733 multiply( j, 2 ) == j*2
2734 </Original>
2735 <Expanded>
2736 214 == 214
2737 </Expanded>
2738 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002739 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002740 <Original>
2741 multiply( i, 2 ) == i*2
2742 </Original>
2743 <Expanded>
2744 42 == 42
2745 </Expanded>
2746 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002747 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002748 <Original>
2749 multiply( j, 2 ) == j*2
2750 </Original>
2751 <Expanded>
2752 214 == 214
2753 </Expanded>
2754 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002755 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002756 <Original>
2757 multiply( i, 2 ) == i*2
2758 </Original>
2759 <Expanded>
2760 72 == 72
2761 </Expanded>
2762 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002763 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002764 <Original>
2765 multiply( j, 2 ) == j*2
2766 </Original>
2767 <Expanded>
2768 214 == 214
2769 </Expanded>
2770 </Expression>
2771 <OverallResult success="true"/>
2772 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002773 <TestCase name="Generator over a range of pairs">
Phil Nashc6635a72014-12-30 18:25:27 +00002774 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002775 <Original>
2776 i->first == i->second-1
2777 </Original>
2778 <Expanded>
2779 0 == 0
2780 </Expanded>
2781 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002782 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002783 <Original>
2784 i->first == i->second-1
2785 </Original>
2786 <Expanded>
2787 2 == 2
2788 </Expanded>
2789 </Expression>
2790 <OverallResult success="true"/>
2791 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002792 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002793 <Info>
2794 this is a message
2795 </Info>
2796 <Warning>
2797 this is a warning
2798 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00002799 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002800 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002801 <TestCase name="SUCCEED counts as a test pass">
Phil Nash2f7a2962013-09-27 19:01:14 +01002802 <OverallResult success="true"/>
2803 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002804 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002805 <Info>
2806 this message should be logged
2807 </Info>
2808 <Info>
2809 so should this
2810 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002811 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002812 <Original>
2813 a == 1
2814 </Original>
2815 <Expanded>
2816 2 == 1
2817 </Expanded>
2818 </Expression>
2819 <OverallResult success="false"/>
2820 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002821 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nashc6635a72014-12-30 18:25:27 +00002822 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002823 <Original>
2824 a == 2
2825 </Original>
2826 <Expanded>
2827 2 == 2
2828 </Expanded>
2829 </Expression>
2830 <Info>
2831 this message should be logged
2832 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002833 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002834 <Original>
2835 a == 1
2836 </Original>
2837 <Expanded>
2838 2 == 1
2839 </Expanded>
2840 </Expression>
2841 <Info>
2842 and this, but later
2843 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002844 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002845 <Original>
2846 a == 0
2847 </Original>
2848 <Expanded>
2849 2 == 0
2850 </Expanded>
2851 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002852 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002853 <Original>
2854 a == 2
2855 </Original>
2856 <Expanded>
2857 2 == 2
2858 </Expanded>
2859 </Expression>
2860 <OverallResult success="false"/>
2861 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002862 <TestCase name="FAIL aborts the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002863 <Failure>
2864 This is a failure
2865 </Failure>
2866 <OverallResult success="false"/>
2867 </TestCase>
Phil Nash859760a2013-12-14 14:34:05 +00002868 <TestCase name="FAIL does not require an argument">
2869 <Failure/>
2870 <OverallResult success="false"/>
2871 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00002872 <TestCase name="SUCCESS does not require an argument">
2873 <OverallResult success="true"/>
2874 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002875 <TestCase name="Output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002876 <Section name="one">
2877 <Failure>
2878 Message from section one
2879 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002880 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002881 </Section>
2882 <Section name="two">
2883 <Failure>
2884 Message from section two
2885 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002886 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002887 </Section>
2888 <OverallResult success="false"/>
2889 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002890 <TestCase name="Standard output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002891 <Section name="one">
Phil Nash9c1f9a82014-07-03 08:09:57 +01002892 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002893 </Section>
2894 <Section name="two">
Phil Nash9c1f9a82014-07-03 08:09:57 +01002895 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002896 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00002897 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002898 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002899 <TestCase name="SCOPED_INFO is reset for each loop">
Phil Nashc6635a72014-12-30 18:25:27 +00002900 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002901 <Original>
2902 i &lt; 10
2903 </Original>
2904 <Expanded>
2905 0 &lt; 10
2906 </Expanded>
2907 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002908 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002909 <Original>
2910 i &lt; 10
2911 </Original>
2912 <Expanded>
2913 1 &lt; 10
2914 </Expanded>
2915 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002916 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002917 <Original>
2918 i &lt; 10
2919 </Original>
2920 <Expanded>
2921 2 &lt; 10
2922 </Expanded>
2923 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002924 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002925 <Original>
2926 i &lt; 10
2927 </Original>
2928 <Expanded>
2929 3 &lt; 10
2930 </Expanded>
2931 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002932 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002933 <Original>
2934 i &lt; 10
2935 </Original>
2936 <Expanded>
2937 4 &lt; 10
2938 </Expanded>
2939 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002940 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002941 <Original>
2942 i &lt; 10
2943 </Original>
2944 <Expanded>
2945 5 &lt; 10
2946 </Expanded>
2947 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002948 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002949 <Original>
2950 i &lt; 10
2951 </Original>
2952 <Expanded>
2953 6 &lt; 10
2954 </Expanded>
2955 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002956 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002957 <Original>
2958 i &lt; 10
2959 </Original>
2960 <Expanded>
2961 7 &lt; 10
2962 </Expanded>
2963 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002964 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002965 <Original>
2966 i &lt; 10
2967 </Original>
2968 <Expanded>
2969 8 &lt; 10
2970 </Expanded>
2971 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002972 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002973 <Original>
2974 i &lt; 10
2975 </Original>
2976 <Expanded>
2977 9 &lt; 10
2978 </Expanded>
2979 </Expression>
2980 <Info>
2981 current counter 10
2982 </Info>
2983 <Info>
2984 i := 10
2985 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002986 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002987 <Original>
2988 i &lt; 10
2989 </Original>
2990 <Expanded>
2991 10 &lt; 10
2992 </Expanded>
2993 </Expression>
2994 <OverallResult success="false"/>
2995 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002996 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00002997 <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002998 <Original>
2999 1 == 2
3000 </Original>
3001 <Expanded>
3002 1 == 2
3003 </Expanded>
3004 </Expression>
3005 <OverallResult success="false"/>
3006 </TestCase>
3007 <TestCase name="just info">
Phil Nash6817bb02014-12-30 18:24:31 +00003008 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003009 </TestCase>
3010 <TestCase name="just failure">
3011 <Failure>
3012 Previous info should not be seen
3013 </Failure>
3014 <OverallResult success="false"/>
3015 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003016 <TestCase name="sends information to INFO">
3017 <Info>
3018 hi
3019 </Info>
3020 <Info>
3021 i := 7
3022 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003023 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash337dc252013-11-19 07:21:03 +00003024 <Original>
3025 false
3026 </Original>
3027 <Expanded>
3028 false
3029 </Expanded>
3030 </Expression>
3031 <OverallResult success="false"/>
3032 </TestCase>
Phil Nash14796812014-05-23 18:55:05 +01003033 <TestCase name="Pointers can be converted to strings">
3034 <Warning>
3035 actual address of p: 0x<hex digits>
3036 </Warning>
3037 <Warning>
3038 toString(p): 0x<hex digits>
3039 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00003040 <OverallResult success="false"/>
Phil Nash14796812014-05-23 18:55:05 +01003041 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003042 <TestCase name="random SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003043 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003044 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003045 <Original>
3046 a != b
3047 </Original>
3048 <Expanded>
3049 1 != 2
3050 </Expanded>
3051 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003052 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003053 <Original>
3054 b != a
3055 </Original>
3056 <Expanded>
3057 2 != 1
3058 </Expanded>
3059 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003060 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003061 </Section>
3062 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003063 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003064 <Original>
3065 a != b
3066 </Original>
3067 <Expanded>
3068 1 != 2
3069 </Expanded>
3070 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003071 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003072 </Section>
3073 <OverallResult success="true"/>
3074 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003075 <TestCase name="nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003076 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003077 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003078 <Original>
3079 a != b
3080 </Original>
3081 <Expanded>
3082 1 != 2
3083 </Expanded>
3084 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003085 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003086 <Original>
3087 b != a
3088 </Original>
3089 <Expanded>
3090 2 != 1
3091 </Expanded>
3092 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003093 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003094 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003095 <Original>
3096 a != b
3097 </Original>
3098 <Expanded>
3099 1 != 2
3100 </Expanded>
3101 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003102 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003103 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003104 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003105 </Section>
3106 <OverallResult success="true"/>
3107 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003108 <TestCase name="more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003109 <Section name="s1" description="doesn't equal">
Phil Nash2f7a2962013-09-27 19:01:14 +01003110 <Section name="s2" description="equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003111 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003112 <Original>
3113 a == b
3114 </Original>
3115 <Expanded>
3116 1 == 2
3117 </Expanded>
3118 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003119 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003120 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003121 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003122 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01003123 <OverallResult success="false"/>
3124 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003125 <TestCase name="even more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003126 <Section name="c">
Phil Nash2f7a2962013-09-27 19:01:14 +01003127 <Section name="d (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003128 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003129 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003130 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003131 </Section>
3132 <Section name="c">
3133 <Section name="e (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003134 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003135 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003136 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003137 </Section>
3138 <Section name="f (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003139 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003140 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00003141 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003142 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003143 <TestCase name="looped SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003144 <Section name="s1" description="b is currently: 0">
Phil Nashc6635a72014-12-30 18:25:27 +00003145 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003146 <Original>
3147 b > a
3148 </Original>
3149 <Expanded>
3150 0 > 1
3151 </Expanded>
3152 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003153 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003154 </Section>
3155 <OverallResult success="false"/>
3156 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003157 <TestCase name="looped tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003158 <Info>
3159 Testing if fib[0] (1) is even
3160 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003161 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003162 <Original>
3163 ( fib[i] % 2 ) == 0
3164 </Original>
3165 <Expanded>
3166 1 == 0
3167 </Expanded>
3168 </Expression>
3169 <Info>
3170 Testing if fib[1] (1) is even
3171 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003172 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003173 <Original>
3174 ( fib[i] % 2 ) == 0
3175 </Original>
3176 <Expanded>
3177 1 == 0
3178 </Expanded>
3179 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003180 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003181 <Original>
3182 ( fib[i] % 2 ) == 0
3183 </Original>
3184 <Expanded>
3185 0 == 0
3186 </Expanded>
3187 </Expression>
3188 <Info>
3189 Testing if fib[3] (3) is even
3190 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003191 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003192 <Original>
3193 ( fib[i] % 2 ) == 0
3194 </Original>
3195 <Expanded>
3196 1 == 0
3197 </Expanded>
3198 </Expression>
3199 <Info>
3200 Testing if fib[4] (5) is even
3201 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003202 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003203 <Original>
3204 ( fib[i] % 2 ) == 0
3205 </Original>
3206 <Expanded>
3207 1 == 0
3208 </Expanded>
3209 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003210 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003211 <Original>
3212 ( fib[i] % 2 ) == 0
3213 </Original>
3214 <Expanded>
3215 0 == 0
3216 </Expanded>
3217 </Expression>
3218 <Info>
3219 Testing if fib[6] (13) is even
3220 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003221 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003222 <Original>
3223 ( fib[i] % 2 ) == 0
3224 </Original>
3225 <Expanded>
3226 1 == 0
3227 </Expanded>
3228 </Expression>
3229 <Info>
3230 Testing if fib[7] (21) is even
3231 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003232 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003233 <Original>
3234 ( fib[i] % 2 ) == 0
3235 </Original>
3236 <Expanded>
3237 1 == 0
3238 </Expanded>
3239 </Expression>
3240 <OverallResult success="false"/>
3241 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003242 <TestCase name="Sends stuff to stdout and stderr">
Phil Nash6817bb02014-12-30 18:24:31 +00003243 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003244 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003245 <TestCase name="null strings">
Phil Nashc6635a72014-12-30 18:25:27 +00003246 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003247 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003248 makeString( false ) != static_cast&lt;char*>(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003249 </Original>
3250 <Expanded>
3251 &quot;valid string&quot; != {null string}
3252 </Expanded>
3253 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003254 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003255 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003256 makeString( true ) == static_cast&lt;char*>(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003257 </Original>
3258 <Expanded>
3259 {null string} == {null string}
3260 </Expanded>
3261 </Expression>
3262 <OverallResult success="true"/>
3263 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003264 <TestCase name="checkedIf">
Phil Nashc6635a72014-12-30 18:25:27 +00003265 <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003266 <Original>
3267 flag
3268 </Original>
3269 <Expanded>
3270 true
3271 </Expanded>
3272 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003273 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003274 <Original>
3275 testCheckedIf( true )
3276 </Original>
3277 <Expanded>
3278 true
3279 </Expanded>
3280 </Expression>
3281 <OverallResult success="true"/>
3282 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003283 <TestCase name="checkedIf, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003284 <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003285 <Original>
3286 flag
3287 </Original>
3288 <Expanded>
3289 false
3290 </Expanded>
3291 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003292 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003293 <Original>
3294 testCheckedIf( false )
3295 </Original>
3296 <Expanded>
3297 false
3298 </Expanded>
3299 </Expression>
3300 <OverallResult success="false"/>
3301 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003302 <TestCase name="checkedElse">
Phil Nashc6635a72014-12-30 18:25:27 +00003303 <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003304 <Original>
3305 flag
3306 </Original>
3307 <Expanded>
3308 true
3309 </Expanded>
3310 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003311 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003312 <Original>
3313 testCheckedElse( true )
3314 </Original>
3315 <Expanded>
3316 true
3317 </Expanded>
3318 </Expression>
3319 <OverallResult success="true"/>
3320 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003321 <TestCase name="checkedElse, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003322 <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003323 <Original>
3324 flag
3325 </Original>
3326 <Expanded>
3327 false
3328 </Expanded>
3329 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003330 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003331 <Original>
3332 testCheckedElse( false )
3333 </Original>
3334 <Expanded>
3335 false
3336 </Expanded>
3337 </Expression>
3338 <OverallResult success="false"/>
3339 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003340 <TestCase name="xmlentitycheck">
Phil Nash2f7a2962013-09-27 19:01:14 +01003341 <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>">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003342 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003343 </Section>
3344 <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;">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003345 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003346 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00003347 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003348 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003349 <TestCase name="send a single char to INFO">
Phil Nash2f7a2962013-09-27 19:01:14 +01003350 <Info>
3351 3
3352 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003353 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003354 <Original>
3355 false
3356 </Original>
3357 <Expanded>
3358 false
3359 </Expanded>
3360 </Expression>
3361 <OverallResult success="false"/>
3362 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003363 <TestCase name="atomic if">
Phil Nashc6635a72014-12-30 18:25:27 +00003364 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003365 <Original>
3366 x == 0
3367 </Original>
3368 <Expanded>
3369 0 == 0
3370 </Expanded>
3371 </Expression>
3372 <OverallResult success="true"/>
3373 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003374 <TestCase name="String matchers">
Phil Nashc6635a72014-12-30 18:25:27 +00003375 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003376 <Original>
3377 testStringForMatching() Contains( &quot;string&quot; )
3378 </Original>
3379 <Expanded>
3380 &quot;this string contains 'abc' as a substring&quot; contains: &quot;string&quot;
3381 </Expanded>
3382 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003383 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003384 <Original>
3385 testStringForMatching() Contains( &quot;abc&quot; )
3386 </Original>
3387 <Expanded>
3388 &quot;this string contains 'abc' as a substring&quot; contains: &quot;abc&quot;
3389 </Expanded>
3390 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003391 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003392 <Original>
3393 testStringForMatching() StartsWith( &quot;this&quot; )
3394 </Original>
3395 <Expanded>
3396 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;this&quot;
3397 </Expanded>
3398 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003399 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003400 <Original>
3401 testStringForMatching() EndsWith( &quot;substring&quot; )
3402 </Original>
3403 <Expanded>
3404 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;substring&quot;
3405 </Expanded>
3406 </Expression>
3407 <OverallResult success="true"/>
3408 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003409 <TestCase name="Contains string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003410 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003411 <Original>
3412 testStringForMatching() Contains( &quot;not there&quot; )
3413 </Original>
3414 <Expanded>
3415 &quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;
3416 </Expanded>
3417 </Expression>
3418 <OverallResult success="false"/>
3419 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003420 <TestCase name="StartsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003421 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003422 <Original>
3423 testStringForMatching() StartsWith( &quot;string&quot; )
3424 </Original>
3425 <Expanded>
3426 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;
3427 </Expanded>
3428 </Expression>
3429 <OverallResult success="false"/>
3430 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003431 <TestCase name="EndsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003432 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003433 <Original>
3434 testStringForMatching() EndsWith( &quot;this&quot; )
3435 </Original>
3436 <Expanded>
3437 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;
3438 </Expanded>
3439 </Expression>
3440 <OverallResult success="false"/>
3441 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003442 <TestCase name="Equals string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003443 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003444 <Original>
3445 testStringForMatching() Equals( &quot;something else&quot; )
3446 </Original>
3447 <Expanded>
3448 &quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;
3449 </Expanded>
3450 </Expression>
3451 <OverallResult success="false"/>
3452 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003453 <TestCase name="Equals string matcher, with NULL">
Phil Nashc6635a72014-12-30 18:25:27 +00003454 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003455 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003456 &quot;&quot; Equals(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003457 </Original>
3458 <Expanded>
3459 &quot;&quot; equals: &quot;&quot;
3460 </Expanded>
3461 </Expression>
3462 <OverallResult success="true"/>
3463 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003464 <TestCase name="AllOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003465 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003466 <Original>
3467 testStringForMatching() AllOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;abc&quot; ) )
3468 </Original>
3469 <Expanded>
3470 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; and contains: &quot;abc&quot; )
3471 </Expanded>
3472 </Expression>
3473 <OverallResult success="true"/>
3474 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003475 <TestCase name="AnyOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003476 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003477 <Original>
3478 testStringForMatching() AnyOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;not there&quot; ) )
3479 </Original>
3480 <Expanded>
3481 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; or contains: &quot;not there&quot; )
3482 </Expanded>
3483 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003484 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003485 <Original>
3486 testStringForMatching() AnyOf( Catch::Contains( &quot;not there&quot; ), Catch::Contains( &quot;string&quot; ) )
3487 </Original>
3488 <Expanded>
3489 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;not there&quot; or contains: &quot;string&quot; )
3490 </Expanded>
3491 </Expression>
3492 <OverallResult success="true"/>
3493 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003494 <TestCase name="Equals">
Phil Nashc6635a72014-12-30 18:25:27 +00003495 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003496 <Original>
3497 testStringForMatching() Equals( &quot;this string contains 'abc' as a substring&quot; )
3498 </Original>
3499 <Expanded>
3500 &quot;this string contains 'abc' as a substring&quot; equals: &quot;this string contains 'abc' as a substring&quot;
3501 </Expanded>
3502 </Expression>
3503 <OverallResult success="true"/>
3504 </TestCase>
3505 <TestCase name="Factorials are computed">
Phil Nashc6635a72014-12-30 18:25:27 +00003506 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003507 <Original>
3508 Factorial(0) == 1
3509 </Original>
3510 <Expanded>
3511 1 == 1
3512 </Expanded>
3513 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003514 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003515 <Original>
3516 Factorial(1) == 1
3517 </Original>
3518 <Expanded>
3519 1 == 1
3520 </Expanded>
3521 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003522 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003523 <Original>
3524 Factorial(2) == 2
3525 </Original>
3526 <Expanded>
3527 2 == 2
3528 </Expanded>
3529 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003530 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003531 <Original>
3532 Factorial(3) == 6
3533 </Original>
3534 <Expanded>
3535 6 == 6
3536 </Expanded>
3537 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003538 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003539 <Original>
3540 Factorial(10) == 3628800
3541 </Original>
3542 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01003543 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
Phil Nash2f7a2962013-09-27 19:01:14 +01003544 </Expanded>
3545 </Expression>
3546 <OverallResult success="true"/>
3547 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003548 <TestCase name="An empty test with no assertions">
Phil Nash6817bb02014-12-30 18:24:31 +00003549 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003550 </TestCase>
3551 <TestCase name="Nice descriptive name">
3552 <Warning>
3553 This one ran
3554 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00003555 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003556 </TestCase>
3557 <TestCase name="first tag">
Phil Nash6817bb02014-12-30 18:24:31 +00003558 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003559 </TestCase>
3560 <TestCase name="second tag">
Phil Nash6817bb02014-12-30 18:24:31 +00003561 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003562 </TestCase>
3563 <TestCase name="vectors can be sized and resized">
Phil Nashc6635a72014-12-30 18:25:27 +00003564 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003565 <Original>
3566 v.size() == 5
3567 </Original>
3568 <Expanded>
3569 5 == 5
3570 </Expanded>
3571 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003572 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003573 <Original>
3574 v.capacity() >= 5
3575 </Original>
3576 <Expanded>
3577 5 >= 5
3578 </Expanded>
3579 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003580 <Section name="resizing bigger changes size and capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003581 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003582 <Original>
3583 v.size() == 10
3584 </Original>
3585 <Expanded>
3586 10 == 10
3587 </Expanded>
3588 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003589 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003590 <Original>
3591 v.capacity() >= 10
3592 </Original>
3593 <Expanded>
3594 10 >= 10
3595 </Expanded>
3596 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003597 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003598 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003599 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003600 <Original>
3601 v.size() == 5
3602 </Original>
3603 <Expanded>
3604 5 == 5
3605 </Expanded>
3606 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003607 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003608 <Original>
3609 v.capacity() >= 5
3610 </Original>
3611 <Expanded>
3612 5 >= 5
3613 </Expanded>
3614 </Expression>
3615 <Section name="resizing smaller changes size but not capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003616 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003617 <Original>
3618 v.size() == 0
3619 </Original>
3620 <Expanded>
3621 0 == 0
3622 </Expanded>
3623 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003624 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003625 <Original>
3626 v.capacity() >= 5
3627 </Original>
3628 <Expanded>
3629 5 >= 5
3630 </Expanded>
3631 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003632 <Section name="We can use the 'swap trick' to reset the capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003633 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003634 <Original>
3635 v.capacity() == 0
3636 </Original>
3637 <Expanded>
3638 0 == 0
3639 </Expanded>
3640 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003641 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003642 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003643 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003644 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003645 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003646 <Original>
3647 v.size() == 5
3648 </Original>
3649 <Expanded>
3650 5 == 5
3651 </Expanded>
3652 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003653 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003654 <Original>
3655 v.capacity() >= 5
3656 </Original>
3657 <Expanded>
3658 5 >= 5
3659 </Expanded>
3660 </Expression>
3661 <Section name="reserving bigger changes capacity but not size">
Phil Nashc6635a72014-12-30 18:25:27 +00003662 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003663 <Original>
3664 v.size() == 5
3665 </Original>
3666 <Expanded>
3667 5 == 5
3668 </Expanded>
3669 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003670 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003671 <Original>
3672 v.capacity() >= 10
3673 </Original>
3674 <Expanded>
3675 10 >= 10
3676 </Expanded>
3677 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003678 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003679 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003680 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003681 <Original>
3682 v.size() == 5
3683 </Original>
3684 <Expanded>
3685 5 == 5
3686 </Expanded>
3687 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003688 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003689 <Original>
3690 v.capacity() >= 5
3691 </Original>
3692 <Expanded>
3693 5 >= 5
3694 </Expanded>
3695 </Expression>
3696 <Section name="reserving smaller does not change size or capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003697 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003698 <Original>
3699 v.size() == 5
3700 </Original>
3701 <Expanded>
3702 5 == 5
3703 </Expanded>
3704 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003705 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003706 <Original>
3707 v.capacity() >= 5
3708 </Original>
3709 <Expanded>
3710 5 >= 5
3711 </Expanded>
3712 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003713 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003714 </Section>
3715 <OverallResult success="true"/>
3716 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003717 <TestCase name="A couple of nested sections followed by a failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01003718 <Section name="Outer">
3719 <Section name="Inner">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003720 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003721 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003722 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003723 </Section>
3724 <Failure>
3725 to infinity and beyond
3726 </Failure>
3727 <OverallResult success="false"/>
3728 </TestCase>
Phil Nash20cad7c2014-04-15 18:44:37 +01003729 <TestCase name="not allowed">
3730 <OverallResult success="true"/>
3731 </TestCase>
Phil Nash31caba42014-04-23 07:07:27 +01003732 <TestCase name="Tabs and newlines show in output">
Phil Nashc6635a72014-12-30 18:25:27 +00003733 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash31caba42014-04-23 07:07:27 +01003734 <Original>
3735 s1 == s2
3736 </Original>
3737 <Expanded>
3738 &quot;if ($b == 10) {
3739 $a = 20;
3740}&quot;
3741==
3742&quot;if ($b == 10) {
3743 $a = 20;
3744}
3745&quot;
3746 </Expanded>
3747 </Expression>
3748 <OverallResult success="false"/>
3749 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01003750 <TestCase name="toString on const wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003751 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003752 <Original>
3753 result == &quot;\&quot;wide load\&quot;&quot;
3754 </Original>
3755 <Expanded>
3756 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3757 </Expanded>
3758 </Expression>
3759 <OverallResult success="true"/>
3760 </TestCase>
3761 <TestCase name="toString on const wchar_t pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003762 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003763 <Original>
3764 result == &quot;\&quot;wide load\&quot;&quot;
3765 </Original>
3766 <Expanded>
3767 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3768 </Expanded>
3769 </Expression>
3770 <OverallResult success="true"/>
3771 </TestCase>
3772 <TestCase name="toString on wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003773 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003774 <Original>
3775 result == &quot;\&quot;wide load\&quot;&quot;
3776 </Original>
3777 <Expanded>
3778 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3779 </Expanded>
3780 </Expression>
3781 <OverallResult success="true"/>
3782 </TestCase>
3783 <TestCase name="toString on wchar_t returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003784 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003785 <Original>
3786 result == &quot;\&quot;wide load\&quot;&quot;
3787 </Original>
3788 <Expanded>
3789 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3790 </Expanded>
3791 </Expression>
3792 <OverallResult success="true"/>
3793 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01003794 <TestCase name="Process can be configured on command line">
3795 <Section name="default - no arguments">
Phil Nashc6635a72014-12-30 18:25:27 +00003796 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003797 <Original>
3798 parseIntoConfig( argv, config )
3799 </Original>
3800 <Expanded>
3801 parseIntoConfig( argv, config )
3802 </Expanded>
3803 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003804 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003805 <Original>
3806 config.shouldDebugBreak == false
3807 </Original>
3808 <Expanded>
3809 false == false
3810 </Expanded>
3811 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003812 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003813 <Original>
3814 config.abortAfter == -1
3815 </Original>
3816 <Expanded>
3817 -1 == -1
3818 </Expanded>
3819 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003820 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003821 <Original>
3822 config.noThrow == false
3823 </Original>
3824 <Expanded>
3825 false == false
3826 </Expanded>
3827 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003828 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003829 <Original>
3830 config.reporterName.empty()
3831 </Original>
3832 <Expanded>
3833 true
3834 </Expanded>
3835 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003836 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003837 </Section>
3838 <Section name="test lists">
Phil Nash2f7a2962013-09-27 19:01:14 +01003839 <Section name="1 test" description="Specify one test case using">
Phil Nashc6635a72014-12-30 18:25:27 +00003840 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003841 <Original>
3842 parseIntoConfig( argv, config )
3843 </Original>
3844 <Expanded>
3845 parseIntoConfig( argv, config )
3846 </Expanded>
3847 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003848 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003849 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003850 cfg.testSpec().matches( fakeTestCase( &quot;notIncluded&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003851 </Original>
3852 <Expanded>
3853 false == false
3854 </Expanded>
3855 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003856 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003857 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003858 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003859 </Original>
3860 <Expanded>
3861 true
3862 </Expanded>
3863 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003864 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003865 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003866 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003867 </Section>
3868 <Section name="test lists">
3869 <Section name="Specify one test case exclusion using exclude:">
Phil Nashc6635a72014-12-30 18:25:27 +00003870 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003871 <Original>
3872 parseIntoConfig( argv, config )
3873 </Original>
3874 <Expanded>
3875 parseIntoConfig( argv, config )
3876 </Expanded>
3877 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003878 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003879 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003880 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003881 </Original>
3882 <Expanded>
3883 false == false
3884 </Expanded>
3885 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003886 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003887 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003888 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003889 </Original>
3890 <Expanded>
3891 true
3892 </Expanded>
3893 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003894 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003895 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003896 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003897 </Section>
3898 <Section name="test lists">
3899 <Section name="Specify one test case exclusion using ~">
Phil Nashc6635a72014-12-30 18:25:27 +00003900 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003901 <Original>
3902 parseIntoConfig( argv, config )
3903 </Original>
3904 <Expanded>
3905 parseIntoConfig( argv, config )
3906 </Expanded>
3907 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003908 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003909 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003910 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003911 </Original>
3912 <Expanded>
3913 false == false
3914 </Expanded>
3915 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003916 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003917 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003918 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003919 </Original>
3920 <Expanded>
3921 true
3922 </Expanded>
3923 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003924 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003925 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003926 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003927 </Section>
3928 <Section name="reporter">
Phil Nash2f7a2962013-09-27 19:01:14 +01003929 <Section name="-r/console">
Phil Nashc6635a72014-12-30 18:25:27 +00003930 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003931 <Original>
3932 parseIntoConfig( argv, config )
3933 </Original>
3934 <Expanded>
3935 parseIntoConfig( argv, config )
3936 </Expanded>
3937 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003938 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003939 <Original>
3940 config.reporterName == &quot;console&quot;
3941 </Original>
3942 <Expanded>
3943 &quot;console&quot; == &quot;console&quot;
3944 </Expanded>
3945 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003946 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003947 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003948 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003949 </Section>
3950 <Section name="reporter">
3951 <Section name="-r/xml">
Phil Nashc6635a72014-12-30 18:25:27 +00003952 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003953 <Original>
3954 parseIntoConfig( argv, config )
3955 </Original>
3956 <Expanded>
3957 parseIntoConfig( argv, config )
3958 </Expanded>
3959 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003960 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003961 <Original>
3962 config.reporterName == &quot;xml&quot;
3963 </Original>
3964 <Expanded>
3965 &quot;xml&quot; == &quot;xml&quot;
3966 </Expanded>
3967 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003968 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003969 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003970 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003971 </Section>
3972 <Section name="reporter">
3973 <Section name="--reporter/junit">
Phil Nashc6635a72014-12-30 18:25:27 +00003974 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003975 <Original>
3976 parseIntoConfig( argv, config )
3977 </Original>
3978 <Expanded>
3979 parseIntoConfig( argv, config )
3980 </Expanded>
3981 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003982 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003983 <Original>
3984 config.reporterName == &quot;junit&quot;
3985 </Original>
3986 <Expanded>
3987 &quot;junit&quot; == &quot;junit&quot;
3988 </Expanded>
3989 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003990 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003991 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003992 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003993 </Section>
3994 <Section name="debugger">
Phil Nash2f7a2962013-09-27 19:01:14 +01003995 <Section name="-b">
Phil Nashc6635a72014-12-30 18:25:27 +00003996 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003997 <Original>
3998 parseIntoConfig( argv, config )
3999 </Original>
4000 <Expanded>
4001 parseIntoConfig( argv, config )
4002 </Expanded>
4003 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004004 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004005 <Original>
4006 config.shouldDebugBreak == true
4007 </Original>
4008 <Expanded>
4009 true == true
4010 </Expanded>
4011 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004012 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004013 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004014 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004015 </Section>
4016 <Section name="debugger">
4017 <Section name="--break">
Phil Nashc6635a72014-12-30 18:25:27 +00004018 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004019 <Original>
4020 parseIntoConfig( argv, config )
4021 </Original>
4022 <Expanded>
4023 parseIntoConfig( argv, config )
4024 </Expanded>
4025 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004026 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004027 <Original>
4028 config.shouldDebugBreak
4029 </Original>
4030 <Expanded>
4031 true
4032 </Expanded>
4033 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004034 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004035 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004036 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004037 </Section>
4038 <Section name="abort">
Phil Nash2f7a2962013-09-27 19:01:14 +01004039 <Section name="-a aborts after first failure">
Phil Nashc6635a72014-12-30 18:25:27 +00004040 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004041 <Original>
4042 parseIntoConfig( argv, config )
4043 </Original>
4044 <Expanded>
4045 parseIntoConfig( argv, config )
4046 </Expanded>
4047 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004048 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004049 <Original>
4050 config.abortAfter == 1
4051 </Original>
4052 <Expanded>
4053 1 == 1
4054 </Expanded>
4055 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004056 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004057 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004058 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004059 </Section>
4060 <Section name="abort">
4061 <Section name="-x 2 aborts after two failures">
Phil Nashc6635a72014-12-30 18:25:27 +00004062 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004063 <Original>
4064 parseIntoConfig( argv, config )
4065 </Original>
4066 <Expanded>
4067 parseIntoConfig( argv, config )
4068 </Expanded>
4069 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004070 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004071 <Original>
4072 config.abortAfter == 2
4073 </Original>
4074 <Expanded>
4075 2 == 2
4076 </Expanded>
4077 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004078 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004079 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004080 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004081 </Section>
4082 <Section name="abort">
4083 <Section name="-x must be greater than zero">
Phil Nashc6635a72014-12-30 18:25:27 +00004084 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004085 <Original>
4086 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;greater than zero&quot; )
4087 </Original>
4088 <Expanded>
4089 &quot;Value after -x or --abortAfter must be greater than zero
Phil Nashe9d35372014-04-12 19:05:03 +01004090- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;greater than zero&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01004091 </Expanded>
4092 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004093 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004094 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004095 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004096 </Section>
4097 <Section name="abort">
4098 <Section name="-x must be numeric">
Phil Nashc6635a72014-12-30 18:25:27 +00004099 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004100 <Original>
4101 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;-x&quot; )
4102 </Original>
4103 <Expanded>
4104 &quot;Unable to convert oops to destination type
Phil Nashe9d35372014-04-12 19:05:03 +01004105- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;-x&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01004106 </Expanded>
4107 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004108 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004109 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004110 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004111 </Section>
4112 <Section name="nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01004113 <Section name="-e">
Phil Nashc6635a72014-12-30 18:25:27 +00004114 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004115 <Original>
4116 parseIntoConfig( argv, config )
4117 </Original>
4118 <Expanded>
4119 parseIntoConfig( argv, config )
4120 </Expanded>
4121 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004122 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004123 <Original>
4124 config.noThrow == true
4125 </Original>
4126 <Expanded>
4127 true == true
4128 </Expanded>
4129 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004130 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004131 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004132 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004133 </Section>
4134 <Section name="nothrow">
4135 <Section name="--nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00004136 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004137 <Original>
4138 parseIntoConfig( argv, config )
4139 </Original>
4140 <Expanded>
4141 parseIntoConfig( argv, config )
4142 </Expanded>
4143 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004144 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004145 <Original>
4146 config.noThrow == true
4147 </Original>
4148 <Expanded>
4149 true == true
4150 </Expanded>
4151 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004152 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004153 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004154 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004155 </Section>
4156 <Section name="output filename">
Phil Nash2f7a2962013-09-27 19:01:14 +01004157 <Section name="-o filename">
Phil Nashc6635a72014-12-30 18:25:27 +00004158 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004159 <Original>
4160 parseIntoConfig( argv, config )
4161 </Original>
4162 <Expanded>
4163 parseIntoConfig( argv, config )
4164 </Expanded>
4165 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004166 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004167 <Original>
4168 config.outputFilename == &quot;filename.ext&quot;
4169 </Original>
4170 <Expanded>
4171 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4172 </Expanded>
4173 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004174 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004175 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004176 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004177 </Section>
4178 <Section name="output filename">
4179 <Section name="--out">
Phil Nashc6635a72014-12-30 18:25:27 +00004180 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004181 <Original>
4182 parseIntoConfig( argv, config )
4183 </Original>
4184 <Expanded>
4185 parseIntoConfig( argv, config )
4186 </Expanded>
4187 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004188 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004189 <Original>
4190 config.outputFilename == &quot;filename.ext&quot;
4191 </Original>
4192 <Expanded>
4193 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4194 </Expanded>
4195 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004196 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004197 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004198 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004199 </Section>
4200 <Section name="combinations">
Phil Nash2f7a2962013-09-27 19:01:14 +01004201 <Section name="Single character flags can be combined">
Phil Nashc6635a72014-12-30 18:25:27 +00004202 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004203 <Original>
4204 parseIntoConfig( argv, config )
4205 </Original>
4206 <Expanded>
4207 parseIntoConfig( argv, config )
4208 </Expanded>
4209 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004210 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004211 <Original>
4212 config.abortAfter == 1
4213 </Original>
4214 <Expanded>
4215 1 == 1
4216 </Expanded>
4217 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004218 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004219 <Original>
4220 config.shouldDebugBreak
4221 </Original>
4222 <Expanded>
4223 true
4224 </Expanded>
4225 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004226 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004227 <Original>
4228 config.noThrow == true
4229 </Original>
4230 <Expanded>
4231 true == true
4232 </Expanded>
4233 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004234 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004235 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004236 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004237 </Section>
Phil Nash856468c2015-03-04 08:22:32 +00004238 <Section name="force-colour">
4239 <Section name="--force-colour">
4240 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4241 <Original>
4242 parseIntoConfig( argv, config )
4243 </Original>
4244 <Expanded>
4245 parseIntoConfig( argv, config )
4246 </Expanded>
4247 </Expression>
4248 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4249 <Original>
4250 config.forceColour
4251 </Original>
4252 <Expanded>
4253 true
4254 </Expanded>
4255 </Expression>
4256 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4257 </Section>
4258 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4259 </Section>
4260 <Section name="force-colour">
4261 <Section name="without --force-colour">
4262 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4263 <Original>
4264 parseIntoConfig( argv, config )
4265 </Original>
4266 <Expanded>
4267 parseIntoConfig( argv, config )
4268 </Expanded>
4269 </Expression>
4270 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4271 <Original>
4272 !config.forceColour
4273 </Original>
4274 <Expanded>
4275 true
4276 </Expanded>
4277 </Expression>
4278 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4279 </Section>
4280 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4281 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01004282 <OverallResult success="true"/>
4283 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004284 <TestCase name="Long strings can be wrapped">
4285 <Section name="plain string">
Phil Nash2f7a2962013-09-27 19:01:14 +01004286 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004287 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004288 <Original>
4289 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4290 </Original>
4291 <Expanded>
4292 &quot;one two three four&quot;
4293==
4294&quot;one two three four&quot;
4295 </Expanded>
4296 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004297 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004298 <Original>
4299 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4300 </Original>
4301 <Expanded>
4302 &quot;one two three four&quot;
4303==
4304&quot;one two three four&quot;
4305 </Expanded>
4306 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004307 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004308 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004309 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004310 </Section>
4311 <Section name="plain string">
4312 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004313 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004314 <Original>
4315 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == &quot;one two three\nfour&quot;
4316 </Original>
4317 <Expanded>
4318 &quot;one two three
4319four&quot;
4320==
4321&quot;one two three
4322four&quot;
4323 </Expanded>
4324 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004325 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004326 <Original>
4327 Text( testString, TextAttributes().setWidth( 16 ) ).toString() == &quot;one two three\nfour&quot;
4328 </Original>
4329 <Expanded>
4330 &quot;one two three
4331four&quot;
4332==
4333&quot;one two three
4334four&quot;
4335 </Expanded>
4336 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004337 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004338 <Original>
4339 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == &quot;one two three\nfour&quot;
4340 </Original>
4341 <Expanded>
4342 &quot;one two three
4343four&quot;
4344==
4345&quot;one two three
4346four&quot;
4347 </Expanded>
4348 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004349 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004350 <Original>
4351 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == &quot;one two three\nfour&quot;
4352 </Original>
4353 <Expanded>
4354 &quot;one two three
4355four&quot;
4356==
4357&quot;one two three
4358four&quot;
4359 </Expanded>
4360 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004361 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004362 <Original>
4363 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == &quot;one two\nthree four&quot;
4364 </Original>
4365 <Expanded>
4366 &quot;one two
4367three four&quot;
4368==
4369&quot;one two
4370three four&quot;
4371 </Expanded>
4372 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004373 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004374 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004375 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004376 </Section>
4377 <Section name="plain string">
4378 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004379 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004380 <Original>
4381 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4382 </Original>
4383 <Expanded>
4384 &quot;one two
4385three
4386four&quot;
4387==
4388&quot;one two
4389three
4390four&quot;
4391 </Expanded>
4392 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004393 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004394 <Original>
4395 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4396 </Original>
4397 <Expanded>
4398 &quot;one two
4399three
4400four&quot;
4401==
4402&quot;one two
4403three
4404four&quot;
4405 </Expanded>
4406 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004407 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004408 <Original>
4409 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4410 </Original>
4411 <Expanded>
4412 &quot;one two
4413three
4414four&quot;
4415==
4416&quot;one two
4417three
4418four&quot;
4419 </Expanded>
4420 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004421 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004422 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004423 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004424 </Section>
4425 <Section name="plain string">
4426 <Section name="Wrapped three times">
Phil Nashc6635a72014-12-30 18:25:27 +00004427 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004428 <Original>
4429 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4430 </Original>
4431 <Expanded>
4432 &quot;one
4433two
4434three
4435four&quot;
4436==
4437&quot;one
4438two
4439three
4440four&quot;
4441 </Expanded>
4442 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004443 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004444 <Original>
4445 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4446 </Original>
4447 <Expanded>
4448 &quot;one
4449two
4450three
4451four&quot;
4452==
4453&quot;one
4454two
4455three
4456four&quot;
4457 </Expanded>
4458 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004459 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004460 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004461 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004462 </Section>
4463 <Section name="plain string">
4464 <Section name="Short wrap">
Phil Nashc6635a72014-12-30 18:25:27 +00004465 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004466 <Original>
4467 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef&quot;
4468 </Original>
4469 <Expanded>
4470 &quot;abc-
4471def&quot;
4472==
4473&quot;abc-
4474def&quot;
4475 </Expanded>
4476 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004477 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004478 <Original>
4479 Text( &quot;abcdefg&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndefg&quot;
4480 </Original>
4481 <Expanded>
4482 &quot;abc-
4483defg&quot;
4484==
4485&quot;abc-
4486defg&quot;
4487 </Expanded>
4488 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004489 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004490 <Original>
4491 Text( &quot;abcdefgh&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef-\ngh&quot;
4492 </Original>
4493 <Expanded>
4494 &quot;abc-
4495def-
4496gh&quot;
4497==
4498&quot;abc-
4499def-
4500gh&quot;
4501 </Expanded>
4502 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004503 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004504 <Original>
4505 Text( testString, TextAttributes().setWidth( 4 ) ).toString() == &quot;one\ntwo\nthr-\nee\nfour&quot;
4506 </Original>
4507 <Expanded>
4508 &quot;one
4509two
4510thr-
4511ee
4512four&quot;
4513==
4514&quot;one
4515two
4516thr-
4517ee
4518four&quot;
4519 </Expanded>
4520 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004521 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004522 <Original>
4523 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == &quot;one\ntwo\nth-\nree\nfo-\nur&quot;
4524 </Original>
4525 <Expanded>
4526 &quot;one
4527two
4528th-
4529ree
4530fo-
4531ur&quot;
4532==
4533&quot;one
4534two
4535th-
4536ree
4537fo-
4538ur&quot;
4539 </Expanded>
4540 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004541 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004542 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004543 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004544 </Section>
4545 <Section name="plain string">
4546 <Section name="As container">
Phil Nashc6635a72014-12-30 18:25:27 +00004547 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004548 <Original>
4549 text.size() == 4
4550 </Original>
4551 <Expanded>
4552 4 == 4
4553 </Expanded>
4554 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004555 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004556 <Original>
4557 text[0] == &quot;one&quot;
4558 </Original>
4559 <Expanded>
4560 &quot;one&quot; == &quot;one&quot;
4561 </Expanded>
4562 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004563 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004564 <Original>
4565 text[1] == &quot;two&quot;
4566 </Original>
4567 <Expanded>
4568 &quot;two&quot; == &quot;two&quot;
4569 </Expanded>
4570 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004571 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004572 <Original>
4573 text[2] == &quot;three&quot;
4574 </Original>
4575 <Expanded>
4576 &quot;three&quot; == &quot;three&quot;
4577 </Expanded>
4578 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004579 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004580 <Original>
4581 text[3] == &quot;four&quot;
4582 </Original>
4583 <Expanded>
4584 &quot;four&quot; == &quot;four&quot;
4585 </Expanded>
4586 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004587 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004588 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004589 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004590 </Section>
4591 <Section name="plain string">
4592 <Section name="Indent first line differently">
Phil Nashc6635a72014-12-30 18:25:27 +00004593 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004594 <Original>
4595 text.toString() == &quot; one two\n three\n four&quot;
4596 </Original>
4597 <Expanded>
4598 &quot; one two
4599 three
4600 four&quot;
4601==
4602&quot; one two
4603 three
4604 four&quot;
4605 </Expanded>
4606 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004607 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004608 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004609 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004610 </Section>
4611 <Section name="With newlines">
Phil Nash2f7a2962013-09-27 19:01:14 +01004612 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004613 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004614 <Original>
4615 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4616 </Original>
4617 <Expanded>
4618 &quot;one two
4619three four&quot;
4620==
4621&quot;one two
4622three four&quot;
4623 </Expanded>
4624 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004625 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004626 <Original>
4627 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4628 </Original>
4629 <Expanded>
4630 &quot;one two
4631three four&quot;
4632==
4633&quot;one two
4634three four&quot;
4635 </Expanded>
4636 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004637 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004638 <Original>
4639 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
4640 </Original>
4641 <Expanded>
4642 &quot;one two
4643three four&quot;
4644==
4645&quot;one two
4646three four&quot;
4647 </Expanded>
4648 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004649 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004650 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004651 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004652 </Section>
4653 <Section name="With newlines">
4654 <Section name="Trailing newline">
Phil Nashc6635a72014-12-30 18:25:27 +00004655 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004656 <Original>
4657 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 10 ) ).toString() == &quot;abcdef\n&quot;
4658 </Original>
4659 <Expanded>
4660 &quot;abcdef
4661&quot;
4662==
4663&quot;abcdef
4664&quot;
4665 </Expanded>
4666 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004667 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004668 <Original>
4669 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef&quot;
4670 </Original>
4671 <Expanded>
4672 &quot;abcdef&quot; == &quot;abcdef&quot;
4673 </Expanded>
4674 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004675 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004676 <Original>
4677 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef\n&quot;
4678 </Original>
4679 <Expanded>
4680 &quot;abcdef
4681&quot;
4682==
4683&quot;abcdef
4684&quot;
4685 </Expanded>
4686 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004687 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004688 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004689 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004690 </Section>
4691 <Section name="With newlines">
4692 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004693 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004694 <Original>
4695 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4696 </Original>
4697 <Expanded>
4698 &quot;one two
4699three
4700four&quot;
4701==
4702&quot;one two
4703three
4704four&quot;
4705 </Expanded>
4706 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004707 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004708 <Original>
4709 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4710 </Original>
4711 <Expanded>
4712 &quot;one two
4713three
4714four&quot;
4715==
4716&quot;one two
4717three
4718four&quot;
4719 </Expanded>
4720 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004721 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004722 <Original>
4723 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4724 </Original>
4725 <Expanded>
4726 &quot;one two
4727three
4728four&quot;
4729==
4730&quot;one two
4731three
4732four&quot;
4733 </Expanded>
4734 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004735 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004736 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004737 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004738 </Section>
4739 <Section name="With newlines">
4740 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004741 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004742 <Original>
4743 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4744 </Original>
4745 <Expanded>
4746 &quot;one
4747two
4748three
4749four&quot;
4750==
4751&quot;one
4752two
4753three
4754four&quot;
4755 </Expanded>
4756 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004757 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004758 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004759 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004760 </Section>
4761 <Section name="With tabs">
Phil Nashc6635a72014-12-30 18:25:27 +00004762 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004763 <Original>
4764 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == &quot;one two three\n four\n five\n six&quot;
4765 </Original>
4766 <Expanded>
4767 &quot;one two three
4768 four
4769 five
4770 six&quot;
4771==
4772&quot;one two three
4773 four
4774 five
4775 six&quot;
4776 </Expanded>
4777 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004778 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004779 </Section>
4780 <OverallResult success="true"/>
4781 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00004782 <TestCase name="replaceInPlace">
4783 <Section name="replace single char">
Phil Nashc6635a72014-12-30 18:25:27 +00004784 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004785 <Original>
4786 replaceInPlace( letters, &quot;b&quot;, &quot;z&quot; )
4787 </Original>
4788 <Expanded>
4789 true
4790 </Expanded>
4791 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004792 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004793 <Original>
4794 letters == &quot;azcdefcg&quot;
4795 </Original>
4796 <Expanded>
4797 &quot;azcdefcg&quot; == &quot;azcdefcg&quot;
4798 </Expanded>
4799 </Expression>
4800 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4801 </Section>
4802 <Section name="replace two chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004803 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004804 <Original>
4805 replaceInPlace( letters, &quot;c&quot;, &quot;z&quot; )
4806 </Original>
4807 <Expanded>
4808 true
4809 </Expanded>
4810 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004811 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004812 <Original>
4813 letters == &quot;abzdefzg&quot;
4814 </Original>
4815 <Expanded>
4816 &quot;abzdefzg&quot; == &quot;abzdefzg&quot;
4817 </Expanded>
4818 </Expression>
4819 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4820 </Section>
4821 <Section name="replace first char">
Phil Nashc6635a72014-12-30 18:25:27 +00004822 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004823 <Original>
4824 replaceInPlace( letters, &quot;a&quot;, &quot;z&quot; )
4825 </Original>
4826 <Expanded>
4827 true
4828 </Expanded>
4829 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004830 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004831 <Original>
4832 letters == &quot;zbcdefcg&quot;
4833 </Original>
4834 <Expanded>
4835 &quot;zbcdefcg&quot; == &quot;zbcdefcg&quot;
4836 </Expanded>
4837 </Expression>
4838 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4839 </Section>
4840 <Section name="replace last char">
Phil Nashc6635a72014-12-30 18:25:27 +00004841 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004842 <Original>
4843 replaceInPlace( letters, &quot;g&quot;, &quot;z&quot; )
4844 </Original>
4845 <Expanded>
4846 true
4847 </Expanded>
4848 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004849 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004850 <Original>
4851 letters == &quot;abcdefcz&quot;
4852 </Original>
4853 <Expanded>
4854 &quot;abcdefcz&quot; == &quot;abcdefcz&quot;
4855 </Expanded>
4856 </Expression>
4857 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4858 </Section>
4859 <Section name="replace all chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004860 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004861 <Original>
4862 replaceInPlace( letters, letters, &quot;replaced&quot; )
4863 </Original>
4864 <Expanded>
4865 true
4866 </Expanded>
4867 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004868 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004869 <Original>
4870 letters == &quot;replaced&quot;
4871 </Original>
4872 <Expanded>
4873 &quot;replaced&quot; == &quot;replaced&quot;
4874 </Expanded>
4875 </Expression>
4876 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4877 </Section>
4878 <Section name="replace no chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004879 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004880 <Original>
4881 !replaceInPlace( letters, &quot;x&quot;, &quot;z&quot; )
4882 </Original>
4883 <Expanded>
4884 !false
4885 </Expanded>
4886 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004887 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004888 <Original>
4889 letters == letters
4890 </Original>
4891 <Expanded>
4892 &quot;abcdefcg&quot; == &quot;abcdefcg&quot;
4893 </Expanded>
4894 </Expression>
4895 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4896 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00004897 <Section name="escape '">
Phil Nashc6635a72014-12-30 18:25:27 +00004898 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00004899 <Original>
4900 replaceInPlace( s, &quot;'&quot;, &quot;|'&quot; )
4901 </Original>
4902 <Expanded>
4903 true
4904 </Expanded>
4905 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004906 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00004907 <Original>
4908 s == &quot;didn|'t&quot;
4909 </Original>
4910 <Expanded>
4911 &quot;didn|'t&quot; == &quot;didn|'t&quot;
4912 </Expanded>
4913 </Expression>
4914 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4915 </Section>
Phil Nash3dc37632014-12-21 00:20:09 +00004916 <OverallResult success="true"/>
4917 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004918 <TestCase name="Strings can be rendered with colour">
Phil Nash6817bb02014-12-30 18:24:31 +00004919 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004920 </TestCase>
4921 <TestCase name="Text can be formatted using the Text class">
Phil Nashc6635a72014-12-30 18:25:27 +00004922 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004923 <Original>
4924 Text( &quot;hi there&quot; ).toString() == &quot;hi there&quot;
4925 </Original>
4926 <Expanded>
4927 &quot;hi there&quot; == &quot;hi there&quot;
4928 </Expanded>
4929 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004930 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004931 <Original>
4932 Text( &quot;hi there&quot;, narrow ).toString() == &quot;hi\nthere&quot;
4933 </Original>
4934 <Expanded>
4935 &quot;hi
4936there&quot;
4937==
4938&quot;hi
4939there&quot;
4940 </Expanded>
4941 </Expression>
4942 <OverallResult success="true"/>
4943 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01004944 <TestCase name="Long text is truncted">
Phil Nashc6635a72014-12-30 18:25:27 +00004945 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash93a945c2013-10-23 15:35:07 +01004946 <Original>
4947 t.toString() EndsWith( &quot;... message truncated due to excessive size&quot; )
4948 </Original>
4949 <Expanded>
4950 &quot;******************************************************************************-
4951******************************************************************************-
4952************************
4953******************************************************************************-
4954******************************************************************************-
4955************************
4956******************************************************************************-
4957******************************************************************************-
4958************************
4959******************************************************************************-
4960******************************************************************************-
4961************************
4962******************************************************************************-
4963******************************************************************************-
4964************************
4965******************************************************************************-
4966******************************************************************************-
4967************************
4968******************************************************************************-
4969******************************************************************************-
4970************************
4971******************************************************************************-
4972******************************************************************************-
4973************************
4974******************************************************************************-
4975******************************************************************************-
4976************************
4977******************************************************************************-
4978******************************************************************************-
4979************************
4980******************************************************************************-
4981******************************************************************************-
4982************************
4983******************************************************************************-
4984******************************************************************************-
4985************************
4986******************************************************************************-
4987******************************************************************************-
4988************************
4989******************************************************************************-
4990******************************************************************************-
4991************************
4992******************************************************************************-
4993******************************************************************************-
4994************************
4995******************************************************************************-
4996******************************************************************************-
4997************************
4998******************************************************************************-
4999******************************************************************************-
5000************************
5001******************************************************************************-
5002******************************************************************************-
5003************************
5004******************************************************************************-
5005******************************************************************************-
5006************************
5007******************************************************************************-
5008******************************************************************************-
5009************************
5010******************************************************************************-
5011******************************************************************************-
5012************************
5013******************************************************************************-
5014******************************************************************************-
5015************************
5016******************************************************************************-
5017******************************************************************************-
5018************************
5019******************************************************************************-
5020******************************************************************************-
5021************************
5022******************************************************************************-
5023******************************************************************************-
5024************************
5025******************************************************************************-
5026******************************************************************************-
5027************************
5028******************************************************************************-
5029******************************************************************************-
5030************************
5031******************************************************************************-
5032******************************************************************************-
5033************************
5034******************************************************************************-
5035******************************************************************************-
5036************************
5037******************************************************************************-
5038******************************************************************************-
5039************************
5040******************************************************************************-
5041******************************************************************************-
5042************************
5043******************************************************************************-
5044******************************************************************************-
5045************************
5046******************************************************************************-
5047******************************************************************************-
5048************************
5049******************************************************************************-
5050******************************************************************************-
5051************************
5052******************************************************************************-
5053******************************************************************************-
5054************************
5055******************************************************************************-
5056******************************************************************************-
5057************************
5058******************************************************************************-
5059******************************************************************************-
5060************************
5061******************************************************************************-
5062******************************************************************************-
5063************************
5064******************************************************************************-
5065******************************************************************************-
5066************************
5067******************************************************************************-
5068******************************************************************************-
5069************************
5070******************************************************************************-
5071******************************************************************************-
5072************************
5073******************************************************************************-
5074******************************************************************************-
5075************************
5076******************************************************************************-
5077******************************************************************************-
5078************************
5079******************************************************************************-
5080******************************************************************************-
5081************************
5082******************************************************************************-
5083******************************************************************************-
5084************************
5085******************************************************************************-
5086******************************************************************************-
5087************************
5088******************************************************************************-
5089******************************************************************************-
5090************************
5091******************************************************************************-
5092******************************************************************************-
5093************************
5094******************************************************************************-
5095******************************************************************************-
5096************************
5097******************************************************************************-
5098******************************************************************************-
5099************************
5100******************************************************************************-
5101******************************************************************************-
5102************************
5103******************************************************************************-
5104******************************************************************************-
5105************************
5106******************************************************************************-
5107******************************************************************************-
5108************************
5109******************************************************************************-
5110******************************************************************************-
5111************************
5112******************************************************************************-
5113******************************************************************************-
5114************************
5115******************************************************************************-
5116******************************************************************************-
5117************************
5118******************************************************************************-
5119******************************************************************************-
5120************************
5121******************************************************************************-
5122******************************************************************************-
5123************************
5124******************************************************************************-
5125******************************************************************************-
5126************************
5127******************************************************************************-
5128******************************************************************************-
5129************************
5130******************************************************************************-
5131******************************************************************************-
5132************************
5133******************************************************************************-
5134******************************************************************************-
5135************************
5136******************************************************************************-
5137******************************************************************************-
5138************************
5139******************************************************************************-
5140******************************************************************************-
5141************************
5142******************************************************************************-
5143******************************************************************************-
5144************************
5145******************************************************************************-
5146******************************************************************************-
5147************************
5148******************************************************************************-
5149******************************************************************************-
5150************************
5151******************************************************************************-
5152******************************************************************************-
5153************************
5154******************************************************************************-
5155******************************************************************************-
5156************************
5157******************************************************************************-
5158******************************************************************************-
5159************************
5160******************************************************************************-
5161******************************************************************************-
5162************************
5163******************************************************************************-
5164******************************************************************************-
5165************************
5166******************************************************************************-
5167******************************************************************************-
5168************************
5169******************************************************************************-
5170******************************************************************************-
5171************************
5172******************************************************************************-
5173******************************************************************************-
5174************************
5175******************************************************************************-
5176******************************************************************************-
5177************************
5178******************************************************************************-
5179******************************************************************************-
5180************************
5181******************************************************************************-
5182******************************************************************************-
5183************************
5184******************************************************************************-
5185******************************************************************************-
5186************************
5187******************************************************************************-
5188******************************************************************************-
5189************************
5190******************************************************************************-
5191******************************************************************************-
5192************************
5193******************************************************************************-
5194******************************************************************************-
5195************************
5196******************************************************************************-
5197******************************************************************************-
5198************************
5199******************************************************************************-
5200******************************************************************************-
5201************************
5202******************************************************************************-
5203******************************************************************************-
5204************************
5205******************************************************************************-
5206******************************************************************************-
5207************************
5208******************************************************************************-
5209******************************************************************************-
5210************************
5211******************************************************************************-
5212******************************************************************************-
5213************************
5214******************************************************************************-
5215******************************************************************************-
5216************************
5217******************************************************************************-
5218******************************************************************************-
5219************************
5220******************************************************************************-
5221******************************************************************************-
5222************************
5223******************************************************************************-
5224******************************************************************************-
5225************************
5226******************************************************************************-
5227******************************************************************************-
5228************************
5229******************************************************************************-
5230******************************************************************************-
5231************************
5232******************************************************************************-
5233******************************************************************************-
5234************************
5235******************************************************************************-
5236******************************************************************************-
5237************************
5238******************************************************************************-
5239******************************************************************************-
5240************************
5241******************************************************************************-
5242******************************************************************************-
5243************************
5244******************************************************************************-
5245******************************************************************************-
5246************************
5247******************************************************************************-
5248******************************************************************************-
5249************************
5250******************************************************************************-
5251******************************************************************************-
5252************************
5253******************************************************************************-
5254******************************************************************************-
5255************************
5256******************************************************************************-
5257******************************************************************************-
5258************************
5259******************************************************************************-
5260******************************************************************************-
5261************************
5262******************************************************************************-
5263******************************************************************************-
5264************************
5265******************************************************************************-
5266******************************************************************************-
5267************************
5268******************************************************************************-
5269******************************************************************************-
5270************************
5271******************************************************************************-
5272******************************************************************************-
5273************************
5274******************************************************************************-
5275******************************************************************************-
5276************************
5277******************************************************************************-
5278******************************************************************************-
5279************************
5280******************************************************************************-
5281******************************************************************************-
5282************************
5283******************************************************************************-
5284******************************************************************************-
5285************************
5286******************************************************************************-
5287******************************************************************************-
5288************************
5289******************************************************************************-
5290******************************************************************************-
5291************************
5292******************************************************************************-
5293******************************************************************************-
5294************************
5295******************************************************************************-
5296******************************************************************************-
5297************************
5298******************************************************************************-
5299******************************************************************************-
5300************************
5301******************************************************************************-
5302******************************************************************************-
5303************************
5304******************************************************************************-
5305******************************************************************************-
5306************************
5307******************************************************************************-
5308******************************************************************************-
5309************************
5310******************************************************************************-
5311******************************************************************************-
5312************************
5313******************************************************************************-
5314******************************************************************************-
5315************************
5316******************************************************************************-
5317******************************************************************************-
5318************************
5319******************************************************************************-
5320******************************************************************************-
5321************************
5322******************************************************************************-
5323******************************************************************************-
5324************************
5325******************************************************************************-
5326******************************************************************************-
5327************************
5328******************************************************************************-
5329******************************************************************************-
5330************************
5331******************************************************************************-
5332******************************************************************************-
5333************************
5334******************************************************************************-
5335******************************************************************************-
5336************************
5337******************************************************************************-
5338******************************************************************************-
5339************************
5340******************************************************************************-
5341******************************************************************************-
5342************************
5343******************************************************************************-
5344******************************************************************************-
5345************************
5346******************************************************************************-
5347******************************************************************************-
5348************************
5349******************************************************************************-
5350******************************************************************************-
5351************************
5352******************************************************************************-
5353******************************************************************************-
5354************************
5355******************************************************************************-
5356******************************************************************************-
5357************************
5358******************************************************************************-
5359******************************************************************************-
5360************************
5361******************************************************************************-
5362******************************************************************************-
5363************************
5364******************************************************************************-
5365******************************************************************************-
5366************************
5367******************************************************************************-
5368******************************************************************************-
5369************************
5370******************************************************************************-
5371******************************************************************************-
5372************************
5373******************************************************************************-
5374******************************************************************************-
5375************************
5376******************************************************************************-
5377******************************************************************************-
5378************************
5379******************************************************************************-
5380******************************************************************************-
5381************************
5382******************************************************************************-
5383******************************************************************************-
5384************************
5385******************************************************************************-
5386******************************************************************************-
5387************************
5388******************************************************************************-
5389******************************************************************************-
5390************************
5391******************************************************************************-
5392******************************************************************************-
5393************************
5394******************************************************************************-
5395******************************************************************************-
5396************************
5397******************************************************************************-
5398******************************************************************************-
5399************************
5400******************************************************************************-
5401******************************************************************************-
5402************************
5403******************************************************************************-
5404******************************************************************************-
5405************************
5406******************************************************************************-
5407******************************************************************************-
5408************************
5409******************************************************************************-
5410******************************************************************************-
5411************************
5412******************************************************************************-
5413******************************************************************************-
5414************************
5415******************************************************************************-
5416******************************************************************************-
5417************************
5418******************************************************************************-
5419******************************************************************************-
5420************************
5421******************************************************************************-
5422******************************************************************************-
5423************************
5424******************************************************************************-
5425******************************************************************************-
5426************************
5427******************************************************************************-
5428******************************************************************************-
5429************************
5430******************************************************************************-
5431******************************************************************************-
5432************************
5433******************************************************************************-
5434******************************************************************************-
5435************************
5436******************************************************************************-
5437******************************************************************************-
5438************************
5439******************************************************************************-
5440******************************************************************************-
5441************************
5442******************************************************************************-
5443******************************************************************************-
5444************************
5445******************************************************************************-
5446******************************************************************************-
5447************************
5448******************************************************************************-
5449******************************************************************************-
5450************************
5451******************************************************************************-
5452******************************************************************************-
5453************************
5454******************************************************************************-
5455******************************************************************************-
5456************************
5457******************************************************************************-
5458******************************************************************************-
5459************************
5460******************************************************************************-
5461******************************************************************************-
5462************************
5463******************************************************************************-
5464******************************************************************************-
5465************************
5466******************************************************************************-
5467******************************************************************************-
5468************************
5469******************************************************************************-
5470******************************************************************************-
5471************************
5472******************************************************************************-
5473******************************************************************************-
5474************************
5475******************************************************************************-
5476******************************************************************************-
5477************************
5478******************************************************************************-
5479******************************************************************************-
5480************************
5481******************************************************************************-
5482******************************************************************************-
5483************************
5484******************************************************************************-
5485******************************************************************************-
5486************************
5487******************************************************************************-
5488******************************************************************************-
5489************************
5490******************************************************************************-
5491******************************************************************************-
5492************************
5493******************************************************************************-
5494******************************************************************************-
5495************************
5496******************************************************************************-
5497******************************************************************************-
5498************************
5499******************************************************************************-
5500******************************************************************************-
5501************************
5502******************************************************************************-
5503******************************************************************************-
5504************************
5505******************************************************************************-
5506******************************************************************************-
5507************************
5508******************************************************************************-
5509******************************************************************************-
5510************************
5511******************************************************************************-
5512******************************************************************************-
5513************************
5514******************************************************************************-
5515******************************************************************************-
5516************************
5517******************************************************************************-
5518******************************************************************************-
5519************************
5520******************************************************************************-
5521******************************************************************************-
5522************************
5523******************************************************************************-
5524******************************************************************************-
5525************************
5526******************************************************************************-
5527******************************************************************************-
5528************************
5529******************************************************************************-
5530******************************************************************************-
5531************************
5532******************************************************************************-
5533******************************************************************************-
5534************************
5535******************************************************************************-
5536******************************************************************************-
5537************************
5538******************************************************************************-
5539******************************************************************************-
5540************************
5541******************************************************************************-
5542******************************************************************************-
5543************************
5544******************************************************************************-
5545******************************************************************************-
5546************************
5547******************************************************************************-
5548******************************************************************************-
5549************************
5550******************************************************************************-
5551******************************************************************************-
5552************************
5553******************************************************************************-
5554******************************************************************************-
5555************************
5556******************************************************************************-
5557******************************************************************************-
5558************************
5559******************************************************************************-
5560******************************************************************************-
5561************************
5562******************************************************************************-
5563******************************************************************************-
5564************************
5565******************************************************************************-
5566******************************************************************************-
5567************************
5568******************************************************************************-
5569******************************************************************************-
5570************************
5571******************************************************************************-
5572******************************************************************************-
5573************************
5574******************************************************************************-
5575******************************************************************************-
5576************************
5577******************************************************************************-
5578******************************************************************************-
5579************************
5580******************************************************************************-
5581******************************************************************************-
5582************************
5583******************************************************************************-
5584******************************************************************************-
5585************************
5586******************************************************************************-
5587******************************************************************************-
5588************************
5589******************************************************************************-
5590******************************************************************************-
5591************************
5592******************************************************************************-
5593******************************************************************************-
5594************************
5595******************************************************************************-
5596******************************************************************************-
5597************************
5598******************************************************************************-
5599******************************************************************************-
5600************************
5601******************************************************************************-
5602******************************************************************************-
5603************************
5604******************************************************************************-
5605******************************************************************************-
5606************************
5607******************************************************************************-
5608******************************************************************************-
5609************************
5610******************************************************************************-
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... message truncated due to excessive size&quot; ends with: &quot;... message truncated due to excessive size&quot;
5951 </Expanded>
5952 </Expression>
5953 <OverallResult success="true"/>
5954 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005955 <TestCase name="Parsing a std::pair">
Phil Nashc6635a72014-12-30 18:25:27 +00005956 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005957 <Original>
5958 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
5959 </Original>
5960 <Expanded>
5961 std::pair( 1, 2 ) == std::pair( 1, 2 )
5962 </Expanded>
5963 </Expression>
5964 <OverallResult success="true"/>
5965 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00005966 <TestCase name="Where there is more to the expression after the RHS">
Phil Nash2f7a2962013-09-27 19:01:14 +01005967 <Warning>
5968 Uncomment the code in this test to check that it gives a sensible compiler error
5969 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00005970 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005971 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00005972 <TestCase name="Where the LHS is not a simple value">
Phil Nash2f7a2962013-09-27 19:01:14 +01005973 <Warning>
5974 Uncomment the code in this test to check that it gives a sensible compiler error
5975 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00005976 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005977 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00005978 <TestCase name="A failing expression with a non streamable type is still captured">
Phil Nashc6635a72014-12-30 18:25:27 +00005979 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005980 <Original>
5981 &amp;o1 == &amp;o2
5982 </Original>
5983 <Expanded>
5984 0x<hex digits> == 0x<hex digits>
5985 </Expanded>
5986 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005987 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005988 <Original>
5989 o1 == o2
5990 </Original>
5991 <Expanded>
5992 {?} == {?}
5993 </Expanded>
5994 </Expression>
5995 <OverallResult success="false"/>
5996 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00005997 <TestCase name="string literals of different sizes can be compared">
Phil Nashc6635a72014-12-30 18:25:27 +00005998 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005999 <Original>
6000 std::string( &quot;first&quot; ) == &quot;second&quot;
6001 </Original>
6002 <Expanded>
6003 &quot;first&quot; == &quot;second&quot;
6004 </Expanded>
6005 </Expression>
6006 <OverallResult success="false"/>
6007 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006008 <TestCase name="An expression with side-effects should only be evaluated once">
Phil Nashc6635a72014-12-30 18:25:27 +00006009 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006010 <Original>
6011 i++ == 7
6012 </Original>
6013 <Expanded>
6014 7 == 7
6015 </Expanded>
6016 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006017 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006018 <Original>
6019 i++ == 8
6020 </Original>
6021 <Expanded>
6022 8 == 8
6023 </Expanded>
6024 </Expression>
6025 <OverallResult success="true"/>
6026 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006027 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nashc6635a72014-12-30 18:25:27 +00006028 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006029 <Original>
6030 0x<hex digits> == o
6031 </Original>
6032 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006033 3221225472 (0x<hex digits>) == {?}
Phil Nash2f7a2962013-09-27 19:01:14 +01006034 </Expanded>
6035 </Expression>
6036 <OverallResult success="true"/>
6037 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006038 <TestCase name="Demonstrate that a non-const == is not used">
Phil Nashc6635a72014-12-30 18:25:27 +00006039 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006040 <Original>
6041 t == 1u
6042 </Original>
6043 <Expanded>
6044 {?} == 1
6045 </Expanded>
6046 </Expression>
6047 <OverallResult success="true"/>
6048 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006049 <TestCase name="Test enum bit values">
Phil Nashc6635a72014-12-30 18:25:27 +00006050 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006051 <Original>
6052 0x<hex digits> == bit30and31
6053 </Original>
6054 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006055 3221225472 (0x<hex digits>) == 3221225472
Phil Nash2f7a2962013-09-27 19:01:14 +01006056 </Expanded>
6057 </Expression>
6058 <OverallResult success="true"/>
6059 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006060 <TestCase name="boolean member">
Phil Nashc6635a72014-12-30 18:25:27 +00006061 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006062 <Original>
Phil Nash805de432015-07-01 07:33:27 +01006063 obj.prop != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01006064 </Original>
6065 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006066 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01006067 </Expanded>
6068 </Expression>
6069 <OverallResult success="true"/>
6070 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006071 <TestCase name="(unimplemented) static bools can be evaluated">
Phil Nash2f7a2962013-09-27 19:01:14 +01006072 <Section name="compare to true">
Phil Nashc6635a72014-12-30 18:25:27 +00006073 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006074 <Original>
6075 is_true&lt;true>::value == true
6076 </Original>
6077 <Expanded>
6078 true == true
6079 </Expanded>
6080 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006081 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006082 <Original>
6083 true == is_true&lt;true>::value
6084 </Original>
6085 <Expanded>
6086 true == true
6087 </Expanded>
6088 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006089 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006090 </Section>
6091 <Section name="compare to false">
Phil Nashc6635a72014-12-30 18:25:27 +00006092 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006093 <Original>
6094 is_true&lt;false>::value == false
6095 </Original>
6096 <Expanded>
6097 false == false
6098 </Expanded>
6099 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006100 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006101 <Original>
6102 false == is_true&lt;false>::value
6103 </Original>
6104 <Expanded>
6105 false == false
6106 </Expanded>
6107 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006108 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006109 </Section>
6110 <Section name="negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006111 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006112 <Original>
6113 !is_true&lt;false>::value
6114 </Original>
6115 <Expanded>
6116 true
6117 </Expanded>
6118 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006119 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006120 </Section>
6121 <Section name="double negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006122 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006123 <Original>
6124 !!is_true&lt;true>::value
6125 </Original>
6126 <Expanded>
6127 true
6128 </Expanded>
6129 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006130 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006131 </Section>
6132 <Section name="direct">
Phil Nashc6635a72014-12-30 18:25:27 +00006133 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006134 <Original>
6135 is_true&lt;true>::value
6136 </Original>
6137 <Expanded>
6138 true
6139 </Expanded>
6140 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006141 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006142 <Original>
6143 !is_true&lt;false>::value
6144 </Original>
6145 <Expanded>
6146 !false
6147 </Expanded>
6148 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006149 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006150 </Section>
6151 <OverallResult success="true"/>
6152 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006153 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nashc6635a72014-12-30 18:25:27 +00006154 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006155 <Original>
6156 True
6157 </Original>
6158 <Expanded>
6159 true
6160 </Expanded>
6161 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006162 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006163 <Original>
6164 !False
6165 </Original>
6166 <Expanded>
6167 true
6168 </Expanded>
6169 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006170 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006171 <Original>
6172 !False
6173 </Original>
6174 <Expanded>
6175 !false
6176 </Expanded>
6177 </Expression>
6178 <OverallResult success="true"/>
6179 </TestCase>
6180 <TestCase name="Assertions then sections">
Phil Nashc6635a72014-12-30 18:25:27 +00006181 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006182 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006183 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006184 </Original>
6185 <Expanded>
6186 true
6187 </Expanded>
6188 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01006189 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006190 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006191 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006192 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006193 </Original>
6194 <Expanded>
6195 true
6196 </Expanded>
6197 </Expression>
6198 <Section name="Another section">
Phil Nashc6635a72014-12-30 18:25:27 +00006199 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006200 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006201 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006202 </Original>
6203 <Expanded>
6204 true
6205 </Expanded>
6206 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006207 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006208 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006209 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006210 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00006211 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006212 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006213 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006214 </Original>
6215 <Expanded>
6216 true
6217 </Expanded>
6218 </Expression>
6219 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006220 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006221 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006222 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006223 </Original>
6224 <Expanded>
6225 true
6226 </Expanded>
6227 </Expression>
6228 <Section name="Another other section">
Phil Nashc6635a72014-12-30 18:25:27 +00006229 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006230 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006231 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006232 </Original>
6233 <Expanded>
6234 true
6235 </Expanded>
6236 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006237 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006238 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006239 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006240 </Section>
6241 <OverallResult success="true"/>
6242 </TestCase>
6243 <TestCase name="non streamable - with conv. op">
Phil Nashc6635a72014-12-30 18:25:27 +00006244 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006245 <Original>
6246 s == &quot;7&quot;
6247 </Original>
6248 <Expanded>
6249 &quot;7&quot; == &quot;7&quot;
6250 </Expanded>
6251 </Expression>
6252 <OverallResult success="true"/>
6253 </TestCase>
6254 <TestCase name="Comparing function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006255 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006256 <Original>
6257 a
6258 </Original>
6259 <Expanded>
6260 true
6261 </Expanded>
6262 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006263 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006264 <Original>
6265 a == &amp;foo
6266 </Original>
6267 <Expanded>
Phil Nashe0910182014-01-07 17:25:27 +00006268 0x<hex digits> == 0x<hex digits>
6269 </Expanded>
6270 </Expression>
6271 <OverallResult success="true"/>
6272 </TestCase>
6273 <TestCase name="Comparing member function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006274 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nashe0910182014-01-07 17:25:27 +00006275 <Original>
6276 m == &amp;S::f
6277 </Original>
6278 <Expanded>
6279 0x<hex digits>
6280==
62810x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01006282 </Expanded>
6283 </Expression>
6284 <OverallResult success="true"/>
6285 </TestCase>
6286 <TestCase name="pointer to class">
Phil Nashc6635a72014-12-30 18:25:27 +00006287 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006288 <Original>
6289 p == 0
6290 </Original>
6291 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006292 NULL == 0
Phil Nash2f7a2962013-09-27 19:01:14 +01006293 </Expanded>
6294 </Expression>
6295 <OverallResult success="true"/>
6296 </TestCase>
Phil Nash1a6f2a02014-04-23 18:19:19 +01006297 <TestCase name="null_ptr">
Phil Nashc6635a72014-12-30 18:25:27 +00006298 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash1a6f2a02014-04-23 18:19:19 +01006299 <Original>
6300 ptr.get() == nullptr
6301 </Original>
6302 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006303 NULL == nullptr
Phil Nash1a6f2a02014-04-23 18:19:19 +01006304 </Expanded>
6305 </Expression>
6306 <OverallResult success="true"/>
6307 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01006308 <TestCase name="X/level/0/a">
6309 <OverallResult success="true"/>
6310 </TestCase>
6311 <TestCase name="X/level/0/b">
6312 <OverallResult success="true"/>
6313 </TestCase>
6314 <TestCase name="X/level/1/a">
6315 <OverallResult success="true"/>
6316 </TestCase>
6317 <TestCase name="X/level/1/b">
6318 <OverallResult success="true"/>
6319 </TestCase>
Phil Nash5ea32662014-09-03 19:22:47 +01006320 <TestCase name="toString( has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006321 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006322 <Original>
6323 Catch::toString( item ) == &quot;toString( has_toString )&quot;
6324 </Original>
6325 <Expanded>
6326 &quot;toString( has_toString )&quot;
6327==
6328&quot;toString( has_toString )&quot;
6329 </Expanded>
6330 </Expression>
6331 <OverallResult success="true"/>
6332 </TestCase>
6333 <TestCase name="toString( has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006334 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006335 <Original>
6336 Catch::toString( item ) == &quot;StringMaker&lt;has_maker>&quot;
6337 </Original>
6338 <Expanded>
6339 &quot;StringMaker&lt;has_maker>&quot;
6340==
6341&quot;StringMaker&lt;has_maker>&quot;
6342 </Expanded>
6343 </Expression>
6344 <OverallResult success="true"/>
6345 </TestCase>
6346 <TestCase name="toString( has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006347 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006348 <Original>
6349 Catch::toString( item ) == &quot;toString( has_maker_and_toString )&quot;
6350 </Original>
6351 <Expanded>
6352 &quot;toString( has_maker_and_toString )&quot;
6353==
6354&quot;toString( has_maker_and_toString )&quot;
6355 </Expanded>
6356 </Expression>
6357 <OverallResult success="true"/>
6358 </TestCase>
6359 <TestCase name="toString( vectors&lt;has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006360 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006361 <Original>
6362 Catch::toString( v ) == &quot;{ {?} }&quot;
6363 </Original>
6364 <Expanded>
6365 &quot;{ {?} }&quot; == &quot;{ {?} }&quot;
6366 </Expanded>
6367 </Expression>
6368 <OverallResult success="true"/>
6369 </TestCase>
6370 <TestCase name="toString( vectors&lt;has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006371 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006372 <Original>
6373 Catch::toString( v ) == &quot;{ StringMaker&lt;has_maker> }&quot;
6374 </Original>
6375 <Expanded>
6376 &quot;{ StringMaker&lt;has_maker> }&quot;
6377==
6378&quot;{ StringMaker&lt;has_maker> }&quot;
6379 </Expanded>
6380 </Expression>
6381 <OverallResult success="true"/>
6382 </TestCase>
6383 <TestCase name="toString( vectors&lt;has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006384 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006385 <Original>
6386 Catch::toString( v ) == &quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6387 </Original>
6388 <Expanded>
6389 &quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6390==
6391&quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6392 </Expanded>
6393 </Expression>
6394 <OverallResult success="true"/>
6395 </TestCase>
6396 <TestCase name="std::pair&lt;int,std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006397 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006398 <Original>
6399 Catch::toString( value ) == &quot;{ 34, \&quot;xyzzy\&quot; }&quot;
6400 </Original>
6401 <Expanded>
6402 &quot;{ 34, &quot;xyzzy&quot; }&quot; == &quot;{ 34, &quot;xyzzy&quot; }&quot;
6403 </Expanded>
6404 </Expression>
6405 <OverallResult success="true"/>
6406 </TestCase>
6407 <TestCase name="std::pair&lt;int,const std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006408 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006409 <Original>
6410 Catch::toString(value) == &quot;{ 34, \&quot;xyzzy\&quot; }&quot;
6411 </Original>
6412 <Expanded>
6413 &quot;{ 34, &quot;xyzzy&quot; }&quot; == &quot;{ 34, &quot;xyzzy&quot; }&quot;
6414 </Expanded>
6415 </Expression>
6416 <OverallResult success="true"/>
6417 </TestCase>
6418 <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006419 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006420 <Original>
6421 Catch::toString( pr ) == &quot;{ { \&quot;green\&quot;, 55 } }&quot;
6422 </Original>
6423 <Expanded>
6424 &quot;{ { &quot;green&quot;, 55 } }&quot;
6425==
6426&quot;{ { &quot;green&quot;, 55 } }&quot;
6427 </Expanded>
6428 </Expression>
6429 <OverallResult success="true"/>
6430 </TestCase>
6431 <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006432 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006433 <Original>
6434 Catch::toString( pair ) == &quot;{ { 42, \&quot;Arthur\&quot; }, { \&quot;Ford\&quot;, 24 } }&quot;
6435 </Original>
6436 <Expanded>
6437 &quot;{ { 42, &quot;Arthur&quot; }, { &quot;Ford&quot;, 24 } }&quot;
6438==
6439&quot;{ { 42, &quot;Arthur&quot; }, { &quot;Ford&quot;, 24 } }&quot;
6440 </Expanded>
6441 </Expression>
6442 <OverallResult success="true"/>
6443 </TestCase>
6444 <TestCase name="vector&lt;int> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006445 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006446 <Original>
6447 Catch::toString(vv) == &quot;{ }&quot;
6448 </Original>
6449 <Expanded>
6450 &quot;{ }&quot; == &quot;{ }&quot;
6451 </Expanded>
6452 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006453 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006454 <Original>
6455 Catch::toString(vv) == &quot;{ 42 }&quot;
6456 </Original>
6457 <Expanded>
6458 &quot;{ 42 }&quot; == &quot;{ 42 }&quot;
6459 </Expanded>
6460 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006461 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006462 <Original>
Phil Nash6ed74b52015-05-20 18:28:22 +01006463 Catch::toString(vv) == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006464 </Original>
6465 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006466 &quot;{ 42, 250 }&quot; == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006467 </Expanded>
6468 </Expression>
6469 <OverallResult success="true"/>
6470 </TestCase>
6471 <TestCase name="vector&lt;string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006472 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006473 <Original>
6474 Catch::toString(vv) == &quot;{ }&quot;
6475 </Original>
6476 <Expanded>
6477 &quot;{ }&quot; == &quot;{ }&quot;
6478 </Expanded>
6479 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006480 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006481 <Original>
6482 Catch::toString(vv) == &quot;{ \&quot;hello\&quot; }&quot;
6483 </Original>
6484 <Expanded>
6485 &quot;{ &quot;hello&quot; }&quot; == &quot;{ &quot;hello&quot; }&quot;
6486 </Expanded>
6487 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006488 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006489 <Original>
6490 Catch::toString(vv) == &quot;{ \&quot;hello\&quot;, \&quot;world\&quot; }&quot;
6491 </Original>
6492 <Expanded>
6493 &quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
6494==
6495&quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
6496 </Expanded>
6497 </Expression>
6498 <OverallResult success="true"/>
6499 </TestCase>
6500 <TestCase name="vector&lt;int,allocator> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006501 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006502 <Original>
6503 Catch::toString(vv) == &quot;{ }&quot;
6504 </Original>
6505 <Expanded>
6506 &quot;{ }&quot; == &quot;{ }&quot;
6507 </Expanded>
6508 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006509 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006510 <Original>
6511 Catch::toString(vv) == &quot;{ 42 }&quot;
6512 </Original>
6513 <Expanded>
6514 &quot;{ 42 }&quot; == &quot;{ 42 }&quot;
6515 </Expanded>
6516 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006517 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006518 <Original>
Phil Nash6ed74b52015-05-20 18:28:22 +01006519 Catch::toString(vv) == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006520 </Original>
6521 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006522 &quot;{ 42, 250 }&quot; == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006523 </Expanded>
6524 </Expression>
6525 <OverallResult success="true"/>
6526 </TestCase>
6527 <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006528 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006529 <Original>
6530 Catch::toString(v) == &quot;{ }&quot;
6531 </Original>
6532 <Expanded>
6533 &quot;{ }&quot; == &quot;{ }&quot;
6534 </Expanded>
6535 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006536 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006537 <Original>
6538 Catch::toString(v) == &quot;{ { \&quot;hello\&quot; }, { \&quot;world\&quot; } }&quot;
6539 </Original>
6540 <Expanded>
6541 &quot;{ { &quot;hello&quot; }, { &quot;world&quot; } }&quot;
6542==
6543&quot;{ { &quot;hello&quot; }, { &quot;world&quot; } }&quot;
6544 </Expanded>
6545 </Expression>
6546 <OverallResult success="true"/>
6547 </TestCase>
Phil Nash766491a2014-05-16 18:31:15 +01006548 <TestCase name="Parse test names and tags">
6549 <Section name="Empty test spec should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006550 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006551 <Original>
6552 spec.hasFilters() == false
6553 </Original>
6554 <Expanded>
6555 false == false
6556 </Expanded>
6557 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006558 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006559 <Original>
6560 spec.matches( tcA ) == false
6561 </Original>
6562 <Expanded>
6563 false == false
6564 </Expanded>
6565 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006566 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006567 <Original>
6568 spec.matches( tcB ) == false
6569 </Original>
6570 <Expanded>
6571 false == false
6572 </Expanded>
6573 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006574 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006575 </Section>
6576 <Section name="Test spec from empty string should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006577 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006578 <Original>
6579 spec.hasFilters() == false
6580 </Original>
6581 <Expanded>
6582 false == false
6583 </Expanded>
6584 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006585 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006586 <Original>
6587 spec.matches(tcA ) == false
6588 </Original>
6589 <Expanded>
6590 false == false
6591 </Expanded>
6592 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006593 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006594 <Original>
6595 spec.matches( tcB ) == false
6596 </Original>
6597 <Expanded>
6598 false == false
6599 </Expanded>
6600 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006601 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006602 </Section>
6603 <Section name="Test spec from just a comma should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006604 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006605 <Original>
6606 spec.hasFilters() == false
6607 </Original>
6608 <Expanded>
6609 false == false
6610 </Expanded>
6611 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006612 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006613 <Original>
6614 spec.matches( tcA ) == false
6615 </Original>
6616 <Expanded>
6617 false == false
6618 </Expanded>
6619 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006620 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006621 <Original>
6622 spec.matches( tcB ) == false
6623 </Original>
6624 <Expanded>
6625 false == false
6626 </Expanded>
6627 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006628 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006629 </Section>
6630 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006631 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006632 <Original>
6633 spec.hasFilters() == true
6634 </Original>
6635 <Expanded>
6636 true == true
6637 </Expanded>
6638 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006639 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006640 <Original>
6641 spec.matches( tcA ) == false
6642 </Original>
6643 <Expanded>
6644 false == false
6645 </Expanded>
6646 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006647 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006648 <Original>
6649 spec.matches( tcB ) == true
6650 </Original>
6651 <Expanded>
6652 true == true
6653 </Expanded>
6654 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006655 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006656 </Section>
6657 <Section name="Test spec from quoted name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006658 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006659 <Original>
6660 spec.hasFilters() == true
6661 </Original>
6662 <Expanded>
6663 true == true
6664 </Expanded>
6665 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006666 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006667 <Original>
6668 spec.matches( tcA ) == false
6669 </Original>
6670 <Expanded>
6671 false == false
6672 </Expanded>
6673 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006674 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006675 <Original>
6676 spec.matches( tcB ) == true
6677 </Original>
6678 <Expanded>
6679 true == true
6680 </Expanded>
6681 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006682 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006683 </Section>
6684 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006685 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006686 <Original>
6687 spec.hasFilters() == true
6688 </Original>
6689 <Expanded>
6690 true == true
6691 </Expanded>
6692 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006693 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006694 <Original>
6695 spec.matches( tcA ) == false
6696 </Original>
6697 <Expanded>
6698 false == false
6699 </Expanded>
6700 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006701 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006702 <Original>
6703 spec.matches( tcB ) == true
6704 </Original>
6705 <Expanded>
6706 true == true
6707 </Expanded>
6708 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006709 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006710 <Original>
6711 spec.matches( tcC ) == false
6712 </Original>
6713 <Expanded>
6714 false == false
6715 </Expanded>
6716 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006717 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006718 </Section>
6719 <Section name="Wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00006720 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006721 <Original>
6722 spec.hasFilters() == true
6723 </Original>
6724 <Expanded>
6725 true == true
6726 </Expanded>
6727 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006728 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006729 <Original>
6730 spec.matches( tcA ) == false
6731 </Original>
6732 <Expanded>
6733 false == false
6734 </Expanded>
6735 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006736 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006737 <Original>
6738 spec.matches( tcB ) == false
6739 </Original>
6740 <Expanded>
6741 false == false
6742 </Expanded>
6743 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006744 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006745 <Original>
6746 spec.matches( tcC ) == true
6747 </Original>
6748 <Expanded>
6749 true == true
6750 </Expanded>
6751 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006752 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006753 <Original>
6754 spec.matches( tcD ) == false
6755 </Original>
6756 <Expanded>
6757 false == false
6758 </Expanded>
6759 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006760 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006761 <Original>
6762 parseTestSpec( &quot;*a&quot; ).matches( tcA ) == true
6763 </Original>
6764 <Expanded>
6765 true == true
6766 </Expanded>
6767 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006768 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006769 </Section>
6770 <Section name="Wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00006771 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006772 <Original>
6773 spec.hasFilters() == true
6774 </Original>
6775 <Expanded>
6776 true == true
6777 </Expanded>
6778 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006779 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006780 <Original>
6781 spec.matches( tcA ) == false
6782 </Original>
6783 <Expanded>
6784 false == false
6785 </Expanded>
6786 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006787 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006788 <Original>
6789 spec.matches( tcB ) == false
6790 </Original>
6791 <Expanded>
6792 false == false
6793 </Expanded>
6794 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006795 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006796 <Original>
6797 spec.matches( tcC ) == true
6798 </Original>
6799 <Expanded>
6800 true == true
6801 </Expanded>
6802 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006803 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006804 <Original>
6805 spec.matches( tcD ) == false
6806 </Original>
6807 <Expanded>
6808 false == false
6809 </Expanded>
6810 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006811 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006812 <Original>
6813 parseTestSpec( &quot;a*&quot; ).matches( tcA ) == true
6814 </Original>
6815 <Expanded>
6816 true == true
6817 </Expanded>
6818 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006819 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006820 </Section>
6821 <Section name="Wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00006822 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006823 <Original>
6824 spec.hasFilters() == true
6825 </Original>
6826 <Expanded>
6827 true == true
6828 </Expanded>
6829 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006830 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006831 <Original>
6832 spec.matches( tcA ) == false
6833 </Original>
6834 <Expanded>
6835 false == false
6836 </Expanded>
6837 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006838 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006839 <Original>
6840 spec.matches( tcB ) == false
6841 </Original>
6842 <Expanded>
6843 false == false
6844 </Expanded>
6845 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006846 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006847 <Original>
6848 spec.matches( tcC ) == true
6849 </Original>
6850 <Expanded>
6851 true == true
6852 </Expanded>
6853 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006854 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006855 <Original>
6856 spec.matches( tcD ) == true
6857 </Original>
6858 <Expanded>
6859 true == true
6860 </Expanded>
6861 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006862 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006863 <Original>
6864 parseTestSpec( &quot;*a*&quot; ).matches( tcA ) == true
6865 </Original>
6866 <Expanded>
6867 true == true
6868 </Expanded>
6869 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006870 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006871 </Section>
Phil Nash71390352014-05-19 18:21:01 +01006872 <Section name="Redundant wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00006873 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006874 <Original>
6875 spec.hasFilters() == true
6876 </Original>
6877 <Expanded>
6878 true == true
6879 </Expanded>
6880 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006881 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006882 <Original>
6883 spec.matches( tcA ) == true
6884 </Original>
6885 <Expanded>
6886 true == true
6887 </Expanded>
6888 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006889 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006890 <Original>
6891 spec.matches( tcB ) == false
6892 </Original>
6893 <Expanded>
6894 false == false
6895 </Expanded>
6896 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006897 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006898 </Section>
6899 <Section name="Redundant wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00006900 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006901 <Original>
6902 spec.hasFilters() == true
6903 </Original>
6904 <Expanded>
6905 true == true
6906 </Expanded>
6907 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006908 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006909 <Original>
6910 spec.matches( tcA ) == true
6911 </Original>
6912 <Expanded>
6913 true == true
6914 </Expanded>
6915 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006916 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006917 <Original>
6918 spec.matches( tcB ) == false
6919 </Original>
6920 <Expanded>
6921 false == false
6922 </Expanded>
6923 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006924 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006925 </Section>
6926 <Section name="Redundant wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00006927 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006928 <Original>
6929 spec.hasFilters() == true
6930 </Original>
6931 <Expanded>
6932 true == true
6933 </Expanded>
6934 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006935 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006936 <Original>
6937 spec.matches( tcA ) == true
6938 </Original>
6939 <Expanded>
6940 true == true
6941 </Expanded>
6942 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006943 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006944 <Original>
6945 spec.matches( tcB ) == false
6946 </Original>
6947 <Expanded>
6948 false == false
6949 </Expanded>
6950 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006951 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006952 </Section>
6953 <Section name="Wildcard at both ends, redundant at start">
Phil Nashc6635a72014-12-30 18:25:27 +00006954 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006955 <Original>
6956 spec.hasFilters() == true
6957 </Original>
6958 <Expanded>
6959 true == true
6960 </Expanded>
6961 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006962 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006963 <Original>
6964 spec.matches( tcA ) == false
6965 </Original>
6966 <Expanded>
6967 false == false
6968 </Expanded>
6969 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006970 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006971 <Original>
6972 spec.matches( tcB ) == false
6973 </Original>
6974 <Expanded>
6975 false == false
6976 </Expanded>
6977 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006978 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006979 <Original>
6980 spec.matches( tcC ) == true
6981 </Original>
6982 <Expanded>
6983 true == true
6984 </Expanded>
6985 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006986 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006987 <Original>
6988 spec.matches( tcD ) == true
6989 </Original>
6990 <Expanded>
6991 true == true
6992 </Expanded>
6993 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006994 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006995 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01006996 <Section name="Just wildcard">
Phil Nashc6635a72014-12-30 18:25:27 +00006997 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006998 <Original>
6999 spec.hasFilters() == true
7000 </Original>
7001 <Expanded>
7002 true == true
7003 </Expanded>
7004 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007005 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007006 <Original>
7007 spec.matches( tcA ) == true
7008 </Original>
7009 <Expanded>
7010 true == true
7011 </Expanded>
7012 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007013 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007014 <Original>
7015 spec.matches( tcB ) == true
7016 </Original>
7017 <Expanded>
7018 true == true
7019 </Expanded>
7020 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007021 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007022 <Original>
7023 spec.matches( tcC ) == true
7024 </Original>
7025 <Expanded>
7026 true == true
7027 </Expanded>
7028 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007029 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007030 <Original>
7031 spec.matches( tcD ) == true
7032 </Original>
7033 <Expanded>
7034 true == true
7035 </Expanded>
7036 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007037 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007038 </Section>
7039 <Section name="Single tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007040 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007041 <Original>
7042 spec.hasFilters() == true
7043 </Original>
7044 <Expanded>
7045 true == true
7046 </Expanded>
7047 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007048 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007049 <Original>
7050 spec.matches( tcA ) == false
7051 </Original>
7052 <Expanded>
7053 false == false
7054 </Expanded>
7055 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007056 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007057 <Original>
7058 spec.matches( tcB ) == true
7059 </Original>
7060 <Expanded>
7061 true == true
7062 </Expanded>
7063 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007064 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007065 <Original>
7066 spec.matches( tcC ) == false
7067 </Original>
7068 <Expanded>
7069 false == false
7070 </Expanded>
7071 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007072 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007073 </Section>
7074 <Section name="Single tag, two matches">
Phil Nashc6635a72014-12-30 18:25:27 +00007075 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007076 <Original>
7077 spec.hasFilters() == true
7078 </Original>
7079 <Expanded>
7080 true == true
7081 </Expanded>
7082 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007083 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007084 <Original>
7085 spec.matches( tcA ) == false
7086 </Original>
7087 <Expanded>
7088 false == false
7089 </Expanded>
7090 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007091 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007092 <Original>
7093 spec.matches( tcB ) == true
7094 </Original>
7095 <Expanded>
7096 true == true
7097 </Expanded>
7098 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007099 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007100 <Original>
7101 spec.matches( tcC ) == true
7102 </Original>
7103 <Expanded>
7104 true == true
7105 </Expanded>
7106 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007107 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007108 </Section>
7109 <Section name="Two tags">
Phil Nashc6635a72014-12-30 18:25:27 +00007110 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007111 <Original>
7112 spec.hasFilters() == true
7113 </Original>
7114 <Expanded>
7115 true == true
7116 </Expanded>
7117 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007118 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007119 <Original>
7120 spec.matches( tcA ) == false
7121 </Original>
7122 <Expanded>
7123 false == false
7124 </Expanded>
7125 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007126 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007127 <Original>
7128 spec.matches( tcB ) == false
7129 </Original>
7130 <Expanded>
7131 false == false
7132 </Expanded>
7133 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007134 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007135 <Original>
7136 spec.matches( tcC ) == true
7137 </Original>
7138 <Expanded>
7139 true == true
7140 </Expanded>
7141 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007142 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007143 </Section>
Phil Nasha2d8f772014-05-20 18:28:48 +01007144 <Section name="Two tags, spare separated">
Phil Nashc6635a72014-12-30 18:25:27 +00007145 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007146 <Original>
7147 spec.hasFilters() == true
7148 </Original>
7149 <Expanded>
7150 true == true
7151 </Expanded>
7152 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007153 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007154 <Original>
7155 spec.matches( tcA ) == false
7156 </Original>
7157 <Expanded>
7158 false == false
7159 </Expanded>
7160 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007161 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007162 <Original>
7163 spec.matches( tcB ) == false
7164 </Original>
7165 <Expanded>
7166 false == false
7167 </Expanded>
7168 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007169 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007170 <Original>
7171 spec.matches( tcC ) == true
7172 </Original>
7173 <Expanded>
7174 true == true
7175 </Expanded>
7176 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007177 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nasha2d8f772014-05-20 18:28:48 +01007178 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01007179 <Section name="Wildcarded name and tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007180 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007181 <Original>
7182 spec.hasFilters() == true
7183 </Original>
7184 <Expanded>
7185 true == true
7186 </Expanded>
7187 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007188 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007189 <Original>
7190 spec.matches( tcA ) == false
7191 </Original>
7192 <Expanded>
7193 false == false
7194 </Expanded>
7195 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007196 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007197 <Original>
7198 spec.matches( tcB ) == false
7199 </Original>
7200 <Expanded>
7201 false == false
7202 </Expanded>
7203 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007204 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007205 <Original>
7206 spec.matches( tcC ) == true
7207 </Original>
7208 <Expanded>
7209 true == true
7210 </Expanded>
7211 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007212 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007213 <Original>
7214 spec.matches( tcD ) == false
7215 </Original>
7216 <Expanded>
7217 false == false
7218 </Expanded>
7219 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007220 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007221 </Section>
7222 <Section name="Single tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007223 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007224 <Original>
7225 spec.hasFilters() == true
7226 </Original>
7227 <Expanded>
7228 true == true
7229 </Expanded>
7230 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007231 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007232 <Original>
7233 spec.matches( tcA ) == true
7234 </Original>
7235 <Expanded>
7236 true == true
7237 </Expanded>
7238 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007239 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007240 <Original>
7241 spec.matches( tcB ) == false
7242 </Original>
7243 <Expanded>
7244 false == false
7245 </Expanded>
7246 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007247 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007248 <Original>
7249 spec.matches( tcC ) == true
7250 </Original>
7251 <Expanded>
7252 true == true
7253 </Expanded>
7254 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007255 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007256 </Section>
7257 <Section name="One tag exclusion and one tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007258 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007259 <Original>
7260 spec.hasFilters() == true
7261 </Original>
7262 <Expanded>
7263 true == true
7264 </Expanded>
7265 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007266 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007267 <Original>
7268 spec.matches( tcA ) == false
7269 </Original>
7270 <Expanded>
7271 false == false
7272 </Expanded>
7273 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007274 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007275 <Original>
7276 spec.matches( tcB ) == true
7277 </Original>
7278 <Expanded>
7279 true == true
7280 </Expanded>
7281 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007282 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007283 <Original>
7284 spec.matches( tcC ) == false
7285 </Original>
7286 <Expanded>
7287 false == false
7288 </Expanded>
7289 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007290 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007291 </Section>
7292 <Section name="One tag exclusion and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007293 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007294 <Original>
7295 spec.hasFilters() == true
7296 </Original>
7297 <Expanded>
7298 true == true
7299 </Expanded>
7300 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007301 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007302 <Original>
7303 spec.matches( tcA ) == false
7304 </Original>
7305 <Expanded>
7306 false == false
7307 </Expanded>
7308 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007309 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007310 <Original>
7311 spec.matches( tcB ) == false
7312 </Original>
7313 <Expanded>
7314 false == false
7315 </Expanded>
7316 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007317 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007318 <Original>
7319 spec.matches( tcC ) == false
7320 </Original>
7321 <Expanded>
7322 false == false
7323 </Expanded>
7324 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007325 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007326 <Original>
7327 spec.matches( tcD ) == true
7328 </Original>
7329 <Expanded>
7330 true == true
7331 </Expanded>
7332 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007333 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007334 </Section>
7335 <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007336 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007337 <Original>
7338 spec.hasFilters() == true
7339 </Original>
7340 <Expanded>
7341 true == true
7342 </Expanded>
7343 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007344 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007345 <Original>
7346 spec.matches( tcA ) == false
7347 </Original>
7348 <Expanded>
7349 false == false
7350 </Expanded>
7351 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007352 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007353 <Original>
7354 spec.matches( tcB ) == false
7355 </Original>
7356 <Expanded>
7357 false == false
7358 </Expanded>
7359 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007360 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007361 <Original>
7362 spec.matches( tcC ) == false
7363 </Original>
7364 <Expanded>
7365 false == false
7366 </Expanded>
7367 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007368 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007369 <Original>
7370 spec.matches( tcD ) == true
7371 </Original>
7372 <Expanded>
7373 true == true
7374 </Expanded>
7375 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007376 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007377 </Section>
7378 <Section name="name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007379 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007380 <Original>
7381 spec.hasFilters() == true
7382 </Original>
7383 <Expanded>
7384 true == true
7385 </Expanded>
7386 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007387 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007388 <Original>
7389 spec.matches( tcA ) == true
7390 </Original>
7391 <Expanded>
7392 true == true
7393 </Expanded>
7394 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007395 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007396 <Original>
7397 spec.matches( tcB ) == false
7398 </Original>
7399 <Expanded>
7400 false == false
7401 </Expanded>
7402 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007403 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007404 <Original>
7405 spec.matches( tcC ) == true
7406 </Original>
7407 <Expanded>
7408 true == true
7409 </Expanded>
7410 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007411 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007412 <Original>
7413 spec.matches( tcD ) == true
7414 </Original>
7415 <Expanded>
7416 true == true
7417 </Expanded>
7418 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007419 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007420 </Section>
7421 <Section name="wildcarded name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007422 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007423 <Original>
7424 spec.hasFilters() == true
7425 </Original>
7426 <Expanded>
7427 true == true
7428 </Expanded>
7429 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007430 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007431 <Original>
7432 spec.matches( tcA ) == true
7433 </Original>
7434 <Expanded>
7435 true == true
7436 </Expanded>
7437 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007438 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007439 <Original>
7440 spec.matches( tcB ) == true
7441 </Original>
7442 <Expanded>
7443 true == true
7444 </Expanded>
7445 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007446 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007447 <Original>
7448 spec.matches( tcC ) == false
7449 </Original>
7450 <Expanded>
7451 false == false
7452 </Expanded>
7453 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007454 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007455 <Original>
7456 spec.matches( tcD ) == false
7457 </Original>
7458 <Expanded>
7459 false == false
7460 </Expanded>
7461 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007462 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007463 </Section>
7464 <Section name="wildcarded name exclusion with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007465 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007466 <Original>
7467 spec.hasFilters() == true
7468 </Original>
7469 <Expanded>
7470 true == true
7471 </Expanded>
7472 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007473 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007474 <Original>
7475 spec.matches( tcA ) == true
7476 </Original>
7477 <Expanded>
7478 true == true
7479 </Expanded>
7480 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007481 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007482 <Original>
7483 spec.matches( tcB ) == true
7484 </Original>
7485 <Expanded>
7486 true == true
7487 </Expanded>
7488 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007489 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007490 <Original>
7491 spec.matches( tcC ) == true
7492 </Original>
7493 <Expanded>
7494 true == true
7495 </Expanded>
7496 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007497 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007498 <Original>
7499 spec.matches( tcD ) == false
7500 </Original>
7501 <Expanded>
7502 false == false
7503 </Expanded>
7504 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007505 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007506 </Section>
7507 <Section name="wildcarded name exclusion, using exclude:, with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007508 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007509 <Original>
7510 spec.hasFilters() == true
7511 </Original>
7512 <Expanded>
7513 true == true
7514 </Expanded>
7515 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007516 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007517 <Original>
7518 spec.matches( tcA ) == true
7519 </Original>
7520 <Expanded>
7521 true == true
7522 </Expanded>
7523 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007524 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007525 <Original>
7526 spec.matches( tcB ) == true
7527 </Original>
7528 <Expanded>
7529 true == true
7530 </Expanded>
7531 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007532 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007533 <Original>
7534 spec.matches( tcC ) == true
7535 </Original>
7536 <Expanded>
7537 true == true
7538 </Expanded>
7539 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007540 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007541 <Original>
7542 spec.matches( tcD ) == false
7543 </Original>
7544 <Expanded>
7545 false == false
7546 </Expanded>
7547 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007548 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007549 </Section>
7550 <Section name="two wildcarded names">
Phil Nashc6635a72014-12-30 18:25:27 +00007551 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007552 <Original>
7553 spec.hasFilters() == true
7554 </Original>
7555 <Expanded>
7556 true == true
7557 </Expanded>
7558 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007559 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007560 <Original>
7561 spec.matches( tcA ) == false
7562 </Original>
7563 <Expanded>
7564 false == false
7565 </Expanded>
7566 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007567 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007568 <Original>
7569 spec.matches( tcB ) == false
7570 </Original>
7571 <Expanded>
7572 false == false
7573 </Expanded>
7574 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007575 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007576 <Original>
7577 spec.matches( tcC ) == true
7578 </Original>
7579 <Expanded>
7580 true == true
7581 </Expanded>
7582 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007583 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007584 <Original>
7585 spec.matches( tcD ) == false
7586 </Original>
7587 <Expanded>
7588 false == false
7589 </Expanded>
7590 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007591 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007592 </Section>
7593 <Section name="empty tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007594 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007595 <Original>
7596 spec.hasFilters() == false
7597 </Original>
7598 <Expanded>
7599 false == false
7600 </Expanded>
7601 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007602 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007603 <Original>
7604 spec.matches( tcA ) == false
7605 </Original>
7606 <Expanded>
7607 false == false
7608 </Expanded>
7609 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007610 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007611 <Original>
7612 spec.matches( tcB ) == false
7613 </Original>
7614 <Expanded>
7615 false == false
7616 </Expanded>
7617 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007618 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007619 <Original>
7620 spec.matches( tcC ) == false
7621 </Original>
7622 <Expanded>
7623 false == false
7624 </Expanded>
7625 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007626 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007627 <Original>
7628 spec.matches( tcD ) == false
7629 </Original>
7630 <Expanded>
7631 false == false
7632 </Expanded>
7633 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007634 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007635 </Section>
7636 <Section name="empty quoted name">
Phil Nashc6635a72014-12-30 18:25:27 +00007637 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007638 <Original>
7639 spec.hasFilters() == false
7640 </Original>
7641 <Expanded>
7642 false == false
7643 </Expanded>
7644 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007645 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007646 <Original>
7647 spec.matches( tcA ) == false
7648 </Original>
7649 <Expanded>
7650 false == false
7651 </Expanded>
7652 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007653 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007654 <Original>
7655 spec.matches( tcB ) == false
7656 </Original>
7657 <Expanded>
7658 false == false
7659 </Expanded>
7660 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007661 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007662 <Original>
7663 spec.matches( tcC ) == false
7664 </Original>
7665 <Expanded>
7666 false == false
7667 </Expanded>
7668 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007669 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007670 <Original>
7671 spec.matches( tcD ) == false
7672 </Original>
7673 <Expanded>
7674 false == false
7675 </Expanded>
7676 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007677 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007678 </Section>
7679 <Section name="quoted string followed by tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007680 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007681 <Original>
7682 spec.hasFilters() == true
7683 </Original>
7684 <Expanded>
7685 true == true
7686 </Expanded>
7687 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007688 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007689 <Original>
7690 spec.matches( tcA ) == false
7691 </Original>
7692 <Expanded>
7693 false == false
7694 </Expanded>
7695 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007696 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007697 <Original>
7698 spec.matches( tcB ) == false
7699 </Original>
7700 <Expanded>
7701 false == false
7702 </Expanded>
7703 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007704 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007705 <Original>
7706 spec.matches( tcC ) == false
7707 </Original>
7708 <Expanded>
7709 false == false
7710 </Expanded>
7711 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007712 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007713 <Original>
7714 spec.matches( tcD ) == true
7715 </Original>
7716 <Expanded>
7717 true == true
7718 </Expanded>
7719 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007720 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007721 </Section>
7722 <OverallResult success="true"/>
7723 </TestCase>
Phil Nash50183202014-12-30 18:47:01 +00007724 <TestCase name="tuple&lt;>">
7725 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7726 <Original>
7727 &quot;{ }&quot; == Catch::toString(type{})
7728 </Original>
7729 <Expanded>
7730 &quot;{ }&quot; == &quot;{ }&quot;
7731 </Expanded>
7732 </Expression>
7733 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7734 <Original>
7735 &quot;{ }&quot; == Catch::toString(value)
7736 </Original>
7737 <Expanded>
7738 &quot;{ }&quot; == &quot;{ }&quot;
7739 </Expanded>
7740 </Expression>
7741 <OverallResult success="true"/>
7742 </TestCase>
7743 <TestCase name="tuple&lt;int>">
7744 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7745 <Original>
7746 &quot;{ 0 }&quot; == Catch::toString(type{0})
7747 </Original>
7748 <Expanded>
7749 &quot;{ 0 }&quot; == &quot;{ 0 }&quot;
7750 </Expanded>
7751 </Expression>
7752 <OverallResult success="true"/>
7753 </TestCase>
7754 <TestCase name="tuple&lt;float,int>">
7755 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7756 <Original>
7757 &quot;1.2f&quot; == Catch::toString(float(1.2))
7758 </Original>
7759 <Expanded>
7760 &quot;1.2f&quot; == &quot;1.2f&quot;
7761 </Expanded>
7762 </Expression>
7763 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7764 <Original>
7765 &quot;{ 1.2f, 0 }&quot; == Catch::toString(type{1.2,0})
7766 </Original>
7767 <Expanded>
7768 &quot;{ 1.2f, 0 }&quot; == &quot;{ 1.2f, 0 }&quot;
7769 </Expanded>
7770 </Expression>
7771 <OverallResult success="true"/>
7772 </TestCase>
7773 <TestCase name="tuple&lt;string,string>">
7774 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7775 <Original>
7776 &quot;{ \&quot;hello\&quot;, \&quot;world\&quot; }&quot; == Catch::toString(type{&quot;hello&quot;,&quot;world&quot;})
7777 </Original>
7778 <Expanded>
7779 &quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
7780==
7781&quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
7782 </Expanded>
7783 </Expression>
7784 <OverallResult success="true"/>
7785 </TestCase>
7786 <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>">
7787 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7788 <Original>
7789 &quot;{ { 42 }, { }, 1.2f }&quot; == Catch::toString(value)
7790 </Original>
7791 <Expanded>
7792 &quot;{ { 42 }, { }, 1.2f }&quot;
7793==
7794&quot;{ { 42 }, { }, 1.2f }&quot;
7795 </Expanded>
7796 </Expression>
7797 <OverallResult success="true"/>
7798 </TestCase>
7799 <TestCase name="tuple&lt;nullptr,int,const char *>">
7800 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7801 <Original>
7802 &quot;{ nullptr, 42, \&quot;Catch me\&quot; }&quot; == Catch::toString(value)
7803 </Original>
7804 <Expanded>
7805 &quot;{ nullptr, 42, &quot;Catch me&quot; }&quot;
7806==
7807&quot;{ nullptr, 42, &quot;Catch me&quot; }&quot;
7808 </Expanded>
7809 </Expression>
7810 <OverallResult success="true"/>
7811 </TestCase>
Phil Nash061861d2014-06-30 07:34:27 +01007812 <TestCase name="Tag alias can be registered against tag patterns">
7813 <Section name="The same tag alias can only be registered once">
Phil Nashc6635a72014-12-30 18:25:27 +00007814 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007815 <Original>
7816 what Contains( &quot;[@zzz]&quot; )
7817 </Original>
7818 <Expanded>
7819 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7820 First seen at file:2
7821 Redefined at file:10&quot; contains: &quot;[@zzz]&quot;
7822 </Expanded>
7823 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007824 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007825 <Original>
7826 what Contains( &quot;file&quot; )
7827 </Original>
7828 <Expanded>
7829 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7830 First seen at file:2
7831 Redefined at file:10&quot; contains: &quot;file&quot;
7832 </Expanded>
7833 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007834 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007835 <Original>
7836 what Contains( &quot;2&quot; )
7837 </Original>
7838 <Expanded>
7839 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7840 First seen at file:2
7841 Redefined at file:10&quot; contains: &quot;2&quot;
7842 </Expanded>
7843 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007844 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007845 <Original>
7846 what Contains( &quot;10&quot; )
7847 </Original>
7848 <Expanded>
7849 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7850 First seen at file:2
7851 Redefined at file:10&quot; contains: &quot;10&quot;
7852 </Expanded>
7853 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007854 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01007855 </Section>
7856 <Section name="Tag aliases must be of the form [@name]">
Phil Nashc6635a72014-12-30 18:25:27 +00007857 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007858 <Original>
7859 registry.add( &quot;[no ampersat]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7860 </Original>
7861 <Expanded>
7862 registry.add( &quot;[no ampersat]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7863 </Expanded>
7864 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007865 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007866 <Original>
7867 registry.add( &quot;[the @ is not at the start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7868 </Original>
7869 <Expanded>
7870 registry.add( &quot;[the @ is not at the start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7871 </Expanded>
7872 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007873 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007874 <Original>
7875 registry.add( &quot;@no square bracket at start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7876 </Original>
7877 <Expanded>
7878 registry.add( &quot;@no square bracket at start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7879 </Expanded>
7880 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007881 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007882 <Original>
7883 registry.add( &quot;[@no square bracket at end&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7884 </Original>
7885 <Expanded>
7886 registry.add( &quot;[@no square bracket at end&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7887 </Expanded>
7888 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007889 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01007890 </Section>
7891 <OverallResult success="true"/>
7892 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01007893 <TestCase name="Anonymous test case 1">
7894 <OverallResult success="true"/>
7895 </TestCase>
7896 <TestCase name="Test case with one argument">
7897 <OverallResult success="true"/>
7898 </TestCase>
7899 <TestCase name="Variadic macros">
7900 <Section name="Section with one argument">
Phil Nash9c1f9a82014-07-03 08:09:57 +01007901 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007902 </Section>
7903 <OverallResult success="true"/>
7904 </TestCase>
7905 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00007906 <Section name="Given: This stuff exists">
Phil Nasha1e87a42013-12-10 08:20:46 +00007907 <Section name="When: I do this">
7908 <Section name="Then: it should do this">
Phil Nashc6635a72014-12-30 18:25:27 +00007909 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007910 <Original>
7911 itDoesThis()
7912 </Original>
7913 <Expanded>
7914 true
7915 </Expanded>
7916 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007917 <Section name="And: do that">
Phil Nashc6635a72014-12-30 18:25:27 +00007918 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007919 <Original>
7920 itDoesThat()
7921 </Original>
7922 <Expanded>
7923 true
7924 </Expanded>
7925 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007926 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007927 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007928 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007929 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007930 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007931 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007932 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007933 </Section>
7934 <OverallResult success="true"/>
7935 </TestCase>
7936 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00007937 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00007938 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007939 <Original>
7940 v.size() == 0
7941 </Original>
7942 <Expanded>
7943 0 == 0
7944 </Expanded>
7945 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007946 <Section name="When: it is made larger">
7947 <Section name="Then: the size and capacity go up">
Phil Nashc6635a72014-12-30 18:25:27 +00007948 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007949 <Original>
7950 v.size() == 10
7951 </Original>
7952 <Expanded>
7953 10 == 10
7954 </Expanded>
7955 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007956 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007957 <Original>
7958 v.capacity() >= 10
7959 </Original>
7960 <Expanded>
7961 10 >= 10
7962 </Expanded>
7963 </Expression>
7964 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00007965 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nashc6635a72014-12-30 18:25:27 +00007966 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007967 <Original>
7968 v.size() == 5
7969 </Original>
7970 <Expanded>
7971 5 == 5
7972 </Expanded>
7973 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007974 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007975 <Original>
7976 v.capacity() >= 10
7977 </Original>
7978 <Expanded>
7979 10 >= 10
7980 </Expanded>
7981 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007982 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007983 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007984 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007985 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007986 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007987 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007988 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007989 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007990 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007991 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00007992 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00007993 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007994 <Original>
7995 v.size() == 0
7996 </Original>
7997 <Expanded>
7998 0 == 0
7999 </Expanded>
8000 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00008001 <Section name="When: we reserve more space">
Phil Nasha1e87a42013-12-10 08:20:46 +00008002 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nashc6635a72014-12-30 18:25:27 +00008003 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008004 <Original>
8005 v.capacity() >= 10
8006 </Original>
8007 <Expanded>
8008 10 >= 10
8009 </Expanded>
8010 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008011 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008012 <Original>
8013 v.size() == 0
8014 </Original>
8015 <Expanded>
8016 0 == 0
8017 </Expanded>
8018 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008019 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008020 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008021 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008022 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008023 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008024 </Section>
8025 <OverallResult success="true"/>
8026 </TestCase>
8027 <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 +00008028 <Section name="Given: A section name that is so long that it cannot fit in a single console width">
Phil Nasha1e87a42013-12-10 08:20:46 +00008029 <Section name="When: The test headers are printed as part of the normal running of the scenario">
8030 <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 Nash9c1f9a82014-07-03 08:09:57 +01008031 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008032 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008033 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008034 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008035 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008036 </Section>
8037 <OverallResult success="true"/>
8038 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01008039 <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods">
8040 <Section name="Given: No operations precede me">
Phil Nashc6635a72014-12-30 18:25:27 +00008041 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01008042 <Original>
8043 before == 0
8044 </Original>
8045 <Expanded>
8046 0 == 0
8047 </Expanded>
8048 </Expression>
8049 <Section name="When: We get the count">
8050 <Section name="Then: Subsequently values are higher">
Phil Nashc6635a72014-12-30 18:25:27 +00008051 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01008052 <Original>
8053 after > before
8054 </Original>
8055 <Expanded>
8056 1 > 0
8057 </Expanded>
8058 </Expression>
8059 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8060 </Section>
8061 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8062 </Section>
8063 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8064 </Section>
8065 <OverallResult success="true"/>
8066 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01008067 <TestCase name="section tracking">
Phil Nashc6635a72014-12-30 18:25:27 +00008068 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008069 <Original>
8070 !testCaseTracker.isCompleted()
8071 </Original>
8072 <Expanded>
8073 !false
8074 </Expanded>
8075 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01008076 <Section name="test case with no sections">
Phil Nashc6635a72014-12-30 18:25:27 +00008077 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008078 <Original>
8079 !testCaseTracker.isCompleted()
8080 </Original>
8081 <Expanded>
8082 !false
8083 </Expanded>
8084 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008085 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008086 <Original>
8087 testCaseTracker.isCompleted()
8088 </Original>
8089 <Expanded>
8090 true
8091 </Expanded>
8092 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008093 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008094 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008095 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008096 <Original>
8097 !testCaseTracker.isCompleted()
8098 </Original>
8099 <Expanded>
8100 !false
8101 </Expanded>
8102 </Expression>
8103 <Section name="test case with one section">
Phil Nashc6635a72014-12-30 18:25:27 +00008104 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008105 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008106 testCaseTracker.enterSection( section1Name )
8107 </Original>
8108 <Expanded>
8109 true
8110 </Expanded>
8111 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008112 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008113 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01008114 !testCaseTracker.isCompleted()
8115 </Original>
8116 <Expanded>
8117 !false
8118 </Expanded>
8119 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008120 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008121 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008122 testCaseTracker.isCompleted()
8123 </Original>
8124 <Expanded>
8125 true
8126 </Expanded>
8127 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008128 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008129 <Original>
8130 !testCaseTracker.enterSection( section1Name )
8131 </Original>
8132 <Expanded>
8133 !false
8134 </Expanded>
8135 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008136 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008137 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008138 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008139 <Original>
8140 !testCaseTracker.isCompleted()
8141 </Original>
8142 <Expanded>
8143 !false
8144 </Expanded>
8145 </Expression>
8146 <Section name="test case with two consecutive sections">
Phil Nashc6635a72014-12-30 18:25:27 +00008147 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008148 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008149 testCaseTracker.enterSection( section1Name )
8150 </Original>
8151 <Expanded>
8152 true
8153 </Expanded>
8154 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008155 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008156 <Original>
8157 !testCaseTracker.enterSection( section2Name )
8158 </Original>
8159 <Expanded>
8160 !false
8161 </Expanded>
8162 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008163 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008164 <Original>
8165 !testCaseTracker.isCompleted()
8166 </Original>
8167 <Expanded>
8168 !false
8169 </Expanded>
8170 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008171 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008172 <Original>
8173 !testCaseTracker.enterSection( section1Name )
8174 </Original>
8175 <Expanded>
8176 !false
8177 </Expanded>
8178 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008179 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008180 <Original>
8181 testCaseTracker.enterSection( section2Name )
8182 </Original>
8183 <Expanded>
8184 true
8185 </Expanded>
8186 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008187 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008188 <Original>
8189 testCaseTracker.isCompleted()
8190 </Original>
8191 <Expanded>
8192 true
8193 </Expanded>
8194 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008195 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008196 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008197 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008198 <Original>
8199 !testCaseTracker.isCompleted()
8200 </Original>
8201 <Expanded>
8202 !false
8203 </Expanded>
8204 </Expression>
8205 <Section name="test case with one section within another">
Phil Nashc6635a72014-12-30 18:25:27 +00008206 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008207 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008208 testCaseTracker.enterSection( section1Name )
8209 </Original>
8210 <Expanded>
8211 true
8212 </Expanded>
8213 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008214 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008215 <Original>
8216 testCaseTracker.enterSection( section2Name )
8217 </Original>
8218 <Expanded>
8219 true
8220 </Expanded>
8221 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008222 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008223 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01008224 !testCaseTracker.isCompleted()
8225 </Original>
8226 <Expanded>
8227 !false
8228 </Expanded>
8229 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008230 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008231 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008232 testCaseTracker.isCompleted()
8233 </Original>
8234 <Expanded>
8235 true
8236 </Expanded>
8237 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008238 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008239 </Section>
8240 <OverallResult success="true"/>
8241 </TestCase>
Phil Nash85de7432015-07-13 06:34:41 +01008242 <OverallResults successes="674" failures="100" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008243 </Group>
Phil Nash85de7432015-07-13 06:34:41 +01008244 <OverallResults successes="674" failures="100" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008245</Catch>