blob: 0d06a704e29ed9af4ac3944950b70191652f3da3 [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">
Phil Nash2104ca22015-07-13 15:03:04 +01001600 <Section name="exact match">
1601 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1602 <Original>
1603 thisThrows(), &quot;expected exception&quot;
1604 </Original>
1605 <Expanded>
1606 thisThrows(), &quot;expected exception&quot;
1607 </Expanded>
1608 </Expression>
1609 <OverallResults successes="1" failures="0" expectedFailures="0"/>
1610 </Section>
1611 <Section name="different case">
1612 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1613 <Original>
1614 thisThrows(), &quot;expecteD Exception&quot;
1615 </Original>
1616 <Expanded>
1617 thisThrows(), &quot;expecteD Exception&quot;
1618 </Expanded>
1619 </Expression>
1620 <OverallResults successes="1" failures="0" expectedFailures="0"/>
1621 </Section>
1622 <Section name="wildcarded">
1623 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1624 <Original>
1625 thisThrows(), &quot;expected*&quot;
1626 </Original>
1627 <Expanded>
1628 thisThrows(), &quot;expected*&quot;
1629 </Expanded>
1630 </Expression>
1631 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1632 <Original>
1633 thisThrows(), &quot;*exception&quot;
1634 </Original>
1635 <Expanded>
1636 thisThrows(), &quot;*exception&quot;
1637 </Expanded>
1638 </Expression>
1639 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1640 <Original>
1641 thisThrows(), &quot;*except*&quot;
1642 </Original>
1643 <Expanded>
1644 thisThrows(), &quot;*except*&quot;
1645 </Expanded>
1646 </Expression>
1647 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1648 <Original>
1649 thisThrows(), &quot;*exCept*&quot;
1650 </Original>
1651 <Expanded>
1652 thisThrows(), &quot;*exCept*&quot;
1653 </Expanded>
1654 </Expression>
1655 <OverallResults successes="4" failures="0" expectedFailures="0"/>
1656 </Section>
1657 <OverallResult success="true"/>
1658 </TestCase>
1659 <TestCase name="Mismatching exception messages failing the test">
1660 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1661 <Original>
1662 thisThrows(), &quot;expected exception&quot;
1663 </Original>
1664 <Expanded>
1665 thisThrows(), &quot;expected exception&quot;
1666 </Expanded>
1667 </Expression>
Phil Nash85de7432015-07-13 06:34:41 +01001668 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1669 <Original>
1670 thisThrows(), &quot;expected exception&quot;
1671 </Original>
1672 <Expanded>
1673 thisThrows(), &quot;expected exception&quot;
1674 </Expanded>
1675 </Expression>
1676 <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1677 <Original>
1678 thisThrows(), &quot;should fail&quot;
1679 </Original>
1680 <Expanded>
1681 expected exception
1682 </Expanded>
1683 </Expression>
1684 <OverallResult success="false"/>
1685 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001686 <TestCase name="Generators over two ranges">
Phil Nashc6635a72014-12-30 18:25:27 +00001687 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001688 <Original>
1689 multiply( i, 2 ) == i*2
1690 </Original>
1691 <Expanded>
1692 2 == 2
1693 </Expanded>
1694 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001695 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001696 <Original>
1697 multiply( j, 2 ) == j*2
1698 </Original>
1699 <Expanded>
1700 200 == 200
1701 </Expanded>
1702 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001703 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001704 <Original>
1705 multiply( i, 2 ) == i*2
1706 </Original>
1707 <Expanded>
1708 4 == 4
1709 </Expanded>
1710 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001711 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001712 <Original>
1713 multiply( j, 2 ) == j*2
1714 </Original>
1715 <Expanded>
1716 200 == 200
1717 </Expanded>
1718 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001719 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001720 <Original>
1721 multiply( i, 2 ) == i*2
1722 </Original>
1723 <Expanded>
1724 6 == 6
1725 </Expanded>
1726 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001727 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001728 <Original>
1729 multiply( j, 2 ) == j*2
1730 </Original>
1731 <Expanded>
1732 200 == 200
1733 </Expanded>
1734 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001735 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001736 <Original>
1737 multiply( i, 2 ) == i*2
1738 </Original>
1739 <Expanded>
1740 8 == 8
1741 </Expanded>
1742 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001743 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001744 <Original>
1745 multiply( j, 2 ) == j*2
1746 </Original>
1747 <Expanded>
1748 200 == 200
1749 </Expanded>
1750 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001751 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001752 <Original>
1753 multiply( i, 2 ) == i*2
1754 </Original>
1755 <Expanded>
1756 10 == 10
1757 </Expanded>
1758 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001759 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001760 <Original>
1761 multiply( j, 2 ) == j*2
1762 </Original>
1763 <Expanded>
1764 200 == 200
1765 </Expanded>
1766 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001767 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001768 <Original>
1769 multiply( i, 2 ) == i*2
1770 </Original>
1771 <Expanded>
1772 30 == 30
1773 </Expanded>
1774 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001775 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001776 <Original>
1777 multiply( j, 2 ) == j*2
1778 </Original>
1779 <Expanded>
1780 200 == 200
1781 </Expanded>
1782 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001783 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001784 <Original>
1785 multiply( i, 2 ) == i*2
1786 </Original>
1787 <Expanded>
1788 40 == 40
1789 </Expanded>
1790 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001791 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001792 <Original>
1793 multiply( j, 2 ) == j*2
1794 </Original>
1795 <Expanded>
1796 200 == 200
1797 </Expanded>
1798 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001799 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001800 <Original>
1801 multiply( i, 2 ) == i*2
1802 </Original>
1803 <Expanded>
1804 42 == 42
1805 </Expanded>
1806 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001807 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001808 <Original>
1809 multiply( j, 2 ) == j*2
1810 </Original>
1811 <Expanded>
1812 200 == 200
1813 </Expanded>
1814 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001815 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001816 <Original>
1817 multiply( i, 2 ) == i*2
1818 </Original>
1819 <Expanded>
1820 72 == 72
1821 </Expanded>
1822 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001823 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001824 <Original>
1825 multiply( j, 2 ) == j*2
1826 </Original>
1827 <Expanded>
1828 200 == 200
1829 </Expanded>
1830 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001831 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001832 <Original>
1833 multiply( i, 2 ) == i*2
1834 </Original>
1835 <Expanded>
1836 2 == 2
1837 </Expanded>
1838 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001839 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001840 <Original>
1841 multiply( j, 2 ) == j*2
1842 </Original>
1843 <Expanded>
1844 202 == 202
1845 </Expanded>
1846 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001847 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001848 <Original>
1849 multiply( i, 2 ) == i*2
1850 </Original>
1851 <Expanded>
1852 4 == 4
1853 </Expanded>
1854 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001855 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001856 <Original>
1857 multiply( j, 2 ) == j*2
1858 </Original>
1859 <Expanded>
1860 202 == 202
1861 </Expanded>
1862 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001863 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001864 <Original>
1865 multiply( i, 2 ) == i*2
1866 </Original>
1867 <Expanded>
1868 6 == 6
1869 </Expanded>
1870 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001871 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001872 <Original>
1873 multiply( j, 2 ) == j*2
1874 </Original>
1875 <Expanded>
1876 202 == 202
1877 </Expanded>
1878 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001879 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001880 <Original>
1881 multiply( i, 2 ) == i*2
1882 </Original>
1883 <Expanded>
1884 8 == 8
1885 </Expanded>
1886 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001887 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001888 <Original>
1889 multiply( j, 2 ) == j*2
1890 </Original>
1891 <Expanded>
1892 202 == 202
1893 </Expanded>
1894 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001895 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001896 <Original>
1897 multiply( i, 2 ) == i*2
1898 </Original>
1899 <Expanded>
1900 10 == 10
1901 </Expanded>
1902 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001903 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001904 <Original>
1905 multiply( j, 2 ) == j*2
1906 </Original>
1907 <Expanded>
1908 202 == 202
1909 </Expanded>
1910 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001911 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001912 <Original>
1913 multiply( i, 2 ) == i*2
1914 </Original>
1915 <Expanded>
1916 30 == 30
1917 </Expanded>
1918 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001919 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001920 <Original>
1921 multiply( j, 2 ) == j*2
1922 </Original>
1923 <Expanded>
1924 202 == 202
1925 </Expanded>
1926 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001927 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001928 <Original>
1929 multiply( i, 2 ) == i*2
1930 </Original>
1931 <Expanded>
1932 40 == 40
1933 </Expanded>
1934 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001935 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001936 <Original>
1937 multiply( j, 2 ) == j*2
1938 </Original>
1939 <Expanded>
1940 202 == 202
1941 </Expanded>
1942 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001943 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001944 <Original>
1945 multiply( i, 2 ) == i*2
1946 </Original>
1947 <Expanded>
1948 42 == 42
1949 </Expanded>
1950 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001951 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001952 <Original>
1953 multiply( j, 2 ) == j*2
1954 </Original>
1955 <Expanded>
1956 202 == 202
1957 </Expanded>
1958 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001959 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001960 <Original>
1961 multiply( i, 2 ) == i*2
1962 </Original>
1963 <Expanded>
1964 72 == 72
1965 </Expanded>
1966 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001967 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001968 <Original>
1969 multiply( j, 2 ) == j*2
1970 </Original>
1971 <Expanded>
1972 202 == 202
1973 </Expanded>
1974 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001975 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001976 <Original>
1977 multiply( i, 2 ) == i*2
1978 </Original>
1979 <Expanded>
1980 2 == 2
1981 </Expanded>
1982 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001983 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001984 <Original>
1985 multiply( j, 2 ) == j*2
1986 </Original>
1987 <Expanded>
1988 204 == 204
1989 </Expanded>
1990 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001991 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001992 <Original>
1993 multiply( i, 2 ) == i*2
1994 </Original>
1995 <Expanded>
1996 4 == 4
1997 </Expanded>
1998 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001999 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002000 <Original>
2001 multiply( j, 2 ) == j*2
2002 </Original>
2003 <Expanded>
2004 204 == 204
2005 </Expanded>
2006 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002007 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002008 <Original>
2009 multiply( i, 2 ) == i*2
2010 </Original>
2011 <Expanded>
2012 6 == 6
2013 </Expanded>
2014 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002015 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002016 <Original>
2017 multiply( j, 2 ) == j*2
2018 </Original>
2019 <Expanded>
2020 204 == 204
2021 </Expanded>
2022 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002023 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002024 <Original>
2025 multiply( i, 2 ) == i*2
2026 </Original>
2027 <Expanded>
2028 8 == 8
2029 </Expanded>
2030 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002031 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002032 <Original>
2033 multiply( j, 2 ) == j*2
2034 </Original>
2035 <Expanded>
2036 204 == 204
2037 </Expanded>
2038 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002039 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002040 <Original>
2041 multiply( i, 2 ) == i*2
2042 </Original>
2043 <Expanded>
2044 10 == 10
2045 </Expanded>
2046 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002047 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002048 <Original>
2049 multiply( j, 2 ) == j*2
2050 </Original>
2051 <Expanded>
2052 204 == 204
2053 </Expanded>
2054 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002055 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002056 <Original>
2057 multiply( i, 2 ) == i*2
2058 </Original>
2059 <Expanded>
2060 30 == 30
2061 </Expanded>
2062 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002063 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002064 <Original>
2065 multiply( j, 2 ) == j*2
2066 </Original>
2067 <Expanded>
2068 204 == 204
2069 </Expanded>
2070 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002071 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002072 <Original>
2073 multiply( i, 2 ) == i*2
2074 </Original>
2075 <Expanded>
2076 40 == 40
2077 </Expanded>
2078 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002079 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002080 <Original>
2081 multiply( j, 2 ) == j*2
2082 </Original>
2083 <Expanded>
2084 204 == 204
2085 </Expanded>
2086 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002087 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002088 <Original>
2089 multiply( i, 2 ) == i*2
2090 </Original>
2091 <Expanded>
2092 42 == 42
2093 </Expanded>
2094 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002095 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002096 <Original>
2097 multiply( j, 2 ) == j*2
2098 </Original>
2099 <Expanded>
2100 204 == 204
2101 </Expanded>
2102 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002103 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002104 <Original>
2105 multiply( i, 2 ) == i*2
2106 </Original>
2107 <Expanded>
2108 72 == 72
2109 </Expanded>
2110 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002111 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002112 <Original>
2113 multiply( j, 2 ) == j*2
2114 </Original>
2115 <Expanded>
2116 204 == 204
2117 </Expanded>
2118 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002119 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002120 <Original>
2121 multiply( i, 2 ) == i*2
2122 </Original>
2123 <Expanded>
2124 2 == 2
2125 </Expanded>
2126 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002127 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002128 <Original>
2129 multiply( j, 2 ) == j*2
2130 </Original>
2131 <Expanded>
2132 206 == 206
2133 </Expanded>
2134 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002135 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002136 <Original>
2137 multiply( i, 2 ) == i*2
2138 </Original>
2139 <Expanded>
2140 4 == 4
2141 </Expanded>
2142 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002143 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002144 <Original>
2145 multiply( j, 2 ) == j*2
2146 </Original>
2147 <Expanded>
2148 206 == 206
2149 </Expanded>
2150 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002151 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002152 <Original>
2153 multiply( i, 2 ) == i*2
2154 </Original>
2155 <Expanded>
2156 6 == 6
2157 </Expanded>
2158 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002159 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002160 <Original>
2161 multiply( j, 2 ) == j*2
2162 </Original>
2163 <Expanded>
2164 206 == 206
2165 </Expanded>
2166 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002167 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002168 <Original>
2169 multiply( i, 2 ) == i*2
2170 </Original>
2171 <Expanded>
2172 8 == 8
2173 </Expanded>
2174 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002175 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002176 <Original>
2177 multiply( j, 2 ) == j*2
2178 </Original>
2179 <Expanded>
2180 206 == 206
2181 </Expanded>
2182 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002183 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002184 <Original>
2185 multiply( i, 2 ) == i*2
2186 </Original>
2187 <Expanded>
2188 10 == 10
2189 </Expanded>
2190 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002191 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002192 <Original>
2193 multiply( j, 2 ) == j*2
2194 </Original>
2195 <Expanded>
2196 206 == 206
2197 </Expanded>
2198 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002199 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002200 <Original>
2201 multiply( i, 2 ) == i*2
2202 </Original>
2203 <Expanded>
2204 30 == 30
2205 </Expanded>
2206 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002207 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002208 <Original>
2209 multiply( j, 2 ) == j*2
2210 </Original>
2211 <Expanded>
2212 206 == 206
2213 </Expanded>
2214 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002215 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002216 <Original>
2217 multiply( i, 2 ) == i*2
2218 </Original>
2219 <Expanded>
2220 40 == 40
2221 </Expanded>
2222 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002223 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002224 <Original>
2225 multiply( j, 2 ) == j*2
2226 </Original>
2227 <Expanded>
2228 206 == 206
2229 </Expanded>
2230 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002231 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002232 <Original>
2233 multiply( i, 2 ) == i*2
2234 </Original>
2235 <Expanded>
2236 42 == 42
2237 </Expanded>
2238 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002239 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002240 <Original>
2241 multiply( j, 2 ) == j*2
2242 </Original>
2243 <Expanded>
2244 206 == 206
2245 </Expanded>
2246 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002247 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002248 <Original>
2249 multiply( i, 2 ) == i*2
2250 </Original>
2251 <Expanded>
2252 72 == 72
2253 </Expanded>
2254 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002255 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002256 <Original>
2257 multiply( j, 2 ) == j*2
2258 </Original>
2259 <Expanded>
2260 206 == 206
2261 </Expanded>
2262 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002263 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002264 <Original>
2265 multiply( i, 2 ) == i*2
2266 </Original>
2267 <Expanded>
2268 2 == 2
2269 </Expanded>
2270 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002271 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002272 <Original>
2273 multiply( j, 2 ) == j*2
2274 </Original>
2275 <Expanded>
2276 208 == 208
2277 </Expanded>
2278 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002279 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002280 <Original>
2281 multiply( i, 2 ) == i*2
2282 </Original>
2283 <Expanded>
2284 4 == 4
2285 </Expanded>
2286 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002287 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002288 <Original>
2289 multiply( j, 2 ) == j*2
2290 </Original>
2291 <Expanded>
2292 208 == 208
2293 </Expanded>
2294 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002295 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002296 <Original>
2297 multiply( i, 2 ) == i*2
2298 </Original>
2299 <Expanded>
2300 6 == 6
2301 </Expanded>
2302 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002303 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002304 <Original>
2305 multiply( j, 2 ) == j*2
2306 </Original>
2307 <Expanded>
2308 208 == 208
2309 </Expanded>
2310 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002311 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002312 <Original>
2313 multiply( i, 2 ) == i*2
2314 </Original>
2315 <Expanded>
2316 8 == 8
2317 </Expanded>
2318 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002319 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002320 <Original>
2321 multiply( j, 2 ) == j*2
2322 </Original>
2323 <Expanded>
2324 208 == 208
2325 </Expanded>
2326 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002327 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002328 <Original>
2329 multiply( i, 2 ) == i*2
2330 </Original>
2331 <Expanded>
2332 10 == 10
2333 </Expanded>
2334 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002335 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002336 <Original>
2337 multiply( j, 2 ) == j*2
2338 </Original>
2339 <Expanded>
2340 208 == 208
2341 </Expanded>
2342 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002343 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002344 <Original>
2345 multiply( i, 2 ) == i*2
2346 </Original>
2347 <Expanded>
2348 30 == 30
2349 </Expanded>
2350 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002351 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002352 <Original>
2353 multiply( j, 2 ) == j*2
2354 </Original>
2355 <Expanded>
2356 208 == 208
2357 </Expanded>
2358 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002359 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002360 <Original>
2361 multiply( i, 2 ) == i*2
2362 </Original>
2363 <Expanded>
2364 40 == 40
2365 </Expanded>
2366 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002367 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002368 <Original>
2369 multiply( j, 2 ) == j*2
2370 </Original>
2371 <Expanded>
2372 208 == 208
2373 </Expanded>
2374 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002375 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002376 <Original>
2377 multiply( i, 2 ) == i*2
2378 </Original>
2379 <Expanded>
2380 42 == 42
2381 </Expanded>
2382 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002383 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002384 <Original>
2385 multiply( j, 2 ) == j*2
2386 </Original>
2387 <Expanded>
2388 208 == 208
2389 </Expanded>
2390 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002391 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002392 <Original>
2393 multiply( i, 2 ) == i*2
2394 </Original>
2395 <Expanded>
2396 72 == 72
2397 </Expanded>
2398 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002399 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002400 <Original>
2401 multiply( j, 2 ) == j*2
2402 </Original>
2403 <Expanded>
2404 208 == 208
2405 </Expanded>
2406 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002407 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002408 <Original>
2409 multiply( i, 2 ) == i*2
2410 </Original>
2411 <Expanded>
2412 2 == 2
2413 </Expanded>
2414 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002415 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002416 <Original>
2417 multiply( j, 2 ) == j*2
2418 </Original>
2419 <Expanded>
2420 210 == 210
2421 </Expanded>
2422 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002423 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002424 <Original>
2425 multiply( i, 2 ) == i*2
2426 </Original>
2427 <Expanded>
2428 4 == 4
2429 </Expanded>
2430 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002431 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002432 <Original>
2433 multiply( j, 2 ) == j*2
2434 </Original>
2435 <Expanded>
2436 210 == 210
2437 </Expanded>
2438 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002439 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002440 <Original>
2441 multiply( i, 2 ) == i*2
2442 </Original>
2443 <Expanded>
2444 6 == 6
2445 </Expanded>
2446 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002447 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002448 <Original>
2449 multiply( j, 2 ) == j*2
2450 </Original>
2451 <Expanded>
2452 210 == 210
2453 </Expanded>
2454 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002455 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002456 <Original>
2457 multiply( i, 2 ) == i*2
2458 </Original>
2459 <Expanded>
2460 8 == 8
2461 </Expanded>
2462 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002463 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002464 <Original>
2465 multiply( j, 2 ) == j*2
2466 </Original>
2467 <Expanded>
2468 210 == 210
2469 </Expanded>
2470 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002471 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002472 <Original>
2473 multiply( i, 2 ) == i*2
2474 </Original>
2475 <Expanded>
2476 10 == 10
2477 </Expanded>
2478 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002479 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002480 <Original>
2481 multiply( j, 2 ) == j*2
2482 </Original>
2483 <Expanded>
2484 210 == 210
2485 </Expanded>
2486 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002487 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002488 <Original>
2489 multiply( i, 2 ) == i*2
2490 </Original>
2491 <Expanded>
2492 30 == 30
2493 </Expanded>
2494 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002495 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002496 <Original>
2497 multiply( j, 2 ) == j*2
2498 </Original>
2499 <Expanded>
2500 210 == 210
2501 </Expanded>
2502 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002503 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002504 <Original>
2505 multiply( i, 2 ) == i*2
2506 </Original>
2507 <Expanded>
2508 40 == 40
2509 </Expanded>
2510 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002511 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002512 <Original>
2513 multiply( j, 2 ) == j*2
2514 </Original>
2515 <Expanded>
2516 210 == 210
2517 </Expanded>
2518 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002519 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002520 <Original>
2521 multiply( i, 2 ) == i*2
2522 </Original>
2523 <Expanded>
2524 42 == 42
2525 </Expanded>
2526 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002527 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002528 <Original>
2529 multiply( j, 2 ) == j*2
2530 </Original>
2531 <Expanded>
2532 210 == 210
2533 </Expanded>
2534 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002535 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002536 <Original>
2537 multiply( i, 2 ) == i*2
2538 </Original>
2539 <Expanded>
2540 72 == 72
2541 </Expanded>
2542 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002543 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002544 <Original>
2545 multiply( j, 2 ) == j*2
2546 </Original>
2547 <Expanded>
2548 210 == 210
2549 </Expanded>
2550 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002551 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002552 <Original>
2553 multiply( i, 2 ) == i*2
2554 </Original>
2555 <Expanded>
2556 2 == 2
2557 </Expanded>
2558 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002559 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002560 <Original>
2561 multiply( j, 2 ) == j*2
2562 </Original>
2563 <Expanded>
2564 212 == 212
2565 </Expanded>
2566 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002567 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002568 <Original>
2569 multiply( i, 2 ) == i*2
2570 </Original>
2571 <Expanded>
2572 4 == 4
2573 </Expanded>
2574 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002575 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002576 <Original>
2577 multiply( j, 2 ) == j*2
2578 </Original>
2579 <Expanded>
2580 212 == 212
2581 </Expanded>
2582 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002583 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002584 <Original>
2585 multiply( i, 2 ) == i*2
2586 </Original>
2587 <Expanded>
2588 6 == 6
2589 </Expanded>
2590 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002591 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002592 <Original>
2593 multiply( j, 2 ) == j*2
2594 </Original>
2595 <Expanded>
2596 212 == 212
2597 </Expanded>
2598 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002599 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002600 <Original>
2601 multiply( i, 2 ) == i*2
2602 </Original>
2603 <Expanded>
2604 8 == 8
2605 </Expanded>
2606 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002607 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002608 <Original>
2609 multiply( j, 2 ) == j*2
2610 </Original>
2611 <Expanded>
2612 212 == 212
2613 </Expanded>
2614 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002615 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002616 <Original>
2617 multiply( i, 2 ) == i*2
2618 </Original>
2619 <Expanded>
2620 10 == 10
2621 </Expanded>
2622 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002623 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002624 <Original>
2625 multiply( j, 2 ) == j*2
2626 </Original>
2627 <Expanded>
2628 212 == 212
2629 </Expanded>
2630 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002631 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002632 <Original>
2633 multiply( i, 2 ) == i*2
2634 </Original>
2635 <Expanded>
2636 30 == 30
2637 </Expanded>
2638 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002639 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002640 <Original>
2641 multiply( j, 2 ) == j*2
2642 </Original>
2643 <Expanded>
2644 212 == 212
2645 </Expanded>
2646 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002647 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002648 <Original>
2649 multiply( i, 2 ) == i*2
2650 </Original>
2651 <Expanded>
2652 40 == 40
2653 </Expanded>
2654 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002655 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002656 <Original>
2657 multiply( j, 2 ) == j*2
2658 </Original>
2659 <Expanded>
2660 212 == 212
2661 </Expanded>
2662 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002663 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002664 <Original>
2665 multiply( i, 2 ) == i*2
2666 </Original>
2667 <Expanded>
2668 42 == 42
2669 </Expanded>
2670 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002671 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002672 <Original>
2673 multiply( j, 2 ) == j*2
2674 </Original>
2675 <Expanded>
2676 212 == 212
2677 </Expanded>
2678 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002679 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002680 <Original>
2681 multiply( i, 2 ) == i*2
2682 </Original>
2683 <Expanded>
2684 72 == 72
2685 </Expanded>
2686 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002687 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002688 <Original>
2689 multiply( j, 2 ) == j*2
2690 </Original>
2691 <Expanded>
2692 212 == 212
2693 </Expanded>
2694 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002695 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002696 <Original>
2697 multiply( i, 2 ) == i*2
2698 </Original>
2699 <Expanded>
2700 2 == 2
2701 </Expanded>
2702 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002703 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002704 <Original>
2705 multiply( j, 2 ) == j*2
2706 </Original>
2707 <Expanded>
2708 214 == 214
2709 </Expanded>
2710 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002711 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002712 <Original>
2713 multiply( i, 2 ) == i*2
2714 </Original>
2715 <Expanded>
2716 4 == 4
2717 </Expanded>
2718 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002719 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002720 <Original>
2721 multiply( j, 2 ) == j*2
2722 </Original>
2723 <Expanded>
2724 214 == 214
2725 </Expanded>
2726 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002727 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002728 <Original>
2729 multiply( i, 2 ) == i*2
2730 </Original>
2731 <Expanded>
2732 6 == 6
2733 </Expanded>
2734 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002735 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002736 <Original>
2737 multiply( j, 2 ) == j*2
2738 </Original>
2739 <Expanded>
2740 214 == 214
2741 </Expanded>
2742 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002743 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002744 <Original>
2745 multiply( i, 2 ) == i*2
2746 </Original>
2747 <Expanded>
2748 8 == 8
2749 </Expanded>
2750 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002751 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002752 <Original>
2753 multiply( j, 2 ) == j*2
2754 </Original>
2755 <Expanded>
2756 214 == 214
2757 </Expanded>
2758 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002759 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002760 <Original>
2761 multiply( i, 2 ) == i*2
2762 </Original>
2763 <Expanded>
2764 10 == 10
2765 </Expanded>
2766 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002767 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002768 <Original>
2769 multiply( j, 2 ) == j*2
2770 </Original>
2771 <Expanded>
2772 214 == 214
2773 </Expanded>
2774 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002775 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002776 <Original>
2777 multiply( i, 2 ) == i*2
2778 </Original>
2779 <Expanded>
2780 30 == 30
2781 </Expanded>
2782 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002783 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002784 <Original>
2785 multiply( j, 2 ) == j*2
2786 </Original>
2787 <Expanded>
2788 214 == 214
2789 </Expanded>
2790 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002791 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002792 <Original>
2793 multiply( i, 2 ) == i*2
2794 </Original>
2795 <Expanded>
2796 40 == 40
2797 </Expanded>
2798 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002799 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002800 <Original>
2801 multiply( j, 2 ) == j*2
2802 </Original>
2803 <Expanded>
2804 214 == 214
2805 </Expanded>
2806 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002807 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002808 <Original>
2809 multiply( i, 2 ) == i*2
2810 </Original>
2811 <Expanded>
2812 42 == 42
2813 </Expanded>
2814 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002815 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002816 <Original>
2817 multiply( j, 2 ) == j*2
2818 </Original>
2819 <Expanded>
2820 214 == 214
2821 </Expanded>
2822 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002823 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002824 <Original>
2825 multiply( i, 2 ) == i*2
2826 </Original>
2827 <Expanded>
2828 72 == 72
2829 </Expanded>
2830 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002831 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002832 <Original>
2833 multiply( j, 2 ) == j*2
2834 </Original>
2835 <Expanded>
2836 214 == 214
2837 </Expanded>
2838 </Expression>
2839 <OverallResult success="true"/>
2840 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002841 <TestCase name="Generator over a range of pairs">
Phil Nashc6635a72014-12-30 18:25:27 +00002842 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002843 <Original>
2844 i->first == i->second-1
2845 </Original>
2846 <Expanded>
2847 0 == 0
2848 </Expanded>
2849 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002850 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002851 <Original>
2852 i->first == i->second-1
2853 </Original>
2854 <Expanded>
2855 2 == 2
2856 </Expanded>
2857 </Expression>
2858 <OverallResult success="true"/>
2859 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002860 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002861 <Info>
2862 this is a message
2863 </Info>
2864 <Warning>
2865 this is a warning
2866 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00002867 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002868 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002869 <TestCase name="SUCCEED counts as a test pass">
Phil Nash2f7a2962013-09-27 19:01:14 +01002870 <OverallResult success="true"/>
2871 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002872 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002873 <Info>
2874 this message should be logged
2875 </Info>
2876 <Info>
2877 so should this
2878 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002879 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002880 <Original>
2881 a == 1
2882 </Original>
2883 <Expanded>
2884 2 == 1
2885 </Expanded>
2886 </Expression>
2887 <OverallResult success="false"/>
2888 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002889 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nashc6635a72014-12-30 18:25:27 +00002890 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002891 <Original>
2892 a == 2
2893 </Original>
2894 <Expanded>
2895 2 == 2
2896 </Expanded>
2897 </Expression>
2898 <Info>
2899 this message should be logged
2900 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002901 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002902 <Original>
2903 a == 1
2904 </Original>
2905 <Expanded>
2906 2 == 1
2907 </Expanded>
2908 </Expression>
2909 <Info>
2910 and this, but later
2911 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002912 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002913 <Original>
2914 a == 0
2915 </Original>
2916 <Expanded>
2917 2 == 0
2918 </Expanded>
2919 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002920 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002921 <Original>
2922 a == 2
2923 </Original>
2924 <Expanded>
2925 2 == 2
2926 </Expanded>
2927 </Expression>
2928 <OverallResult success="false"/>
2929 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002930 <TestCase name="FAIL aborts the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002931 <Failure>
2932 This is a failure
2933 </Failure>
2934 <OverallResult success="false"/>
2935 </TestCase>
Phil Nash859760a2013-12-14 14:34:05 +00002936 <TestCase name="FAIL does not require an argument">
2937 <Failure/>
2938 <OverallResult success="false"/>
2939 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00002940 <TestCase name="SUCCESS does not require an argument">
2941 <OverallResult success="true"/>
2942 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002943 <TestCase name="Output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002944 <Section name="one">
2945 <Failure>
2946 Message from section one
2947 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002948 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002949 </Section>
2950 <Section name="two">
2951 <Failure>
2952 Message from section two
2953 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002954 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002955 </Section>
2956 <OverallResult success="false"/>
2957 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002958 <TestCase name="Standard output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002959 <Section name="one">
Phil Nash9c1f9a82014-07-03 08:09:57 +01002960 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002961 </Section>
2962 <Section name="two">
Phil Nash9c1f9a82014-07-03 08:09:57 +01002963 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002964 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00002965 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002966 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002967 <TestCase name="SCOPED_INFO is reset for each loop">
Phil Nashc6635a72014-12-30 18:25:27 +00002968 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002969 <Original>
2970 i &lt; 10
2971 </Original>
2972 <Expanded>
2973 0 &lt; 10
2974 </Expanded>
2975 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002976 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002977 <Original>
2978 i &lt; 10
2979 </Original>
2980 <Expanded>
2981 1 &lt; 10
2982 </Expanded>
2983 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002984 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002985 <Original>
2986 i &lt; 10
2987 </Original>
2988 <Expanded>
2989 2 &lt; 10
2990 </Expanded>
2991 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002992 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002993 <Original>
2994 i &lt; 10
2995 </Original>
2996 <Expanded>
2997 3 &lt; 10
2998 </Expanded>
2999 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003000 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003001 <Original>
3002 i &lt; 10
3003 </Original>
3004 <Expanded>
3005 4 &lt; 10
3006 </Expanded>
3007 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003008 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003009 <Original>
3010 i &lt; 10
3011 </Original>
3012 <Expanded>
3013 5 &lt; 10
3014 </Expanded>
3015 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003016 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003017 <Original>
3018 i &lt; 10
3019 </Original>
3020 <Expanded>
3021 6 &lt; 10
3022 </Expanded>
3023 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003024 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003025 <Original>
3026 i &lt; 10
3027 </Original>
3028 <Expanded>
3029 7 &lt; 10
3030 </Expanded>
3031 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003032 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003033 <Original>
3034 i &lt; 10
3035 </Original>
3036 <Expanded>
3037 8 &lt; 10
3038 </Expanded>
3039 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003040 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003041 <Original>
3042 i &lt; 10
3043 </Original>
3044 <Expanded>
3045 9 &lt; 10
3046 </Expanded>
3047 </Expression>
3048 <Info>
3049 current counter 10
3050 </Info>
3051 <Info>
3052 i := 10
3053 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003054 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003055 <Original>
3056 i &lt; 10
3057 </Original>
3058 <Expanded>
3059 10 &lt; 10
3060 </Expanded>
3061 </Expression>
3062 <OverallResult success="false"/>
3063 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003064 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00003065 <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003066 <Original>
3067 1 == 2
3068 </Original>
3069 <Expanded>
3070 1 == 2
3071 </Expanded>
3072 </Expression>
3073 <OverallResult success="false"/>
3074 </TestCase>
3075 <TestCase name="just info">
Phil Nash6817bb02014-12-30 18:24:31 +00003076 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003077 </TestCase>
3078 <TestCase name="just failure">
3079 <Failure>
3080 Previous info should not be seen
3081 </Failure>
3082 <OverallResult success="false"/>
3083 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003084 <TestCase name="sends information to INFO">
3085 <Info>
3086 hi
3087 </Info>
3088 <Info>
3089 i := 7
3090 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003091 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash337dc252013-11-19 07:21:03 +00003092 <Original>
3093 false
3094 </Original>
3095 <Expanded>
3096 false
3097 </Expanded>
3098 </Expression>
3099 <OverallResult success="false"/>
3100 </TestCase>
Phil Nash14796812014-05-23 18:55:05 +01003101 <TestCase name="Pointers can be converted to strings">
3102 <Warning>
3103 actual address of p: 0x<hex digits>
3104 </Warning>
3105 <Warning>
3106 toString(p): 0x<hex digits>
3107 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00003108 <OverallResult success="false"/>
Phil Nash14796812014-05-23 18:55:05 +01003109 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003110 <TestCase name="random SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003111 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003112 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003113 <Original>
3114 a != b
3115 </Original>
3116 <Expanded>
3117 1 != 2
3118 </Expanded>
3119 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003120 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003121 <Original>
3122 b != a
3123 </Original>
3124 <Expanded>
3125 2 != 1
3126 </Expanded>
3127 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003128 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003129 </Section>
3130 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003131 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003132 <Original>
3133 a != b
3134 </Original>
3135 <Expanded>
3136 1 != 2
3137 </Expanded>
3138 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003139 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003140 </Section>
3141 <OverallResult success="true"/>
3142 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003143 <TestCase name="nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003144 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003145 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003146 <Original>
3147 a != b
3148 </Original>
3149 <Expanded>
3150 1 != 2
3151 </Expanded>
3152 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003153 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003154 <Original>
3155 b != a
3156 </Original>
3157 <Expanded>
3158 2 != 1
3159 </Expanded>
3160 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003161 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003162 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003163 <Original>
3164 a != b
3165 </Original>
3166 <Expanded>
3167 1 != 2
3168 </Expanded>
3169 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003170 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003171 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003172 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003173 </Section>
3174 <OverallResult success="true"/>
3175 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003176 <TestCase name="more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003177 <Section name="s1" description="doesn't equal">
Phil Nash2f7a2962013-09-27 19:01:14 +01003178 <Section name="s2" description="equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003179 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003180 <Original>
3181 a == b
3182 </Original>
3183 <Expanded>
3184 1 == 2
3185 </Expanded>
3186 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003187 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003188 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003189 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003190 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01003191 <OverallResult success="false"/>
3192 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003193 <TestCase name="even more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003194 <Section name="c">
Phil Nash2f7a2962013-09-27 19:01:14 +01003195 <Section name="d (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003196 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003197 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003198 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003199 </Section>
3200 <Section name="c">
3201 <Section name="e (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003202 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003203 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003204 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003205 </Section>
3206 <Section name="f (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003207 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003208 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00003209 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003210 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003211 <TestCase name="looped SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003212 <Section name="s1" description="b is currently: 0">
Phil Nashc6635a72014-12-30 18:25:27 +00003213 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003214 <Original>
3215 b > a
3216 </Original>
3217 <Expanded>
3218 0 > 1
3219 </Expanded>
3220 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003221 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003222 </Section>
3223 <OverallResult success="false"/>
3224 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003225 <TestCase name="looped tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003226 <Info>
3227 Testing if fib[0] (1) is even
3228 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003229 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003230 <Original>
3231 ( fib[i] % 2 ) == 0
3232 </Original>
3233 <Expanded>
3234 1 == 0
3235 </Expanded>
3236 </Expression>
3237 <Info>
3238 Testing if fib[1] (1) is even
3239 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003240 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003241 <Original>
3242 ( fib[i] % 2 ) == 0
3243 </Original>
3244 <Expanded>
3245 1 == 0
3246 </Expanded>
3247 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003248 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003249 <Original>
3250 ( fib[i] % 2 ) == 0
3251 </Original>
3252 <Expanded>
3253 0 == 0
3254 </Expanded>
3255 </Expression>
3256 <Info>
3257 Testing if fib[3] (3) is even
3258 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003259 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003260 <Original>
3261 ( fib[i] % 2 ) == 0
3262 </Original>
3263 <Expanded>
3264 1 == 0
3265 </Expanded>
3266 </Expression>
3267 <Info>
3268 Testing if fib[4] (5) is even
3269 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003270 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003271 <Original>
3272 ( fib[i] % 2 ) == 0
3273 </Original>
3274 <Expanded>
3275 1 == 0
3276 </Expanded>
3277 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003278 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003279 <Original>
3280 ( fib[i] % 2 ) == 0
3281 </Original>
3282 <Expanded>
3283 0 == 0
3284 </Expanded>
3285 </Expression>
3286 <Info>
3287 Testing if fib[6] (13) is even
3288 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003289 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003290 <Original>
3291 ( fib[i] % 2 ) == 0
3292 </Original>
3293 <Expanded>
3294 1 == 0
3295 </Expanded>
3296 </Expression>
3297 <Info>
3298 Testing if fib[7] (21) is even
3299 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003300 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003301 <Original>
3302 ( fib[i] % 2 ) == 0
3303 </Original>
3304 <Expanded>
3305 1 == 0
3306 </Expanded>
3307 </Expression>
3308 <OverallResult success="false"/>
3309 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003310 <TestCase name="Sends stuff to stdout and stderr">
Phil Nash6817bb02014-12-30 18:24:31 +00003311 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003312 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003313 <TestCase name="null strings">
Phil Nashc6635a72014-12-30 18:25:27 +00003314 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003315 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003316 makeString( false ) != static_cast&lt;char*>(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003317 </Original>
3318 <Expanded>
3319 &quot;valid string&quot; != {null string}
3320 </Expanded>
3321 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003322 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003323 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003324 makeString( true ) == static_cast&lt;char*>(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003325 </Original>
3326 <Expanded>
3327 {null string} == {null string}
3328 </Expanded>
3329 </Expression>
3330 <OverallResult success="true"/>
3331 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003332 <TestCase name="checkedIf">
Phil Nashc6635a72014-12-30 18:25:27 +00003333 <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003334 <Original>
3335 flag
3336 </Original>
3337 <Expanded>
3338 true
3339 </Expanded>
3340 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003341 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003342 <Original>
3343 testCheckedIf( true )
3344 </Original>
3345 <Expanded>
3346 true
3347 </Expanded>
3348 </Expression>
3349 <OverallResult success="true"/>
3350 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003351 <TestCase name="checkedIf, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003352 <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003353 <Original>
3354 flag
3355 </Original>
3356 <Expanded>
3357 false
3358 </Expanded>
3359 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003360 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003361 <Original>
3362 testCheckedIf( false )
3363 </Original>
3364 <Expanded>
3365 false
3366 </Expanded>
3367 </Expression>
3368 <OverallResult success="false"/>
3369 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003370 <TestCase name="checkedElse">
Phil Nashc6635a72014-12-30 18:25:27 +00003371 <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003372 <Original>
3373 flag
3374 </Original>
3375 <Expanded>
3376 true
3377 </Expanded>
3378 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003379 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003380 <Original>
3381 testCheckedElse( true )
3382 </Original>
3383 <Expanded>
3384 true
3385 </Expanded>
3386 </Expression>
3387 <OverallResult success="true"/>
3388 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003389 <TestCase name="checkedElse, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003390 <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003391 <Original>
3392 flag
3393 </Original>
3394 <Expanded>
3395 false
3396 </Expanded>
3397 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003398 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003399 <Original>
3400 testCheckedElse( false )
3401 </Original>
3402 <Expanded>
3403 false
3404 </Expanded>
3405 </Expression>
3406 <OverallResult success="false"/>
3407 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003408 <TestCase name="xmlentitycheck">
Phil Nash2f7a2962013-09-27 19:01:14 +01003409 <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 +01003410 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003411 </Section>
3412 <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 +01003413 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003414 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00003415 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003416 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003417 <TestCase name="send a single char to INFO">
Phil Nash2f7a2962013-09-27 19:01:14 +01003418 <Info>
3419 3
3420 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003421 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003422 <Original>
3423 false
3424 </Original>
3425 <Expanded>
3426 false
3427 </Expanded>
3428 </Expression>
3429 <OverallResult success="false"/>
3430 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003431 <TestCase name="atomic if">
Phil Nashc6635a72014-12-30 18:25:27 +00003432 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003433 <Original>
3434 x == 0
3435 </Original>
3436 <Expanded>
3437 0 == 0
3438 </Expanded>
3439 </Expression>
3440 <OverallResult success="true"/>
3441 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003442 <TestCase name="String matchers">
Phil Nashc6635a72014-12-30 18:25:27 +00003443 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003444 <Original>
3445 testStringForMatching() Contains( &quot;string&quot; )
3446 </Original>
3447 <Expanded>
3448 &quot;this string contains 'abc' as a substring&quot; contains: &quot;string&quot;
3449 </Expanded>
3450 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003451 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003452 <Original>
3453 testStringForMatching() Contains( &quot;abc&quot; )
3454 </Original>
3455 <Expanded>
3456 &quot;this string contains 'abc' as a substring&quot; contains: &quot;abc&quot;
3457 </Expanded>
3458 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003459 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003460 <Original>
3461 testStringForMatching() StartsWith( &quot;this&quot; )
3462 </Original>
3463 <Expanded>
3464 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;this&quot;
3465 </Expanded>
3466 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003467 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003468 <Original>
3469 testStringForMatching() EndsWith( &quot;substring&quot; )
3470 </Original>
3471 <Expanded>
3472 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;substring&quot;
3473 </Expanded>
3474 </Expression>
3475 <OverallResult success="true"/>
3476 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003477 <TestCase name="Contains string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003478 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003479 <Original>
3480 testStringForMatching() Contains( &quot;not there&quot; )
3481 </Original>
3482 <Expanded>
3483 &quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;
3484 </Expanded>
3485 </Expression>
3486 <OverallResult success="false"/>
3487 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003488 <TestCase name="StartsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003489 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003490 <Original>
3491 testStringForMatching() StartsWith( &quot;string&quot; )
3492 </Original>
3493 <Expanded>
3494 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;
3495 </Expanded>
3496 </Expression>
3497 <OverallResult success="false"/>
3498 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003499 <TestCase name="EndsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003500 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003501 <Original>
3502 testStringForMatching() EndsWith( &quot;this&quot; )
3503 </Original>
3504 <Expanded>
3505 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;
3506 </Expanded>
3507 </Expression>
3508 <OverallResult success="false"/>
3509 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003510 <TestCase name="Equals string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003511 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003512 <Original>
3513 testStringForMatching() Equals( &quot;something else&quot; )
3514 </Original>
3515 <Expanded>
3516 &quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;
3517 </Expanded>
3518 </Expression>
3519 <OverallResult success="false"/>
3520 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003521 <TestCase name="Equals string matcher, with NULL">
Phil Nashc6635a72014-12-30 18:25:27 +00003522 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003523 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003524 &quot;&quot; Equals(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003525 </Original>
3526 <Expanded>
3527 &quot;&quot; equals: &quot;&quot;
3528 </Expanded>
3529 </Expression>
3530 <OverallResult success="true"/>
3531 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003532 <TestCase name="AllOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003533 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003534 <Original>
3535 testStringForMatching() AllOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;abc&quot; ) )
3536 </Original>
3537 <Expanded>
3538 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; and contains: &quot;abc&quot; )
3539 </Expanded>
3540 </Expression>
3541 <OverallResult success="true"/>
3542 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003543 <TestCase name="AnyOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003544 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003545 <Original>
3546 testStringForMatching() AnyOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;not there&quot; ) )
3547 </Original>
3548 <Expanded>
3549 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; or contains: &quot;not there&quot; )
3550 </Expanded>
3551 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003552 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003553 <Original>
3554 testStringForMatching() AnyOf( Catch::Contains( &quot;not there&quot; ), Catch::Contains( &quot;string&quot; ) )
3555 </Original>
3556 <Expanded>
3557 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;not there&quot; or contains: &quot;string&quot; )
3558 </Expanded>
3559 </Expression>
3560 <OverallResult success="true"/>
3561 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003562 <TestCase name="Equals">
Phil Nashc6635a72014-12-30 18:25:27 +00003563 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003564 <Original>
3565 testStringForMatching() Equals( &quot;this string contains 'abc' as a substring&quot; )
3566 </Original>
3567 <Expanded>
3568 &quot;this string contains 'abc' as a substring&quot; equals: &quot;this string contains 'abc' as a substring&quot;
3569 </Expanded>
3570 </Expression>
3571 <OverallResult success="true"/>
3572 </TestCase>
3573 <TestCase name="Factorials are computed">
Phil Nashc6635a72014-12-30 18:25:27 +00003574 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003575 <Original>
3576 Factorial(0) == 1
3577 </Original>
3578 <Expanded>
3579 1 == 1
3580 </Expanded>
3581 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003582 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003583 <Original>
3584 Factorial(1) == 1
3585 </Original>
3586 <Expanded>
3587 1 == 1
3588 </Expanded>
3589 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003590 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003591 <Original>
3592 Factorial(2) == 2
3593 </Original>
3594 <Expanded>
3595 2 == 2
3596 </Expanded>
3597 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003598 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003599 <Original>
3600 Factorial(3) == 6
3601 </Original>
3602 <Expanded>
3603 6 == 6
3604 </Expanded>
3605 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003606 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003607 <Original>
3608 Factorial(10) == 3628800
3609 </Original>
3610 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01003611 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
Phil Nash2f7a2962013-09-27 19:01:14 +01003612 </Expanded>
3613 </Expression>
3614 <OverallResult success="true"/>
3615 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003616 <TestCase name="An empty test with no assertions">
Phil Nash6817bb02014-12-30 18:24:31 +00003617 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003618 </TestCase>
3619 <TestCase name="Nice descriptive name">
3620 <Warning>
3621 This one ran
3622 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00003623 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003624 </TestCase>
3625 <TestCase name="first tag">
Phil Nash6817bb02014-12-30 18:24:31 +00003626 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003627 </TestCase>
3628 <TestCase name="second tag">
Phil Nash6817bb02014-12-30 18:24:31 +00003629 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003630 </TestCase>
3631 <TestCase name="vectors can be sized and resized">
Phil Nashc6635a72014-12-30 18:25:27 +00003632 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003633 <Original>
3634 v.size() == 5
3635 </Original>
3636 <Expanded>
3637 5 == 5
3638 </Expanded>
3639 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003640 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003641 <Original>
3642 v.capacity() >= 5
3643 </Original>
3644 <Expanded>
3645 5 >= 5
3646 </Expanded>
3647 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003648 <Section name="resizing bigger changes size and capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003649 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003650 <Original>
3651 v.size() == 10
3652 </Original>
3653 <Expanded>
3654 10 == 10
3655 </Expanded>
3656 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003657 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003658 <Original>
3659 v.capacity() >= 10
3660 </Original>
3661 <Expanded>
3662 10 >= 10
3663 </Expanded>
3664 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003665 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003666 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003667 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003668 <Original>
3669 v.size() == 5
3670 </Original>
3671 <Expanded>
3672 5 == 5
3673 </Expanded>
3674 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003675 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003676 <Original>
3677 v.capacity() >= 5
3678 </Original>
3679 <Expanded>
3680 5 >= 5
3681 </Expanded>
3682 </Expression>
3683 <Section name="resizing smaller changes size but not capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003684 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003685 <Original>
3686 v.size() == 0
3687 </Original>
3688 <Expanded>
3689 0 == 0
3690 </Expanded>
3691 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003692 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003693 <Original>
3694 v.capacity() >= 5
3695 </Original>
3696 <Expanded>
3697 5 >= 5
3698 </Expanded>
3699 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003700 <Section name="We can use the 'swap trick' to reset the capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003701 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003702 <Original>
3703 v.capacity() == 0
3704 </Original>
3705 <Expanded>
3706 0 == 0
3707 </Expanded>
3708 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003709 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003710 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003711 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003712 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003713 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003714 <Original>
3715 v.size() == 5
3716 </Original>
3717 <Expanded>
3718 5 == 5
3719 </Expanded>
3720 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003721 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003722 <Original>
3723 v.capacity() >= 5
3724 </Original>
3725 <Expanded>
3726 5 >= 5
3727 </Expanded>
3728 </Expression>
3729 <Section name="reserving bigger changes capacity but not size">
Phil Nashc6635a72014-12-30 18:25:27 +00003730 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003731 <Original>
3732 v.size() == 5
3733 </Original>
3734 <Expanded>
3735 5 == 5
3736 </Expanded>
3737 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003738 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003739 <Original>
3740 v.capacity() >= 10
3741 </Original>
3742 <Expanded>
3743 10 >= 10
3744 </Expanded>
3745 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003746 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003747 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003748 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003749 <Original>
3750 v.size() == 5
3751 </Original>
3752 <Expanded>
3753 5 == 5
3754 </Expanded>
3755 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003756 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003757 <Original>
3758 v.capacity() >= 5
3759 </Original>
3760 <Expanded>
3761 5 >= 5
3762 </Expanded>
3763 </Expression>
3764 <Section name="reserving smaller does not change size or capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003765 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003766 <Original>
3767 v.size() == 5
3768 </Original>
3769 <Expanded>
3770 5 == 5
3771 </Expanded>
3772 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003773 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003774 <Original>
3775 v.capacity() >= 5
3776 </Original>
3777 <Expanded>
3778 5 >= 5
3779 </Expanded>
3780 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003781 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003782 </Section>
3783 <OverallResult success="true"/>
3784 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003785 <TestCase name="A couple of nested sections followed by a failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01003786 <Section name="Outer">
3787 <Section name="Inner">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003788 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003789 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003790 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003791 </Section>
3792 <Failure>
3793 to infinity and beyond
3794 </Failure>
3795 <OverallResult success="false"/>
3796 </TestCase>
Phil Nash20cad7c2014-04-15 18:44:37 +01003797 <TestCase name="not allowed">
3798 <OverallResult success="true"/>
3799 </TestCase>
Phil Nash31caba42014-04-23 07:07:27 +01003800 <TestCase name="Tabs and newlines show in output">
Phil Nashc6635a72014-12-30 18:25:27 +00003801 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash31caba42014-04-23 07:07:27 +01003802 <Original>
3803 s1 == s2
3804 </Original>
3805 <Expanded>
3806 &quot;if ($b == 10) {
3807 $a = 20;
3808}&quot;
3809==
3810&quot;if ($b == 10) {
3811 $a = 20;
3812}
3813&quot;
3814 </Expanded>
3815 </Expression>
3816 <OverallResult success="false"/>
3817 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01003818 <TestCase name="toString on const wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003819 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003820 <Original>
3821 result == &quot;\&quot;wide load\&quot;&quot;
3822 </Original>
3823 <Expanded>
3824 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3825 </Expanded>
3826 </Expression>
3827 <OverallResult success="true"/>
3828 </TestCase>
3829 <TestCase name="toString on const wchar_t pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003830 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003831 <Original>
3832 result == &quot;\&quot;wide load\&quot;&quot;
3833 </Original>
3834 <Expanded>
3835 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3836 </Expanded>
3837 </Expression>
3838 <OverallResult success="true"/>
3839 </TestCase>
3840 <TestCase name="toString on wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003841 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003842 <Original>
3843 result == &quot;\&quot;wide load\&quot;&quot;
3844 </Original>
3845 <Expanded>
3846 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3847 </Expanded>
3848 </Expression>
3849 <OverallResult success="true"/>
3850 </TestCase>
3851 <TestCase name="toString on wchar_t returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003852 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003853 <Original>
3854 result == &quot;\&quot;wide load\&quot;&quot;
3855 </Original>
3856 <Expanded>
3857 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3858 </Expanded>
3859 </Expression>
3860 <OverallResult success="true"/>
3861 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01003862 <TestCase name="Process can be configured on command line">
3863 <Section name="default - no arguments">
Phil Nashc6635a72014-12-30 18:25:27 +00003864 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003865 <Original>
3866 parseIntoConfig( argv, config )
3867 </Original>
3868 <Expanded>
3869 parseIntoConfig( argv, config )
3870 </Expanded>
3871 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003872 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003873 <Original>
3874 config.shouldDebugBreak == false
3875 </Original>
3876 <Expanded>
3877 false == false
3878 </Expanded>
3879 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003880 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003881 <Original>
3882 config.abortAfter == -1
3883 </Original>
3884 <Expanded>
3885 -1 == -1
3886 </Expanded>
3887 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003888 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003889 <Original>
3890 config.noThrow == false
3891 </Original>
3892 <Expanded>
3893 false == false
3894 </Expanded>
3895 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003896 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003897 <Original>
3898 config.reporterName.empty()
3899 </Original>
3900 <Expanded>
3901 true
3902 </Expanded>
3903 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003904 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003905 </Section>
3906 <Section name="test lists">
Phil Nash2f7a2962013-09-27 19:01:14 +01003907 <Section name="1 test" description="Specify one test case using">
Phil Nashc6635a72014-12-30 18:25:27 +00003908 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003909 <Original>
3910 parseIntoConfig( argv, config )
3911 </Original>
3912 <Expanded>
3913 parseIntoConfig( argv, config )
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;notIncluded&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003919 </Original>
3920 <Expanded>
3921 false == false
3922 </Expanded>
3923 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003924 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003925 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003926 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003927 </Original>
3928 <Expanded>
3929 true
3930 </Expanded>
3931 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003932 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003933 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003934 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003935 </Section>
3936 <Section name="test lists">
3937 <Section name="Specify one test case exclusion using exclude:">
Phil Nashc6635a72014-12-30 18:25:27 +00003938 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003939 <Original>
3940 parseIntoConfig( argv, config )
3941 </Original>
3942 <Expanded>
3943 parseIntoConfig( argv, config )
3944 </Expanded>
3945 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003946 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003947 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003948 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003949 </Original>
3950 <Expanded>
3951 false == false
3952 </Expanded>
3953 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003954 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003955 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003956 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003957 </Original>
3958 <Expanded>
3959 true
3960 </Expanded>
3961 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003962 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003963 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003964 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003965 </Section>
3966 <Section name="test lists">
3967 <Section name="Specify one test case exclusion using ~">
Phil Nashc6635a72014-12-30 18:25:27 +00003968 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003969 <Original>
3970 parseIntoConfig( argv, config )
3971 </Original>
3972 <Expanded>
3973 parseIntoConfig( argv, config )
3974 </Expanded>
3975 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003976 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003977 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003978 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003979 </Original>
3980 <Expanded>
3981 false == false
3982 </Expanded>
3983 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003984 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003985 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003986 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003987 </Original>
3988 <Expanded>
3989 true
3990 </Expanded>
3991 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003992 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003993 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003994 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003995 </Section>
3996 <Section name="reporter">
Phil Nash2f7a2962013-09-27 19:01:14 +01003997 <Section name="-r/console">
Phil Nashc6635a72014-12-30 18:25:27 +00003998 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003999 <Original>
4000 parseIntoConfig( argv, config )
4001 </Original>
4002 <Expanded>
4003 parseIntoConfig( argv, config )
4004 </Expanded>
4005 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004006 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004007 <Original>
4008 config.reporterName == &quot;console&quot;
4009 </Original>
4010 <Expanded>
4011 &quot;console&quot; == &quot;console&quot;
4012 </Expanded>
4013 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004014 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004015 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004016 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004017 </Section>
4018 <Section name="reporter">
4019 <Section name="-r/xml">
Phil Nashc6635a72014-12-30 18:25:27 +00004020 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004021 <Original>
4022 parseIntoConfig( argv, config )
4023 </Original>
4024 <Expanded>
4025 parseIntoConfig( argv, config )
4026 </Expanded>
4027 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004028 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004029 <Original>
4030 config.reporterName == &quot;xml&quot;
4031 </Original>
4032 <Expanded>
4033 &quot;xml&quot; == &quot;xml&quot;
4034 </Expanded>
4035 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004036 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004037 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004038 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004039 </Section>
4040 <Section name="reporter">
4041 <Section name="--reporter/junit">
Phil Nashc6635a72014-12-30 18:25:27 +00004042 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004043 <Original>
4044 parseIntoConfig( argv, config )
4045 </Original>
4046 <Expanded>
4047 parseIntoConfig( argv, config )
4048 </Expanded>
4049 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004050 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004051 <Original>
4052 config.reporterName == &quot;junit&quot;
4053 </Original>
4054 <Expanded>
4055 &quot;junit&quot; == &quot;junit&quot;
4056 </Expanded>
4057 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004058 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004059 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004060 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004061 </Section>
4062 <Section name="debugger">
Phil Nash2f7a2962013-09-27 19:01:14 +01004063 <Section name="-b">
Phil Nashc6635a72014-12-30 18:25:27 +00004064 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004065 <Original>
4066 parseIntoConfig( argv, config )
4067 </Original>
4068 <Expanded>
4069 parseIntoConfig( argv, config )
4070 </Expanded>
4071 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004072 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004073 <Original>
4074 config.shouldDebugBreak == true
4075 </Original>
4076 <Expanded>
4077 true == true
4078 </Expanded>
4079 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004080 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004081 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004082 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004083 </Section>
4084 <Section name="debugger">
4085 <Section name="--break">
Phil Nashc6635a72014-12-30 18:25:27 +00004086 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004087 <Original>
4088 parseIntoConfig( argv, config )
4089 </Original>
4090 <Expanded>
4091 parseIntoConfig( argv, config )
4092 </Expanded>
4093 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004094 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004095 <Original>
4096 config.shouldDebugBreak
4097 </Original>
4098 <Expanded>
4099 true
4100 </Expanded>
4101 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004102 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004103 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004104 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004105 </Section>
4106 <Section name="abort">
Phil Nash2f7a2962013-09-27 19:01:14 +01004107 <Section name="-a aborts after first failure">
Phil Nashc6635a72014-12-30 18:25:27 +00004108 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004109 <Original>
4110 parseIntoConfig( argv, config )
4111 </Original>
4112 <Expanded>
4113 parseIntoConfig( argv, config )
4114 </Expanded>
4115 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004116 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004117 <Original>
4118 config.abortAfter == 1
4119 </Original>
4120 <Expanded>
4121 1 == 1
4122 </Expanded>
4123 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004124 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004125 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004126 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004127 </Section>
4128 <Section name="abort">
4129 <Section name="-x 2 aborts after two failures">
Phil Nashc6635a72014-12-30 18:25:27 +00004130 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004131 <Original>
4132 parseIntoConfig( argv, config )
4133 </Original>
4134 <Expanded>
4135 parseIntoConfig( argv, config )
4136 </Expanded>
4137 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004138 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004139 <Original>
4140 config.abortAfter == 2
4141 </Original>
4142 <Expanded>
4143 2 == 2
4144 </Expanded>
4145 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004146 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004147 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004148 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004149 </Section>
4150 <Section name="abort">
4151 <Section name="-x must be greater than zero">
Phil Nashc6635a72014-12-30 18:25:27 +00004152 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004153 <Original>
4154 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;greater than zero&quot; )
4155 </Original>
4156 <Expanded>
4157 &quot;Value after -x or --abortAfter must be greater than zero
Phil Nashe9d35372014-04-12 19:05:03 +01004158- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;greater than zero&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01004159 </Expanded>
4160 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004161 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004162 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004163 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004164 </Section>
4165 <Section name="abort">
4166 <Section name="-x must be numeric">
Phil Nashc6635a72014-12-30 18:25:27 +00004167 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004168 <Original>
4169 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;-x&quot; )
4170 </Original>
4171 <Expanded>
4172 &quot;Unable to convert oops to destination type
Phil Nashe9d35372014-04-12 19:05:03 +01004173- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;-x&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01004174 </Expanded>
4175 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004176 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004177 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004178 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004179 </Section>
4180 <Section name="nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01004181 <Section name="-e">
Phil Nashc6635a72014-12-30 18:25:27 +00004182 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004183 <Original>
4184 parseIntoConfig( argv, config )
4185 </Original>
4186 <Expanded>
4187 parseIntoConfig( argv, config )
4188 </Expanded>
4189 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004190 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004191 <Original>
4192 config.noThrow == true
4193 </Original>
4194 <Expanded>
4195 true == true
4196 </Expanded>
4197 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004198 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004199 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004200 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004201 </Section>
4202 <Section name="nothrow">
4203 <Section name="--nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00004204 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004205 <Original>
4206 parseIntoConfig( argv, config )
4207 </Original>
4208 <Expanded>
4209 parseIntoConfig( argv, config )
4210 </Expanded>
4211 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004212 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004213 <Original>
4214 config.noThrow == true
4215 </Original>
4216 <Expanded>
4217 true == true
4218 </Expanded>
4219 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004220 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004221 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004222 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004223 </Section>
4224 <Section name="output filename">
Phil Nash2f7a2962013-09-27 19:01:14 +01004225 <Section name="-o filename">
Phil Nashc6635a72014-12-30 18:25:27 +00004226 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004227 <Original>
4228 parseIntoConfig( argv, config )
4229 </Original>
4230 <Expanded>
4231 parseIntoConfig( argv, config )
4232 </Expanded>
4233 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004234 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004235 <Original>
4236 config.outputFilename == &quot;filename.ext&quot;
4237 </Original>
4238 <Expanded>
4239 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4240 </Expanded>
4241 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004242 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004243 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004244 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004245 </Section>
4246 <Section name="output filename">
4247 <Section name="--out">
Phil Nashc6635a72014-12-30 18:25:27 +00004248 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004249 <Original>
4250 parseIntoConfig( argv, config )
4251 </Original>
4252 <Expanded>
4253 parseIntoConfig( argv, config )
4254 </Expanded>
4255 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004256 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004257 <Original>
4258 config.outputFilename == &quot;filename.ext&quot;
4259 </Original>
4260 <Expanded>
4261 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4262 </Expanded>
4263 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004264 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004265 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004266 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004267 </Section>
4268 <Section name="combinations">
Phil Nash2f7a2962013-09-27 19:01:14 +01004269 <Section name="Single character flags can be combined">
Phil Nashc6635a72014-12-30 18:25:27 +00004270 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004271 <Original>
4272 parseIntoConfig( argv, config )
4273 </Original>
4274 <Expanded>
4275 parseIntoConfig( argv, config )
4276 </Expanded>
4277 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004278 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004279 <Original>
4280 config.abortAfter == 1
4281 </Original>
4282 <Expanded>
4283 1 == 1
4284 </Expanded>
4285 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004286 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004287 <Original>
4288 config.shouldDebugBreak
4289 </Original>
4290 <Expanded>
4291 true
4292 </Expanded>
4293 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004294 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004295 <Original>
4296 config.noThrow == true
4297 </Original>
4298 <Expanded>
4299 true == true
4300 </Expanded>
4301 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004302 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004303 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004304 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004305 </Section>
Phil Nash856468c2015-03-04 08:22:32 +00004306 <Section name="force-colour">
4307 <Section name="--force-colour">
4308 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4309 <Original>
4310 parseIntoConfig( argv, config )
4311 </Original>
4312 <Expanded>
4313 parseIntoConfig( argv, config )
4314 </Expanded>
4315 </Expression>
4316 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4317 <Original>
4318 config.forceColour
4319 </Original>
4320 <Expanded>
4321 true
4322 </Expanded>
4323 </Expression>
4324 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4325 </Section>
4326 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4327 </Section>
4328 <Section name="force-colour">
4329 <Section name="without --force-colour">
4330 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4331 <Original>
4332 parseIntoConfig( argv, config )
4333 </Original>
4334 <Expanded>
4335 parseIntoConfig( argv, config )
4336 </Expanded>
4337 </Expression>
4338 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4339 <Original>
4340 !config.forceColour
4341 </Original>
4342 <Expanded>
4343 true
4344 </Expanded>
4345 </Expression>
4346 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4347 </Section>
4348 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4349 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01004350 <OverallResult success="true"/>
4351 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004352 <TestCase name="Long strings can be wrapped">
4353 <Section name="plain string">
Phil Nash2f7a2962013-09-27 19:01:14 +01004354 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004355 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004356 <Original>
4357 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4358 </Original>
4359 <Expanded>
4360 &quot;one two three four&quot;
4361==
4362&quot;one two three four&quot;
4363 </Expanded>
4364 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004365 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004366 <Original>
4367 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4368 </Original>
4369 <Expanded>
4370 &quot;one two three four&quot;
4371==
4372&quot;one two three four&quot;
4373 </Expanded>
4374 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004375 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004376 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004377 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004378 </Section>
4379 <Section name="plain string">
4380 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004381 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004382 <Original>
4383 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == &quot;one two three\nfour&quot;
4384 </Original>
4385 <Expanded>
4386 &quot;one two three
4387four&quot;
4388==
4389&quot;one two three
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( 16 ) ).toString() == &quot;one two three\nfour&quot;
4396 </Original>
4397 <Expanded>
4398 &quot;one two three
4399four&quot;
4400==
4401&quot;one two three
4402four&quot;
4403 </Expanded>
4404 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004405 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004406 <Original>
4407 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == &quot;one two three\nfour&quot;
4408 </Original>
4409 <Expanded>
4410 &quot;one two three
4411four&quot;
4412==
4413&quot;one two three
4414four&quot;
4415 </Expanded>
4416 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004417 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004418 <Original>
4419 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == &quot;one two three\nfour&quot;
4420 </Original>
4421 <Expanded>
4422 &quot;one two three
4423four&quot;
4424==
4425&quot;one two three
4426four&quot;
4427 </Expanded>
4428 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004429 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004430 <Original>
4431 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == &quot;one two\nthree four&quot;
4432 </Original>
4433 <Expanded>
4434 &quot;one two
4435three four&quot;
4436==
4437&quot;one two
4438three four&quot;
4439 </Expanded>
4440 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004441 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004442 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004443 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004444 </Section>
4445 <Section name="plain string">
4446 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004447 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004448 <Original>
4449 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4450 </Original>
4451 <Expanded>
4452 &quot;one two
4453three
4454four&quot;
4455==
4456&quot;one two
4457three
4458four&quot;
4459 </Expanded>
4460 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004461 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004462 <Original>
4463 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4464 </Original>
4465 <Expanded>
4466 &quot;one two
4467three
4468four&quot;
4469==
4470&quot;one two
4471three
4472four&quot;
4473 </Expanded>
4474 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004475 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004476 <Original>
4477 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4478 </Original>
4479 <Expanded>
4480 &quot;one two
4481three
4482four&quot;
4483==
4484&quot;one two
4485three
4486four&quot;
4487 </Expanded>
4488 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004489 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004490 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004491 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004492 </Section>
4493 <Section name="plain string">
4494 <Section name="Wrapped three times">
Phil Nashc6635a72014-12-30 18:25:27 +00004495 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004496 <Original>
4497 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4498 </Original>
4499 <Expanded>
4500 &quot;one
4501two
4502three
4503four&quot;
4504==
4505&quot;one
4506two
4507three
4508four&quot;
4509 </Expanded>
4510 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004511 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004512 <Original>
4513 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4514 </Original>
4515 <Expanded>
4516 &quot;one
4517two
4518three
4519four&quot;
4520==
4521&quot;one
4522two
4523three
4524four&quot;
4525 </Expanded>
4526 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004527 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004528 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004529 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004530 </Section>
4531 <Section name="plain string">
4532 <Section name="Short wrap">
Phil Nashc6635a72014-12-30 18:25:27 +00004533 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004534 <Original>
4535 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef&quot;
4536 </Original>
4537 <Expanded>
4538 &quot;abc-
4539def&quot;
4540==
4541&quot;abc-
4542def&quot;
4543 </Expanded>
4544 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004545 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004546 <Original>
4547 Text( &quot;abcdefg&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndefg&quot;
4548 </Original>
4549 <Expanded>
4550 &quot;abc-
4551defg&quot;
4552==
4553&quot;abc-
4554defg&quot;
4555 </Expanded>
4556 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004557 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004558 <Original>
4559 Text( &quot;abcdefgh&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef-\ngh&quot;
4560 </Original>
4561 <Expanded>
4562 &quot;abc-
4563def-
4564gh&quot;
4565==
4566&quot;abc-
4567def-
4568gh&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( testString, TextAttributes().setWidth( 4 ) ).toString() == &quot;one\ntwo\nthr-\nee\nfour&quot;
4574 </Original>
4575 <Expanded>
4576 &quot;one
4577two
4578thr-
4579ee
4580four&quot;
4581==
4582&quot;one
4583two
4584thr-
4585ee
4586four&quot;
4587 </Expanded>
4588 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004589 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004590 <Original>
4591 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == &quot;one\ntwo\nth-\nree\nfo-\nur&quot;
4592 </Original>
4593 <Expanded>
4594 &quot;one
4595two
4596th-
4597ree
4598fo-
4599ur&quot;
4600==
4601&quot;one
4602two
4603th-
4604ree
4605fo-
4606ur&quot;
4607 </Expanded>
4608 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004609 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004610 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004611 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004612 </Section>
4613 <Section name="plain string">
4614 <Section name="As container">
Phil Nashc6635a72014-12-30 18:25:27 +00004615 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004616 <Original>
4617 text.size() == 4
4618 </Original>
4619 <Expanded>
4620 4 == 4
4621 </Expanded>
4622 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004623 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004624 <Original>
4625 text[0] == &quot;one&quot;
4626 </Original>
4627 <Expanded>
4628 &quot;one&quot; == &quot;one&quot;
4629 </Expanded>
4630 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004631 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004632 <Original>
4633 text[1] == &quot;two&quot;
4634 </Original>
4635 <Expanded>
4636 &quot;two&quot; == &quot;two&quot;
4637 </Expanded>
4638 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004639 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004640 <Original>
4641 text[2] == &quot;three&quot;
4642 </Original>
4643 <Expanded>
4644 &quot;three&quot; == &quot;three&quot;
4645 </Expanded>
4646 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004647 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004648 <Original>
4649 text[3] == &quot;four&quot;
4650 </Original>
4651 <Expanded>
4652 &quot;four&quot; == &quot;four&quot;
4653 </Expanded>
4654 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004655 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004656 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004657 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004658 </Section>
4659 <Section name="plain string">
4660 <Section name="Indent first line differently">
Phil Nashc6635a72014-12-30 18:25:27 +00004661 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004662 <Original>
4663 text.toString() == &quot; one two\n three\n four&quot;
4664 </Original>
4665 <Expanded>
4666 &quot; one two
4667 three
4668 four&quot;
4669==
4670&quot; one two
4671 three
4672 four&quot;
4673 </Expanded>
4674 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004675 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004676 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004677 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004678 </Section>
4679 <Section name="With newlines">
Phil Nash2f7a2962013-09-27 19:01:14 +01004680 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004681 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004682 <Original>
4683 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4684 </Original>
4685 <Expanded>
4686 &quot;one two
4687three four&quot;
4688==
4689&quot;one two
4690three four&quot;
4691 </Expanded>
4692 </Expression>
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( 18 ) ).toString() == testString
4696 </Original>
4697 <Expanded>
4698 &quot;one two
4699three four&quot;
4700==
4701&quot;one two
4702three four&quot;
4703 </Expanded>
4704 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004705 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004706 <Original>
4707 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
4708 </Original>
4709 <Expanded>
4710 &quot;one two
4711three four&quot;
4712==
4713&quot;one two
4714three four&quot;
4715 </Expanded>
4716 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004717 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004718 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004719 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004720 </Section>
4721 <Section name="With newlines">
4722 <Section name="Trailing newline">
Phil Nashc6635a72014-12-30 18:25:27 +00004723 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004724 <Original>
4725 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 10 ) ).toString() == &quot;abcdef\n&quot;
4726 </Original>
4727 <Expanded>
4728 &quot;abcdef
4729&quot;
4730==
4731&quot;abcdef
4732&quot;
4733 </Expanded>
4734 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004735 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004736 <Original>
4737 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef&quot;
4738 </Original>
4739 <Expanded>
4740 &quot;abcdef&quot; == &quot;abcdef&quot;
4741 </Expanded>
4742 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004743 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004744 <Original>
4745 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef\n&quot;
4746 </Original>
4747 <Expanded>
4748 &quot;abcdef
4749&quot;
4750==
4751&quot;abcdef
4752&quot;
4753 </Expanded>
4754 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004755 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004756 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004757 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004758 </Section>
4759 <Section name="With newlines">
4760 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004761 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004762 <Original>
4763 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4764 </Original>
4765 <Expanded>
4766 &quot;one two
4767three
4768four&quot;
4769==
4770&quot;one two
4771three
4772four&quot;
4773 </Expanded>
4774 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004775 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004776 <Original>
4777 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4778 </Original>
4779 <Expanded>
4780 &quot;one two
4781three
4782four&quot;
4783==
4784&quot;one two
4785three
4786four&quot;
4787 </Expanded>
4788 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004789 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004790 <Original>
4791 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4792 </Original>
4793 <Expanded>
4794 &quot;one two
4795three
4796four&quot;
4797==
4798&quot;one two
4799three
4800four&quot;
4801 </Expanded>
4802 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004803 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004804 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004805 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004806 </Section>
4807 <Section name="With newlines">
4808 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004809 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004810 <Original>
4811 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4812 </Original>
4813 <Expanded>
4814 &quot;one
4815two
4816three
4817four&quot;
4818==
4819&quot;one
4820two
4821three
4822four&quot;
4823 </Expanded>
4824 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004825 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004826 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004827 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004828 </Section>
4829 <Section name="With tabs">
Phil Nashc6635a72014-12-30 18:25:27 +00004830 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004831 <Original>
4832 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == &quot;one two three\n four\n five\n six&quot;
4833 </Original>
4834 <Expanded>
4835 &quot;one two three
4836 four
4837 five
4838 six&quot;
4839==
4840&quot;one two three
4841 four
4842 five
4843 six&quot;
4844 </Expanded>
4845 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004846 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004847 </Section>
4848 <OverallResult success="true"/>
4849 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00004850 <TestCase name="replaceInPlace">
4851 <Section name="replace single char">
Phil Nashc6635a72014-12-30 18:25:27 +00004852 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004853 <Original>
4854 replaceInPlace( letters, &quot;b&quot;, &quot;z&quot; )
4855 </Original>
4856 <Expanded>
4857 true
4858 </Expanded>
4859 </Expression>
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 letters == &quot;azcdefcg&quot;
4863 </Original>
4864 <Expanded>
4865 &quot;azcdefcg&quot; == &quot;azcdefcg&quot;
4866 </Expanded>
4867 </Expression>
4868 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4869 </Section>
4870 <Section name="replace two chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004871 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004872 <Original>
4873 replaceInPlace( letters, &quot;c&quot;, &quot;z&quot; )
4874 </Original>
4875 <Expanded>
4876 true
4877 </Expanded>
4878 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004879 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004880 <Original>
4881 letters == &quot;abzdefzg&quot;
4882 </Original>
4883 <Expanded>
4884 &quot;abzdefzg&quot; == &quot;abzdefzg&quot;
4885 </Expanded>
4886 </Expression>
4887 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4888 </Section>
4889 <Section name="replace first char">
Phil Nashc6635a72014-12-30 18:25:27 +00004890 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004891 <Original>
4892 replaceInPlace( letters, &quot;a&quot;, &quot;z&quot; )
4893 </Original>
4894 <Expanded>
4895 true
4896 </Expanded>
4897 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004898 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004899 <Original>
4900 letters == &quot;zbcdefcg&quot;
4901 </Original>
4902 <Expanded>
4903 &quot;zbcdefcg&quot; == &quot;zbcdefcg&quot;
4904 </Expanded>
4905 </Expression>
4906 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4907 </Section>
4908 <Section name="replace last char">
Phil Nashc6635a72014-12-30 18:25:27 +00004909 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004910 <Original>
4911 replaceInPlace( letters, &quot;g&quot;, &quot;z&quot; )
4912 </Original>
4913 <Expanded>
4914 true
4915 </Expanded>
4916 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004917 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004918 <Original>
4919 letters == &quot;abcdefcz&quot;
4920 </Original>
4921 <Expanded>
4922 &quot;abcdefcz&quot; == &quot;abcdefcz&quot;
4923 </Expanded>
4924 </Expression>
4925 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4926 </Section>
4927 <Section name="replace all chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004928 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004929 <Original>
4930 replaceInPlace( letters, letters, &quot;replaced&quot; )
4931 </Original>
4932 <Expanded>
4933 true
4934 </Expanded>
4935 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004936 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004937 <Original>
4938 letters == &quot;replaced&quot;
4939 </Original>
4940 <Expanded>
4941 &quot;replaced&quot; == &quot;replaced&quot;
4942 </Expanded>
4943 </Expression>
4944 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4945 </Section>
4946 <Section name="replace no chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004947 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004948 <Original>
4949 !replaceInPlace( letters, &quot;x&quot;, &quot;z&quot; )
4950 </Original>
4951 <Expanded>
4952 !false
4953 </Expanded>
4954 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004955 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004956 <Original>
4957 letters == letters
4958 </Original>
4959 <Expanded>
4960 &quot;abcdefcg&quot; == &quot;abcdefcg&quot;
4961 </Expanded>
4962 </Expression>
4963 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4964 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00004965 <Section name="escape '">
Phil Nashc6635a72014-12-30 18:25:27 +00004966 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00004967 <Original>
4968 replaceInPlace( s, &quot;'&quot;, &quot;|'&quot; )
4969 </Original>
4970 <Expanded>
4971 true
4972 </Expanded>
4973 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004974 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00004975 <Original>
4976 s == &quot;didn|'t&quot;
4977 </Original>
4978 <Expanded>
4979 &quot;didn|'t&quot; == &quot;didn|'t&quot;
4980 </Expanded>
4981 </Expression>
4982 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4983 </Section>
Phil Nash3dc37632014-12-21 00:20:09 +00004984 <OverallResult success="true"/>
4985 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004986 <TestCase name="Strings can be rendered with colour">
Phil Nash6817bb02014-12-30 18:24:31 +00004987 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004988 </TestCase>
4989 <TestCase name="Text can be formatted using the Text class">
Phil Nashc6635a72014-12-30 18:25:27 +00004990 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004991 <Original>
4992 Text( &quot;hi there&quot; ).toString() == &quot;hi there&quot;
4993 </Original>
4994 <Expanded>
4995 &quot;hi there&quot; == &quot;hi there&quot;
4996 </Expanded>
4997 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004998 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004999 <Original>
5000 Text( &quot;hi there&quot;, narrow ).toString() == &quot;hi\nthere&quot;
5001 </Original>
5002 <Expanded>
5003 &quot;hi
5004there&quot;
5005==
5006&quot;hi
5007there&quot;
5008 </Expanded>
5009 </Expression>
5010 <OverallResult success="true"/>
5011 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01005012 <TestCase name="Long text is truncted">
Phil Nashc6635a72014-12-30 18:25:27 +00005013 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash93a945c2013-10-23 15:35:07 +01005014 <Original>
5015 t.toString() EndsWith( &quot;... message truncated due to excessive size&quot; )
5016 </Original>
5017 <Expanded>
5018 &quot;******************************************************************************-
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************************
5951******************************************************************************-
5952******************************************************************************-
5953************************
5954******************************************************************************-
5955******************************************************************************-
5956************************
5957******************************************************************************-
5958******************************************************************************-
5959************************
5960******************************************************************************-
5961******************************************************************************-
5962************************
5963******************************************************************************-
5964******************************************************************************-
5965************************
5966******************************************************************************-
5967******************************************************************************-
5968************************
5969******************************************************************************-
5970******************************************************************************-
5971************************
5972******************************************************************************-
5973******************************************************************************-
5974************************
5975******************************************************************************-
5976******************************************************************************-
5977************************
5978******************************************************************************-
5979******************************************************************************-
5980************************
5981******************************************************************************-
5982******************************************************************************-
5983************************
5984******************************************************************************-
5985******************************************************************************-
5986************************
5987******************************************************************************-
5988******************************************************************************-
5989************************
5990******************************************************************************-
5991******************************************************************************-
5992************************
5993******************************************************************************-
5994******************************************************************************-
5995************************
5996******************************************************************************-
5997******************************************************************************-
5998************************
5999******************************************************************************-
6000******************************************************************************-
6001************************
6002******************************************************************************-
6003******************************************************************************-
6004************************
6005******************************************************************************-
6006******************************************************************************-
6007************************
6008******************************************************************************-
6009******************************************************************************-
6010************************
6011******************************************************************************-
6012******************************************************************************-
6013************************
6014******************************************************************************-
6015******************************************************************************-
6016************************
6017******************************************************************************-
6018... message truncated due to excessive size&quot; ends with: &quot;... message truncated due to excessive size&quot;
6019 </Expanded>
6020 </Expression>
6021 <OverallResult success="true"/>
6022 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006023 <TestCase name="Parsing a std::pair">
Phil Nashc6635a72014-12-30 18:25:27 +00006024 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006025 <Original>
6026 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
6027 </Original>
6028 <Expanded>
6029 std::pair( 1, 2 ) == std::pair( 1, 2 )
6030 </Expanded>
6031 </Expression>
6032 <OverallResult success="true"/>
6033 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00006034 <TestCase name="Where there is more to the expression after the RHS">
Phil Nash2f7a2962013-09-27 19:01:14 +01006035 <Warning>
6036 Uncomment the code in this test to check that it gives a sensible compiler error
6037 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00006038 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006039 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00006040 <TestCase name="Where the LHS is not a simple value">
Phil Nash2f7a2962013-09-27 19:01:14 +01006041 <Warning>
6042 Uncomment the code in this test to check that it gives a sensible compiler error
6043 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00006044 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006045 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00006046 <TestCase name="A failing expression with a non streamable type is still captured">
Phil Nashc6635a72014-12-30 18:25:27 +00006047 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006048 <Original>
6049 &amp;o1 == &amp;o2
6050 </Original>
6051 <Expanded>
6052 0x<hex digits> == 0x<hex digits>
6053 </Expanded>
6054 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006055 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006056 <Original>
6057 o1 == o2
6058 </Original>
6059 <Expanded>
6060 {?} == {?}
6061 </Expanded>
6062 </Expression>
6063 <OverallResult success="false"/>
6064 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00006065 <TestCase name="string literals of different sizes can be compared">
Phil Nashc6635a72014-12-30 18:25:27 +00006066 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006067 <Original>
6068 std::string( &quot;first&quot; ) == &quot;second&quot;
6069 </Original>
6070 <Expanded>
6071 &quot;first&quot; == &quot;second&quot;
6072 </Expanded>
6073 </Expression>
6074 <OverallResult success="false"/>
6075 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006076 <TestCase name="An expression with side-effects should only be evaluated once">
Phil Nashc6635a72014-12-30 18:25:27 +00006077 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006078 <Original>
6079 i++ == 7
6080 </Original>
6081 <Expanded>
6082 7 == 7
6083 </Expanded>
6084 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006085 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006086 <Original>
6087 i++ == 8
6088 </Original>
6089 <Expanded>
6090 8 == 8
6091 </Expanded>
6092 </Expression>
6093 <OverallResult success="true"/>
6094 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006095 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nashc6635a72014-12-30 18:25:27 +00006096 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006097 <Original>
6098 0x<hex digits> == o
6099 </Original>
6100 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006101 3221225472 (0x<hex digits>) == {?}
Phil Nash2f7a2962013-09-27 19:01:14 +01006102 </Expanded>
6103 </Expression>
6104 <OverallResult success="true"/>
6105 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006106 <TestCase name="Demonstrate that a non-const == is not used">
Phil Nashc6635a72014-12-30 18:25:27 +00006107 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006108 <Original>
6109 t == 1u
6110 </Original>
6111 <Expanded>
6112 {?} == 1
6113 </Expanded>
6114 </Expression>
6115 <OverallResult success="true"/>
6116 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006117 <TestCase name="Test enum bit values">
Phil Nashc6635a72014-12-30 18:25:27 +00006118 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006119 <Original>
6120 0x<hex digits> == bit30and31
6121 </Original>
6122 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006123 3221225472 (0x<hex digits>) == 3221225472
Phil Nash2f7a2962013-09-27 19:01:14 +01006124 </Expanded>
6125 </Expression>
6126 <OverallResult success="true"/>
6127 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006128 <TestCase name="boolean member">
Phil Nashc6635a72014-12-30 18:25:27 +00006129 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006130 <Original>
Phil Nash805de432015-07-01 07:33:27 +01006131 obj.prop != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01006132 </Original>
6133 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006134 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01006135 </Expanded>
6136 </Expression>
6137 <OverallResult success="true"/>
6138 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006139 <TestCase name="(unimplemented) static bools can be evaluated">
Phil Nash2f7a2962013-09-27 19:01:14 +01006140 <Section name="compare to true">
Phil Nashc6635a72014-12-30 18:25:27 +00006141 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006142 <Original>
6143 is_true&lt;true>::value == true
6144 </Original>
6145 <Expanded>
6146 true == true
6147 </Expanded>
6148 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006149 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006150 <Original>
6151 true == is_true&lt;true>::value
6152 </Original>
6153 <Expanded>
6154 true == true
6155 </Expanded>
6156 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006157 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006158 </Section>
6159 <Section name="compare to false">
Phil Nashc6635a72014-12-30 18:25:27 +00006160 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006161 <Original>
6162 is_true&lt;false>::value == false
6163 </Original>
6164 <Expanded>
6165 false == false
6166 </Expanded>
6167 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006168 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006169 <Original>
6170 false == is_true&lt;false>::value
6171 </Original>
6172 <Expanded>
6173 false == false
6174 </Expanded>
6175 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006176 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006177 </Section>
6178 <Section name="negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006179 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006180 <Original>
6181 !is_true&lt;false>::value
6182 </Original>
6183 <Expanded>
6184 true
6185 </Expanded>
6186 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006187 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006188 </Section>
6189 <Section name="double negation">
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>
6192 !!is_true&lt;true>::value
6193 </Original>
6194 <Expanded>
6195 true
6196 </Expanded>
6197 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006198 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006199 </Section>
6200 <Section name="direct">
Phil Nashc6635a72014-12-30 18:25:27 +00006201 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006202 <Original>
6203 is_true&lt;true>::value
6204 </Original>
6205 <Expanded>
6206 true
6207 </Expanded>
6208 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006209 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006210 <Original>
6211 !is_true&lt;false>::value
6212 </Original>
6213 <Expanded>
6214 !false
6215 </Expanded>
6216 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006217 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006218 </Section>
6219 <OverallResult success="true"/>
6220 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006221 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nashc6635a72014-12-30 18:25:27 +00006222 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006223 <Original>
6224 True
6225 </Original>
6226 <Expanded>
6227 true
6228 </Expanded>
6229 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006230 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006231 <Original>
6232 !False
6233 </Original>
6234 <Expanded>
6235 true
6236 </Expanded>
6237 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006238 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006239 <Original>
6240 !False
6241 </Original>
6242 <Expanded>
6243 !false
6244 </Expanded>
6245 </Expression>
6246 <OverallResult success="true"/>
6247 </TestCase>
6248 <TestCase name="Assertions then sections">
Phil Nashc6635a72014-12-30 18:25:27 +00006249 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006250 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006251 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006252 </Original>
6253 <Expanded>
6254 true
6255 </Expanded>
6256 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01006257 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006258 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006259 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006260 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006261 </Original>
6262 <Expanded>
6263 true
6264 </Expanded>
6265 </Expression>
6266 <Section name="Another section">
Phil Nashc6635a72014-12-30 18:25:27 +00006267 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006268 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006269 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006270 </Original>
6271 <Expanded>
6272 true
6273 </Expanded>
6274 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006275 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006276 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006277 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006278 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00006279 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006280 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006281 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006282 </Original>
6283 <Expanded>
6284 true
6285 </Expanded>
6286 </Expression>
6287 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006288 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006289 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006290 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006291 </Original>
6292 <Expanded>
6293 true
6294 </Expanded>
6295 </Expression>
6296 <Section name="Another other section">
Phil Nashc6635a72014-12-30 18:25:27 +00006297 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006298 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006299 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006300 </Original>
6301 <Expanded>
6302 true
6303 </Expanded>
6304 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006305 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006306 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006307 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006308 </Section>
6309 <OverallResult success="true"/>
6310 </TestCase>
6311 <TestCase name="non streamable - with conv. op">
Phil Nashc6635a72014-12-30 18:25:27 +00006312 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006313 <Original>
6314 s == &quot;7&quot;
6315 </Original>
6316 <Expanded>
6317 &quot;7&quot; == &quot;7&quot;
6318 </Expanded>
6319 </Expression>
6320 <OverallResult success="true"/>
6321 </TestCase>
6322 <TestCase name="Comparing function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006323 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006324 <Original>
6325 a
6326 </Original>
6327 <Expanded>
6328 true
6329 </Expanded>
6330 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006331 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006332 <Original>
6333 a == &amp;foo
6334 </Original>
6335 <Expanded>
Phil Nashe0910182014-01-07 17:25:27 +00006336 0x<hex digits> == 0x<hex digits>
6337 </Expanded>
6338 </Expression>
6339 <OverallResult success="true"/>
6340 </TestCase>
6341 <TestCase name="Comparing member function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006342 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nashe0910182014-01-07 17:25:27 +00006343 <Original>
6344 m == &amp;S::f
6345 </Original>
6346 <Expanded>
6347 0x<hex digits>
6348==
63490x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01006350 </Expanded>
6351 </Expression>
6352 <OverallResult success="true"/>
6353 </TestCase>
6354 <TestCase name="pointer to class">
Phil Nashc6635a72014-12-30 18:25:27 +00006355 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006356 <Original>
6357 p == 0
6358 </Original>
6359 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006360 NULL == 0
Phil Nash2f7a2962013-09-27 19:01:14 +01006361 </Expanded>
6362 </Expression>
6363 <OverallResult success="true"/>
6364 </TestCase>
Phil Nash1a6f2a02014-04-23 18:19:19 +01006365 <TestCase name="null_ptr">
Phil Nashc6635a72014-12-30 18:25:27 +00006366 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash1a6f2a02014-04-23 18:19:19 +01006367 <Original>
6368 ptr.get() == nullptr
6369 </Original>
6370 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006371 NULL == nullptr
Phil Nash1a6f2a02014-04-23 18:19:19 +01006372 </Expanded>
6373 </Expression>
6374 <OverallResult success="true"/>
6375 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01006376 <TestCase name="X/level/0/a">
6377 <OverallResult success="true"/>
6378 </TestCase>
6379 <TestCase name="X/level/0/b">
6380 <OverallResult success="true"/>
6381 </TestCase>
6382 <TestCase name="X/level/1/a">
6383 <OverallResult success="true"/>
6384 </TestCase>
6385 <TestCase name="X/level/1/b">
6386 <OverallResult success="true"/>
6387 </TestCase>
Phil Nash5ea32662014-09-03 19:22:47 +01006388 <TestCase name="toString( has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006389 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006390 <Original>
6391 Catch::toString( item ) == &quot;toString( has_toString )&quot;
6392 </Original>
6393 <Expanded>
6394 &quot;toString( has_toString )&quot;
6395==
6396&quot;toString( has_toString )&quot;
6397 </Expanded>
6398 </Expression>
6399 <OverallResult success="true"/>
6400 </TestCase>
6401 <TestCase name="toString( has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006402 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006403 <Original>
6404 Catch::toString( item ) == &quot;StringMaker&lt;has_maker>&quot;
6405 </Original>
6406 <Expanded>
6407 &quot;StringMaker&lt;has_maker>&quot;
6408==
6409&quot;StringMaker&lt;has_maker>&quot;
6410 </Expanded>
6411 </Expression>
6412 <OverallResult success="true"/>
6413 </TestCase>
6414 <TestCase name="toString( has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006415 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006416 <Original>
6417 Catch::toString( item ) == &quot;toString( has_maker_and_toString )&quot;
6418 </Original>
6419 <Expanded>
6420 &quot;toString( has_maker_and_toString )&quot;
6421==
6422&quot;toString( has_maker_and_toString )&quot;
6423 </Expanded>
6424 </Expression>
6425 <OverallResult success="true"/>
6426 </TestCase>
6427 <TestCase name="toString( vectors&lt;has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006428 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006429 <Original>
6430 Catch::toString( v ) == &quot;{ {?} }&quot;
6431 </Original>
6432 <Expanded>
6433 &quot;{ {?} }&quot; == &quot;{ {?} }&quot;
6434 </Expanded>
6435 </Expression>
6436 <OverallResult success="true"/>
6437 </TestCase>
6438 <TestCase name="toString( vectors&lt;has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006439 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006440 <Original>
6441 Catch::toString( v ) == &quot;{ StringMaker&lt;has_maker> }&quot;
6442 </Original>
6443 <Expanded>
6444 &quot;{ StringMaker&lt;has_maker> }&quot;
6445==
6446&quot;{ StringMaker&lt;has_maker> }&quot;
6447 </Expanded>
6448 </Expression>
6449 <OverallResult success="true"/>
6450 </TestCase>
6451 <TestCase name="toString( vectors&lt;has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006452 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006453 <Original>
6454 Catch::toString( v ) == &quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6455 </Original>
6456 <Expanded>
6457 &quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6458==
6459&quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6460 </Expanded>
6461 </Expression>
6462 <OverallResult success="true"/>
6463 </TestCase>
6464 <TestCase name="std::pair&lt;int,std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006465 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006466 <Original>
6467 Catch::toString( value ) == &quot;{ 34, \&quot;xyzzy\&quot; }&quot;
6468 </Original>
6469 <Expanded>
6470 &quot;{ 34, &quot;xyzzy&quot; }&quot; == &quot;{ 34, &quot;xyzzy&quot; }&quot;
6471 </Expanded>
6472 </Expression>
6473 <OverallResult success="true"/>
6474 </TestCase>
6475 <TestCase name="std::pair&lt;int,const std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006476 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006477 <Original>
6478 Catch::toString(value) == &quot;{ 34, \&quot;xyzzy\&quot; }&quot;
6479 </Original>
6480 <Expanded>
6481 &quot;{ 34, &quot;xyzzy&quot; }&quot; == &quot;{ 34, &quot;xyzzy&quot; }&quot;
6482 </Expanded>
6483 </Expression>
6484 <OverallResult success="true"/>
6485 </TestCase>
6486 <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006487 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006488 <Original>
6489 Catch::toString( pr ) == &quot;{ { \&quot;green\&quot;, 55 } }&quot;
6490 </Original>
6491 <Expanded>
6492 &quot;{ { &quot;green&quot;, 55 } }&quot;
6493==
6494&quot;{ { &quot;green&quot;, 55 } }&quot;
6495 </Expanded>
6496 </Expression>
6497 <OverallResult success="true"/>
6498 </TestCase>
6499 <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006500 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006501 <Original>
6502 Catch::toString( pair ) == &quot;{ { 42, \&quot;Arthur\&quot; }, { \&quot;Ford\&quot;, 24 } }&quot;
6503 </Original>
6504 <Expanded>
6505 &quot;{ { 42, &quot;Arthur&quot; }, { &quot;Ford&quot;, 24 } }&quot;
6506==
6507&quot;{ { 42, &quot;Arthur&quot; }, { &quot;Ford&quot;, 24 } }&quot;
6508 </Expanded>
6509 </Expression>
6510 <OverallResult success="true"/>
6511 </TestCase>
6512 <TestCase name="vector&lt;int> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006513 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006514 <Original>
6515 Catch::toString(vv) == &quot;{ }&quot;
6516 </Original>
6517 <Expanded>
6518 &quot;{ }&quot; == &quot;{ }&quot;
6519 </Expanded>
6520 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006521 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006522 <Original>
6523 Catch::toString(vv) == &quot;{ 42 }&quot;
6524 </Original>
6525 <Expanded>
6526 &quot;{ 42 }&quot; == &quot;{ 42 }&quot;
6527 </Expanded>
6528 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006529 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006530 <Original>
Phil Nash6ed74b52015-05-20 18:28:22 +01006531 Catch::toString(vv) == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006532 </Original>
6533 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006534 &quot;{ 42, 250 }&quot; == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006535 </Expanded>
6536 </Expression>
6537 <OverallResult success="true"/>
6538 </TestCase>
6539 <TestCase name="vector&lt;string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006540 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006541 <Original>
6542 Catch::toString(vv) == &quot;{ }&quot;
6543 </Original>
6544 <Expanded>
6545 &quot;{ }&quot; == &quot;{ }&quot;
6546 </Expanded>
6547 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006548 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006549 <Original>
6550 Catch::toString(vv) == &quot;{ \&quot;hello\&quot; }&quot;
6551 </Original>
6552 <Expanded>
6553 &quot;{ &quot;hello&quot; }&quot; == &quot;{ &quot;hello&quot; }&quot;
6554 </Expanded>
6555 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006556 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006557 <Original>
6558 Catch::toString(vv) == &quot;{ \&quot;hello\&quot;, \&quot;world\&quot; }&quot;
6559 </Original>
6560 <Expanded>
6561 &quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
6562==
6563&quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
6564 </Expanded>
6565 </Expression>
6566 <OverallResult success="true"/>
6567 </TestCase>
6568 <TestCase name="vector&lt;int,allocator> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006569 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006570 <Original>
6571 Catch::toString(vv) == &quot;{ }&quot;
6572 </Original>
6573 <Expanded>
6574 &quot;{ }&quot; == &quot;{ }&quot;
6575 </Expanded>
6576 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006577 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006578 <Original>
6579 Catch::toString(vv) == &quot;{ 42 }&quot;
6580 </Original>
6581 <Expanded>
6582 &quot;{ 42 }&quot; == &quot;{ 42 }&quot;
6583 </Expanded>
6584 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006585 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006586 <Original>
Phil Nash6ed74b52015-05-20 18:28:22 +01006587 Catch::toString(vv) == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006588 </Original>
6589 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006590 &quot;{ 42, 250 }&quot; == &quot;{ 42, 250 }&quot;
Phil Nash5ea32662014-09-03 19:22:47 +01006591 </Expanded>
6592 </Expression>
6593 <OverallResult success="true"/>
6594 </TestCase>
6595 <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006596 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006597 <Original>
6598 Catch::toString(v) == &quot;{ }&quot;
6599 </Original>
6600 <Expanded>
6601 &quot;{ }&quot; == &quot;{ }&quot;
6602 </Expanded>
6603 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006604 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006605 <Original>
6606 Catch::toString(v) == &quot;{ { \&quot;hello\&quot; }, { \&quot;world\&quot; } }&quot;
6607 </Original>
6608 <Expanded>
6609 &quot;{ { &quot;hello&quot; }, { &quot;world&quot; } }&quot;
6610==
6611&quot;{ { &quot;hello&quot; }, { &quot;world&quot; } }&quot;
6612 </Expanded>
6613 </Expression>
6614 <OverallResult success="true"/>
6615 </TestCase>
Phil Nash766491a2014-05-16 18:31:15 +01006616 <TestCase name="Parse test names and tags">
6617 <Section name="Empty test spec should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006618 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006619 <Original>
6620 spec.hasFilters() == false
6621 </Original>
6622 <Expanded>
6623 false == false
6624 </Expanded>
6625 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006626 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006627 <Original>
6628 spec.matches( tcA ) == false
6629 </Original>
6630 <Expanded>
6631 false == false
6632 </Expanded>
6633 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006634 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006635 <Original>
6636 spec.matches( tcB ) == false
6637 </Original>
6638 <Expanded>
6639 false == false
6640 </Expanded>
6641 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006642 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006643 </Section>
6644 <Section name="Test spec from empty string should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006645 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006646 <Original>
6647 spec.hasFilters() == false
6648 </Original>
6649 <Expanded>
6650 false == false
6651 </Expanded>
6652 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006653 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006654 <Original>
6655 spec.matches(tcA ) == false
6656 </Original>
6657 <Expanded>
6658 false == false
6659 </Expanded>
6660 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006661 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006662 <Original>
6663 spec.matches( tcB ) == false
6664 </Original>
6665 <Expanded>
6666 false == false
6667 </Expanded>
6668 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006669 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006670 </Section>
6671 <Section name="Test spec from just a comma should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006672 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006673 <Original>
6674 spec.hasFilters() == false
6675 </Original>
6676 <Expanded>
6677 false == false
6678 </Expanded>
6679 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006680 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006681 <Original>
6682 spec.matches( tcA ) == false
6683 </Original>
6684 <Expanded>
6685 false == false
6686 </Expanded>
6687 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006688 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006689 <Original>
6690 spec.matches( tcB ) == false
6691 </Original>
6692 <Expanded>
6693 false == false
6694 </Expanded>
6695 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006696 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006697 </Section>
6698 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006699 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006700 <Original>
6701 spec.hasFilters() == true
6702 </Original>
6703 <Expanded>
6704 true == true
6705 </Expanded>
6706 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006707 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006708 <Original>
6709 spec.matches( tcA ) == false
6710 </Original>
6711 <Expanded>
6712 false == false
6713 </Expanded>
6714 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006715 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006716 <Original>
6717 spec.matches( tcB ) == true
6718 </Original>
6719 <Expanded>
6720 true == true
6721 </Expanded>
6722 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006723 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006724 </Section>
6725 <Section name="Test spec from quoted name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006726 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006727 <Original>
6728 spec.hasFilters() == true
6729 </Original>
6730 <Expanded>
6731 true == true
6732 </Expanded>
6733 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006734 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006735 <Original>
6736 spec.matches( tcA ) == false
6737 </Original>
6738 <Expanded>
6739 false == false
6740 </Expanded>
6741 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006742 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006743 <Original>
6744 spec.matches( tcB ) == true
6745 </Original>
6746 <Expanded>
6747 true == true
6748 </Expanded>
6749 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006750 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006751 </Section>
6752 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006753 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006754 <Original>
6755 spec.hasFilters() == true
6756 </Original>
6757 <Expanded>
6758 true == true
6759 </Expanded>
6760 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006761 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006762 <Original>
6763 spec.matches( tcA ) == false
6764 </Original>
6765 <Expanded>
6766 false == false
6767 </Expanded>
6768 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006769 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006770 <Original>
6771 spec.matches( tcB ) == true
6772 </Original>
6773 <Expanded>
6774 true == true
6775 </Expanded>
6776 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006777 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006778 <Original>
6779 spec.matches( tcC ) == false
6780 </Original>
6781 <Expanded>
6782 false == false
6783 </Expanded>
6784 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006785 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006786 </Section>
6787 <Section name="Wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00006788 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006789 <Original>
6790 spec.hasFilters() == true
6791 </Original>
6792 <Expanded>
6793 true == true
6794 </Expanded>
6795 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006796 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006797 <Original>
6798 spec.matches( tcA ) == false
6799 </Original>
6800 <Expanded>
6801 false == false
6802 </Expanded>
6803 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006804 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006805 <Original>
6806 spec.matches( tcB ) == false
6807 </Original>
6808 <Expanded>
6809 false == false
6810 </Expanded>
6811 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006812 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006813 <Original>
6814 spec.matches( tcC ) == true
6815 </Original>
6816 <Expanded>
6817 true == true
6818 </Expanded>
6819 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006820 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006821 <Original>
6822 spec.matches( tcD ) == false
6823 </Original>
6824 <Expanded>
6825 false == false
6826 </Expanded>
6827 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006828 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006829 <Original>
6830 parseTestSpec( &quot;*a&quot; ).matches( tcA ) == true
6831 </Original>
6832 <Expanded>
6833 true == true
6834 </Expanded>
6835 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006836 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006837 </Section>
6838 <Section name="Wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00006839 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006840 <Original>
6841 spec.hasFilters() == true
6842 </Original>
6843 <Expanded>
6844 true == true
6845 </Expanded>
6846 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006847 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006848 <Original>
6849 spec.matches( tcA ) == false
6850 </Original>
6851 <Expanded>
6852 false == false
6853 </Expanded>
6854 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006855 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006856 <Original>
6857 spec.matches( tcB ) == false
6858 </Original>
6859 <Expanded>
6860 false == false
6861 </Expanded>
6862 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006863 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006864 <Original>
6865 spec.matches( tcC ) == true
6866 </Original>
6867 <Expanded>
6868 true == true
6869 </Expanded>
6870 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006871 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006872 <Original>
6873 spec.matches( tcD ) == false
6874 </Original>
6875 <Expanded>
6876 false == false
6877 </Expanded>
6878 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006879 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006880 <Original>
6881 parseTestSpec( &quot;a*&quot; ).matches( tcA ) == true
6882 </Original>
6883 <Expanded>
6884 true == true
6885 </Expanded>
6886 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006887 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006888 </Section>
6889 <Section name="Wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00006890 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006891 <Original>
6892 spec.hasFilters() == true
6893 </Original>
6894 <Expanded>
6895 true == true
6896 </Expanded>
6897 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006898 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006899 <Original>
6900 spec.matches( tcA ) == false
6901 </Original>
6902 <Expanded>
6903 false == false
6904 </Expanded>
6905 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006906 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006907 <Original>
6908 spec.matches( tcB ) == false
6909 </Original>
6910 <Expanded>
6911 false == false
6912 </Expanded>
6913 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006914 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006915 <Original>
6916 spec.matches( tcC ) == true
6917 </Original>
6918 <Expanded>
6919 true == true
6920 </Expanded>
6921 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006922 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006923 <Original>
6924 spec.matches( tcD ) == true
6925 </Original>
6926 <Expanded>
6927 true == true
6928 </Expanded>
6929 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006930 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006931 <Original>
6932 parseTestSpec( &quot;*a*&quot; ).matches( tcA ) == true
6933 </Original>
6934 <Expanded>
6935 true == true
6936 </Expanded>
6937 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006938 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006939 </Section>
Phil Nash71390352014-05-19 18:21:01 +01006940 <Section name="Redundant wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00006941 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006942 <Original>
6943 spec.hasFilters() == true
6944 </Original>
6945 <Expanded>
6946 true == true
6947 </Expanded>
6948 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006949 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006950 <Original>
6951 spec.matches( tcA ) == true
6952 </Original>
6953 <Expanded>
6954 true == true
6955 </Expanded>
6956 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006957 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006958 <Original>
6959 spec.matches( tcB ) == false
6960 </Original>
6961 <Expanded>
6962 false == false
6963 </Expanded>
6964 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006965 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006966 </Section>
6967 <Section name="Redundant wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00006968 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006969 <Original>
6970 spec.hasFilters() == true
6971 </Original>
6972 <Expanded>
6973 true == true
6974 </Expanded>
6975 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006976 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006977 <Original>
6978 spec.matches( tcA ) == true
6979 </Original>
6980 <Expanded>
6981 true == true
6982 </Expanded>
6983 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006984 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006985 <Original>
6986 spec.matches( tcB ) == false
6987 </Original>
6988 <Expanded>
6989 false == false
6990 </Expanded>
6991 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006992 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006993 </Section>
6994 <Section name="Redundant wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00006995 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006996 <Original>
6997 spec.hasFilters() == true
6998 </Original>
6999 <Expanded>
7000 true == true
7001 </Expanded>
7002 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007003 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007004 <Original>
7005 spec.matches( tcA ) == true
7006 </Original>
7007 <Expanded>
7008 true == true
7009 </Expanded>
7010 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007011 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007012 <Original>
7013 spec.matches( tcB ) == false
7014 </Original>
7015 <Expanded>
7016 false == false
7017 </Expanded>
7018 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007019 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01007020 </Section>
7021 <Section name="Wildcard at both ends, redundant at start">
Phil Nashc6635a72014-12-30 18:25:27 +00007022 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007023 <Original>
7024 spec.hasFilters() == true
7025 </Original>
7026 <Expanded>
7027 true == true
7028 </Expanded>
7029 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007030 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007031 <Original>
7032 spec.matches( tcA ) == false
7033 </Original>
7034 <Expanded>
7035 false == false
7036 </Expanded>
7037 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007038 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007039 <Original>
7040 spec.matches( tcB ) == false
7041 </Original>
7042 <Expanded>
7043 false == false
7044 </Expanded>
7045 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007046 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007047 <Original>
7048 spec.matches( tcC ) == true
7049 </Original>
7050 <Expanded>
7051 true == true
7052 </Expanded>
7053 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007054 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01007055 <Original>
7056 spec.matches( tcD ) == true
7057 </Original>
7058 <Expanded>
7059 true == true
7060 </Expanded>
7061 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007062 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01007063 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01007064 <Section name="Just wildcard">
Phil Nashc6635a72014-12-30 18:25:27 +00007065 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007066 <Original>
7067 spec.hasFilters() == true
7068 </Original>
7069 <Expanded>
7070 true == true
7071 </Expanded>
7072 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007073 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007074 <Original>
7075 spec.matches( tcA ) == true
7076 </Original>
7077 <Expanded>
7078 true == true
7079 </Expanded>
7080 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007081 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007082 <Original>
7083 spec.matches( tcB ) == true
7084 </Original>
7085 <Expanded>
7086 true == true
7087 </Expanded>
7088 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007089 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007090 <Original>
7091 spec.matches( tcC ) == true
7092 </Original>
7093 <Expanded>
7094 true == true
7095 </Expanded>
7096 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007097 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007098 <Original>
7099 spec.matches( tcD ) == true
7100 </Original>
7101 <Expanded>
7102 true == true
7103 </Expanded>
7104 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007105 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007106 </Section>
7107 <Section name="Single tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007108 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007109 <Original>
7110 spec.hasFilters() == true
7111 </Original>
7112 <Expanded>
7113 true == true
7114 </Expanded>
7115 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007116 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007117 <Original>
7118 spec.matches( tcA ) == false
7119 </Original>
7120 <Expanded>
7121 false == false
7122 </Expanded>
7123 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007124 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007125 <Original>
7126 spec.matches( tcB ) == true
7127 </Original>
7128 <Expanded>
7129 true == true
7130 </Expanded>
7131 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007132 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007133 <Original>
7134 spec.matches( tcC ) == false
7135 </Original>
7136 <Expanded>
7137 false == false
7138 </Expanded>
7139 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007140 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007141 </Section>
7142 <Section name="Single tag, two matches">
Phil Nashc6635a72014-12-30 18:25:27 +00007143 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007144 <Original>
7145 spec.hasFilters() == true
7146 </Original>
7147 <Expanded>
7148 true == true
7149 </Expanded>
7150 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007151 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007152 <Original>
7153 spec.matches( tcA ) == false
7154 </Original>
7155 <Expanded>
7156 false == false
7157 </Expanded>
7158 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007159 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007160 <Original>
7161 spec.matches( tcB ) == true
7162 </Original>
7163 <Expanded>
7164 true == true
7165 </Expanded>
7166 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007167 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007168 <Original>
7169 spec.matches( tcC ) == true
7170 </Original>
7171 <Expanded>
7172 true == true
7173 </Expanded>
7174 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007175 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007176 </Section>
7177 <Section name="Two tags">
Phil Nashc6635a72014-12-30 18:25:27 +00007178 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007179 <Original>
7180 spec.hasFilters() == true
7181 </Original>
7182 <Expanded>
7183 true == true
7184 </Expanded>
7185 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007186 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007187 <Original>
7188 spec.matches( tcA ) == false
7189 </Original>
7190 <Expanded>
7191 false == false
7192 </Expanded>
7193 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007194 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007195 <Original>
7196 spec.matches( tcB ) == false
7197 </Original>
7198 <Expanded>
7199 false == false
7200 </Expanded>
7201 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007202 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007203 <Original>
7204 spec.matches( tcC ) == true
7205 </Original>
7206 <Expanded>
7207 true == true
7208 </Expanded>
7209 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007210 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007211 </Section>
Phil Nasha2d8f772014-05-20 18:28:48 +01007212 <Section name="Two tags, spare separated">
Phil Nashc6635a72014-12-30 18:25:27 +00007213 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007214 <Original>
7215 spec.hasFilters() == true
7216 </Original>
7217 <Expanded>
7218 true == true
7219 </Expanded>
7220 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007221 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007222 <Original>
7223 spec.matches( tcA ) == false
7224 </Original>
7225 <Expanded>
7226 false == false
7227 </Expanded>
7228 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007229 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007230 <Original>
7231 spec.matches( tcB ) == false
7232 </Original>
7233 <Expanded>
7234 false == false
7235 </Expanded>
7236 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007237 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007238 <Original>
7239 spec.matches( tcC ) == true
7240 </Original>
7241 <Expanded>
7242 true == true
7243 </Expanded>
7244 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007245 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nasha2d8f772014-05-20 18:28:48 +01007246 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01007247 <Section name="Wildcarded name and tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007248 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007249 <Original>
7250 spec.hasFilters() == true
7251 </Original>
7252 <Expanded>
7253 true == true
7254 </Expanded>
7255 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007256 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007257 <Original>
7258 spec.matches( tcA ) == false
7259 </Original>
7260 <Expanded>
7261 false == false
7262 </Expanded>
7263 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007264 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007265 <Original>
7266 spec.matches( tcB ) == false
7267 </Original>
7268 <Expanded>
7269 false == false
7270 </Expanded>
7271 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007272 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007273 <Original>
7274 spec.matches( tcC ) == true
7275 </Original>
7276 <Expanded>
7277 true == true
7278 </Expanded>
7279 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007280 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007281 <Original>
7282 spec.matches( tcD ) == false
7283 </Original>
7284 <Expanded>
7285 false == false
7286 </Expanded>
7287 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007288 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007289 </Section>
7290 <Section name="Single tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007291 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007292 <Original>
7293 spec.hasFilters() == true
7294 </Original>
7295 <Expanded>
7296 true == true
7297 </Expanded>
7298 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007299 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007300 <Original>
7301 spec.matches( tcA ) == true
7302 </Original>
7303 <Expanded>
7304 true == true
7305 </Expanded>
7306 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007307 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007308 <Original>
7309 spec.matches( tcB ) == false
7310 </Original>
7311 <Expanded>
7312 false == false
7313 </Expanded>
7314 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007315 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007316 <Original>
7317 spec.matches( tcC ) == true
7318 </Original>
7319 <Expanded>
7320 true == true
7321 </Expanded>
7322 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007323 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007324 </Section>
7325 <Section name="One tag exclusion and one tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007326 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007327 <Original>
7328 spec.hasFilters() == true
7329 </Original>
7330 <Expanded>
7331 true == true
7332 </Expanded>
7333 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007334 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007335 <Original>
7336 spec.matches( tcA ) == false
7337 </Original>
7338 <Expanded>
7339 false == false
7340 </Expanded>
7341 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007342 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007343 <Original>
7344 spec.matches( tcB ) == true
7345 </Original>
7346 <Expanded>
7347 true == true
7348 </Expanded>
7349 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007350 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007351 <Original>
7352 spec.matches( tcC ) == false
7353 </Original>
7354 <Expanded>
7355 false == false
7356 </Expanded>
7357 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007358 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007359 </Section>
7360 <Section name="One tag exclusion and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007361 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007362 <Original>
7363 spec.hasFilters() == true
7364 </Original>
7365 <Expanded>
7366 true == true
7367 </Expanded>
7368 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007369 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007370 <Original>
7371 spec.matches( tcA ) == false
7372 </Original>
7373 <Expanded>
7374 false == false
7375 </Expanded>
7376 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007377 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007378 <Original>
7379 spec.matches( tcB ) == false
7380 </Original>
7381 <Expanded>
7382 false == false
7383 </Expanded>
7384 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007385 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007386 <Original>
7387 spec.matches( tcC ) == false
7388 </Original>
7389 <Expanded>
7390 false == false
7391 </Expanded>
7392 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007393 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007394 <Original>
7395 spec.matches( tcD ) == true
7396 </Original>
7397 <Expanded>
7398 true == true
7399 </Expanded>
7400 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007401 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007402 </Section>
7403 <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007404 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007405 <Original>
7406 spec.hasFilters() == true
7407 </Original>
7408 <Expanded>
7409 true == true
7410 </Expanded>
7411 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007412 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007413 <Original>
7414 spec.matches( tcA ) == false
7415 </Original>
7416 <Expanded>
7417 false == false
7418 </Expanded>
7419 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007420 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007421 <Original>
7422 spec.matches( tcB ) == false
7423 </Original>
7424 <Expanded>
7425 false == false
7426 </Expanded>
7427 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007428 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007429 <Original>
7430 spec.matches( tcC ) == false
7431 </Original>
7432 <Expanded>
7433 false == false
7434 </Expanded>
7435 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007436 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007437 <Original>
7438 spec.matches( tcD ) == true
7439 </Original>
7440 <Expanded>
7441 true == true
7442 </Expanded>
7443 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007444 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007445 </Section>
7446 <Section name="name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007447 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007448 <Original>
7449 spec.hasFilters() == true
7450 </Original>
7451 <Expanded>
7452 true == true
7453 </Expanded>
7454 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007455 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007456 <Original>
7457 spec.matches( tcA ) == true
7458 </Original>
7459 <Expanded>
7460 true == true
7461 </Expanded>
7462 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007463 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007464 <Original>
7465 spec.matches( tcB ) == false
7466 </Original>
7467 <Expanded>
7468 false == false
7469 </Expanded>
7470 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007471 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007472 <Original>
7473 spec.matches( tcC ) == true
7474 </Original>
7475 <Expanded>
7476 true == true
7477 </Expanded>
7478 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007479 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007480 <Original>
7481 spec.matches( tcD ) == true
7482 </Original>
7483 <Expanded>
7484 true == true
7485 </Expanded>
7486 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007487 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007488 </Section>
7489 <Section name="wildcarded name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007490 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007491 <Original>
7492 spec.hasFilters() == true
7493 </Original>
7494 <Expanded>
7495 true == true
7496 </Expanded>
7497 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007498 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007499 <Original>
7500 spec.matches( tcA ) == true
7501 </Original>
7502 <Expanded>
7503 true == true
7504 </Expanded>
7505 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007506 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007507 <Original>
7508 spec.matches( tcB ) == true
7509 </Original>
7510 <Expanded>
7511 true == true
7512 </Expanded>
7513 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007514 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007515 <Original>
7516 spec.matches( tcC ) == false
7517 </Original>
7518 <Expanded>
7519 false == false
7520 </Expanded>
7521 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007522 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007523 <Original>
7524 spec.matches( tcD ) == false
7525 </Original>
7526 <Expanded>
7527 false == false
7528 </Expanded>
7529 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007530 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007531 </Section>
7532 <Section name="wildcarded name exclusion with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007533 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007534 <Original>
7535 spec.hasFilters() == true
7536 </Original>
7537 <Expanded>
7538 true == true
7539 </Expanded>
7540 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007541 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007542 <Original>
7543 spec.matches( tcA ) == true
7544 </Original>
7545 <Expanded>
7546 true == true
7547 </Expanded>
7548 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007549 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007550 <Original>
7551 spec.matches( tcB ) == true
7552 </Original>
7553 <Expanded>
7554 true == true
7555 </Expanded>
7556 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007557 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007558 <Original>
7559 spec.matches( tcC ) == true
7560 </Original>
7561 <Expanded>
7562 true == true
7563 </Expanded>
7564 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007565 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007566 <Original>
7567 spec.matches( tcD ) == false
7568 </Original>
7569 <Expanded>
7570 false == false
7571 </Expanded>
7572 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007573 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007574 </Section>
7575 <Section name="wildcarded name exclusion, using exclude:, with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007576 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007577 <Original>
7578 spec.hasFilters() == true
7579 </Original>
7580 <Expanded>
7581 true == true
7582 </Expanded>
7583 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007584 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007585 <Original>
7586 spec.matches( tcA ) == true
7587 </Original>
7588 <Expanded>
7589 true == true
7590 </Expanded>
7591 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007592 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007593 <Original>
7594 spec.matches( tcB ) == true
7595 </Original>
7596 <Expanded>
7597 true == true
7598 </Expanded>
7599 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007600 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007601 <Original>
7602 spec.matches( tcC ) == true
7603 </Original>
7604 <Expanded>
7605 true == true
7606 </Expanded>
7607 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007608 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007609 <Original>
7610 spec.matches( tcD ) == false
7611 </Original>
7612 <Expanded>
7613 false == false
7614 </Expanded>
7615 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007616 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007617 </Section>
7618 <Section name="two wildcarded names">
Phil Nashc6635a72014-12-30 18:25:27 +00007619 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007620 <Original>
7621 spec.hasFilters() == true
7622 </Original>
7623 <Expanded>
7624 true == true
7625 </Expanded>
7626 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007627 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007628 <Original>
7629 spec.matches( tcA ) == false
7630 </Original>
7631 <Expanded>
7632 false == false
7633 </Expanded>
7634 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007635 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007636 <Original>
7637 spec.matches( tcB ) == false
7638 </Original>
7639 <Expanded>
7640 false == false
7641 </Expanded>
7642 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007643 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007644 <Original>
7645 spec.matches( tcC ) == true
7646 </Original>
7647 <Expanded>
7648 true == true
7649 </Expanded>
7650 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007651 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007652 <Original>
7653 spec.matches( tcD ) == false
7654 </Original>
7655 <Expanded>
7656 false == false
7657 </Expanded>
7658 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007659 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007660 </Section>
7661 <Section name="empty tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007662 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007663 <Original>
7664 spec.hasFilters() == false
7665 </Original>
7666 <Expanded>
7667 false == false
7668 </Expanded>
7669 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007670 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007671 <Original>
7672 spec.matches( tcA ) == false
7673 </Original>
7674 <Expanded>
7675 false == false
7676 </Expanded>
7677 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007678 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007679 <Original>
7680 spec.matches( tcB ) == false
7681 </Original>
7682 <Expanded>
7683 false == false
7684 </Expanded>
7685 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007686 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007687 <Original>
7688 spec.matches( tcC ) == false
7689 </Original>
7690 <Expanded>
7691 false == false
7692 </Expanded>
7693 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007694 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007695 <Original>
7696 spec.matches( tcD ) == false
7697 </Original>
7698 <Expanded>
7699 false == false
7700 </Expanded>
7701 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007702 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007703 </Section>
7704 <Section name="empty quoted name">
Phil Nashc6635a72014-12-30 18:25:27 +00007705 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007706 <Original>
7707 spec.hasFilters() == false
7708 </Original>
7709 <Expanded>
7710 false == false
7711 </Expanded>
7712 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007713 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007714 <Original>
7715 spec.matches( tcA ) == false
7716 </Original>
7717 <Expanded>
7718 false == false
7719 </Expanded>
7720 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007721 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007722 <Original>
7723 spec.matches( tcB ) == false
7724 </Original>
7725 <Expanded>
7726 false == false
7727 </Expanded>
7728 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007729 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007730 <Original>
7731 spec.matches( tcC ) == false
7732 </Original>
7733 <Expanded>
7734 false == false
7735 </Expanded>
7736 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007737 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007738 <Original>
7739 spec.matches( tcD ) == false
7740 </Original>
7741 <Expanded>
7742 false == false
7743 </Expanded>
7744 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007745 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007746 </Section>
7747 <Section name="quoted string followed by tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007748 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007749 <Original>
7750 spec.hasFilters() == true
7751 </Original>
7752 <Expanded>
7753 true == true
7754 </Expanded>
7755 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007756 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007757 <Original>
7758 spec.matches( tcA ) == false
7759 </Original>
7760 <Expanded>
7761 false == false
7762 </Expanded>
7763 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007764 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007765 <Original>
7766 spec.matches( tcB ) == false
7767 </Original>
7768 <Expanded>
7769 false == false
7770 </Expanded>
7771 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007772 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007773 <Original>
7774 spec.matches( tcC ) == false
7775 </Original>
7776 <Expanded>
7777 false == false
7778 </Expanded>
7779 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007780 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007781 <Original>
7782 spec.matches( tcD ) == true
7783 </Original>
7784 <Expanded>
7785 true == true
7786 </Expanded>
7787 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007788 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007789 </Section>
7790 <OverallResult success="true"/>
7791 </TestCase>
Phil Nash50183202014-12-30 18:47:01 +00007792 <TestCase name="tuple&lt;>">
7793 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7794 <Original>
7795 &quot;{ }&quot; == Catch::toString(type{})
7796 </Original>
7797 <Expanded>
7798 &quot;{ }&quot; == &quot;{ }&quot;
7799 </Expanded>
7800 </Expression>
7801 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7802 <Original>
7803 &quot;{ }&quot; == Catch::toString(value)
7804 </Original>
7805 <Expanded>
7806 &quot;{ }&quot; == &quot;{ }&quot;
7807 </Expanded>
7808 </Expression>
7809 <OverallResult success="true"/>
7810 </TestCase>
7811 <TestCase name="tuple&lt;int>">
7812 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7813 <Original>
7814 &quot;{ 0 }&quot; == Catch::toString(type{0})
7815 </Original>
7816 <Expanded>
7817 &quot;{ 0 }&quot; == &quot;{ 0 }&quot;
7818 </Expanded>
7819 </Expression>
7820 <OverallResult success="true"/>
7821 </TestCase>
7822 <TestCase name="tuple&lt;float,int>">
7823 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7824 <Original>
7825 &quot;1.2f&quot; == Catch::toString(float(1.2))
7826 </Original>
7827 <Expanded>
7828 &quot;1.2f&quot; == &quot;1.2f&quot;
7829 </Expanded>
7830 </Expression>
7831 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7832 <Original>
7833 &quot;{ 1.2f, 0 }&quot; == Catch::toString(type{1.2,0})
7834 </Original>
7835 <Expanded>
7836 &quot;{ 1.2f, 0 }&quot; == &quot;{ 1.2f, 0 }&quot;
7837 </Expanded>
7838 </Expression>
7839 <OverallResult success="true"/>
7840 </TestCase>
7841 <TestCase name="tuple&lt;string,string>">
7842 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7843 <Original>
7844 &quot;{ \&quot;hello\&quot;, \&quot;world\&quot; }&quot; == Catch::toString(type{&quot;hello&quot;,&quot;world&quot;})
7845 </Original>
7846 <Expanded>
7847 &quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
7848==
7849&quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
7850 </Expanded>
7851 </Expression>
7852 <OverallResult success="true"/>
7853 </TestCase>
7854 <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>">
7855 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7856 <Original>
7857 &quot;{ { 42 }, { }, 1.2f }&quot; == Catch::toString(value)
7858 </Original>
7859 <Expanded>
7860 &quot;{ { 42 }, { }, 1.2f }&quot;
7861==
7862&quot;{ { 42 }, { }, 1.2f }&quot;
7863 </Expanded>
7864 </Expression>
7865 <OverallResult success="true"/>
7866 </TestCase>
7867 <TestCase name="tuple&lt;nullptr,int,const char *>">
7868 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7869 <Original>
7870 &quot;{ nullptr, 42, \&quot;Catch me\&quot; }&quot; == Catch::toString(value)
7871 </Original>
7872 <Expanded>
7873 &quot;{ nullptr, 42, &quot;Catch me&quot; }&quot;
7874==
7875&quot;{ nullptr, 42, &quot;Catch me&quot; }&quot;
7876 </Expanded>
7877 </Expression>
7878 <OverallResult success="true"/>
7879 </TestCase>
Phil Nash061861d2014-06-30 07:34:27 +01007880 <TestCase name="Tag alias can be registered against tag patterns">
7881 <Section name="The same tag alias can only be registered once">
Phil Nashc6635a72014-12-30 18:25:27 +00007882 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007883 <Original>
7884 what Contains( &quot;[@zzz]&quot; )
7885 </Original>
7886 <Expanded>
7887 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7888 First seen at file:2
7889 Redefined at file:10&quot; contains: &quot;[@zzz]&quot;
7890 </Expanded>
7891 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007892 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007893 <Original>
7894 what Contains( &quot;file&quot; )
7895 </Original>
7896 <Expanded>
7897 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7898 First seen at file:2
7899 Redefined at file:10&quot; contains: &quot;file&quot;
7900 </Expanded>
7901 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007902 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007903 <Original>
7904 what Contains( &quot;2&quot; )
7905 </Original>
7906 <Expanded>
7907 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7908 First seen at file:2
7909 Redefined at file:10&quot; contains: &quot;2&quot;
7910 </Expanded>
7911 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007912 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007913 <Original>
7914 what Contains( &quot;10&quot; )
7915 </Original>
7916 <Expanded>
7917 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7918 First seen at file:2
7919 Redefined at file:10&quot; contains: &quot;10&quot;
7920 </Expanded>
7921 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007922 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01007923 </Section>
7924 <Section name="Tag aliases must be of the form [@name]">
Phil Nashc6635a72014-12-30 18:25:27 +00007925 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007926 <Original>
7927 registry.add( &quot;[no ampersat]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7928 </Original>
7929 <Expanded>
7930 registry.add( &quot;[no ampersat]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7931 </Expanded>
7932 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007933 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007934 <Original>
7935 registry.add( &quot;[the @ is not at the start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7936 </Original>
7937 <Expanded>
7938 registry.add( &quot;[the @ is not at the start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7939 </Expanded>
7940 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007941 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007942 <Original>
7943 registry.add( &quot;@no square bracket at start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7944 </Original>
7945 <Expanded>
7946 registry.add( &quot;@no square bracket at start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7947 </Expanded>
7948 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007949 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007950 <Original>
7951 registry.add( &quot;[@no square bracket at end&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7952 </Original>
7953 <Expanded>
7954 registry.add( &quot;[@no square bracket at end&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7955 </Expanded>
7956 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007957 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01007958 </Section>
7959 <OverallResult success="true"/>
7960 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01007961 <TestCase name="Anonymous test case 1">
7962 <OverallResult success="true"/>
7963 </TestCase>
7964 <TestCase name="Test case with one argument">
7965 <OverallResult success="true"/>
7966 </TestCase>
7967 <TestCase name="Variadic macros">
7968 <Section name="Section with one argument">
Phil Nash9c1f9a82014-07-03 08:09:57 +01007969 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007970 </Section>
7971 <OverallResult success="true"/>
7972 </TestCase>
7973 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00007974 <Section name="Given: This stuff exists">
Phil Nasha1e87a42013-12-10 08:20:46 +00007975 <Section name="When: I do this">
7976 <Section name="Then: it should do this">
Phil Nashc6635a72014-12-30 18:25:27 +00007977 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007978 <Original>
7979 itDoesThis()
7980 </Original>
7981 <Expanded>
7982 true
7983 </Expanded>
7984 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007985 <Section name="And: do that">
Phil Nashc6635a72014-12-30 18:25:27 +00007986 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007987 <Original>
7988 itDoesThat()
7989 </Original>
7990 <Expanded>
7991 true
7992 </Expanded>
7993 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007994 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007995 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007996 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007997 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007998 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007999 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008000 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008001 </Section>
8002 <OverallResult success="true"/>
8003 </TestCase>
8004 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00008005 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00008006 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008007 <Original>
8008 v.size() == 0
8009 </Original>
8010 <Expanded>
8011 0 == 0
8012 </Expanded>
8013 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00008014 <Section name="When: it is made larger">
8015 <Section name="Then: the size and capacity go up">
Phil Nashc6635a72014-12-30 18:25:27 +00008016 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008017 <Original>
8018 v.size() == 10
8019 </Original>
8020 <Expanded>
8021 10 == 10
8022 </Expanded>
8023 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008024 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008025 <Original>
8026 v.capacity() >= 10
8027 </Original>
8028 <Expanded>
8029 10 >= 10
8030 </Expanded>
8031 </Expression>
8032 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00008033 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nashc6635a72014-12-30 18:25:27 +00008034 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008035 <Original>
8036 v.size() == 5
8037 </Original>
8038 <Expanded>
8039 5 == 5
8040 </Expanded>
8041 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008042 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008043 <Original>
8044 v.capacity() >= 10
8045 </Original>
8046 <Expanded>
8047 10 >= 10
8048 </Expanded>
8049 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008050 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008051 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008052 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008053 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008054 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008055 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008056 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008057 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008058 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008059 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00008060 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00008061 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008062 <Original>
8063 v.size() == 0
8064 </Original>
8065 <Expanded>
8066 0 == 0
8067 </Expanded>
8068 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00008069 <Section name="When: we reserve more space">
Phil Nasha1e87a42013-12-10 08:20:46 +00008070 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nashc6635a72014-12-30 18:25:27 +00008071 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008072 <Original>
8073 v.capacity() >= 10
8074 </Original>
8075 <Expanded>
8076 10 >= 10
8077 </Expanded>
8078 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008079 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008080 <Original>
8081 v.size() == 0
8082 </Original>
8083 <Expanded>
8084 0 == 0
8085 </Expanded>
8086 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008087 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008088 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008089 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008090 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008091 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008092 </Section>
8093 <OverallResult success="true"/>
8094 </TestCase>
8095 <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 +00008096 <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 +00008097 <Section name="When: The test headers are printed as part of the normal running of the scenario">
8098 <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 +01008099 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008100 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008101 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008102 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008103 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008104 </Section>
8105 <OverallResult success="true"/>
8106 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01008107 <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods">
8108 <Section name="Given: No operations precede me">
Phil Nashc6635a72014-12-30 18:25:27 +00008109 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01008110 <Original>
8111 before == 0
8112 </Original>
8113 <Expanded>
8114 0 == 0
8115 </Expanded>
8116 </Expression>
8117 <Section name="When: We get the count">
8118 <Section name="Then: Subsequently values are higher">
Phil Nashc6635a72014-12-30 18:25:27 +00008119 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01008120 <Original>
8121 after > before
8122 </Original>
8123 <Expanded>
8124 1 > 0
8125 </Expanded>
8126 </Expression>
8127 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8128 </Section>
8129 <OverallResults successes="1" failures="0" expectedFailures="0"/>
8130 </Section>
8131 <OverallResults successes="2" failures="0" expectedFailures="0"/>
8132 </Section>
8133 <OverallResult success="true"/>
8134 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01008135 <TestCase name="section tracking">
Phil Nashc6635a72014-12-30 18:25:27 +00008136 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008137 <Original>
8138 !testCaseTracker.isCompleted()
8139 </Original>
8140 <Expanded>
8141 !false
8142 </Expanded>
8143 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01008144 <Section name="test case with no sections">
Phil Nashc6635a72014-12-30 18:25:27 +00008145 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008146 <Original>
8147 !testCaseTracker.isCompleted()
8148 </Original>
8149 <Expanded>
8150 !false
8151 </Expanded>
8152 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008153 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008154 <Original>
8155 testCaseTracker.isCompleted()
8156 </Original>
8157 <Expanded>
8158 true
8159 </Expanded>
8160 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008161 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008162 </Section>
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>
8171 <Section name="test case with one section">
Phil Nashc6635a72014-12-30 18:25:27 +00008172 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008173 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008174 testCaseTracker.enterSection( section1Name )
8175 </Original>
8176 <Expanded>
8177 true
8178 </Expanded>
8179 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008180 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008181 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01008182 !testCaseTracker.isCompleted()
8183 </Original>
8184 <Expanded>
8185 !false
8186 </Expanded>
8187 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008188 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008189 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008190 testCaseTracker.isCompleted()
8191 </Original>
8192 <Expanded>
8193 true
8194 </Expanded>
8195 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008196 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008197 <Original>
8198 !testCaseTracker.enterSection( section1Name )
8199 </Original>
8200 <Expanded>
8201 !false
8202 </Expanded>
8203 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008204 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008205 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008206 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008207 <Original>
8208 !testCaseTracker.isCompleted()
8209 </Original>
8210 <Expanded>
8211 !false
8212 </Expanded>
8213 </Expression>
8214 <Section name="test case with two consecutive sections">
Phil Nashc6635a72014-12-30 18:25:27 +00008215 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008216 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008217 testCaseTracker.enterSection( section1Name )
8218 </Original>
8219 <Expanded>
8220 true
8221 </Expanded>
8222 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008223 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008224 <Original>
8225 !testCaseTracker.enterSection( section2Name )
8226 </Original>
8227 <Expanded>
8228 !false
8229 </Expanded>
8230 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008231 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008232 <Original>
8233 !testCaseTracker.isCompleted()
8234 </Original>
8235 <Expanded>
8236 !false
8237 </Expanded>
8238 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008239 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008240 <Original>
8241 !testCaseTracker.enterSection( section1Name )
8242 </Original>
8243 <Expanded>
8244 !false
8245 </Expanded>
8246 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008247 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008248 <Original>
8249 testCaseTracker.enterSection( section2Name )
8250 </Original>
8251 <Expanded>
8252 true
8253 </Expanded>
8254 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008255 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008256 <Original>
8257 testCaseTracker.isCompleted()
8258 </Original>
8259 <Expanded>
8260 true
8261 </Expanded>
8262 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008263 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008264 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008265 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008266 <Original>
8267 !testCaseTracker.isCompleted()
8268 </Original>
8269 <Expanded>
8270 !false
8271 </Expanded>
8272 </Expression>
8273 <Section name="test case with one section within another">
Phil Nashc6635a72014-12-30 18:25:27 +00008274 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008275 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008276 testCaseTracker.enterSection( section1Name )
8277 </Original>
8278 <Expanded>
8279 true
8280 </Expanded>
8281 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008282 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008283 <Original>
8284 testCaseTracker.enterSection( section2Name )
8285 </Original>
8286 <Expanded>
8287 true
8288 </Expanded>
8289 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008290 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008291 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01008292 !testCaseTracker.isCompleted()
8293 </Original>
8294 <Expanded>
8295 !false
8296 </Expanded>
8297 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008298 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008299 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008300 testCaseTracker.isCompleted()
8301 </Original>
8302 <Expanded>
8303 true
8304 </Expanded>
8305 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008306 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008307 </Section>
8308 <OverallResult success="true"/>
8309 </TestCase>
Phil Nash2104ca22015-07-13 15:03:04 +01008310 <OverallResults successes="681" failures="100" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008311 </Group>
Phil Nash2104ca22015-07-13 15:03:04 +01008312 <OverallResults successes="681" failures="100" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008313</Catch>