blob: 6f30c63fd81b1ebb9dd9a26c5474ad2a7bcb518f [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>
1066 0x<hex digits> > 4
1067 </Expanded>
1068 </Expression>
1069 <OverallResult success="true"/>
1070 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001071 <TestCase name="comparisons between int variables">
Phil Nashc6635a72014-12-30 18:25:27 +00001072 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001073 <Original>
1074 long_var == unsigned_char_var
1075 </Original>
1076 <Expanded>
1077 1 == 1
1078 </Expanded>
1079 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001080 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001081 <Original>
1082 long_var == unsigned_short_var
1083 </Original>
1084 <Expanded>
1085 1 == 1
1086 </Expanded>
1087 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001088 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001089 <Original>
1090 long_var == unsigned_int_var
1091 </Original>
1092 <Expanded>
1093 1 == 1
1094 </Expanded>
1095 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001096 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001097 <Original>
1098 long_var == unsigned_long_var
1099 </Original>
1100 <Expanded>
1101 1 == 1
1102 </Expanded>
1103 </Expression>
1104 <OverallResult success="true"/>
1105 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001106 <TestCase name="comparisons between const int variables">
Phil Nashc6635a72014-12-30 18:25:27 +00001107 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001108 <Original>
1109 unsigned_char_var == 1
1110 </Original>
1111 <Expanded>
1112 1 == 1
1113 </Expanded>
1114 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001115 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001116 <Original>
1117 unsigned_short_var == 1
1118 </Original>
1119 <Expanded>
1120 1 == 1
1121 </Expanded>
1122 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001123 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001124 <Original>
1125 unsigned_int_var == 1
1126 </Original>
1127 <Expanded>
1128 1 == 1
1129 </Expanded>
1130 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001131 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001132 <Original>
1133 unsigned_long_var == 1
1134 </Original>
1135 <Expanded>
1136 1 == 1
1137 </Expanded>
1138 </Expression>
1139 <OverallResult success="true"/>
1140 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001141 <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour">
Phil Nashc6635a72014-12-30 18:25:27 +00001142 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001143 <Original>
1144 ( -1 > 2u )
1145 </Original>
1146 <Expanded>
1147 true
1148 </Expanded>
1149 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001150 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001151 <Original>
1152 -1 > 2u
1153 </Original>
1154 <Expanded>
1155 -1 > 2
1156 </Expanded>
1157 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001158 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001159 <Original>
1160 ( 2u &lt; -1 )
1161 </Original>
1162 <Expanded>
1163 true
1164 </Expanded>
1165 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001166 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001167 <Original>
1168 2u &lt; -1
1169 </Original>
1170 <Expanded>
1171 2 &lt; -1
1172 </Expanded>
1173 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001174 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001175 <Original>
1176 ( minInt > 2u )
1177 </Original>
1178 <Expanded>
1179 true
1180 </Expanded>
1181 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001182 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001183 <Original>
1184 minInt > 2u
1185 </Original>
1186 <Expanded>
1187 -2147483648 > 2
1188 </Expanded>
1189 </Expression>
1190 <OverallResult success="true"/>
1191 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001192 <TestCase name="Comparisons between ints where one side is computed">
Phil Nashc6635a72014-12-30 18:25:27 +00001193 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001194 <Original>
1195 54 == 6*9
1196 </Original>
1197 <Expanded>
1198 54 == 54
1199 </Expanded>
1200 </Expression>
1201 <OverallResult success="true"/>
1202 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001203 <TestCase name="Pointers can be compared to null">
Phil Nashc6635a72014-12-30 18:25:27 +00001204 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001205 <Original>
1206 p == __null
1207 </Original>
1208 <Expanded>
1209 __null == 0
1210 </Expanded>
1211 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001212 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001213 <Original>
1214 p == pNULL
1215 </Original>
1216 <Expanded>
1217 __null == __null
1218 </Expanded>
1219 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001220 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001221 <Original>
1222 p != __null
1223 </Original>
1224 <Expanded>
1225 0x<hex digits> != 0
1226 </Expanded>
1227 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001228 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001229 <Original>
1230 cp != __null
1231 </Original>
1232 <Expanded>
1233 0x<hex digits> != 0
1234 </Expanded>
1235 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001236 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001237 <Original>
1238 cpc != __null
1239 </Original>
1240 <Expanded>
1241 0x<hex digits> != 0
1242 </Expanded>
1243 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001244 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001245 <Original>
1246 returnsNull() == __null
1247 </Original>
1248 <Expanded>
1249 {null string} == 0
1250 </Expanded>
1251 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001252 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001253 <Original>
1254 returnsConstNull() == __null
1255 </Original>
1256 <Expanded>
1257 {null string} == 0
1258 </Expanded>
1259 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001260 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001261 <Original>
1262 __null != p
1263 </Original>
1264 <Expanded>
1265 0 != 0x<hex digits>
1266 </Expanded>
1267 </Expression>
1268 <OverallResult success="true"/>
1269 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001270 <TestCase name="'Not' checks that should succeed">
Phil Nashc6635a72014-12-30 18:25:27 +00001271 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001272 <Original>
1273 false == false
1274 </Original>
1275 <Expanded>
1276 false == false
1277 </Expanded>
1278 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001279 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001280 <Original>
1281 true == true
1282 </Original>
1283 <Expanded>
1284 true == true
1285 </Expanded>
1286 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001287 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001288 <Original>
1289 !false
1290 </Original>
1291 <Expanded>
1292 true
1293 </Expanded>
1294 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001295 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001296 <Original>
1297 !false
1298 </Original>
1299 <Expanded>
1300 !false
1301 </Expanded>
1302 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001303 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001304 <Original>
1305 !falseValue
1306 </Original>
1307 <Expanded>
1308 true
1309 </Expanded>
1310 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001311 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001312 <Original>
1313 !falseValue
1314 </Original>
1315 <Expanded>
1316 !false
1317 </Expanded>
1318 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001319 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001320 <Original>
1321 !(1 == 2)
1322 </Original>
1323 <Expanded>
1324 true
1325 </Expanded>
1326 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001327 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001328 <Original>
1329 !1 == 2
1330 </Original>
1331 <Expanded>
1332 !(1 == 2)
1333 </Expanded>
1334 </Expression>
1335 <OverallResult success="true"/>
1336 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001337 <TestCase name="'Not' checks that should fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001338 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001339 <Original>
1340 false != false
1341 </Original>
1342 <Expanded>
1343 false != false
1344 </Expanded>
1345 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001346 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001347 <Original>
1348 true != true
1349 </Original>
1350 <Expanded>
1351 true != true
1352 </Expanded>
1353 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001354 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001355 <Original>
1356 !true
1357 </Original>
1358 <Expanded>
1359 false
1360 </Expanded>
1361 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001362 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001363 <Original>
1364 !true
1365 </Original>
1366 <Expanded>
1367 !true
1368 </Expanded>
1369 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001370 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001371 <Original>
1372 !trueValue
1373 </Original>
1374 <Expanded>
1375 false
1376 </Expanded>
1377 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001378 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001379 <Original>
1380 !trueValue
1381 </Original>
1382 <Expanded>
1383 !true
1384 </Expanded>
1385 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001386 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001387 <Original>
1388 !(1 == 1)
1389 </Original>
1390 <Expanded>
1391 false
1392 </Expanded>
1393 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001394 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001395 <Original>
1396 !1 == 1
1397 </Original>
1398 <Expanded>
1399 !(1 == 1)
1400 </Expanded>
1401 </Expression>
1402 <OverallResult success="false"/>
1403 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001404 <TestCase name="When checked exceptions are thrown they can be expected or unexpected">
Phil Nashc6635a72014-12-30 18:25:27 +00001405 <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001406 <Original>
1407 thisThrows()
1408 </Original>
1409 <Expanded>
1410 thisThrows()
1411 </Expanded>
1412 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001413 <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001414 <Original>
1415 thisDoesntThrow()
1416 </Original>
1417 <Expanded>
1418 thisDoesntThrow()
1419 </Expanded>
1420 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001421 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001422 <Original>
1423 thisThrows()
1424 </Original>
1425 <Expanded>
1426 thisThrows()
1427 </Expanded>
1428 </Expression>
1429 <OverallResult success="true"/>
1430 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001431 <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00001432 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001433 <Original>
1434 thisThrows()
1435 </Original>
1436 <Expanded>
1437 thisThrows()
1438 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001439 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001440 expected exception
1441 </Exception>
1442 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001443 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001444 <Original>
1445 thisDoesntThrow()
1446 </Original>
1447 <Expanded>
1448 thisDoesntThrow()
1449 </Expanded>
1450 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001451 <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001452 <Original>
1453 thisThrows()
1454 </Original>
1455 <Expanded>
1456 thisThrows()
1457 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001458 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001459 expected exception
1460 </Exception>
1461 </Expression>
1462 <OverallResult success="false"/>
1463 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001464 <TestCase name="When unchecked exceptions are thrown directly they are always failures">
Phil Nasha99e75b2014-12-11 23:40:29 +00001465 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001466 unexpected exception
1467 </Exception>
1468 <OverallResult success="false"/>
1469 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001470 <TestCase name="An unchecked exception reports the line of the last assertion">
Phil Nashc6635a72014-12-30 18:25:27 +00001471 <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001472 <Original>
1473 1 == 1
1474 </Original>
1475 <Expanded>
1476 1 == 1
1477 </Expanded>
1478 </Expression>
Phil Nasha99e75b2014-12-11 23:40:29 +00001479 <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001480 <Original>
1481 {Unknown expression after the reported line}
1482 </Original>
1483 <Expanded>
1484 {Unknown expression after the reported line}
1485 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001486 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001487 unexpected exception
1488 </Exception>
1489 </Expression>
1490 <OverallResult success="false"/>
1491 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001492 <TestCase name="When unchecked exceptions are thrown from sections they are always failures">
Phil Nash2f7a2962013-09-27 19:01:14 +01001493 <Section name="section name">
Phil Nasha99e75b2014-12-11 23:40:29 +00001494 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001495 unexpected exception
1496 </Exception>
Phil Nash9c1f9a82014-07-03 08:09:57 +01001497 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01001498 </Section>
1499 <OverallResult success="false"/>
1500 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001501 <TestCase name="When unchecked exceptions are thrown from functions they are always failures">
Phil Nashc6635a72014-12-30 18:25:27 +00001502 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001503 <Original>
1504 thisThrows() == 0
1505 </Original>
1506 <Expanded>
1507 thisThrows() == 0
1508 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001509 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001510 expected exception
1511 </Exception>
1512 </Expression>
1513 <OverallResult success="false"/>
1514 </TestCase>
Phil Nash1bccc032014-04-12 19:20:46 +01001515 <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001516 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash1bccc032014-04-12 19:20:46 +01001517 <Original>
1518 thisThrows() == 0
1519 </Original>
1520 <Expanded>
1521 thisThrows() == 0
1522 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001523 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash1bccc032014-04-12 19:20:46 +01001524 expected exception
1525 </Exception>
1526 </Expression>
1527 <OverallResult success="false"/>
1528 </TestCase>
1529 <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001530 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nasha176b932014-04-12 19:07:24 +01001531 <Original>
1532 thisThrows() == 0
1533 </Original>
1534 <Expanded>
1535 thisThrows() == 0
1536 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001537 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nasha176b932014-04-12 19:07:24 +01001538 expected exception
1539 </Exception>
1540 </Expression>
1541 <OverallResult success="false"/>
1542 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001543 <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test">
Phil Nash6817bb02014-12-30 18:24:31 +00001544 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01001545 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001546 <TestCase name="Unexpected custom exceptions can be translated">
Phil Nasha99e75b2014-12-11 23:40:29 +00001547 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001548 custom exception
1549 </Exception>
1550 <OverallResult success="false"/>
1551 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001552 <TestCase name="Custom exceptions can be translated when testing for nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00001553 <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001554 <Original>
1555 throwCustom()
1556 </Original>
1557 <Expanded>
1558 throwCustom()
1559 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001560 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001561 custom exception - not std
1562 </Exception>
1563 </Expression>
1564 <OverallResult success="false"/>
1565 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001566 <TestCase name="Custom exceptions can be translated when testing for throwing as something else">
Phil Nashc6635a72014-12-30 18:25:27 +00001567 <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001568 <Original>
1569 throwCustom()
1570 </Original>
1571 <Expanded>
1572 throwCustom()
1573 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001574 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001575 custom exception - not std
1576 </Exception>
1577 </Expression>
1578 <OverallResult success="false"/>
1579 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001580 <TestCase name="Unexpected exceptions can be translated">
Phil Nasha99e75b2014-12-11 23:40:29 +00001581 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001582 3.14
1583 </Exception>
1584 <OverallResult success="false"/>
1585 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001586 <TestCase name="NotImplemented exception">
Phil Nashc6635a72014-12-30 18:25:27 +00001587 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001588 <Original>
1589 thisFunctionNotImplemented( 7 )
1590 </Original>
1591 <Expanded>
1592 thisFunctionNotImplemented( 7 )
1593 </Expanded>
1594 </Expression>
1595 <OverallResult success="true"/>
1596 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001597 <TestCase name="Generators over two ranges">
Phil Nashc6635a72014-12-30 18:25:27 +00001598 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001599 <Original>
1600 multiply( i, 2 ) == i*2
1601 </Original>
1602 <Expanded>
1603 2 == 2
1604 </Expanded>
1605 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001606 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001607 <Original>
1608 multiply( j, 2 ) == j*2
1609 </Original>
1610 <Expanded>
1611 200 == 200
1612 </Expanded>
1613 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001614 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001615 <Original>
1616 multiply( i, 2 ) == i*2
1617 </Original>
1618 <Expanded>
1619 4 == 4
1620 </Expanded>
1621 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001622 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001623 <Original>
1624 multiply( j, 2 ) == j*2
1625 </Original>
1626 <Expanded>
1627 200 == 200
1628 </Expanded>
1629 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001630 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001631 <Original>
1632 multiply( i, 2 ) == i*2
1633 </Original>
1634 <Expanded>
1635 6 == 6
1636 </Expanded>
1637 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001638 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001639 <Original>
1640 multiply( j, 2 ) == j*2
1641 </Original>
1642 <Expanded>
1643 200 == 200
1644 </Expanded>
1645 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001646 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001647 <Original>
1648 multiply( i, 2 ) == i*2
1649 </Original>
1650 <Expanded>
1651 8 == 8
1652 </Expanded>
1653 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001654 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001655 <Original>
1656 multiply( j, 2 ) == j*2
1657 </Original>
1658 <Expanded>
1659 200 == 200
1660 </Expanded>
1661 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001662 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001663 <Original>
1664 multiply( i, 2 ) == i*2
1665 </Original>
1666 <Expanded>
1667 10 == 10
1668 </Expanded>
1669 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001670 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001671 <Original>
1672 multiply( j, 2 ) == j*2
1673 </Original>
1674 <Expanded>
1675 200 == 200
1676 </Expanded>
1677 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001678 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001679 <Original>
1680 multiply( i, 2 ) == i*2
1681 </Original>
1682 <Expanded>
1683 30 == 30
1684 </Expanded>
1685 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001686 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001687 <Original>
1688 multiply( j, 2 ) == j*2
1689 </Original>
1690 <Expanded>
1691 200 == 200
1692 </Expanded>
1693 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001694 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001695 <Original>
1696 multiply( i, 2 ) == i*2
1697 </Original>
1698 <Expanded>
1699 40 == 40
1700 </Expanded>
1701 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001702 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001703 <Original>
1704 multiply( j, 2 ) == j*2
1705 </Original>
1706 <Expanded>
1707 200 == 200
1708 </Expanded>
1709 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001710 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001711 <Original>
1712 multiply( i, 2 ) == i*2
1713 </Original>
1714 <Expanded>
1715 42 == 42
1716 </Expanded>
1717 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001718 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001719 <Original>
1720 multiply( j, 2 ) == j*2
1721 </Original>
1722 <Expanded>
1723 200 == 200
1724 </Expanded>
1725 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001726 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001727 <Original>
1728 multiply( i, 2 ) == i*2
1729 </Original>
1730 <Expanded>
1731 72 == 72
1732 </Expanded>
1733 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001734 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001735 <Original>
1736 multiply( j, 2 ) == j*2
1737 </Original>
1738 <Expanded>
1739 200 == 200
1740 </Expanded>
1741 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001742 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001743 <Original>
1744 multiply( i, 2 ) == i*2
1745 </Original>
1746 <Expanded>
1747 2 == 2
1748 </Expanded>
1749 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001750 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001751 <Original>
1752 multiply( j, 2 ) == j*2
1753 </Original>
1754 <Expanded>
1755 202 == 202
1756 </Expanded>
1757 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001758 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001759 <Original>
1760 multiply( i, 2 ) == i*2
1761 </Original>
1762 <Expanded>
1763 4 == 4
1764 </Expanded>
1765 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001766 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001767 <Original>
1768 multiply( j, 2 ) == j*2
1769 </Original>
1770 <Expanded>
1771 202 == 202
1772 </Expanded>
1773 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001774 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001775 <Original>
1776 multiply( i, 2 ) == i*2
1777 </Original>
1778 <Expanded>
1779 6 == 6
1780 </Expanded>
1781 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001782 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001783 <Original>
1784 multiply( j, 2 ) == j*2
1785 </Original>
1786 <Expanded>
1787 202 == 202
1788 </Expanded>
1789 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001790 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001791 <Original>
1792 multiply( i, 2 ) == i*2
1793 </Original>
1794 <Expanded>
1795 8 == 8
1796 </Expanded>
1797 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001798 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001799 <Original>
1800 multiply( j, 2 ) == j*2
1801 </Original>
1802 <Expanded>
1803 202 == 202
1804 </Expanded>
1805 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001806 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001807 <Original>
1808 multiply( i, 2 ) == i*2
1809 </Original>
1810 <Expanded>
1811 10 == 10
1812 </Expanded>
1813 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001814 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001815 <Original>
1816 multiply( j, 2 ) == j*2
1817 </Original>
1818 <Expanded>
1819 202 == 202
1820 </Expanded>
1821 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001822 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001823 <Original>
1824 multiply( i, 2 ) == i*2
1825 </Original>
1826 <Expanded>
1827 30 == 30
1828 </Expanded>
1829 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001830 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001831 <Original>
1832 multiply( j, 2 ) == j*2
1833 </Original>
1834 <Expanded>
1835 202 == 202
1836 </Expanded>
1837 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001838 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001839 <Original>
1840 multiply( i, 2 ) == i*2
1841 </Original>
1842 <Expanded>
1843 40 == 40
1844 </Expanded>
1845 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001846 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001847 <Original>
1848 multiply( j, 2 ) == j*2
1849 </Original>
1850 <Expanded>
1851 202 == 202
1852 </Expanded>
1853 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001854 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001855 <Original>
1856 multiply( i, 2 ) == i*2
1857 </Original>
1858 <Expanded>
1859 42 == 42
1860 </Expanded>
1861 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001862 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001863 <Original>
1864 multiply( j, 2 ) == j*2
1865 </Original>
1866 <Expanded>
1867 202 == 202
1868 </Expanded>
1869 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001870 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001871 <Original>
1872 multiply( i, 2 ) == i*2
1873 </Original>
1874 <Expanded>
1875 72 == 72
1876 </Expanded>
1877 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001878 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001879 <Original>
1880 multiply( j, 2 ) == j*2
1881 </Original>
1882 <Expanded>
1883 202 == 202
1884 </Expanded>
1885 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001886 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001887 <Original>
1888 multiply( i, 2 ) == i*2
1889 </Original>
1890 <Expanded>
1891 2 == 2
1892 </Expanded>
1893 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001894 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001895 <Original>
1896 multiply( j, 2 ) == j*2
1897 </Original>
1898 <Expanded>
1899 204 == 204
1900 </Expanded>
1901 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001902 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001903 <Original>
1904 multiply( i, 2 ) == i*2
1905 </Original>
1906 <Expanded>
1907 4 == 4
1908 </Expanded>
1909 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001910 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001911 <Original>
1912 multiply( j, 2 ) == j*2
1913 </Original>
1914 <Expanded>
1915 204 == 204
1916 </Expanded>
1917 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001918 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001919 <Original>
1920 multiply( i, 2 ) == i*2
1921 </Original>
1922 <Expanded>
1923 6 == 6
1924 </Expanded>
1925 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001926 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001927 <Original>
1928 multiply( j, 2 ) == j*2
1929 </Original>
1930 <Expanded>
1931 204 == 204
1932 </Expanded>
1933 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001934 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001935 <Original>
1936 multiply( i, 2 ) == i*2
1937 </Original>
1938 <Expanded>
1939 8 == 8
1940 </Expanded>
1941 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001942 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001943 <Original>
1944 multiply( j, 2 ) == j*2
1945 </Original>
1946 <Expanded>
1947 204 == 204
1948 </Expanded>
1949 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001950 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001951 <Original>
1952 multiply( i, 2 ) == i*2
1953 </Original>
1954 <Expanded>
1955 10 == 10
1956 </Expanded>
1957 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001958 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001959 <Original>
1960 multiply( j, 2 ) == j*2
1961 </Original>
1962 <Expanded>
1963 204 == 204
1964 </Expanded>
1965 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001966 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001967 <Original>
1968 multiply( i, 2 ) == i*2
1969 </Original>
1970 <Expanded>
1971 30 == 30
1972 </Expanded>
1973 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001974 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001975 <Original>
1976 multiply( j, 2 ) == j*2
1977 </Original>
1978 <Expanded>
1979 204 == 204
1980 </Expanded>
1981 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001982 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001983 <Original>
1984 multiply( i, 2 ) == i*2
1985 </Original>
1986 <Expanded>
1987 40 == 40
1988 </Expanded>
1989 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001990 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001991 <Original>
1992 multiply( j, 2 ) == j*2
1993 </Original>
1994 <Expanded>
1995 204 == 204
1996 </Expanded>
1997 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001998 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001999 <Original>
2000 multiply( i, 2 ) == i*2
2001 </Original>
2002 <Expanded>
2003 42 == 42
2004 </Expanded>
2005 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002006 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002007 <Original>
2008 multiply( j, 2 ) == j*2
2009 </Original>
2010 <Expanded>
2011 204 == 204
2012 </Expanded>
2013 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002014 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002015 <Original>
2016 multiply( i, 2 ) == i*2
2017 </Original>
2018 <Expanded>
2019 72 == 72
2020 </Expanded>
2021 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002022 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002023 <Original>
2024 multiply( j, 2 ) == j*2
2025 </Original>
2026 <Expanded>
2027 204 == 204
2028 </Expanded>
2029 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002030 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002031 <Original>
2032 multiply( i, 2 ) == i*2
2033 </Original>
2034 <Expanded>
2035 2 == 2
2036 </Expanded>
2037 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002038 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002039 <Original>
2040 multiply( j, 2 ) == j*2
2041 </Original>
2042 <Expanded>
2043 206 == 206
2044 </Expanded>
2045 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002046 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002047 <Original>
2048 multiply( i, 2 ) == i*2
2049 </Original>
2050 <Expanded>
2051 4 == 4
2052 </Expanded>
2053 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002054 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002055 <Original>
2056 multiply( j, 2 ) == j*2
2057 </Original>
2058 <Expanded>
2059 206 == 206
2060 </Expanded>
2061 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002062 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002063 <Original>
2064 multiply( i, 2 ) == i*2
2065 </Original>
2066 <Expanded>
2067 6 == 6
2068 </Expanded>
2069 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002070 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002071 <Original>
2072 multiply( j, 2 ) == j*2
2073 </Original>
2074 <Expanded>
2075 206 == 206
2076 </Expanded>
2077 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002078 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002079 <Original>
2080 multiply( i, 2 ) == i*2
2081 </Original>
2082 <Expanded>
2083 8 == 8
2084 </Expanded>
2085 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002086 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002087 <Original>
2088 multiply( j, 2 ) == j*2
2089 </Original>
2090 <Expanded>
2091 206 == 206
2092 </Expanded>
2093 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002094 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002095 <Original>
2096 multiply( i, 2 ) == i*2
2097 </Original>
2098 <Expanded>
2099 10 == 10
2100 </Expanded>
2101 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002102 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002103 <Original>
2104 multiply( j, 2 ) == j*2
2105 </Original>
2106 <Expanded>
2107 206 == 206
2108 </Expanded>
2109 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002110 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002111 <Original>
2112 multiply( i, 2 ) == i*2
2113 </Original>
2114 <Expanded>
2115 30 == 30
2116 </Expanded>
2117 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002118 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002119 <Original>
2120 multiply( j, 2 ) == j*2
2121 </Original>
2122 <Expanded>
2123 206 == 206
2124 </Expanded>
2125 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002126 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002127 <Original>
2128 multiply( i, 2 ) == i*2
2129 </Original>
2130 <Expanded>
2131 40 == 40
2132 </Expanded>
2133 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002134 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002135 <Original>
2136 multiply( j, 2 ) == j*2
2137 </Original>
2138 <Expanded>
2139 206 == 206
2140 </Expanded>
2141 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002142 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002143 <Original>
2144 multiply( i, 2 ) == i*2
2145 </Original>
2146 <Expanded>
2147 42 == 42
2148 </Expanded>
2149 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002150 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002151 <Original>
2152 multiply( j, 2 ) == j*2
2153 </Original>
2154 <Expanded>
2155 206 == 206
2156 </Expanded>
2157 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002158 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002159 <Original>
2160 multiply( i, 2 ) == i*2
2161 </Original>
2162 <Expanded>
2163 72 == 72
2164 </Expanded>
2165 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002166 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002167 <Original>
2168 multiply( j, 2 ) == j*2
2169 </Original>
2170 <Expanded>
2171 206 == 206
2172 </Expanded>
2173 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002174 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002175 <Original>
2176 multiply( i, 2 ) == i*2
2177 </Original>
2178 <Expanded>
2179 2 == 2
2180 </Expanded>
2181 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002182 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002183 <Original>
2184 multiply( j, 2 ) == j*2
2185 </Original>
2186 <Expanded>
2187 208 == 208
2188 </Expanded>
2189 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002190 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002191 <Original>
2192 multiply( i, 2 ) == i*2
2193 </Original>
2194 <Expanded>
2195 4 == 4
2196 </Expanded>
2197 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002198 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002199 <Original>
2200 multiply( j, 2 ) == j*2
2201 </Original>
2202 <Expanded>
2203 208 == 208
2204 </Expanded>
2205 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002206 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002207 <Original>
2208 multiply( i, 2 ) == i*2
2209 </Original>
2210 <Expanded>
2211 6 == 6
2212 </Expanded>
2213 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002214 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002215 <Original>
2216 multiply( j, 2 ) == j*2
2217 </Original>
2218 <Expanded>
2219 208 == 208
2220 </Expanded>
2221 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002222 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002223 <Original>
2224 multiply( i, 2 ) == i*2
2225 </Original>
2226 <Expanded>
2227 8 == 8
2228 </Expanded>
2229 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002230 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002231 <Original>
2232 multiply( j, 2 ) == j*2
2233 </Original>
2234 <Expanded>
2235 208 == 208
2236 </Expanded>
2237 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002238 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002239 <Original>
2240 multiply( i, 2 ) == i*2
2241 </Original>
2242 <Expanded>
2243 10 == 10
2244 </Expanded>
2245 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002246 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002247 <Original>
2248 multiply( j, 2 ) == j*2
2249 </Original>
2250 <Expanded>
2251 208 == 208
2252 </Expanded>
2253 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002254 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002255 <Original>
2256 multiply( i, 2 ) == i*2
2257 </Original>
2258 <Expanded>
2259 30 == 30
2260 </Expanded>
2261 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002262 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002263 <Original>
2264 multiply( j, 2 ) == j*2
2265 </Original>
2266 <Expanded>
2267 208 == 208
2268 </Expanded>
2269 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002270 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002271 <Original>
2272 multiply( i, 2 ) == i*2
2273 </Original>
2274 <Expanded>
2275 40 == 40
2276 </Expanded>
2277 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002278 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002279 <Original>
2280 multiply( j, 2 ) == j*2
2281 </Original>
2282 <Expanded>
2283 208 == 208
2284 </Expanded>
2285 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002286 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002287 <Original>
2288 multiply( i, 2 ) == i*2
2289 </Original>
2290 <Expanded>
2291 42 == 42
2292 </Expanded>
2293 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002294 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002295 <Original>
2296 multiply( j, 2 ) == j*2
2297 </Original>
2298 <Expanded>
2299 208 == 208
2300 </Expanded>
2301 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002302 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002303 <Original>
2304 multiply( i, 2 ) == i*2
2305 </Original>
2306 <Expanded>
2307 72 == 72
2308 </Expanded>
2309 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002310 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002311 <Original>
2312 multiply( j, 2 ) == j*2
2313 </Original>
2314 <Expanded>
2315 208 == 208
2316 </Expanded>
2317 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002318 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002319 <Original>
2320 multiply( i, 2 ) == i*2
2321 </Original>
2322 <Expanded>
2323 2 == 2
2324 </Expanded>
2325 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002326 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002327 <Original>
2328 multiply( j, 2 ) == j*2
2329 </Original>
2330 <Expanded>
2331 210 == 210
2332 </Expanded>
2333 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002334 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002335 <Original>
2336 multiply( i, 2 ) == i*2
2337 </Original>
2338 <Expanded>
2339 4 == 4
2340 </Expanded>
2341 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002342 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002343 <Original>
2344 multiply( j, 2 ) == j*2
2345 </Original>
2346 <Expanded>
2347 210 == 210
2348 </Expanded>
2349 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002350 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002351 <Original>
2352 multiply( i, 2 ) == i*2
2353 </Original>
2354 <Expanded>
2355 6 == 6
2356 </Expanded>
2357 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002358 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002359 <Original>
2360 multiply( j, 2 ) == j*2
2361 </Original>
2362 <Expanded>
2363 210 == 210
2364 </Expanded>
2365 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002366 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002367 <Original>
2368 multiply( i, 2 ) == i*2
2369 </Original>
2370 <Expanded>
2371 8 == 8
2372 </Expanded>
2373 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002374 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002375 <Original>
2376 multiply( j, 2 ) == j*2
2377 </Original>
2378 <Expanded>
2379 210 == 210
2380 </Expanded>
2381 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002382 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002383 <Original>
2384 multiply( i, 2 ) == i*2
2385 </Original>
2386 <Expanded>
2387 10 == 10
2388 </Expanded>
2389 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002390 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002391 <Original>
2392 multiply( j, 2 ) == j*2
2393 </Original>
2394 <Expanded>
2395 210 == 210
2396 </Expanded>
2397 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002398 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002399 <Original>
2400 multiply( i, 2 ) == i*2
2401 </Original>
2402 <Expanded>
2403 30 == 30
2404 </Expanded>
2405 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002406 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002407 <Original>
2408 multiply( j, 2 ) == j*2
2409 </Original>
2410 <Expanded>
2411 210 == 210
2412 </Expanded>
2413 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002414 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002415 <Original>
2416 multiply( i, 2 ) == i*2
2417 </Original>
2418 <Expanded>
2419 40 == 40
2420 </Expanded>
2421 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002422 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002423 <Original>
2424 multiply( j, 2 ) == j*2
2425 </Original>
2426 <Expanded>
2427 210 == 210
2428 </Expanded>
2429 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002430 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002431 <Original>
2432 multiply( i, 2 ) == i*2
2433 </Original>
2434 <Expanded>
2435 42 == 42
2436 </Expanded>
2437 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002438 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002439 <Original>
2440 multiply( j, 2 ) == j*2
2441 </Original>
2442 <Expanded>
2443 210 == 210
2444 </Expanded>
2445 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002446 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002447 <Original>
2448 multiply( i, 2 ) == i*2
2449 </Original>
2450 <Expanded>
2451 72 == 72
2452 </Expanded>
2453 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002454 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002455 <Original>
2456 multiply( j, 2 ) == j*2
2457 </Original>
2458 <Expanded>
2459 210 == 210
2460 </Expanded>
2461 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002462 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002463 <Original>
2464 multiply( i, 2 ) == i*2
2465 </Original>
2466 <Expanded>
2467 2 == 2
2468 </Expanded>
2469 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002470 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002471 <Original>
2472 multiply( j, 2 ) == j*2
2473 </Original>
2474 <Expanded>
2475 212 == 212
2476 </Expanded>
2477 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002478 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002479 <Original>
2480 multiply( i, 2 ) == i*2
2481 </Original>
2482 <Expanded>
2483 4 == 4
2484 </Expanded>
2485 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002486 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002487 <Original>
2488 multiply( j, 2 ) == j*2
2489 </Original>
2490 <Expanded>
2491 212 == 212
2492 </Expanded>
2493 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002494 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002495 <Original>
2496 multiply( i, 2 ) == i*2
2497 </Original>
2498 <Expanded>
2499 6 == 6
2500 </Expanded>
2501 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002502 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002503 <Original>
2504 multiply( j, 2 ) == j*2
2505 </Original>
2506 <Expanded>
2507 212 == 212
2508 </Expanded>
2509 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002510 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002511 <Original>
2512 multiply( i, 2 ) == i*2
2513 </Original>
2514 <Expanded>
2515 8 == 8
2516 </Expanded>
2517 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002518 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002519 <Original>
2520 multiply( j, 2 ) == j*2
2521 </Original>
2522 <Expanded>
2523 212 == 212
2524 </Expanded>
2525 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002526 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002527 <Original>
2528 multiply( i, 2 ) == i*2
2529 </Original>
2530 <Expanded>
2531 10 == 10
2532 </Expanded>
2533 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002534 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002535 <Original>
2536 multiply( j, 2 ) == j*2
2537 </Original>
2538 <Expanded>
2539 212 == 212
2540 </Expanded>
2541 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002542 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002543 <Original>
2544 multiply( i, 2 ) == i*2
2545 </Original>
2546 <Expanded>
2547 30 == 30
2548 </Expanded>
2549 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002550 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002551 <Original>
2552 multiply( j, 2 ) == j*2
2553 </Original>
2554 <Expanded>
2555 212 == 212
2556 </Expanded>
2557 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002558 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002559 <Original>
2560 multiply( i, 2 ) == i*2
2561 </Original>
2562 <Expanded>
2563 40 == 40
2564 </Expanded>
2565 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002566 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002567 <Original>
2568 multiply( j, 2 ) == j*2
2569 </Original>
2570 <Expanded>
2571 212 == 212
2572 </Expanded>
2573 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002574 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002575 <Original>
2576 multiply( i, 2 ) == i*2
2577 </Original>
2578 <Expanded>
2579 42 == 42
2580 </Expanded>
2581 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002582 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002583 <Original>
2584 multiply( j, 2 ) == j*2
2585 </Original>
2586 <Expanded>
2587 212 == 212
2588 </Expanded>
2589 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002590 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002591 <Original>
2592 multiply( i, 2 ) == i*2
2593 </Original>
2594 <Expanded>
2595 72 == 72
2596 </Expanded>
2597 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002598 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002599 <Original>
2600 multiply( j, 2 ) == j*2
2601 </Original>
2602 <Expanded>
2603 212 == 212
2604 </Expanded>
2605 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002606 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002607 <Original>
2608 multiply( i, 2 ) == i*2
2609 </Original>
2610 <Expanded>
2611 2 == 2
2612 </Expanded>
2613 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002614 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002615 <Original>
2616 multiply( j, 2 ) == j*2
2617 </Original>
2618 <Expanded>
2619 214 == 214
2620 </Expanded>
2621 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002622 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002623 <Original>
2624 multiply( i, 2 ) == i*2
2625 </Original>
2626 <Expanded>
2627 4 == 4
2628 </Expanded>
2629 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002630 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002631 <Original>
2632 multiply( j, 2 ) == j*2
2633 </Original>
2634 <Expanded>
2635 214 == 214
2636 </Expanded>
2637 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002638 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002639 <Original>
2640 multiply( i, 2 ) == i*2
2641 </Original>
2642 <Expanded>
2643 6 == 6
2644 </Expanded>
2645 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002646 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002647 <Original>
2648 multiply( j, 2 ) == j*2
2649 </Original>
2650 <Expanded>
2651 214 == 214
2652 </Expanded>
2653 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002654 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002655 <Original>
2656 multiply( i, 2 ) == i*2
2657 </Original>
2658 <Expanded>
2659 8 == 8
2660 </Expanded>
2661 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002662 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002663 <Original>
2664 multiply( j, 2 ) == j*2
2665 </Original>
2666 <Expanded>
2667 214 == 214
2668 </Expanded>
2669 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002670 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002671 <Original>
2672 multiply( i, 2 ) == i*2
2673 </Original>
2674 <Expanded>
2675 10 == 10
2676 </Expanded>
2677 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002678 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002679 <Original>
2680 multiply( j, 2 ) == j*2
2681 </Original>
2682 <Expanded>
2683 214 == 214
2684 </Expanded>
2685 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002686 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002687 <Original>
2688 multiply( i, 2 ) == i*2
2689 </Original>
2690 <Expanded>
2691 30 == 30
2692 </Expanded>
2693 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002694 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002695 <Original>
2696 multiply( j, 2 ) == j*2
2697 </Original>
2698 <Expanded>
2699 214 == 214
2700 </Expanded>
2701 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002702 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002703 <Original>
2704 multiply( i, 2 ) == i*2
2705 </Original>
2706 <Expanded>
2707 40 == 40
2708 </Expanded>
2709 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002710 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002711 <Original>
2712 multiply( j, 2 ) == j*2
2713 </Original>
2714 <Expanded>
2715 214 == 214
2716 </Expanded>
2717 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002718 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002719 <Original>
2720 multiply( i, 2 ) == i*2
2721 </Original>
2722 <Expanded>
2723 42 == 42
2724 </Expanded>
2725 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002726 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002727 <Original>
2728 multiply( j, 2 ) == j*2
2729 </Original>
2730 <Expanded>
2731 214 == 214
2732 </Expanded>
2733 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002734 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002735 <Original>
2736 multiply( i, 2 ) == i*2
2737 </Original>
2738 <Expanded>
2739 72 == 72
2740 </Expanded>
2741 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002742 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002743 <Original>
2744 multiply( j, 2 ) == j*2
2745 </Original>
2746 <Expanded>
2747 214 == 214
2748 </Expanded>
2749 </Expression>
2750 <OverallResult success="true"/>
2751 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002752 <TestCase name="Generator over a range of pairs">
Phil Nashc6635a72014-12-30 18:25:27 +00002753 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002754 <Original>
2755 i->first == i->second-1
2756 </Original>
2757 <Expanded>
2758 0 == 0
2759 </Expanded>
2760 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002761 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002762 <Original>
2763 i->first == i->second-1
2764 </Original>
2765 <Expanded>
2766 2 == 2
2767 </Expanded>
2768 </Expression>
2769 <OverallResult success="true"/>
2770 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002771 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002772 <Info>
2773 this is a message
2774 </Info>
2775 <Warning>
2776 this is a warning
2777 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00002778 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002779 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002780 <TestCase name="SUCCEED counts as a test pass">
Phil Nash2f7a2962013-09-27 19:01:14 +01002781 <OverallResult success="true"/>
2782 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002783 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002784 <Info>
2785 this message should be logged
2786 </Info>
2787 <Info>
2788 so should this
2789 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002790 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002791 <Original>
2792 a == 1
2793 </Original>
2794 <Expanded>
2795 2 == 1
2796 </Expanded>
2797 </Expression>
2798 <OverallResult success="false"/>
2799 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002800 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nashc6635a72014-12-30 18:25:27 +00002801 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002802 <Original>
2803 a == 2
2804 </Original>
2805 <Expanded>
2806 2 == 2
2807 </Expanded>
2808 </Expression>
2809 <Info>
2810 this message should be logged
2811 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002812 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002813 <Original>
2814 a == 1
2815 </Original>
2816 <Expanded>
2817 2 == 1
2818 </Expanded>
2819 </Expression>
2820 <Info>
2821 and this, but later
2822 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002823 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002824 <Original>
2825 a == 0
2826 </Original>
2827 <Expanded>
2828 2 == 0
2829 </Expanded>
2830 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002831 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002832 <Original>
2833 a == 2
2834 </Original>
2835 <Expanded>
2836 2 == 2
2837 </Expanded>
2838 </Expression>
2839 <OverallResult success="false"/>
2840 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002841 <TestCase name="FAIL aborts the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002842 <Failure>
2843 This is a failure
2844 </Failure>
2845 <OverallResult success="false"/>
2846 </TestCase>
Phil Nash859760a2013-12-14 14:34:05 +00002847 <TestCase name="FAIL does not require an argument">
2848 <Failure/>
2849 <OverallResult success="false"/>
2850 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00002851 <TestCase name="SUCCESS does not require an argument">
2852 <OverallResult success="true"/>
2853 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002854 <TestCase name="Output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002855 <Section name="one">
2856 <Failure>
2857 Message from section one
2858 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002859 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002860 </Section>
2861 <Section name="two">
2862 <Failure>
2863 Message from section two
2864 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002865 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002866 </Section>
2867 <OverallResult success="false"/>
2868 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002869 <TestCase name="Standard output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002870 <Section name="one">
Phil Nash9c1f9a82014-07-03 08:09:57 +01002871 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002872 </Section>
2873 <Section name="two">
Phil Nash9c1f9a82014-07-03 08:09:57 +01002874 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002875 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00002876 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002877 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002878 <TestCase name="SCOPED_INFO is reset for each loop">
Phil Nashc6635a72014-12-30 18:25:27 +00002879 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002880 <Original>
2881 i &lt; 10
2882 </Original>
2883 <Expanded>
2884 0 &lt; 10
2885 </Expanded>
2886 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002887 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002888 <Original>
2889 i &lt; 10
2890 </Original>
2891 <Expanded>
2892 1 &lt; 10
2893 </Expanded>
2894 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002895 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002896 <Original>
2897 i &lt; 10
2898 </Original>
2899 <Expanded>
2900 2 &lt; 10
2901 </Expanded>
2902 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002903 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002904 <Original>
2905 i &lt; 10
2906 </Original>
2907 <Expanded>
2908 3 &lt; 10
2909 </Expanded>
2910 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002911 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002912 <Original>
2913 i &lt; 10
2914 </Original>
2915 <Expanded>
2916 4 &lt; 10
2917 </Expanded>
2918 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002919 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002920 <Original>
2921 i &lt; 10
2922 </Original>
2923 <Expanded>
2924 5 &lt; 10
2925 </Expanded>
2926 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002927 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002928 <Original>
2929 i &lt; 10
2930 </Original>
2931 <Expanded>
2932 6 &lt; 10
2933 </Expanded>
2934 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002935 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002936 <Original>
2937 i &lt; 10
2938 </Original>
2939 <Expanded>
2940 7 &lt; 10
2941 </Expanded>
2942 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002943 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002944 <Original>
2945 i &lt; 10
2946 </Original>
2947 <Expanded>
2948 8 &lt; 10
2949 </Expanded>
2950 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002951 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002952 <Original>
2953 i &lt; 10
2954 </Original>
2955 <Expanded>
2956 9 &lt; 10
2957 </Expanded>
2958 </Expression>
2959 <Info>
2960 current counter 10
2961 </Info>
2962 <Info>
2963 i := 10
2964 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002965 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002966 <Original>
2967 i &lt; 10
2968 </Original>
2969 <Expanded>
2970 10 &lt; 10
2971 </Expanded>
2972 </Expression>
2973 <OverallResult success="false"/>
2974 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002975 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00002976 <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002977 <Original>
2978 1 == 2
2979 </Original>
2980 <Expanded>
2981 1 == 2
2982 </Expanded>
2983 </Expression>
2984 <OverallResult success="false"/>
2985 </TestCase>
2986 <TestCase name="just info">
Phil Nash6817bb02014-12-30 18:24:31 +00002987 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002988 </TestCase>
2989 <TestCase name="just failure">
2990 <Failure>
2991 Previous info should not be seen
2992 </Failure>
2993 <OverallResult success="false"/>
2994 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002995 <TestCase name="sends information to INFO">
2996 <Info>
2997 hi
2998 </Info>
2999 <Info>
3000 i := 7
3001 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003002 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash337dc252013-11-19 07:21:03 +00003003 <Original>
3004 false
3005 </Original>
3006 <Expanded>
3007 false
3008 </Expanded>
3009 </Expression>
3010 <OverallResult success="false"/>
3011 </TestCase>
Phil Nash14796812014-05-23 18:55:05 +01003012 <TestCase name="Pointers can be converted to strings">
3013 <Warning>
3014 actual address of p: 0x<hex digits>
3015 </Warning>
3016 <Warning>
3017 toString(p): 0x<hex digits>
3018 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00003019 <OverallResult success="false"/>
Phil Nash14796812014-05-23 18:55:05 +01003020 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003021 <TestCase name="random SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003022 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003023 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003024 <Original>
3025 a != b
3026 </Original>
3027 <Expanded>
3028 1 != 2
3029 </Expanded>
3030 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003031 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003032 <Original>
3033 b != a
3034 </Original>
3035 <Expanded>
3036 2 != 1
3037 </Expanded>
3038 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003039 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003040 </Section>
3041 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003042 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003043 <Original>
3044 a != b
3045 </Original>
3046 <Expanded>
3047 1 != 2
3048 </Expanded>
3049 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003050 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003051 </Section>
3052 <OverallResult success="true"/>
3053 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003054 <TestCase name="nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003055 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003056 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003057 <Original>
3058 a != b
3059 </Original>
3060 <Expanded>
3061 1 != 2
3062 </Expanded>
3063 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003064 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003065 <Original>
3066 b != a
3067 </Original>
3068 <Expanded>
3069 2 != 1
3070 </Expanded>
3071 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003072 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003073 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003074 <Original>
3075 a != b
3076 </Original>
3077 <Expanded>
3078 1 != 2
3079 </Expanded>
3080 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003081 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003082 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003083 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003084 </Section>
3085 <OverallResult success="true"/>
3086 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003087 <TestCase name="more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003088 <Section name="s1" description="doesn't equal">
Phil Nash2f7a2962013-09-27 19:01:14 +01003089 <Section name="s2" description="equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003090 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003091 <Original>
3092 a == b
3093 </Original>
3094 <Expanded>
3095 1 == 2
3096 </Expanded>
3097 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003098 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003099 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003100 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003101 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01003102 <OverallResult success="false"/>
3103 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003104 <TestCase name="even more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003105 <Section name="c">
Phil Nash2f7a2962013-09-27 19:01:14 +01003106 <Section name="d (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003107 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003108 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003109 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003110 </Section>
3111 <Section name="c">
3112 <Section name="e (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003113 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003114 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003115 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003116 </Section>
3117 <Section name="f (leaf)">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003118 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003119 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00003120 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003121 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003122 <TestCase name="looped SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003123 <Section name="s1" description="b is currently: 0">
Phil Nashc6635a72014-12-30 18:25:27 +00003124 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003125 <Original>
3126 b > a
3127 </Original>
3128 <Expanded>
3129 0 > 1
3130 </Expanded>
3131 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003132 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003133 </Section>
3134 <OverallResult success="false"/>
3135 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003136 <TestCase name="looped tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003137 <Info>
3138 Testing if fib[0] (1) is even
3139 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003140 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003141 <Original>
3142 ( fib[i] % 2 ) == 0
3143 </Original>
3144 <Expanded>
3145 1 == 0
3146 </Expanded>
3147 </Expression>
3148 <Info>
3149 Testing if fib[1] (1) is even
3150 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003151 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003152 <Original>
3153 ( fib[i] % 2 ) == 0
3154 </Original>
3155 <Expanded>
3156 1 == 0
3157 </Expanded>
3158 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003159 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003160 <Original>
3161 ( fib[i] % 2 ) == 0
3162 </Original>
3163 <Expanded>
3164 0 == 0
3165 </Expanded>
3166 </Expression>
3167 <Info>
3168 Testing if fib[3] (3) is even
3169 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003170 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003171 <Original>
3172 ( fib[i] % 2 ) == 0
3173 </Original>
3174 <Expanded>
3175 1 == 0
3176 </Expanded>
3177 </Expression>
3178 <Info>
3179 Testing if fib[4] (5) is even
3180 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003181 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003182 <Original>
3183 ( fib[i] % 2 ) == 0
3184 </Original>
3185 <Expanded>
3186 1 == 0
3187 </Expanded>
3188 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003189 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003190 <Original>
3191 ( fib[i] % 2 ) == 0
3192 </Original>
3193 <Expanded>
3194 0 == 0
3195 </Expanded>
3196 </Expression>
3197 <Info>
3198 Testing if fib[6] (13) is even
3199 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003200 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003201 <Original>
3202 ( fib[i] % 2 ) == 0
3203 </Original>
3204 <Expanded>
3205 1 == 0
3206 </Expanded>
3207 </Expression>
3208 <Info>
3209 Testing if fib[7] (21) is even
3210 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003211 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003212 <Original>
3213 ( fib[i] % 2 ) == 0
3214 </Original>
3215 <Expanded>
3216 1 == 0
3217 </Expanded>
3218 </Expression>
3219 <OverallResult success="false"/>
3220 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003221 <TestCase name="Sends stuff to stdout and stderr">
Phil Nash6817bb02014-12-30 18:24:31 +00003222 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003223 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003224 <TestCase name="null strings">
Phil Nashc6635a72014-12-30 18:25:27 +00003225 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003226 <Original>
3227 makeString( false ) != static_cast&lt;char*>(__null)
3228 </Original>
3229 <Expanded>
3230 &quot;valid string&quot; != {null string}
3231 </Expanded>
3232 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003233 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003234 <Original>
3235 makeString( true ) == static_cast&lt;char*>(__null)
3236 </Original>
3237 <Expanded>
3238 {null string} == {null string}
3239 </Expanded>
3240 </Expression>
3241 <OverallResult success="true"/>
3242 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003243 <TestCase name="checkedIf">
Phil Nashc6635a72014-12-30 18:25:27 +00003244 <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003245 <Original>
3246 flag
3247 </Original>
3248 <Expanded>
3249 true
3250 </Expanded>
3251 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003252 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003253 <Original>
3254 testCheckedIf( true )
3255 </Original>
3256 <Expanded>
3257 true
3258 </Expanded>
3259 </Expression>
3260 <OverallResult success="true"/>
3261 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003262 <TestCase name="checkedIf, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003263 <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003264 <Original>
3265 flag
3266 </Original>
3267 <Expanded>
3268 false
3269 </Expanded>
3270 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003271 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003272 <Original>
3273 testCheckedIf( false )
3274 </Original>
3275 <Expanded>
3276 false
3277 </Expanded>
3278 </Expression>
3279 <OverallResult success="false"/>
3280 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003281 <TestCase name="checkedElse">
Phil Nashc6635a72014-12-30 18:25:27 +00003282 <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003283 <Original>
3284 flag
3285 </Original>
3286 <Expanded>
3287 true
3288 </Expanded>
3289 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003290 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003291 <Original>
3292 testCheckedElse( true )
3293 </Original>
3294 <Expanded>
3295 true
3296 </Expanded>
3297 </Expression>
3298 <OverallResult success="true"/>
3299 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003300 <TestCase name="checkedElse, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003301 <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003302 <Original>
3303 flag
3304 </Original>
3305 <Expanded>
3306 false
3307 </Expanded>
3308 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003309 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003310 <Original>
3311 testCheckedElse( false )
3312 </Original>
3313 <Expanded>
3314 false
3315 </Expanded>
3316 </Expression>
3317 <OverallResult success="false"/>
3318 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003319 <TestCase name="xmlentitycheck">
Phil Nash2f7a2962013-09-27 19:01:14 +01003320 <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 +01003321 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003322 </Section>
3323 <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 +01003324 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003325 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00003326 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003327 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003328 <TestCase name="send a single char to INFO">
Phil Nash2f7a2962013-09-27 19:01:14 +01003329 <Info>
3330 3
3331 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003332 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003333 <Original>
3334 false
3335 </Original>
3336 <Expanded>
3337 false
3338 </Expanded>
3339 </Expression>
3340 <OverallResult success="false"/>
3341 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003342 <TestCase name="atomic if">
Phil Nashc6635a72014-12-30 18:25:27 +00003343 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003344 <Original>
3345 x == 0
3346 </Original>
3347 <Expanded>
3348 0 == 0
3349 </Expanded>
3350 </Expression>
3351 <OverallResult success="true"/>
3352 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003353 <TestCase name="String matchers">
Phil Nashc6635a72014-12-30 18:25:27 +00003354 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003355 <Original>
3356 testStringForMatching() Contains( &quot;string&quot; )
3357 </Original>
3358 <Expanded>
3359 &quot;this string contains 'abc' as a substring&quot; contains: &quot;string&quot;
3360 </Expanded>
3361 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003362 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003363 <Original>
3364 testStringForMatching() Contains( &quot;abc&quot; )
3365 </Original>
3366 <Expanded>
3367 &quot;this string contains 'abc' as a substring&quot; contains: &quot;abc&quot;
3368 </Expanded>
3369 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003370 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003371 <Original>
3372 testStringForMatching() StartsWith( &quot;this&quot; )
3373 </Original>
3374 <Expanded>
3375 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;this&quot;
3376 </Expanded>
3377 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003378 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003379 <Original>
3380 testStringForMatching() EndsWith( &quot;substring&quot; )
3381 </Original>
3382 <Expanded>
3383 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;substring&quot;
3384 </Expanded>
3385 </Expression>
3386 <OverallResult success="true"/>
3387 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003388 <TestCase name="Contains string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003389 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003390 <Original>
3391 testStringForMatching() Contains( &quot;not there&quot; )
3392 </Original>
3393 <Expanded>
3394 &quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;
3395 </Expanded>
3396 </Expression>
3397 <OverallResult success="false"/>
3398 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003399 <TestCase name="StartsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003400 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003401 <Original>
3402 testStringForMatching() StartsWith( &quot;string&quot; )
3403 </Original>
3404 <Expanded>
3405 &quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;
3406 </Expanded>
3407 </Expression>
3408 <OverallResult success="false"/>
3409 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003410 <TestCase name="EndsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003411 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003412 <Original>
3413 testStringForMatching() EndsWith( &quot;this&quot; )
3414 </Original>
3415 <Expanded>
3416 &quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;
3417 </Expanded>
3418 </Expression>
3419 <OverallResult success="false"/>
3420 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003421 <TestCase name="Equals string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003422 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003423 <Original>
3424 testStringForMatching() Equals( &quot;something else&quot; )
3425 </Original>
3426 <Expanded>
3427 &quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;
3428 </Expanded>
3429 </Expression>
3430 <OverallResult success="false"/>
3431 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003432 <TestCase name="Equals string matcher, with NULL">
Phil Nashc6635a72014-12-30 18:25:27 +00003433 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003434 <Original>
3435 &quot;&quot; Equals(__null)
3436 </Original>
3437 <Expanded>
3438 &quot;&quot; equals: &quot;&quot;
3439 </Expanded>
3440 </Expression>
3441 <OverallResult success="true"/>
3442 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003443 <TestCase name="AllOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003444 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003445 <Original>
3446 testStringForMatching() AllOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;abc&quot; ) )
3447 </Original>
3448 <Expanded>
3449 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; and contains: &quot;abc&quot; )
3450 </Expanded>
3451 </Expression>
3452 <OverallResult success="true"/>
3453 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003454 <TestCase name="AnyOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003455 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003456 <Original>
3457 testStringForMatching() AnyOf( Catch::Contains( &quot;string&quot; ), Catch::Contains( &quot;not there&quot; ) )
3458 </Original>
3459 <Expanded>
3460 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;string&quot; or contains: &quot;not there&quot; )
3461 </Expanded>
3462 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003463 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003464 <Original>
3465 testStringForMatching() AnyOf( Catch::Contains( &quot;not there&quot; ), Catch::Contains( &quot;string&quot; ) )
3466 </Original>
3467 <Expanded>
3468 &quot;this string contains 'abc' as a substring&quot; ( contains: &quot;not there&quot; or contains: &quot;string&quot; )
3469 </Expanded>
3470 </Expression>
3471 <OverallResult success="true"/>
3472 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003473 <TestCase name="Equals">
Phil Nashc6635a72014-12-30 18:25:27 +00003474 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003475 <Original>
3476 testStringForMatching() Equals( &quot;this string contains 'abc' as a substring&quot; )
3477 </Original>
3478 <Expanded>
3479 &quot;this string contains 'abc' as a substring&quot; equals: &quot;this string contains 'abc' as a substring&quot;
3480 </Expanded>
3481 </Expression>
3482 <OverallResult success="true"/>
3483 </TestCase>
3484 <TestCase name="Factorials are computed">
Phil Nashc6635a72014-12-30 18:25:27 +00003485 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003486 <Original>
3487 Factorial(0) == 1
3488 </Original>
3489 <Expanded>
3490 1 == 1
3491 </Expanded>
3492 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003493 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003494 <Original>
3495 Factorial(1) == 1
3496 </Original>
3497 <Expanded>
3498 1 == 1
3499 </Expanded>
3500 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003501 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003502 <Original>
3503 Factorial(2) == 2
3504 </Original>
3505 <Expanded>
3506 2 == 2
3507 </Expanded>
3508 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003509 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003510 <Original>
3511 Factorial(3) == 6
3512 </Original>
3513 <Expanded>
3514 6 == 6
3515 </Expanded>
3516 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003517 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003518 <Original>
3519 Factorial(10) == 3628800
3520 </Original>
3521 <Expanded>
Phil Nashff9e51d2014-12-12 08:10:45 +00003522 0x<hex digits> == 0x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01003523 </Expanded>
3524 </Expression>
3525 <OverallResult success="true"/>
3526 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003527 <TestCase name="An empty test with no assertions">
Phil Nash6817bb02014-12-30 18:24:31 +00003528 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003529 </TestCase>
3530 <TestCase name="Nice descriptive name">
3531 <Warning>
3532 This one ran
3533 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00003534 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003535 </TestCase>
3536 <TestCase name="first tag">
Phil Nash6817bb02014-12-30 18:24:31 +00003537 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003538 </TestCase>
3539 <TestCase name="second tag">
Phil Nash6817bb02014-12-30 18:24:31 +00003540 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003541 </TestCase>
3542 <TestCase name="vectors can be sized and resized">
Phil Nashc6635a72014-12-30 18:25:27 +00003543 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003544 <Original>
3545 v.size() == 5
3546 </Original>
3547 <Expanded>
3548 5 == 5
3549 </Expanded>
3550 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003551 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003552 <Original>
3553 v.capacity() >= 5
3554 </Original>
3555 <Expanded>
3556 5 >= 5
3557 </Expanded>
3558 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003559 <Section name="resizing bigger changes size and capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003560 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003561 <Original>
3562 v.size() == 10
3563 </Original>
3564 <Expanded>
3565 10 == 10
3566 </Expanded>
3567 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003568 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003569 <Original>
3570 v.capacity() >= 10
3571 </Original>
3572 <Expanded>
3573 10 >= 10
3574 </Expanded>
3575 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003576 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003577 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003578 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003579 <Original>
3580 v.size() == 5
3581 </Original>
3582 <Expanded>
3583 5 == 5
3584 </Expanded>
3585 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003586 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003587 <Original>
3588 v.capacity() >= 5
3589 </Original>
3590 <Expanded>
3591 5 >= 5
3592 </Expanded>
3593 </Expression>
3594 <Section name="resizing smaller changes size but not capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003595 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003596 <Original>
3597 v.size() == 0
3598 </Original>
3599 <Expanded>
3600 0 == 0
3601 </Expanded>
3602 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003603 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003604 <Original>
3605 v.capacity() >= 5
3606 </Original>
3607 <Expanded>
3608 5 >= 5
3609 </Expanded>
3610 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003611 <Section name="We can use the 'swap trick' to reset the capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003612 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003613 <Original>
3614 v.capacity() == 0
3615 </Original>
3616 <Expanded>
3617 0 == 0
3618 </Expanded>
3619 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003620 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003621 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003622 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003623 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003624 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003625 <Original>
3626 v.size() == 5
3627 </Original>
3628 <Expanded>
3629 5 == 5
3630 </Expanded>
3631 </Expression>
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.capacity() >= 5
3635 </Original>
3636 <Expanded>
3637 5 >= 5
3638 </Expanded>
3639 </Expression>
3640 <Section name="reserving bigger changes capacity but not size">
Phil Nashc6635a72014-12-30 18:25:27 +00003641 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003642 <Original>
3643 v.size() == 5
3644 </Original>
3645 <Expanded>
3646 5 == 5
3647 </Expanded>
3648 </Expression>
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.capacity() >= 10
3652 </Original>
3653 <Expanded>
3654 10 >= 10
3655 </Expanded>
3656 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003657 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003658 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003659 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003660 <Original>
3661 v.size() == 5
3662 </Original>
3663 <Expanded>
3664 5 == 5
3665 </Expanded>
3666 </Expression>
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.capacity() >= 5
3670 </Original>
3671 <Expanded>
3672 5 >= 5
3673 </Expanded>
3674 </Expression>
3675 <Section name="reserving smaller does not change size or capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003676 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003677 <Original>
3678 v.size() == 5
3679 </Original>
3680 <Expanded>
3681 5 == 5
3682 </Expanded>
3683 </Expression>
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.capacity() >= 5
3687 </Original>
3688 <Expanded>
3689 5 >= 5
3690 </Expanded>
3691 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003692 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003693 </Section>
3694 <OverallResult success="true"/>
3695 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003696 <TestCase name="A couple of nested sections followed by a failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01003697 <Section name="Outer">
3698 <Section name="Inner">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003699 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003700 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003701 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003702 </Section>
3703 <Failure>
3704 to infinity and beyond
3705 </Failure>
3706 <OverallResult success="false"/>
3707 </TestCase>
Phil Nash20cad7c2014-04-15 18:44:37 +01003708 <TestCase name="not allowed">
3709 <OverallResult success="true"/>
3710 </TestCase>
Phil Nash31caba42014-04-23 07:07:27 +01003711 <TestCase name="Tabs and newlines show in output">
Phil Nashc6635a72014-12-30 18:25:27 +00003712 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash31caba42014-04-23 07:07:27 +01003713 <Original>
3714 s1 == s2
3715 </Original>
3716 <Expanded>
3717 &quot;if ($b == 10) {
3718 $a = 20;
3719}&quot;
3720==
3721&quot;if ($b == 10) {
3722 $a = 20;
3723}
3724&quot;
3725 </Expanded>
3726 </Expression>
3727 <OverallResult success="false"/>
3728 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01003729 <TestCase name="toString on const wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003730 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003731 <Original>
3732 result == &quot;\&quot;wide load\&quot;&quot;
3733 </Original>
3734 <Expanded>
3735 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3736 </Expanded>
3737 </Expression>
3738 <OverallResult success="true"/>
3739 </TestCase>
3740 <TestCase name="toString on const wchar_t pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003741 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003742 <Original>
3743 result == &quot;\&quot;wide load\&quot;&quot;
3744 </Original>
3745 <Expanded>
3746 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3747 </Expanded>
3748 </Expression>
3749 <OverallResult success="true"/>
3750 </TestCase>
3751 <TestCase name="toString on wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003752 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003753 <Original>
3754 result == &quot;\&quot;wide load\&quot;&quot;
3755 </Original>
3756 <Expanded>
3757 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3758 </Expanded>
3759 </Expression>
3760 <OverallResult success="true"/>
3761 </TestCase>
3762 <TestCase name="toString on wchar_t returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003763 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003764 <Original>
3765 result == &quot;\&quot;wide load\&quot;&quot;
3766 </Original>
3767 <Expanded>
3768 &quot;&quot;wide load&quot;&quot; == &quot;&quot;wide load&quot;&quot;
3769 </Expanded>
3770 </Expression>
3771 <OverallResult success="true"/>
3772 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01003773 <TestCase name="Process can be configured on command line">
3774 <Section name="default - no arguments">
Phil Nashc6635a72014-12-30 18:25:27 +00003775 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003776 <Original>
3777 parseIntoConfig( argv, config )
3778 </Original>
3779 <Expanded>
3780 parseIntoConfig( argv, config )
3781 </Expanded>
3782 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003783 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003784 <Original>
3785 config.shouldDebugBreak == false
3786 </Original>
3787 <Expanded>
3788 false == false
3789 </Expanded>
3790 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003791 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003792 <Original>
3793 config.abortAfter == -1
3794 </Original>
3795 <Expanded>
3796 -1 == -1
3797 </Expanded>
3798 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003799 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003800 <Original>
3801 config.noThrow == false
3802 </Original>
3803 <Expanded>
3804 false == false
3805 </Expanded>
3806 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003807 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003808 <Original>
3809 config.reporterName.empty()
3810 </Original>
3811 <Expanded>
3812 true
3813 </Expanded>
3814 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003815 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003816 </Section>
3817 <Section name="test lists">
Phil Nash2f7a2962013-09-27 19:01:14 +01003818 <Section name="1 test" description="Specify one test case using">
Phil Nashc6635a72014-12-30 18:25:27 +00003819 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003820 <Original>
3821 parseIntoConfig( argv, config )
3822 </Original>
3823 <Expanded>
3824 parseIntoConfig( argv, config )
3825 </Expanded>
3826 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003827 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003828 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003829 cfg.testSpec().matches( fakeTestCase( &quot;notIncluded&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003830 </Original>
3831 <Expanded>
3832 false == false
3833 </Expanded>
3834 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003835 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003836 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003837 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003838 </Original>
3839 <Expanded>
3840 true
3841 </Expanded>
3842 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003843 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003844 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003845 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003846 </Section>
3847 <Section name="test lists">
3848 <Section name="Specify one test case exclusion using exclude:">
Phil Nashc6635a72014-12-30 18:25:27 +00003849 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003850 <Original>
3851 parseIntoConfig( argv, config )
3852 </Original>
3853 <Expanded>
3854 parseIntoConfig( argv, config )
3855 </Expanded>
3856 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003857 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003858 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003859 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003860 </Original>
3861 <Expanded>
3862 false == false
3863 </Expanded>
3864 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003865 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003866 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003867 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003868 </Original>
3869 <Expanded>
3870 true
3871 </Expanded>
3872 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003873 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003874 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003875 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003876 </Section>
3877 <Section name="test lists">
3878 <Section name="Specify one test case exclusion using ~">
Phil Nashc6635a72014-12-30 18:25:27 +00003879 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003880 <Original>
3881 parseIntoConfig( argv, config )
3882 </Original>
3883 <Expanded>
3884 parseIntoConfig( argv, config )
3885 </Expanded>
3886 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003887 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003888 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003889 cfg.testSpec().matches( fakeTestCase( &quot;test1&quot; ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01003890 </Original>
3891 <Expanded>
3892 false == false
3893 </Expanded>
3894 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003895 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003896 <Original>
Phil Nash766491a2014-05-16 18:31:15 +01003897 cfg.testSpec().matches( fakeTestCase( &quot;alwaysIncluded&quot; ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003898 </Original>
3899 <Expanded>
3900 true
3901 </Expanded>
3902 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003903 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003904 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003905 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003906 </Section>
3907 <Section name="reporter">
Phil Nash2f7a2962013-09-27 19:01:14 +01003908 <Section name="-r/console">
Phil Nashc6635a72014-12-30 18:25:27 +00003909 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003910 <Original>
3911 parseIntoConfig( argv, config )
3912 </Original>
3913 <Expanded>
3914 parseIntoConfig( argv, config )
3915 </Expanded>
3916 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003917 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003918 <Original>
3919 config.reporterName == &quot;console&quot;
3920 </Original>
3921 <Expanded>
3922 &quot;console&quot; == &quot;console&quot;
3923 </Expanded>
3924 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003925 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003926 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003927 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003928 </Section>
3929 <Section name="reporter">
3930 <Section name="-r/xml">
Phil Nashc6635a72014-12-30 18:25:27 +00003931 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003932 <Original>
3933 parseIntoConfig( argv, config )
3934 </Original>
3935 <Expanded>
3936 parseIntoConfig( argv, config )
3937 </Expanded>
3938 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003939 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003940 <Original>
3941 config.reporterName == &quot;xml&quot;
3942 </Original>
3943 <Expanded>
3944 &quot;xml&quot; == &quot;xml&quot;
3945 </Expanded>
3946 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003947 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003948 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003949 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003950 </Section>
3951 <Section name="reporter">
3952 <Section name="--reporter/junit">
Phil Nashc6635a72014-12-30 18:25:27 +00003953 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003954 <Original>
3955 parseIntoConfig( argv, config )
3956 </Original>
3957 <Expanded>
3958 parseIntoConfig( argv, config )
3959 </Expanded>
3960 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003961 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003962 <Original>
3963 config.reporterName == &quot;junit&quot;
3964 </Original>
3965 <Expanded>
3966 &quot;junit&quot; == &quot;junit&quot;
3967 </Expanded>
3968 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003969 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003970 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003971 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003972 </Section>
3973 <Section name="debugger">
Phil Nash2f7a2962013-09-27 19:01:14 +01003974 <Section name="-b">
Phil Nashc6635a72014-12-30 18:25:27 +00003975 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003976 <Original>
3977 parseIntoConfig( argv, config )
3978 </Original>
3979 <Expanded>
3980 parseIntoConfig( argv, config )
3981 </Expanded>
3982 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003983 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003984 <Original>
3985 config.shouldDebugBreak == true
3986 </Original>
3987 <Expanded>
3988 true == true
3989 </Expanded>
3990 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003991 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003992 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003993 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003994 </Section>
3995 <Section name="debugger">
3996 <Section name="--break">
Phil Nashc6635a72014-12-30 18:25:27 +00003997 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003998 <Original>
3999 parseIntoConfig( argv, config )
4000 </Original>
4001 <Expanded>
4002 parseIntoConfig( argv, config )
4003 </Expanded>
4004 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004005 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004006 <Original>
4007 config.shouldDebugBreak
4008 </Original>
4009 <Expanded>
4010 true
4011 </Expanded>
4012 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004013 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004014 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004015 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004016 </Section>
4017 <Section name="abort">
Phil Nash2f7a2962013-09-27 19:01:14 +01004018 <Section name="-a aborts after first failure">
Phil Nashc6635a72014-12-30 18:25:27 +00004019 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004020 <Original>
4021 parseIntoConfig( argv, config )
4022 </Original>
4023 <Expanded>
4024 parseIntoConfig( argv, config )
4025 </Expanded>
4026 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004027 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004028 <Original>
4029 config.abortAfter == 1
4030 </Original>
4031 <Expanded>
4032 1 == 1
4033 </Expanded>
4034 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004035 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004036 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004037 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004038 </Section>
4039 <Section name="abort">
4040 <Section name="-x 2 aborts after two failures">
Phil Nashc6635a72014-12-30 18:25:27 +00004041 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004042 <Original>
4043 parseIntoConfig( argv, config )
4044 </Original>
4045 <Expanded>
4046 parseIntoConfig( argv, config )
4047 </Expanded>
4048 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004049 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004050 <Original>
4051 config.abortAfter == 2
4052 </Original>
4053 <Expanded>
4054 2 == 2
4055 </Expanded>
4056 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004057 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004058 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004059 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004060 </Section>
4061 <Section name="abort">
4062 <Section name="-x must be greater than zero">
Phil Nashc6635a72014-12-30 18:25:27 +00004063 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004064 <Original>
4065 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;greater than zero&quot; )
4066 </Original>
4067 <Expanded>
4068 &quot;Value after -x or --abortAfter must be greater than zero
Phil Nashe9d35372014-04-12 19:05:03 +01004069- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;greater than zero&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01004070 </Expanded>
4071 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004072 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004073 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004074 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004075 </Section>
4076 <Section name="abort">
4077 <Section name="-x must be numeric">
Phil Nashc6635a72014-12-30 18:25:27 +00004078 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004079 <Original>
4080 parseIntoConfigAndReturnError( argv, config ) Contains( &quot;-x&quot; )
4081 </Original>
4082 <Expanded>
4083 &quot;Unable to convert oops to destination type
Phil Nashe9d35372014-04-12 19:05:03 +01004084- while parsing: (-x, --abortx &lt;no. failures>)&quot; contains: &quot;-x&quot;
Phil Nash2f7a2962013-09-27 19:01:14 +01004085 </Expanded>
4086 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004087 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004088 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004089 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004090 </Section>
4091 <Section name="nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01004092 <Section name="-e">
Phil Nashc6635a72014-12-30 18:25:27 +00004093 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004094 <Original>
4095 parseIntoConfig( argv, config )
4096 </Original>
4097 <Expanded>
4098 parseIntoConfig( argv, config )
4099 </Expanded>
4100 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004101 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004102 <Original>
4103 config.noThrow == true
4104 </Original>
4105 <Expanded>
4106 true == true
4107 </Expanded>
4108 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004109 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004110 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004111 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004112 </Section>
4113 <Section name="nothrow">
4114 <Section name="--nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00004115 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004116 <Original>
4117 parseIntoConfig( argv, config )
4118 </Original>
4119 <Expanded>
4120 parseIntoConfig( argv, config )
4121 </Expanded>
4122 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004123 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004124 <Original>
4125 config.noThrow == true
4126 </Original>
4127 <Expanded>
4128 true == true
4129 </Expanded>
4130 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004131 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004132 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004133 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004134 </Section>
4135 <Section name="output filename">
Phil Nash2f7a2962013-09-27 19:01:14 +01004136 <Section name="-o filename">
Phil Nashc6635a72014-12-30 18:25:27 +00004137 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004138 <Original>
4139 parseIntoConfig( argv, config )
4140 </Original>
4141 <Expanded>
4142 parseIntoConfig( argv, config )
4143 </Expanded>
4144 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004145 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004146 <Original>
4147 config.outputFilename == &quot;filename.ext&quot;
4148 </Original>
4149 <Expanded>
4150 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4151 </Expanded>
4152 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004153 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004154 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004155 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004156 </Section>
4157 <Section name="output filename">
4158 <Section name="--out">
Phil Nashc6635a72014-12-30 18:25:27 +00004159 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004160 <Original>
4161 parseIntoConfig( argv, config )
4162 </Original>
4163 <Expanded>
4164 parseIntoConfig( argv, config )
4165 </Expanded>
4166 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004167 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004168 <Original>
4169 config.outputFilename == &quot;filename.ext&quot;
4170 </Original>
4171 <Expanded>
4172 &quot;filename.ext&quot; == &quot;filename.ext&quot;
4173 </Expanded>
4174 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004175 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004176 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004177 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004178 </Section>
4179 <Section name="combinations">
Phil Nash2f7a2962013-09-27 19:01:14 +01004180 <Section name="Single character flags can be combined">
Phil Nashc6635a72014-12-30 18:25:27 +00004181 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004182 <Original>
4183 parseIntoConfig( argv, config )
4184 </Original>
4185 <Expanded>
4186 parseIntoConfig( argv, config )
4187 </Expanded>
4188 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004189 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004190 <Original>
4191 config.abortAfter == 1
4192 </Original>
4193 <Expanded>
4194 1 == 1
4195 </Expanded>
4196 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004197 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004198 <Original>
4199 config.shouldDebugBreak
4200 </Original>
4201 <Expanded>
4202 true
4203 </Expanded>
4204 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004205 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004206 <Original>
4207 config.noThrow == true
4208 </Original>
4209 <Expanded>
4210 true == true
4211 </Expanded>
4212 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004213 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004214 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004215 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004216 </Section>
4217 <OverallResult success="true"/>
4218 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004219 <TestCase name="Long strings can be wrapped">
4220 <Section name="plain string">
Phil Nash2f7a2962013-09-27 19:01:14 +01004221 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004222 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004223 <Original>
4224 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4225 </Original>
4226 <Expanded>
4227 &quot;one two three four&quot;
4228==
4229&quot;one two three four&quot;
4230 </Expanded>
4231 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004232 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004233 <Original>
4234 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4235 </Original>
4236 <Expanded>
4237 &quot;one two three four&quot;
4238==
4239&quot;one two three four&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="plain string">
4247 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004248 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004249 <Original>
4250 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == &quot;one two three\nfour&quot;
4251 </Original>
4252 <Expanded>
4253 &quot;one two three
4254four&quot;
4255==
4256&quot;one two three
4257four&quot;
4258 </Expanded>
4259 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004260 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004261 <Original>
4262 Text( testString, TextAttributes().setWidth( 16 ) ).toString() == &quot;one two three\nfour&quot;
4263 </Original>
4264 <Expanded>
4265 &quot;one two three
4266four&quot;
4267==
4268&quot;one two three
4269four&quot;
4270 </Expanded>
4271 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004272 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004273 <Original>
4274 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == &quot;one two three\nfour&quot;
4275 </Original>
4276 <Expanded>
4277 &quot;one two three
4278four&quot;
4279==
4280&quot;one two three
4281four&quot;
4282 </Expanded>
4283 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004284 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004285 <Original>
4286 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == &quot;one two three\nfour&quot;
4287 </Original>
4288 <Expanded>
4289 &quot;one two three
4290four&quot;
4291==
4292&quot;one two three
4293four&quot;
4294 </Expanded>
4295 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004296 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004297 <Original>
4298 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == &quot;one two\nthree four&quot;
4299 </Original>
4300 <Expanded>
4301 &quot;one two
4302three four&quot;
4303==
4304&quot;one two
4305three four&quot;
4306 </Expanded>
4307 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004308 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004309 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004310 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004311 </Section>
4312 <Section name="plain string">
4313 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004314 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004315 <Original>
4316 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4317 </Original>
4318 <Expanded>
4319 &quot;one two
4320three
4321four&quot;
4322==
4323&quot;one two
4324three
4325four&quot;
4326 </Expanded>
4327 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004328 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004329 <Original>
4330 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4331 </Original>
4332 <Expanded>
4333 &quot;one two
4334three
4335four&quot;
4336==
4337&quot;one two
4338three
4339four&quot;
4340 </Expanded>
4341 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004342 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004343 <Original>
4344 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4345 </Original>
4346 <Expanded>
4347 &quot;one two
4348three
4349four&quot;
4350==
4351&quot;one two
4352three
4353four&quot;
4354 </Expanded>
4355 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004356 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004357 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004358 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004359 </Section>
4360 <Section name="plain string">
4361 <Section name="Wrapped three times">
Phil Nashc6635a72014-12-30 18:25:27 +00004362 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004363 <Original>
4364 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4365 </Original>
4366 <Expanded>
4367 &quot;one
4368two
4369three
4370four&quot;
4371==
4372&quot;one
4373two
4374three
4375four&quot;
4376 </Expanded>
4377 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004378 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004379 <Original>
4380 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4381 </Original>
4382 <Expanded>
4383 &quot;one
4384two
4385three
4386four&quot;
4387==
4388&quot;one
4389two
4390three
4391four&quot;
4392 </Expanded>
4393 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004394 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004395 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004396 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004397 </Section>
4398 <Section name="plain string">
4399 <Section name="Short wrap">
Phil Nashc6635a72014-12-30 18:25:27 +00004400 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004401 <Original>
4402 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef&quot;
4403 </Original>
4404 <Expanded>
4405 &quot;abc-
4406def&quot;
4407==
4408&quot;abc-
4409def&quot;
4410 </Expanded>
4411 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004412 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004413 <Original>
4414 Text( &quot;abcdefg&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndefg&quot;
4415 </Original>
4416 <Expanded>
4417 &quot;abc-
4418defg&quot;
4419==
4420&quot;abc-
4421defg&quot;
4422 </Expanded>
4423 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004424 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004425 <Original>
4426 Text( &quot;abcdefgh&quot;, TextAttributes().setWidth( 4 ) ).toString() == &quot;abc-\ndef-\ngh&quot;
4427 </Original>
4428 <Expanded>
4429 &quot;abc-
4430def-
4431gh&quot;
4432==
4433&quot;abc-
4434def-
4435gh&quot;
4436 </Expanded>
4437 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004438 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004439 <Original>
4440 Text( testString, TextAttributes().setWidth( 4 ) ).toString() == &quot;one\ntwo\nthr-\nee\nfour&quot;
4441 </Original>
4442 <Expanded>
4443 &quot;one
4444two
4445thr-
4446ee
4447four&quot;
4448==
4449&quot;one
4450two
4451thr-
4452ee
4453four&quot;
4454 </Expanded>
4455 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004456 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004457 <Original>
4458 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == &quot;one\ntwo\nth-\nree\nfo-\nur&quot;
4459 </Original>
4460 <Expanded>
4461 &quot;one
4462two
4463th-
4464ree
4465fo-
4466ur&quot;
4467==
4468&quot;one
4469two
4470th-
4471ree
4472fo-
4473ur&quot;
4474 </Expanded>
4475 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004476 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004477 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004478 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004479 </Section>
4480 <Section name="plain string">
4481 <Section name="As container">
Phil Nashc6635a72014-12-30 18:25:27 +00004482 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004483 <Original>
4484 text.size() == 4
4485 </Original>
4486 <Expanded>
4487 4 == 4
4488 </Expanded>
4489 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004490 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004491 <Original>
4492 text[0] == &quot;one&quot;
4493 </Original>
4494 <Expanded>
4495 &quot;one&quot; == &quot;one&quot;
4496 </Expanded>
4497 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004498 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004499 <Original>
4500 text[1] == &quot;two&quot;
4501 </Original>
4502 <Expanded>
4503 &quot;two&quot; == &quot;two&quot;
4504 </Expanded>
4505 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004506 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004507 <Original>
4508 text[2] == &quot;three&quot;
4509 </Original>
4510 <Expanded>
4511 &quot;three&quot; == &quot;three&quot;
4512 </Expanded>
4513 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004514 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004515 <Original>
4516 text[3] == &quot;four&quot;
4517 </Original>
4518 <Expanded>
4519 &quot;four&quot; == &quot;four&quot;
4520 </Expanded>
4521 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004522 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004523 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004524 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004525 </Section>
4526 <Section name="plain string">
4527 <Section name="Indent first line differently">
Phil Nashc6635a72014-12-30 18:25:27 +00004528 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004529 <Original>
4530 text.toString() == &quot; one two\n three\n four&quot;
4531 </Original>
4532 <Expanded>
4533 &quot; one two
4534 three
4535 four&quot;
4536==
4537&quot; one two
4538 three
4539 four&quot;
4540 </Expanded>
4541 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004542 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004543 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004544 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004545 </Section>
4546 <Section name="With newlines">
Phil Nash2f7a2962013-09-27 19:01:14 +01004547 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004548 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004549 <Original>
4550 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4551 </Original>
4552 <Expanded>
4553 &quot;one two
4554three four&quot;
4555==
4556&quot;one two
4557three four&quot;
4558 </Expanded>
4559 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004560 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004561 <Original>
4562 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4563 </Original>
4564 <Expanded>
4565 &quot;one two
4566three four&quot;
4567==
4568&quot;one two
4569three four&quot;
4570 </Expanded>
4571 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004572 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004573 <Original>
4574 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
4575 </Original>
4576 <Expanded>
4577 &quot;one two
4578three four&quot;
4579==
4580&quot;one two
4581three four&quot;
4582 </Expanded>
4583 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004584 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004585 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004586 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004587 </Section>
4588 <Section name="With newlines">
4589 <Section name="Trailing newline">
Phil Nashc6635a72014-12-30 18:25:27 +00004590 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004591 <Original>
4592 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 10 ) ).toString() == &quot;abcdef\n&quot;
4593 </Original>
4594 <Expanded>
4595 &quot;abcdef
4596&quot;
4597==
4598&quot;abcdef
4599&quot;
4600 </Expanded>
4601 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004602 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004603 <Original>
4604 Text( &quot;abcdef&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef&quot;
4605 </Original>
4606 <Expanded>
4607 &quot;abcdef&quot; == &quot;abcdef&quot;
4608 </Expanded>
4609 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004610 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004611 <Original>
4612 Text( &quot;abcdef\n&quot;, TextAttributes().setWidth( 6 ) ).toString() == &quot;abcdef\n&quot;
4613 </Original>
4614 <Expanded>
4615 &quot;abcdef
4616&quot;
4617==
4618&quot;abcdef
4619&quot;
4620 </Expanded>
4621 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004622 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004623 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004624 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004625 </Section>
4626 <Section name="With newlines">
4627 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004628 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004629 <Original>
4630 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == &quot;one two\nthree\nfour&quot;
4631 </Original>
4632 <Expanded>
4633 &quot;one two
4634three
4635four&quot;
4636==
4637&quot;one two
4638three
4639four&quot;
4640 </Expanded>
4641 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004642 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004643 <Original>
4644 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == &quot;one two\nthree\nfour&quot;
4645 </Original>
4646 <Expanded>
4647 &quot;one two
4648three
4649four&quot;
4650==
4651&quot;one two
4652three
4653four&quot;
4654 </Expanded>
4655 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004656 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004657 <Original>
4658 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == &quot;one two\nthree\nfour&quot;
4659 </Original>
4660 <Expanded>
4661 &quot;one two
4662three
4663four&quot;
4664==
4665&quot;one two
4666three
4667four&quot;
4668 </Expanded>
4669 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004670 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004671 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004672 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004673 </Section>
4674 <Section name="With newlines">
4675 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004676 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004677 <Original>
4678 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == &quot;one\ntwo\nthree\nfour&quot;
4679 </Original>
4680 <Expanded>
4681 &quot;one
4682two
4683three
4684four&quot;
4685==
4686&quot;one
4687two
4688three
4689four&quot;
4690 </Expanded>
4691 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004692 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004693 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004694 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004695 </Section>
4696 <Section name="With tabs">
Phil Nashc6635a72014-12-30 18:25:27 +00004697 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004698 <Original>
4699 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == &quot;one two three\n four\n five\n six&quot;
4700 </Original>
4701 <Expanded>
4702 &quot;one two three
4703 four
4704 five
4705 six&quot;
4706==
4707&quot;one two three
4708 four
4709 five
4710 six&quot;
4711 </Expanded>
4712 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004713 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004714 </Section>
4715 <OverallResult success="true"/>
4716 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00004717 <TestCase name="replaceInPlace">
4718 <Section name="replace single char">
Phil Nashc6635a72014-12-30 18:25:27 +00004719 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004720 <Original>
4721 replaceInPlace( letters, &quot;b&quot;, &quot;z&quot; )
4722 </Original>
4723 <Expanded>
4724 true
4725 </Expanded>
4726 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004727 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004728 <Original>
4729 letters == &quot;azcdefcg&quot;
4730 </Original>
4731 <Expanded>
4732 &quot;azcdefcg&quot; == &quot;azcdefcg&quot;
4733 </Expanded>
4734 </Expression>
4735 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4736 </Section>
4737 <Section name="replace two chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004738 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004739 <Original>
4740 replaceInPlace( letters, &quot;c&quot;, &quot;z&quot; )
4741 </Original>
4742 <Expanded>
4743 true
4744 </Expanded>
4745 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004746 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004747 <Original>
4748 letters == &quot;abzdefzg&quot;
4749 </Original>
4750 <Expanded>
4751 &quot;abzdefzg&quot; == &quot;abzdefzg&quot;
4752 </Expanded>
4753 </Expression>
4754 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4755 </Section>
4756 <Section name="replace first char">
Phil Nashc6635a72014-12-30 18:25:27 +00004757 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004758 <Original>
4759 replaceInPlace( letters, &quot;a&quot;, &quot;z&quot; )
4760 </Original>
4761 <Expanded>
4762 true
4763 </Expanded>
4764 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004765 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004766 <Original>
4767 letters == &quot;zbcdefcg&quot;
4768 </Original>
4769 <Expanded>
4770 &quot;zbcdefcg&quot; == &quot;zbcdefcg&quot;
4771 </Expanded>
4772 </Expression>
4773 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4774 </Section>
4775 <Section name="replace last char">
Phil Nashc6635a72014-12-30 18:25:27 +00004776 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004777 <Original>
4778 replaceInPlace( letters, &quot;g&quot;, &quot;z&quot; )
4779 </Original>
4780 <Expanded>
4781 true
4782 </Expanded>
4783 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004784 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004785 <Original>
4786 letters == &quot;abcdefcz&quot;
4787 </Original>
4788 <Expanded>
4789 &quot;abcdefcz&quot; == &quot;abcdefcz&quot;
4790 </Expanded>
4791 </Expression>
4792 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4793 </Section>
4794 <Section name="replace all chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004795 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004796 <Original>
4797 replaceInPlace( letters, letters, &quot;replaced&quot; )
4798 </Original>
4799 <Expanded>
4800 true
4801 </Expanded>
4802 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004803 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004804 <Original>
4805 letters == &quot;replaced&quot;
4806 </Original>
4807 <Expanded>
4808 &quot;replaced&quot; == &quot;replaced&quot;
4809 </Expanded>
4810 </Expression>
4811 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4812 </Section>
4813 <Section name="replace no chars">
Phil Nashc6635a72014-12-30 18:25:27 +00004814 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004815 <Original>
4816 !replaceInPlace( letters, &quot;x&quot;, &quot;z&quot; )
4817 </Original>
4818 <Expanded>
4819 !false
4820 </Expanded>
4821 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004822 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00004823 <Original>
4824 letters == letters
4825 </Original>
4826 <Expanded>
4827 &quot;abcdefcg&quot; == &quot;abcdefcg&quot;
4828 </Expanded>
4829 </Expression>
4830 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4831 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00004832 <Section name="escape '">
Phil Nashc6635a72014-12-30 18:25:27 +00004833 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00004834 <Original>
4835 replaceInPlace( s, &quot;'&quot;, &quot;|'&quot; )
4836 </Original>
4837 <Expanded>
4838 true
4839 </Expanded>
4840 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004841 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00004842 <Original>
4843 s == &quot;didn|'t&quot;
4844 </Original>
4845 <Expanded>
4846 &quot;didn|'t&quot; == &quot;didn|'t&quot;
4847 </Expanded>
4848 </Expression>
4849 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4850 </Section>
Phil Nash3dc37632014-12-21 00:20:09 +00004851 <OverallResult success="true"/>
4852 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004853 <TestCase name="Strings can be rendered with colour">
Phil Nash6817bb02014-12-30 18:24:31 +00004854 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004855 </TestCase>
4856 <TestCase name="Text can be formatted using the Text class">
Phil Nashc6635a72014-12-30 18:25:27 +00004857 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004858 <Original>
4859 Text( &quot;hi there&quot; ).toString() == &quot;hi there&quot;
4860 </Original>
4861 <Expanded>
4862 &quot;hi there&quot; == &quot;hi there&quot;
4863 </Expanded>
4864 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004865 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004866 <Original>
4867 Text( &quot;hi there&quot;, narrow ).toString() == &quot;hi\nthere&quot;
4868 </Original>
4869 <Expanded>
4870 &quot;hi
4871there&quot;
4872==
4873&quot;hi
4874there&quot;
4875 </Expanded>
4876 </Expression>
4877 <OverallResult success="true"/>
4878 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01004879 <TestCase name="Long text is truncted">
Phil Nashc6635a72014-12-30 18:25:27 +00004880 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash93a945c2013-10-23 15:35:07 +01004881 <Original>
4882 t.toString() EndsWith( &quot;... message truncated due to excessive size&quot; )
4883 </Original>
4884 <Expanded>
4885 &quot;******************************************************************************-
4886******************************************************************************-
4887************************
4888******************************************************************************-
4889******************************************************************************-
4890************************
4891******************************************************************************-
4892******************************************************************************-
4893************************
4894******************************************************************************-
4895******************************************************************************-
4896************************
4897******************************************************************************-
4898******************************************************************************-
4899************************
4900******************************************************************************-
4901******************************************************************************-
4902************************
4903******************************************************************************-
4904******************************************************************************-
4905************************
4906******************************************************************************-
4907******************************************************************************-
4908************************
4909******************************************************************************-
4910******************************************************************************-
4911************************
4912******************************************************************************-
4913******************************************************************************-
4914************************
4915******************************************************************************-
4916******************************************************************************-
4917************************
4918******************************************************************************-
4919******************************************************************************-
4920************************
4921******************************************************************************-
4922******************************************************************************-
4923************************
4924******************************************************************************-
4925******************************************************************************-
4926************************
4927******************************************************************************-
4928******************************************************************************-
4929************************
4930******************************************************************************-
4931******************************************************************************-
4932************************
4933******************************************************************************-
4934******************************************************************************-
4935************************
4936******************************************************************************-
4937******************************************************************************-
4938************************
4939******************************************************************************-
4940******************************************************************************-
4941************************
4942******************************************************************************-
4943******************************************************************************-
4944************************
4945******************************************************************************-
4946******************************************************************************-
4947************************
4948******************************************************************************-
4949******************************************************************************-
4950************************
4951******************************************************************************-
4952******************************************************************************-
4953************************
4954******************************************************************************-
4955******************************************************************************-
4956************************
4957******************************************************************************-
4958******************************************************************************-
4959************************
4960******************************************************************************-
4961******************************************************************************-
4962************************
4963******************************************************************************-
4964******************************************************************************-
4965************************
4966******************************************************************************-
4967******************************************************************************-
4968************************
4969******************************************************************************-
4970******************************************************************************-
4971************************
4972******************************************************************************-
4973******************************************************************************-
4974************************
4975******************************************************************************-
4976******************************************************************************-
4977************************
4978******************************************************************************-
4979******************************************************************************-
4980************************
4981******************************************************************************-
4982******************************************************************************-
4983************************
4984******************************************************************************-
4985******************************************************************************-
4986************************
4987******************************************************************************-
4988******************************************************************************-
4989************************
4990******************************************************************************-
4991******************************************************************************-
4992************************
4993******************************************************************************-
4994******************************************************************************-
4995************************
4996******************************************************************************-
4997******************************************************************************-
4998************************
4999******************************************************************************-
5000******************************************************************************-
5001************************
5002******************************************************************************-
5003******************************************************************************-
5004************************
5005******************************************************************************-
5006******************************************************************************-
5007************************
5008******************************************************************************-
5009******************************************************************************-
5010************************
5011******************************************************************************-
5012******************************************************************************-
5013************************
5014******************************************************************************-
5015******************************************************************************-
5016************************
5017******************************************************************************-
5018******************************************************************************-
5019************************
5020******************************************************************************-
5021******************************************************************************-
5022************************
5023******************************************************************************-
5024******************************************************************************-
5025************************
5026******************************************************************************-
5027******************************************************************************-
5028************************
5029******************************************************************************-
5030******************************************************************************-
5031************************
5032******************************************************************************-
5033******************************************************************************-
5034************************
5035******************************************************************************-
5036******************************************************************************-
5037************************
5038******************************************************************************-
5039******************************************************************************-
5040************************
5041******************************************************************************-
5042******************************************************************************-
5043************************
5044******************************************************************************-
5045******************************************************************************-
5046************************
5047******************************************************************************-
5048******************************************************************************-
5049************************
5050******************************************************************************-
5051******************************************************************************-
5052************************
5053******************************************************************************-
5054******************************************************************************-
5055************************
5056******************************************************************************-
5057******************************************************************************-
5058************************
5059******************************************************************************-
5060******************************************************************************-
5061************************
5062******************************************************************************-
5063******************************************************************************-
5064************************
5065******************************************************************************-
5066******************************************************************************-
5067************************
5068******************************************************************************-
5069******************************************************************************-
5070************************
5071******************************************************************************-
5072******************************************************************************-
5073************************
5074******************************************************************************-
5075******************************************************************************-
5076************************
5077******************************************************************************-
5078******************************************************************************-
5079************************
5080******************************************************************************-
5081******************************************************************************-
5082************************
5083******************************************************************************-
5084******************************************************************************-
5085************************
5086******************************************************************************-
5087******************************************************************************-
5088************************
5089******************************************************************************-
5090******************************************************************************-
5091************************
5092******************************************************************************-
5093******************************************************************************-
5094************************
5095******************************************************************************-
5096******************************************************************************-
5097************************
5098******************************************************************************-
5099******************************************************************************-
5100************************
5101******************************************************************************-
5102******************************************************************************-
5103************************
5104******************************************************************************-
5105******************************************************************************-
5106************************
5107******************************************************************************-
5108******************************************************************************-
5109************************
5110******************************************************************************-
5111******************************************************************************-
5112************************
5113******************************************************************************-
5114******************************************************************************-
5115************************
5116******************************************************************************-
5117******************************************************************************-
5118************************
5119******************************************************************************-
5120******************************************************************************-
5121************************
5122******************************************************************************-
5123******************************************************************************-
5124************************
5125******************************************************************************-
5126******************************************************************************-
5127************************
5128******************************************************************************-
5129******************************************************************************-
5130************************
5131******************************************************************************-
5132******************************************************************************-
5133************************
5134******************************************************************************-
5135******************************************************************************-
5136************************
5137******************************************************************************-
5138******************************************************************************-
5139************************
5140******************************************************************************-
5141******************************************************************************-
5142************************
5143******************************************************************************-
5144******************************************************************************-
5145************************
5146******************************************************************************-
5147******************************************************************************-
5148************************
5149******************************************************************************-
5150******************************************************************************-
5151************************
5152******************************************************************************-
5153******************************************************************************-
5154************************
5155******************************************************************************-
5156******************************************************************************-
5157************************
5158******************************************************************************-
5159******************************************************************************-
5160************************
5161******************************************************************************-
5162******************************************************************************-
5163************************
5164******************************************************************************-
5165******************************************************************************-
5166************************
5167******************************************************************************-
5168******************************************************************************-
5169************************
5170******************************************************************************-
5171******************************************************************************-
5172************************
5173******************************************************************************-
5174******************************************************************************-
5175************************
5176******************************************************************************-
5177******************************************************************************-
5178************************
5179******************************************************************************-
5180******************************************************************************-
5181************************
5182******************************************************************************-
5183******************************************************************************-
5184************************
5185******************************************************************************-
5186******************************************************************************-
5187************************
5188******************************************************************************-
5189******************************************************************************-
5190************************
5191******************************************************************************-
5192******************************************************************************-
5193************************
5194******************************************************************************-
5195******************************************************************************-
5196************************
5197******************************************************************************-
5198******************************************************************************-
5199************************
5200******************************************************************************-
5201******************************************************************************-
5202************************
5203******************************************************************************-
5204******************************************************************************-
5205************************
5206******************************************************************************-
5207******************************************************************************-
5208************************
5209******************************************************************************-
5210******************************************************************************-
5211************************
5212******************************************************************************-
5213******************************************************************************-
5214************************
5215******************************************************************************-
5216******************************************************************************-
5217************************
5218******************************************************************************-
5219******************************************************************************-
5220************************
5221******************************************************************************-
5222******************************************************************************-
5223************************
5224******************************************************************************-
5225******************************************************************************-
5226************************
5227******************************************************************************-
5228******************************************************************************-
5229************************
5230******************************************************************************-
5231******************************************************************************-
5232************************
5233******************************************************************************-
5234******************************************************************************-
5235************************
5236******************************************************************************-
5237******************************************************************************-
5238************************
5239******************************************************************************-
5240******************************************************************************-
5241************************
5242******************************************************************************-
5243******************************************************************************-
5244************************
5245******************************************************************************-
5246******************************************************************************-
5247************************
5248******************************************************************************-
5249******************************************************************************-
5250************************
5251******************************************************************************-
5252******************************************************************************-
5253************************
5254******************************************************************************-
5255******************************************************************************-
5256************************
5257******************************************************************************-
5258******************************************************************************-
5259************************
5260******************************************************************************-
5261******************************************************************************-
5262************************
5263******************************************************************************-
5264******************************************************************************-
5265************************
5266******************************************************************************-
5267******************************************************************************-
5268************************
5269******************************************************************************-
5270******************************************************************************-
5271************************
5272******************************************************************************-
5273******************************************************************************-
5274************************
5275******************************************************************************-
5276******************************************************************************-
5277************************
5278******************************************************************************-
5279******************************************************************************-
5280************************
5281******************************************************************************-
5282******************************************************************************-
5283************************
5284******************************************************************************-
5285******************************************************************************-
5286************************
5287******************************************************************************-
5288******************************************************************************-
5289************************
5290******************************************************************************-
5291******************************************************************************-
5292************************
5293******************************************************************************-
5294******************************************************************************-
5295************************
5296******************************************************************************-
5297******************************************************************************-
5298************************
5299******************************************************************************-
5300******************************************************************************-
5301************************
5302******************************************************************************-
5303******************************************************************************-
5304************************
5305******************************************************************************-
5306******************************************************************************-
5307************************
5308******************************************************************************-
5309******************************************************************************-
5310************************
5311******************************************************************************-
5312******************************************************************************-
5313************************
5314******************************************************************************-
5315******************************************************************************-
5316************************
5317******************************************************************************-
5318******************************************************************************-
5319************************
5320******************************************************************************-
5321******************************************************************************-
5322************************
5323******************************************************************************-
5324******************************************************************************-
5325************************
5326******************************************************************************-
5327******************************************************************************-
5328************************
5329******************************************************************************-
5330******************************************************************************-
5331************************
5332******************************************************************************-
5333******************************************************************************-
5334************************
5335******************************************************************************-
5336******************************************************************************-
5337************************
5338******************************************************************************-
5339******************************************************************************-
5340************************
5341******************************************************************************-
5342******************************************************************************-
5343************************
5344******************************************************************************-
5345******************************************************************************-
5346************************
5347******************************************************************************-
5348******************************************************************************-
5349************************
5350******************************************************************************-
5351******************************************************************************-
5352************************
5353******************************************************************************-
5354******************************************************************************-
5355************************
5356******************************************************************************-
5357******************************************************************************-
5358************************
5359******************************************************************************-
5360******************************************************************************-
5361************************
5362******************************************************************************-
5363******************************************************************************-
5364************************
5365******************************************************************************-
5366******************************************************************************-
5367************************
5368******************************************************************************-
5369******************************************************************************-
5370************************
5371******************************************************************************-
5372******************************************************************************-
5373************************
5374******************************************************************************-
5375******************************************************************************-
5376************************
5377******************************************************************************-
5378******************************************************************************-
5379************************
5380******************************************************************************-
5381******************************************************************************-
5382************************
5383******************************************************************************-
5384******************************************************************************-
5385************************
5386******************************************************************************-
5387******************************************************************************-
5388************************
5389******************************************************************************-
5390******************************************************************************-
5391************************
5392******************************************************************************-
5393******************************************************************************-
5394************************
5395******************************************************************************-
5396******************************************************************************-
5397************************
5398******************************************************************************-
5399******************************************************************************-
5400************************
5401******************************************************************************-
5402******************************************************************************-
5403************************
5404******************************************************************************-
5405******************************************************************************-
5406************************
5407******************************************************************************-
5408******************************************************************************-
5409************************
5410******************************************************************************-
5411******************************************************************************-
5412************************
5413******************************************************************************-
5414******************************************************************************-
5415************************
5416******************************************************************************-
5417******************************************************************************-
5418************************
5419******************************************************************************-
5420******************************************************************************-
5421************************
5422******************************************************************************-
5423******************************************************************************-
5424************************
5425******************************************************************************-
5426******************************************************************************-
5427************************
5428******************************************************************************-
5429******************************************************************************-
5430************************
5431******************************************************************************-
5432******************************************************************************-
5433************************
5434******************************************************************************-
5435******************************************************************************-
5436************************
5437******************************************************************************-
5438******************************************************************************-
5439************************
5440******************************************************************************-
5441******************************************************************************-
5442************************
5443******************************************************************************-
5444******************************************************************************-
5445************************
5446******************************************************************************-
5447******************************************************************************-
5448************************
5449******************************************************************************-
5450******************************************************************************-
5451************************
5452******************************************************************************-
5453******************************************************************************-
5454************************
5455******************************************************************************-
5456******************************************************************************-
5457************************
5458******************************************************************************-
5459******************************************************************************-
5460************************
5461******************************************************************************-
5462******************************************************************************-
5463************************
5464******************************************************************************-
5465******************************************************************************-
5466************************
5467******************************************************************************-
5468******************************************************************************-
5469************************
5470******************************************************************************-
5471******************************************************************************-
5472************************
5473******************************************************************************-
5474******************************************************************************-
5475************************
5476******************************************************************************-
5477******************************************************************************-
5478************************
5479******************************************************************************-
5480******************************************************************************-
5481************************
5482******************************************************************************-
5483******************************************************************************-
5484************************
5485******************************************************************************-
5486******************************************************************************-
5487************************
5488******************************************************************************-
5489******************************************************************************-
5490************************
5491******************************************************************************-
5492******************************************************************************-
5493************************
5494******************************************************************************-
5495******************************************************************************-
5496************************
5497******************************************************************************-
5498******************************************************************************-
5499************************
5500******************************************************************************-
5501******************************************************************************-
5502************************
5503******************************************************************************-
5504******************************************************************************-
5505************************
5506******************************************************************************-
5507******************************************************************************-
5508************************
5509******************************************************************************-
5510******************************************************************************-
5511************************
5512******************************************************************************-
5513******************************************************************************-
5514************************
5515******************************************************************************-
5516******************************************************************************-
5517************************
5518******************************************************************************-
5519******************************************************************************-
5520************************
5521******************************************************************************-
5522******************************************************************************-
5523************************
5524******************************************************************************-
5525******************************************************************************-
5526************************
5527******************************************************************************-
5528******************************************************************************-
5529************************
5530******************************************************************************-
5531******************************************************************************-
5532************************
5533******************************************************************************-
5534******************************************************************************-
5535************************
5536******************************************************************************-
5537******************************************************************************-
5538************************
5539******************************************************************************-
5540******************************************************************************-
5541************************
5542******************************************************************************-
5543******************************************************************************-
5544************************
5545******************************************************************************-
5546******************************************************************************-
5547************************
5548******************************************************************************-
5549******************************************************************************-
5550************************
5551******************************************************************************-
5552******************************************************************************-
5553************************
5554******************************************************************************-
5555******************************************************************************-
5556************************
5557******************************************************************************-
5558******************************************************************************-
5559************************
5560******************************************************************************-
5561******************************************************************************-
5562************************
5563******************************************************************************-
5564******************************************************************************-
5565************************
5566******************************************************************************-
5567******************************************************************************-
5568************************
5569******************************************************************************-
5570******************************************************************************-
5571************************
5572******************************************************************************-
5573******************************************************************************-
5574************************
5575******************************************************************************-
5576******************************************************************************-
5577************************
5578******************************************************************************-
5579******************************************************************************-
5580************************
5581******************************************************************************-
5582******************************************************************************-
5583************************
5584******************************************************************************-
5585******************************************************************************-
5586************************
5587******************************************************************************-
5588******************************************************************************-
5589************************
5590******************************************************************************-
5591******************************************************************************-
5592************************
5593******************************************************************************-
5594******************************************************************************-
5595************************
5596******************************************************************************-
5597******************************************************************************-
5598************************
5599******************************************************************************-
5600******************************************************************************-
5601************************
5602******************************************************************************-
5603******************************************************************************-
5604************************
5605******************************************************************************-
5606******************************************************************************-
5607************************
5608******************************************************************************-
5609******************************************************************************-
5610************************
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... message truncated due to excessive size&quot; ends with: &quot;... message truncated due to excessive size&quot;
5886 </Expanded>
5887 </Expression>
5888 <OverallResult success="true"/>
5889 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005890 <TestCase name="Parsing a std::pair">
Phil Nashc6635a72014-12-30 18:25:27 +00005891 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005892 <Original>
5893 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
5894 </Original>
5895 <Expanded>
5896 std::pair( 1, 2 ) == std::pair( 1, 2 )
5897 </Expanded>
5898 </Expression>
5899 <OverallResult success="true"/>
5900 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00005901 <TestCase name="Where there is more to the expression after the RHS">
Phil Nash2f7a2962013-09-27 19:01:14 +01005902 <Warning>
5903 Uncomment the code in this test to check that it gives a sensible compiler error
5904 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00005905 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005906 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00005907 <TestCase name="Where the LHS is not a simple value">
Phil Nash2f7a2962013-09-27 19:01:14 +01005908 <Warning>
5909 Uncomment the code in this test to check that it gives a sensible compiler error
5910 </Warning>
Phil Nash6817bb02014-12-30 18:24:31 +00005911 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005912 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00005913 <TestCase name="A failing expression with a non streamable type is still captured">
Phil Nashc6635a72014-12-30 18:25:27 +00005914 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005915 <Original>
5916 &amp;o1 == &amp;o2
5917 </Original>
5918 <Expanded>
5919 0x<hex digits> == 0x<hex digits>
5920 </Expanded>
5921 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005922 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005923 <Original>
5924 o1 == o2
5925 </Original>
5926 <Expanded>
5927 {?} == {?}
5928 </Expanded>
5929 </Expression>
5930 <OverallResult success="false"/>
5931 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00005932 <TestCase name="string literals of different sizes can be compared">
Phil Nashc6635a72014-12-30 18:25:27 +00005933 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005934 <Original>
5935 std::string( &quot;first&quot; ) == &quot;second&quot;
5936 </Original>
5937 <Expanded>
5938 &quot;first&quot; == &quot;second&quot;
5939 </Expanded>
5940 </Expression>
5941 <OverallResult success="false"/>
5942 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005943 <TestCase name="An expression with side-effects should only be evaluated once">
Phil Nashc6635a72014-12-30 18:25:27 +00005944 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005945 <Original>
5946 i++ == 7
5947 </Original>
5948 <Expanded>
5949 7 == 7
5950 </Expanded>
5951 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005952 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005953 <Original>
5954 i++ == 8
5955 </Original>
5956 <Expanded>
5957 8 == 8
5958 </Expanded>
5959 </Expression>
5960 <OverallResult success="true"/>
5961 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005962 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nashc6635a72014-12-30 18:25:27 +00005963 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005964 <Original>
5965 0x<hex digits> == o
5966 </Original>
5967 <Expanded>
5968 0x<hex digits> == {?}
5969 </Expanded>
5970 </Expression>
5971 <OverallResult success="true"/>
5972 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005973 <TestCase name="Demonstrate that a non-const == is not used">
Phil Nashc6635a72014-12-30 18:25:27 +00005974 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005975 <Original>
5976 t == 1u
5977 </Original>
5978 <Expanded>
5979 {?} == 1
5980 </Expanded>
5981 </Expression>
5982 <OverallResult success="true"/>
5983 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005984 <TestCase name="Test enum bit values">
Phil Nashc6635a72014-12-30 18:25:27 +00005985 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005986 <Original>
5987 0x<hex digits> == bit30and31
5988 </Original>
5989 <Expanded>
5990 0x<hex digits> == 3221225472
5991 </Expanded>
5992 </Expression>
5993 <OverallResult success="true"/>
5994 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00005995 <TestCase name="boolean member">
Phil Nashc6635a72014-12-30 18:25:27 +00005996 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005997 <Original>
5998 obj.prop != __null
5999 </Original>
6000 <Expanded>
6001 0x<hex digits> != 0
6002 </Expanded>
6003 </Expression>
6004 <OverallResult success="true"/>
6005 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006006 <TestCase name="(unimplemented) static bools can be evaluated">
Phil Nash2f7a2962013-09-27 19:01:14 +01006007 <Section name="compare to true">
Phil Nashc6635a72014-12-30 18:25:27 +00006008 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006009 <Original>
6010 is_true&lt;true>::value == true
6011 </Original>
6012 <Expanded>
6013 true == true
6014 </Expanded>
6015 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006016 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006017 <Original>
6018 true == is_true&lt;true>::value
6019 </Original>
6020 <Expanded>
6021 true == true
6022 </Expanded>
6023 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006024 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006025 </Section>
6026 <Section name="compare to false">
Phil Nashc6635a72014-12-30 18:25:27 +00006027 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006028 <Original>
6029 is_true&lt;false>::value == false
6030 </Original>
6031 <Expanded>
6032 false == false
6033 </Expanded>
6034 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006035 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006036 <Original>
6037 false == is_true&lt;false>::value
6038 </Original>
6039 <Expanded>
6040 false == false
6041 </Expanded>
6042 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006043 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006044 </Section>
6045 <Section name="negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006046 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006047 <Original>
6048 !is_true&lt;false>::value
6049 </Original>
6050 <Expanded>
6051 true
6052 </Expanded>
6053 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006054 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006055 </Section>
6056 <Section name="double negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006057 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006058 <Original>
6059 !!is_true&lt;true>::value
6060 </Original>
6061 <Expanded>
6062 true
6063 </Expanded>
6064 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006065 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006066 </Section>
6067 <Section name="direct">
Phil Nashc6635a72014-12-30 18:25:27 +00006068 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006069 <Original>
6070 is_true&lt;true>::value
6071 </Original>
6072 <Expanded>
6073 true
6074 </Expanded>
6075 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006076 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006077 <Original>
6078 !is_true&lt;false>::value
6079 </Original>
6080 <Expanded>
6081 !false
6082 </Expanded>
6083 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006084 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006085 </Section>
6086 <OverallResult success="true"/>
6087 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006088 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nashc6635a72014-12-30 18:25:27 +00006089 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006090 <Original>
6091 True
6092 </Original>
6093 <Expanded>
6094 true
6095 </Expanded>
6096 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006097 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006098 <Original>
6099 !False
6100 </Original>
6101 <Expanded>
6102 true
6103 </Expanded>
6104 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006105 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006106 <Original>
6107 !False
6108 </Original>
6109 <Expanded>
6110 !false
6111 </Expanded>
6112 </Expression>
6113 <OverallResult success="true"/>
6114 </TestCase>
6115 <TestCase name="Assertions then sections">
Phil Nashc6635a72014-12-30 18:25:27 +00006116 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006117 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006118 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006119 </Original>
6120 <Expanded>
6121 true
6122 </Expanded>
6123 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01006124 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006125 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006126 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006127 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006128 </Original>
6129 <Expanded>
6130 true
6131 </Expanded>
6132 </Expression>
6133 <Section name="Another section">
Phil Nashc6635a72014-12-30 18:25:27 +00006134 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006135 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006136 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006137 </Original>
6138 <Expanded>
6139 true
6140 </Expanded>
6141 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006142 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006143 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006144 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006145 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00006146 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006147 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006148 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006149 </Original>
6150 <Expanded>
6151 true
6152 </Expanded>
6153 </Expression>
6154 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006155 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006156 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006157 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006158 </Original>
6159 <Expanded>
6160 true
6161 </Expanded>
6162 </Expression>
6163 <Section name="Another other section">
Phil Nashc6635a72014-12-30 18:25:27 +00006164 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006165 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006166 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006167 </Original>
6168 <Expanded>
6169 true
6170 </Expanded>
6171 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006172 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006173 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006174 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006175 </Section>
6176 <OverallResult success="true"/>
6177 </TestCase>
6178 <TestCase name="non streamable - with conv. op">
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 s == &quot;7&quot;
6182 </Original>
6183 <Expanded>
6184 &quot;7&quot; == &quot;7&quot;
6185 </Expanded>
6186 </Expression>
6187 <OverallResult success="true"/>
6188 </TestCase>
6189 <TestCase name="Comparing function pointers">
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 a
6193 </Original>
6194 <Expanded>
6195 true
6196 </Expanded>
6197 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006198 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006199 <Original>
6200 a == &amp;foo
6201 </Original>
6202 <Expanded>
Phil Nashe0910182014-01-07 17:25:27 +00006203 0x<hex digits> == 0x<hex digits>
6204 </Expanded>
6205 </Expression>
6206 <OverallResult success="true"/>
6207 </TestCase>
6208 <TestCase name="Comparing member function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006209 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nashe0910182014-01-07 17:25:27 +00006210 <Original>
6211 m == &amp;S::f
6212 </Original>
6213 <Expanded>
6214 0x<hex digits>
6215==
62160x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01006217 </Expanded>
6218 </Expression>
6219 <OverallResult success="true"/>
6220 </TestCase>
6221 <TestCase name="pointer to class">
Phil Nashc6635a72014-12-30 18:25:27 +00006222 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006223 <Original>
6224 p == 0
6225 </Original>
6226 <Expanded>
6227 __null == 0
6228 </Expanded>
6229 </Expression>
6230 <OverallResult success="true"/>
6231 </TestCase>
Phil Nash1a6f2a02014-04-23 18:19:19 +01006232 <TestCase name="null_ptr">
Phil Nashc6635a72014-12-30 18:25:27 +00006233 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash1a6f2a02014-04-23 18:19:19 +01006234 <Original>
6235 ptr.get() == nullptr
6236 </Original>
6237 <Expanded>
6238 __null == nullptr
6239 </Expanded>
6240 </Expression>
6241 <OverallResult success="true"/>
6242 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01006243 <TestCase name="X/level/0/a">
6244 <OverallResult success="true"/>
6245 </TestCase>
6246 <TestCase name="X/level/0/b">
6247 <OverallResult success="true"/>
6248 </TestCase>
6249 <TestCase name="X/level/1/a">
6250 <OverallResult success="true"/>
6251 </TestCase>
6252 <TestCase name="X/level/1/b">
6253 <OverallResult success="true"/>
6254 </TestCase>
Phil Nash5ea32662014-09-03 19:22:47 +01006255 <TestCase name="toString( has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006256 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006257 <Original>
6258 Catch::toString( item ) == &quot;toString( has_toString )&quot;
6259 </Original>
6260 <Expanded>
6261 &quot;toString( has_toString )&quot;
6262==
6263&quot;toString( has_toString )&quot;
6264 </Expanded>
6265 </Expression>
6266 <OverallResult success="true"/>
6267 </TestCase>
6268 <TestCase name="toString( has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006269 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006270 <Original>
6271 Catch::toString( item ) == &quot;StringMaker&lt;has_maker>&quot;
6272 </Original>
6273 <Expanded>
6274 &quot;StringMaker&lt;has_maker>&quot;
6275==
6276&quot;StringMaker&lt;has_maker>&quot;
6277 </Expanded>
6278 </Expression>
6279 <OverallResult success="true"/>
6280 </TestCase>
6281 <TestCase name="toString( has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006282 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006283 <Original>
6284 Catch::toString( item ) == &quot;toString( has_maker_and_toString )&quot;
6285 </Original>
6286 <Expanded>
6287 &quot;toString( has_maker_and_toString )&quot;
6288==
6289&quot;toString( has_maker_and_toString )&quot;
6290 </Expanded>
6291 </Expression>
6292 <OverallResult success="true"/>
6293 </TestCase>
6294 <TestCase name="toString( vectors&lt;has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006295 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006296 <Original>
6297 Catch::toString( v ) == &quot;{ {?} }&quot;
6298 </Original>
6299 <Expanded>
6300 &quot;{ {?} }&quot; == &quot;{ {?} }&quot;
6301 </Expanded>
6302 </Expression>
6303 <OverallResult success="true"/>
6304 </TestCase>
6305 <TestCase name="toString( vectors&lt;has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006306 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006307 <Original>
6308 Catch::toString( v ) == &quot;{ StringMaker&lt;has_maker> }&quot;
6309 </Original>
6310 <Expanded>
6311 &quot;{ StringMaker&lt;has_maker> }&quot;
6312==
6313&quot;{ StringMaker&lt;has_maker> }&quot;
6314 </Expanded>
6315 </Expression>
6316 <OverallResult success="true"/>
6317 </TestCase>
6318 <TestCase name="toString( vectors&lt;has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006319 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006320 <Original>
6321 Catch::toString( v ) == &quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6322 </Original>
6323 <Expanded>
6324 &quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6325==
6326&quot;{ StringMaker&lt;has_maker_and_toString> }&quot;
6327 </Expanded>
6328 </Expression>
6329 <OverallResult success="true"/>
6330 </TestCase>
6331 <TestCase name="std::pair&lt;int,std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006332 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006333 <Original>
6334 Catch::toString( value ) == &quot;{ 34, \&quot;xyzzy\&quot; }&quot;
6335 </Original>
6336 <Expanded>
6337 &quot;{ 34, &quot;xyzzy&quot; }&quot; == &quot;{ 34, &quot;xyzzy&quot; }&quot;
6338 </Expanded>
6339 </Expression>
6340 <OverallResult success="true"/>
6341 </TestCase>
6342 <TestCase name="std::pair&lt;int,const std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006343 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006344 <Original>
6345 Catch::toString(value) == &quot;{ 34, \&quot;xyzzy\&quot; }&quot;
6346 </Original>
6347 <Expanded>
6348 &quot;{ 34, &quot;xyzzy&quot; }&quot; == &quot;{ 34, &quot;xyzzy&quot; }&quot;
6349 </Expanded>
6350 </Expression>
6351 <OverallResult success="true"/>
6352 </TestCase>
6353 <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006354 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006355 <Original>
6356 Catch::toString( pr ) == &quot;{ { \&quot;green\&quot;, 55 } }&quot;
6357 </Original>
6358 <Expanded>
6359 &quot;{ { &quot;green&quot;, 55 } }&quot;
6360==
6361&quot;{ { &quot;green&quot;, 55 } }&quot;
6362 </Expanded>
6363 </Expression>
6364 <OverallResult success="true"/>
6365 </TestCase>
6366 <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006367 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006368 <Original>
6369 Catch::toString( pair ) == &quot;{ { 42, \&quot;Arthur\&quot; }, { \&quot;Ford\&quot;, 24 } }&quot;
6370 </Original>
6371 <Expanded>
6372 &quot;{ { 42, &quot;Arthur&quot; }, { &quot;Ford&quot;, 24 } }&quot;
6373==
6374&quot;{ { 42, &quot;Arthur&quot; }, { &quot;Ford&quot;, 24 } }&quot;
6375 </Expanded>
6376 </Expression>
6377 <OverallResult success="true"/>
6378 </TestCase>
6379 <TestCase name="vector&lt;int> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006380 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006381 <Original>
6382 Catch::toString(vv) == &quot;{ }&quot;
6383 </Original>
6384 <Expanded>
6385 &quot;{ }&quot; == &quot;{ }&quot;
6386 </Expanded>
6387 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006388 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006389 <Original>
6390 Catch::toString(vv) == &quot;{ 42 }&quot;
6391 </Original>
6392 <Expanded>
6393 &quot;{ 42 }&quot; == &quot;{ 42 }&quot;
6394 </Expanded>
6395 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006396 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006397 <Original>
6398 Catch::toString(vv) == &quot;{ 42, 512 }&quot;
6399 </Original>
6400 <Expanded>
6401 &quot;{ 42, 512 }&quot; == &quot;{ 42, 512 }&quot;
6402 </Expanded>
6403 </Expression>
6404 <OverallResult success="true"/>
6405 </TestCase>
6406 <TestCase name="vector&lt;string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006407 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006408 <Original>
6409 Catch::toString(vv) == &quot;{ }&quot;
6410 </Original>
6411 <Expanded>
6412 &quot;{ }&quot; == &quot;{ }&quot;
6413 </Expanded>
6414 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006415 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006416 <Original>
6417 Catch::toString(vv) == &quot;{ \&quot;hello\&quot; }&quot;
6418 </Original>
6419 <Expanded>
6420 &quot;{ &quot;hello&quot; }&quot; == &quot;{ &quot;hello&quot; }&quot;
6421 </Expanded>
6422 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006423 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006424 <Original>
6425 Catch::toString(vv) == &quot;{ \&quot;hello\&quot;, \&quot;world\&quot; }&quot;
6426 </Original>
6427 <Expanded>
6428 &quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
6429==
6430&quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
6431 </Expanded>
6432 </Expression>
6433 <OverallResult success="true"/>
6434 </TestCase>
6435 <TestCase name="vector&lt;int,allocator> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006436 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006437 <Original>
6438 Catch::toString(vv) == &quot;{ }&quot;
6439 </Original>
6440 <Expanded>
6441 &quot;{ }&quot; == &quot;{ }&quot;
6442 </Expanded>
6443 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006444 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006445 <Original>
6446 Catch::toString(vv) == &quot;{ 42 }&quot;
6447 </Original>
6448 <Expanded>
6449 &quot;{ 42 }&quot; == &quot;{ 42 }&quot;
6450 </Expanded>
6451 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006452 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006453 <Original>
6454 Catch::toString(vv) == &quot;{ 42, 512 }&quot;
6455 </Original>
6456 <Expanded>
6457 &quot;{ 42, 512 }&quot; == &quot;{ 42, 512 }&quot;
6458 </Expanded>
6459 </Expression>
6460 <OverallResult success="true"/>
6461 </TestCase>
6462 <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00006463 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006464 <Original>
6465 Catch::toString(v) == &quot;{ }&quot;
6466 </Original>
6467 <Expanded>
6468 &quot;{ }&quot; == &quot;{ }&quot;
6469 </Expanded>
6470 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006471 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006472 <Original>
6473 Catch::toString(v) == &quot;{ { \&quot;hello\&quot; }, { \&quot;world\&quot; } }&quot;
6474 </Original>
6475 <Expanded>
6476 &quot;{ { &quot;hello&quot; }, { &quot;world&quot; } }&quot;
6477==
6478&quot;{ { &quot;hello&quot; }, { &quot;world&quot; } }&quot;
6479 </Expanded>
6480 </Expression>
6481 <OverallResult success="true"/>
6482 </TestCase>
Phil Nash766491a2014-05-16 18:31:15 +01006483 <TestCase name="Parse test names and tags">
6484 <Section name="Empty test spec should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006485 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006486 <Original>
6487 spec.hasFilters() == false
6488 </Original>
6489 <Expanded>
6490 false == false
6491 </Expanded>
6492 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006493 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006494 <Original>
6495 spec.matches( tcA ) == false
6496 </Original>
6497 <Expanded>
6498 false == false
6499 </Expanded>
6500 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006501 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006502 <Original>
6503 spec.matches( tcB ) == false
6504 </Original>
6505 <Expanded>
6506 false == false
6507 </Expanded>
6508 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006509 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006510 </Section>
6511 <Section name="Test spec from empty string should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006512 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006513 <Original>
6514 spec.hasFilters() == false
6515 </Original>
6516 <Expanded>
6517 false == false
6518 </Expanded>
6519 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006520 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006521 <Original>
6522 spec.matches(tcA ) == false
6523 </Original>
6524 <Expanded>
6525 false == false
6526 </Expanded>
6527 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006528 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006529 <Original>
6530 spec.matches( tcB ) == false
6531 </Original>
6532 <Expanded>
6533 false == false
6534 </Expanded>
6535 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006536 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006537 </Section>
6538 <Section name="Test spec from just a comma should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00006539 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006540 <Original>
6541 spec.hasFilters() == false
6542 </Original>
6543 <Expanded>
6544 false == false
6545 </Expanded>
6546 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006547 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006548 <Original>
6549 spec.matches( tcA ) == false
6550 </Original>
6551 <Expanded>
6552 false == false
6553 </Expanded>
6554 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006555 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006556 <Original>
6557 spec.matches( tcB ) == false
6558 </Original>
6559 <Expanded>
6560 false == false
6561 </Expanded>
6562 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006563 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006564 </Section>
6565 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006566 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006567 <Original>
6568 spec.hasFilters() == true
6569 </Original>
6570 <Expanded>
6571 true == true
6572 </Expanded>
6573 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006574 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006575 <Original>
6576 spec.matches( tcA ) == false
6577 </Original>
6578 <Expanded>
6579 false == false
6580 </Expanded>
6581 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006582 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006583 <Original>
6584 spec.matches( tcB ) == true
6585 </Original>
6586 <Expanded>
6587 true == true
6588 </Expanded>
6589 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006590 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006591 </Section>
6592 <Section name="Test spec from quoted name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006593 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006594 <Original>
6595 spec.hasFilters() == true
6596 </Original>
6597 <Expanded>
6598 true == true
6599 </Expanded>
6600 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006601 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006602 <Original>
6603 spec.matches( tcA ) == false
6604 </Original>
6605 <Expanded>
6606 false == false
6607 </Expanded>
6608 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006609 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006610 <Original>
6611 spec.matches( tcB ) == true
6612 </Original>
6613 <Expanded>
6614 true == true
6615 </Expanded>
6616 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006617 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006618 </Section>
6619 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00006620 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006621 <Original>
6622 spec.hasFilters() == true
6623 </Original>
6624 <Expanded>
6625 true == true
6626 </Expanded>
6627 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006628 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006629 <Original>
6630 spec.matches( tcA ) == false
6631 </Original>
6632 <Expanded>
6633 false == false
6634 </Expanded>
6635 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006636 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006637 <Original>
6638 spec.matches( tcB ) == true
6639 </Original>
6640 <Expanded>
6641 true == true
6642 </Expanded>
6643 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006644 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006645 <Original>
6646 spec.matches( tcC ) == false
6647 </Original>
6648 <Expanded>
6649 false == false
6650 </Expanded>
6651 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006652 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006653 </Section>
6654 <Section name="Wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00006655 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006656 <Original>
6657 spec.hasFilters() == true
6658 </Original>
6659 <Expanded>
6660 true == true
6661 </Expanded>
6662 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006663 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006664 <Original>
6665 spec.matches( tcA ) == false
6666 </Original>
6667 <Expanded>
6668 false == false
6669 </Expanded>
6670 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006671 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006672 <Original>
6673 spec.matches( tcB ) == false
6674 </Original>
6675 <Expanded>
6676 false == false
6677 </Expanded>
6678 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006679 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006680 <Original>
6681 spec.matches( tcC ) == true
6682 </Original>
6683 <Expanded>
6684 true == true
6685 </Expanded>
6686 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006687 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006688 <Original>
6689 spec.matches( tcD ) == false
6690 </Original>
6691 <Expanded>
6692 false == false
6693 </Expanded>
6694 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006695 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006696 <Original>
6697 parseTestSpec( &quot;*a&quot; ).matches( tcA ) == true
6698 </Original>
6699 <Expanded>
6700 true == true
6701 </Expanded>
6702 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006703 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006704 </Section>
6705 <Section name="Wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00006706 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006707 <Original>
6708 spec.hasFilters() == true
6709 </Original>
6710 <Expanded>
6711 true == true
6712 </Expanded>
6713 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006714 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006715 <Original>
6716 spec.matches( tcA ) == false
6717 </Original>
6718 <Expanded>
6719 false == false
6720 </Expanded>
6721 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006722 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006723 <Original>
6724 spec.matches( tcB ) == false
6725 </Original>
6726 <Expanded>
6727 false == false
6728 </Expanded>
6729 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006730 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006731 <Original>
6732 spec.matches( tcC ) == true
6733 </Original>
6734 <Expanded>
6735 true == true
6736 </Expanded>
6737 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006738 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006739 <Original>
6740 spec.matches( tcD ) == false
6741 </Original>
6742 <Expanded>
6743 false == false
6744 </Expanded>
6745 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006746 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006747 <Original>
6748 parseTestSpec( &quot;a*&quot; ).matches( tcA ) == true
6749 </Original>
6750 <Expanded>
6751 true == true
6752 </Expanded>
6753 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006754 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006755 </Section>
6756 <Section name="Wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00006757 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006758 <Original>
6759 spec.hasFilters() == true
6760 </Original>
6761 <Expanded>
6762 true == true
6763 </Expanded>
6764 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006765 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006766 <Original>
6767 spec.matches( tcA ) == false
6768 </Original>
6769 <Expanded>
6770 false == false
6771 </Expanded>
6772 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006773 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006774 <Original>
6775 spec.matches( tcB ) == false
6776 </Original>
6777 <Expanded>
6778 false == false
6779 </Expanded>
6780 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006781 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006782 <Original>
6783 spec.matches( tcC ) == true
6784 </Original>
6785 <Expanded>
6786 true == true
6787 </Expanded>
6788 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006789 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006790 <Original>
6791 spec.matches( tcD ) == true
6792 </Original>
6793 <Expanded>
6794 true == true
6795 </Expanded>
6796 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006797 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006798 <Original>
6799 parseTestSpec( &quot;*a*&quot; ).matches( tcA ) == true
6800 </Original>
6801 <Expanded>
6802 true == true
6803 </Expanded>
6804 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006805 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006806 </Section>
Phil Nash71390352014-05-19 18:21:01 +01006807 <Section name="Redundant wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00006808 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006809 <Original>
6810 spec.hasFilters() == true
6811 </Original>
6812 <Expanded>
6813 true == true
6814 </Expanded>
6815 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006816 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006817 <Original>
6818 spec.matches( tcA ) == true
6819 </Original>
6820 <Expanded>
6821 true == true
6822 </Expanded>
6823 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006824 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006825 <Original>
6826 spec.matches( tcB ) == false
6827 </Original>
6828 <Expanded>
6829 false == false
6830 </Expanded>
6831 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006832 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006833 </Section>
6834 <Section name="Redundant wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00006835 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006836 <Original>
6837 spec.hasFilters() == true
6838 </Original>
6839 <Expanded>
6840 true == true
6841 </Expanded>
6842 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006843 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006844 <Original>
6845 spec.matches( tcA ) == true
6846 </Original>
6847 <Expanded>
6848 true == true
6849 </Expanded>
6850 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006851 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006852 <Original>
6853 spec.matches( tcB ) == false
6854 </Original>
6855 <Expanded>
6856 false == false
6857 </Expanded>
6858 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006859 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006860 </Section>
6861 <Section name="Redundant wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00006862 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006863 <Original>
6864 spec.hasFilters() == true
6865 </Original>
6866 <Expanded>
6867 true == true
6868 </Expanded>
6869 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006870 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006871 <Original>
6872 spec.matches( tcA ) == true
6873 </Original>
6874 <Expanded>
6875 true == true
6876 </Expanded>
6877 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006878 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006879 <Original>
6880 spec.matches( tcB ) == false
6881 </Original>
6882 <Expanded>
6883 false == false
6884 </Expanded>
6885 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006886 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006887 </Section>
6888 <Section name="Wildcard at both ends, redundant at start">
Phil Nashc6635a72014-12-30 18:25:27 +00006889 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006890 <Original>
6891 spec.hasFilters() == true
6892 </Original>
6893 <Expanded>
6894 true == true
6895 </Expanded>
6896 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006897 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006898 <Original>
6899 spec.matches( tcA ) == false
6900 </Original>
6901 <Expanded>
6902 false == false
6903 </Expanded>
6904 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006905 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006906 <Original>
6907 spec.matches( tcB ) == false
6908 </Original>
6909 <Expanded>
6910 false == false
6911 </Expanded>
6912 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006913 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006914 <Original>
6915 spec.matches( tcC ) == true
6916 </Original>
6917 <Expanded>
6918 true == true
6919 </Expanded>
6920 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006921 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01006922 <Original>
6923 spec.matches( tcD ) == true
6924 </Original>
6925 <Expanded>
6926 true == true
6927 </Expanded>
6928 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006929 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01006930 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01006931 <Section name="Just wildcard">
Phil Nashc6635a72014-12-30 18:25:27 +00006932 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006933 <Original>
6934 spec.hasFilters() == true
6935 </Original>
6936 <Expanded>
6937 true == true
6938 </Expanded>
6939 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006940 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006941 <Original>
6942 spec.matches( tcA ) == true
6943 </Original>
6944 <Expanded>
6945 true == true
6946 </Expanded>
6947 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006948 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006949 <Original>
6950 spec.matches( tcB ) == true
6951 </Original>
6952 <Expanded>
6953 true == true
6954 </Expanded>
6955 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006956 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006957 <Original>
6958 spec.matches( tcC ) == true
6959 </Original>
6960 <Expanded>
6961 true == true
6962 </Expanded>
6963 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006964 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006965 <Original>
6966 spec.matches( tcD ) == true
6967 </Original>
6968 <Expanded>
6969 true == true
6970 </Expanded>
6971 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006972 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01006973 </Section>
6974 <Section name="Single tag">
Phil Nashc6635a72014-12-30 18:25:27 +00006975 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006976 <Original>
6977 spec.hasFilters() == true
6978 </Original>
6979 <Expanded>
6980 true == true
6981 </Expanded>
6982 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006983 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006984 <Original>
6985 spec.matches( tcA ) == false
6986 </Original>
6987 <Expanded>
6988 false == false
6989 </Expanded>
6990 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006991 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01006992 <Original>
6993 spec.matches( tcB ) == true
6994 </Original>
6995 <Expanded>
6996 true == true
6997 </Expanded>
6998 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006999 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007000 <Original>
7001 spec.matches( tcC ) == false
7002 </Original>
7003 <Expanded>
7004 false == false
7005 </Expanded>
7006 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007007 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007008 </Section>
7009 <Section name="Single tag, two matches">
Phil Nashc6635a72014-12-30 18:25:27 +00007010 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007011 <Original>
7012 spec.hasFilters() == true
7013 </Original>
7014 <Expanded>
7015 true == true
7016 </Expanded>
7017 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007018 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007019 <Original>
7020 spec.matches( tcA ) == false
7021 </Original>
7022 <Expanded>
7023 false == false
7024 </Expanded>
7025 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007026 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007027 <Original>
7028 spec.matches( tcB ) == true
7029 </Original>
7030 <Expanded>
7031 true == true
7032 </Expanded>
7033 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007034 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007035 <Original>
7036 spec.matches( tcC ) == true
7037 </Original>
7038 <Expanded>
7039 true == true
7040 </Expanded>
7041 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007042 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007043 </Section>
7044 <Section name="Two tags">
Phil Nashc6635a72014-12-30 18:25:27 +00007045 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007046 <Original>
7047 spec.hasFilters() == true
7048 </Original>
7049 <Expanded>
7050 true == true
7051 </Expanded>
7052 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007053 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007054 <Original>
7055 spec.matches( tcA ) == false
7056 </Original>
7057 <Expanded>
7058 false == false
7059 </Expanded>
7060 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007061 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007062 <Original>
7063 spec.matches( tcB ) == false
7064 </Original>
7065 <Expanded>
7066 false == false
7067 </Expanded>
7068 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007069 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007070 <Original>
7071 spec.matches( tcC ) == true
7072 </Original>
7073 <Expanded>
7074 true == true
7075 </Expanded>
7076 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007077 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007078 </Section>
Phil Nasha2d8f772014-05-20 18:28:48 +01007079 <Section name="Two tags, spare separated">
Phil Nashc6635a72014-12-30 18:25:27 +00007080 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007081 <Original>
7082 spec.hasFilters() == true
7083 </Original>
7084 <Expanded>
7085 true == true
7086 </Expanded>
7087 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007088 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007089 <Original>
7090 spec.matches( tcA ) == false
7091 </Original>
7092 <Expanded>
7093 false == false
7094 </Expanded>
7095 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007096 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007097 <Original>
7098 spec.matches( tcB ) == false
7099 </Original>
7100 <Expanded>
7101 false == false
7102 </Expanded>
7103 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007104 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01007105 <Original>
7106 spec.matches( tcC ) == true
7107 </Original>
7108 <Expanded>
7109 true == true
7110 </Expanded>
7111 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007112 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nasha2d8f772014-05-20 18:28:48 +01007113 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01007114 <Section name="Wildcarded name and tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007115 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007116 <Original>
7117 spec.hasFilters() == true
7118 </Original>
7119 <Expanded>
7120 true == true
7121 </Expanded>
7122 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007123 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007124 <Original>
7125 spec.matches( tcA ) == false
7126 </Original>
7127 <Expanded>
7128 false == false
7129 </Expanded>
7130 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007131 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007132 <Original>
7133 spec.matches( tcB ) == false
7134 </Original>
7135 <Expanded>
7136 false == false
7137 </Expanded>
7138 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007139 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007140 <Original>
7141 spec.matches( tcC ) == true
7142 </Original>
7143 <Expanded>
7144 true == true
7145 </Expanded>
7146 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007147 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007148 <Original>
7149 spec.matches( tcD ) == false
7150 </Original>
7151 <Expanded>
7152 false == false
7153 </Expanded>
7154 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007155 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007156 </Section>
7157 <Section name="Single tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007158 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007159 <Original>
7160 spec.hasFilters() == true
7161 </Original>
7162 <Expanded>
7163 true == true
7164 </Expanded>
7165 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007166 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007167 <Original>
7168 spec.matches( tcA ) == true
7169 </Original>
7170 <Expanded>
7171 true == true
7172 </Expanded>
7173 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007174 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007175 <Original>
7176 spec.matches( tcB ) == false
7177 </Original>
7178 <Expanded>
7179 false == false
7180 </Expanded>
7181 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007182 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007183 <Original>
7184 spec.matches( tcC ) == true
7185 </Original>
7186 <Expanded>
7187 true == true
7188 </Expanded>
7189 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007190 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007191 </Section>
7192 <Section name="One tag exclusion and one tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007193 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007194 <Original>
7195 spec.hasFilters() == true
7196 </Original>
7197 <Expanded>
7198 true == true
7199 </Expanded>
7200 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007201 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007202 <Original>
7203 spec.matches( tcA ) == false
7204 </Original>
7205 <Expanded>
7206 false == false
7207 </Expanded>
7208 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007209 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007210 <Original>
7211 spec.matches( tcB ) == true
7212 </Original>
7213 <Expanded>
7214 true == true
7215 </Expanded>
7216 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007217 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007218 <Original>
7219 spec.matches( tcC ) == false
7220 </Original>
7221 <Expanded>
7222 false == false
7223 </Expanded>
7224 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007225 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007226 </Section>
7227 <Section name="One tag exclusion and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007228 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007229 <Original>
7230 spec.hasFilters() == true
7231 </Original>
7232 <Expanded>
7233 true == true
7234 </Expanded>
7235 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007236 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007237 <Original>
7238 spec.matches( tcA ) == false
7239 </Original>
7240 <Expanded>
7241 false == false
7242 </Expanded>
7243 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007244 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007245 <Original>
7246 spec.matches( tcB ) == false
7247 </Original>
7248 <Expanded>
7249 false == false
7250 </Expanded>
7251 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007252 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007253 <Original>
7254 spec.matches( tcC ) == false
7255 </Original>
7256 <Expanded>
7257 false == false
7258 </Expanded>
7259 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007260 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007261 <Original>
7262 spec.matches( tcD ) == true
7263 </Original>
7264 <Expanded>
7265 true == true
7266 </Expanded>
7267 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007268 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007269 </Section>
7270 <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007271 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007272 <Original>
7273 spec.hasFilters() == true
7274 </Original>
7275 <Expanded>
7276 true == true
7277 </Expanded>
7278 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007279 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007280 <Original>
7281 spec.matches( tcA ) == false
7282 </Original>
7283 <Expanded>
7284 false == false
7285 </Expanded>
7286 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007287 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007288 <Original>
7289 spec.matches( tcB ) == false
7290 </Original>
7291 <Expanded>
7292 false == false
7293 </Expanded>
7294 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007295 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007296 <Original>
7297 spec.matches( tcC ) == false
7298 </Original>
7299 <Expanded>
7300 false == false
7301 </Expanded>
7302 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007303 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007304 <Original>
7305 spec.matches( tcD ) == true
7306 </Original>
7307 <Expanded>
7308 true == true
7309 </Expanded>
7310 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007311 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007312 </Section>
7313 <Section name="name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007314 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007315 <Original>
7316 spec.hasFilters() == true
7317 </Original>
7318 <Expanded>
7319 true == true
7320 </Expanded>
7321 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007322 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007323 <Original>
7324 spec.matches( tcA ) == true
7325 </Original>
7326 <Expanded>
7327 true == true
7328 </Expanded>
7329 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007330 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007331 <Original>
7332 spec.matches( tcB ) == false
7333 </Original>
7334 <Expanded>
7335 false == false
7336 </Expanded>
7337 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007338 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007339 <Original>
7340 spec.matches( tcC ) == true
7341 </Original>
7342 <Expanded>
7343 true == true
7344 </Expanded>
7345 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007346 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007347 <Original>
7348 spec.matches( tcD ) == true
7349 </Original>
7350 <Expanded>
7351 true == true
7352 </Expanded>
7353 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007354 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007355 </Section>
7356 <Section name="wildcarded name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007357 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007358 <Original>
7359 spec.hasFilters() == true
7360 </Original>
7361 <Expanded>
7362 true == true
7363 </Expanded>
7364 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007365 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007366 <Original>
7367 spec.matches( tcA ) == true
7368 </Original>
7369 <Expanded>
7370 true == true
7371 </Expanded>
7372 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007373 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007374 <Original>
7375 spec.matches( tcB ) == true
7376 </Original>
7377 <Expanded>
7378 true == true
7379 </Expanded>
7380 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007381 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007382 <Original>
7383 spec.matches( tcC ) == false
7384 </Original>
7385 <Expanded>
7386 false == false
7387 </Expanded>
7388 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007389 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007390 <Original>
7391 spec.matches( tcD ) == false
7392 </Original>
7393 <Expanded>
7394 false == false
7395 </Expanded>
7396 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007397 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007398 </Section>
7399 <Section name="wildcarded name exclusion with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007400 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007401 <Original>
7402 spec.hasFilters() == true
7403 </Original>
7404 <Expanded>
7405 true == true
7406 </Expanded>
7407 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007408 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007409 <Original>
7410 spec.matches( tcA ) == true
7411 </Original>
7412 <Expanded>
7413 true == true
7414 </Expanded>
7415 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007416 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007417 <Original>
7418 spec.matches( tcB ) == true
7419 </Original>
7420 <Expanded>
7421 true == true
7422 </Expanded>
7423 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007424 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007425 <Original>
7426 spec.matches( tcC ) == true
7427 </Original>
7428 <Expanded>
7429 true == true
7430 </Expanded>
7431 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007432 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007433 <Original>
7434 spec.matches( tcD ) == false
7435 </Original>
7436 <Expanded>
7437 false == false
7438 </Expanded>
7439 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007440 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007441 </Section>
7442 <Section name="wildcarded name exclusion, using exclude:, with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007443 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007444 <Original>
7445 spec.hasFilters() == true
7446 </Original>
7447 <Expanded>
7448 true == true
7449 </Expanded>
7450 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007451 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007452 <Original>
7453 spec.matches( tcA ) == true
7454 </Original>
7455 <Expanded>
7456 true == true
7457 </Expanded>
7458 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007459 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007460 <Original>
7461 spec.matches( tcB ) == true
7462 </Original>
7463 <Expanded>
7464 true == true
7465 </Expanded>
7466 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007467 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007468 <Original>
7469 spec.matches( tcC ) == true
7470 </Original>
7471 <Expanded>
7472 true == true
7473 </Expanded>
7474 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007475 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007476 <Original>
7477 spec.matches( tcD ) == false
7478 </Original>
7479 <Expanded>
7480 false == false
7481 </Expanded>
7482 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007483 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007484 </Section>
7485 <Section name="two wildcarded names">
Phil Nashc6635a72014-12-30 18:25:27 +00007486 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007487 <Original>
7488 spec.hasFilters() == true
7489 </Original>
7490 <Expanded>
7491 true == true
7492 </Expanded>
7493 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007494 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007495 <Original>
7496 spec.matches( tcA ) == false
7497 </Original>
7498 <Expanded>
7499 false == false
7500 </Expanded>
7501 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007502 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007503 <Original>
7504 spec.matches( tcB ) == false
7505 </Original>
7506 <Expanded>
7507 false == false
7508 </Expanded>
7509 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007510 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007511 <Original>
7512 spec.matches( tcC ) == true
7513 </Original>
7514 <Expanded>
7515 true == true
7516 </Expanded>
7517 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007518 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007519 <Original>
7520 spec.matches( tcD ) == false
7521 </Original>
7522 <Expanded>
7523 false == false
7524 </Expanded>
7525 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007526 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007527 </Section>
7528 <Section name="empty tag">
Phil Nashc6635a72014-12-30 18:25:27 +00007529 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007530 <Original>
7531 spec.hasFilters() == false
7532 </Original>
7533 <Expanded>
7534 false == false
7535 </Expanded>
7536 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007537 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007538 <Original>
7539 spec.matches( tcA ) == false
7540 </Original>
7541 <Expanded>
7542 false == false
7543 </Expanded>
7544 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007545 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007546 <Original>
7547 spec.matches( tcB ) == false
7548 </Original>
7549 <Expanded>
7550 false == false
7551 </Expanded>
7552 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007553 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007554 <Original>
7555 spec.matches( tcC ) == false
7556 </Original>
7557 <Expanded>
7558 false == false
7559 </Expanded>
7560 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007561 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007562 <Original>
7563 spec.matches( tcD ) == false
7564 </Original>
7565 <Expanded>
7566 false == false
7567 </Expanded>
7568 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007569 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007570 </Section>
7571 <Section name="empty quoted name">
Phil Nashc6635a72014-12-30 18:25:27 +00007572 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007573 <Original>
7574 spec.hasFilters() == false
7575 </Original>
7576 <Expanded>
7577 false == false
7578 </Expanded>
7579 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007580 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007581 <Original>
7582 spec.matches( tcA ) == false
7583 </Original>
7584 <Expanded>
7585 false == false
7586 </Expanded>
7587 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007588 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007589 <Original>
7590 spec.matches( tcB ) == false
7591 </Original>
7592 <Expanded>
7593 false == false
7594 </Expanded>
7595 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007596 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007597 <Original>
7598 spec.matches( tcC ) == false
7599 </Original>
7600 <Expanded>
7601 false == false
7602 </Expanded>
7603 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007604 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007605 <Original>
7606 spec.matches( tcD ) == false
7607 </Original>
7608 <Expanded>
7609 false == false
7610 </Expanded>
7611 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007612 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007613 </Section>
7614 <Section name="quoted string followed by tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00007615 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007616 <Original>
7617 spec.hasFilters() == true
7618 </Original>
7619 <Expanded>
7620 true == true
7621 </Expanded>
7622 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007623 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007624 <Original>
7625 spec.matches( tcA ) == false
7626 </Original>
7627 <Expanded>
7628 false == false
7629 </Expanded>
7630 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007631 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007632 <Original>
7633 spec.matches( tcB ) == false
7634 </Original>
7635 <Expanded>
7636 false == false
7637 </Expanded>
7638 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007639 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007640 <Original>
7641 spec.matches( tcC ) == false
7642 </Original>
7643 <Expanded>
7644 false == false
7645 </Expanded>
7646 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007647 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007648 <Original>
7649 spec.matches( tcD ) == true
7650 </Original>
7651 <Expanded>
7652 true == true
7653 </Expanded>
7654 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007655 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01007656 </Section>
7657 <OverallResult success="true"/>
7658 </TestCase>
Phil Nash50183202014-12-30 18:47:01 +00007659 <TestCase name="tuple&lt;>">
7660 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7661 <Original>
7662 &quot;{ }&quot; == Catch::toString(type{})
7663 </Original>
7664 <Expanded>
7665 &quot;{ }&quot; == &quot;{ }&quot;
7666 </Expanded>
7667 </Expression>
7668 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7669 <Original>
7670 &quot;{ }&quot; == Catch::toString(value)
7671 </Original>
7672 <Expanded>
7673 &quot;{ }&quot; == &quot;{ }&quot;
7674 </Expanded>
7675 </Expression>
7676 <OverallResult success="true"/>
7677 </TestCase>
7678 <TestCase name="tuple&lt;int>">
7679 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7680 <Original>
7681 &quot;{ 0 }&quot; == Catch::toString(type{0})
7682 </Original>
7683 <Expanded>
7684 &quot;{ 0 }&quot; == &quot;{ 0 }&quot;
7685 </Expanded>
7686 </Expression>
7687 <OverallResult success="true"/>
7688 </TestCase>
7689 <TestCase name="tuple&lt;float,int>">
7690 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7691 <Original>
7692 &quot;1.2f&quot; == Catch::toString(float(1.2))
7693 </Original>
7694 <Expanded>
7695 &quot;1.2f&quot; == &quot;1.2f&quot;
7696 </Expanded>
7697 </Expression>
7698 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7699 <Original>
7700 &quot;{ 1.2f, 0 }&quot; == Catch::toString(type{1.2,0})
7701 </Original>
7702 <Expanded>
7703 &quot;{ 1.2f, 0 }&quot; == &quot;{ 1.2f, 0 }&quot;
7704 </Expanded>
7705 </Expression>
7706 <OverallResult success="true"/>
7707 </TestCase>
7708 <TestCase name="tuple&lt;string,string>">
7709 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7710 <Original>
7711 &quot;{ \&quot;hello\&quot;, \&quot;world\&quot; }&quot; == Catch::toString(type{&quot;hello&quot;,&quot;world&quot;})
7712 </Original>
7713 <Expanded>
7714 &quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
7715==
7716&quot;{ &quot;hello&quot;, &quot;world&quot; }&quot;
7717 </Expanded>
7718 </Expression>
7719 <OverallResult success="true"/>
7720 </TestCase>
7721 <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>">
7722 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7723 <Original>
7724 &quot;{ { 42 }, { }, 1.2f }&quot; == Catch::toString(value)
7725 </Original>
7726 <Expanded>
7727 &quot;{ { 42 }, { }, 1.2f }&quot;
7728==
7729&quot;{ { 42 }, { }, 1.2f }&quot;
7730 </Expanded>
7731 </Expression>
7732 <OverallResult success="true"/>
7733 </TestCase>
7734 <TestCase name="tuple&lt;nullptr,int,const char *>">
7735 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
7736 <Original>
7737 &quot;{ nullptr, 42, \&quot;Catch me\&quot; }&quot; == Catch::toString(value)
7738 </Original>
7739 <Expanded>
7740 &quot;{ nullptr, 42, &quot;Catch me&quot; }&quot;
7741==
7742&quot;{ nullptr, 42, &quot;Catch me&quot; }&quot;
7743 </Expanded>
7744 </Expression>
7745 <OverallResult success="true"/>
7746 </TestCase>
Phil Nash061861d2014-06-30 07:34:27 +01007747 <TestCase name="Tag alias can be registered against tag patterns">
7748 <Section name="The same tag alias can only be registered once">
Phil Nashc6635a72014-12-30 18:25:27 +00007749 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007750 <Original>
7751 what Contains( &quot;[@zzz]&quot; )
7752 </Original>
7753 <Expanded>
7754 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7755 First seen at file:2
7756 Redefined at file:10&quot; contains: &quot;[@zzz]&quot;
7757 </Expanded>
7758 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007759 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007760 <Original>
7761 what Contains( &quot;file&quot; )
7762 </Original>
7763 <Expanded>
7764 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7765 First seen at file:2
7766 Redefined at file:10&quot; contains: &quot;file&quot;
7767 </Expanded>
7768 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007769 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007770 <Original>
7771 what Contains( &quot;2&quot; )
7772 </Original>
7773 <Expanded>
7774 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7775 First seen at file:2
7776 Redefined at file:10&quot; contains: &quot;2&quot;
7777 </Expanded>
7778 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007779 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007780 <Original>
7781 what Contains( &quot;10&quot; )
7782 </Original>
7783 <Expanded>
7784 &quot;error: tag alias, &quot;[@zzz]&quot; already registered.
7785 First seen at file:2
7786 Redefined at file:10&quot; contains: &quot;10&quot;
7787 </Expanded>
7788 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007789 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01007790 </Section>
7791 <Section name="Tag aliases must be of the form [@name]">
Phil Nashc6635a72014-12-30 18:25:27 +00007792 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007793 <Original>
7794 registry.add( &quot;[no ampersat]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7795 </Original>
7796 <Expanded>
7797 registry.add( &quot;[no ampersat]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7798 </Expanded>
7799 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007800 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007801 <Original>
7802 registry.add( &quot;[the @ is not at the start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7803 </Original>
7804 <Expanded>
7805 registry.add( &quot;[the @ is not at the start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7806 </Expanded>
7807 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007808 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007809 <Original>
7810 registry.add( &quot;@no square bracket at start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7811 </Original>
7812 <Expanded>
7813 registry.add( &quot;@no square bracket at start]&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7814 </Expanded>
7815 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007816 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01007817 <Original>
7818 registry.add( &quot;[@no square bracket at end&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7819 </Original>
7820 <Expanded>
7821 registry.add( &quot;[@no square bracket at end&quot;, &quot;&quot;, Catch::SourceLineInfo( &quot;file&quot;, 3 ) )
7822 </Expanded>
7823 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007824 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01007825 </Section>
7826 <OverallResult success="true"/>
7827 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01007828 <TestCase name="Anonymous test case 1">
7829 <OverallResult success="true"/>
7830 </TestCase>
7831 <TestCase name="Test case with one argument">
7832 <OverallResult success="true"/>
7833 </TestCase>
7834 <TestCase name="Variadic macros">
7835 <Section name="Section with one argument">
Phil Nash9c1f9a82014-07-03 08:09:57 +01007836 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007837 </Section>
7838 <OverallResult success="true"/>
7839 </TestCase>
7840 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00007841 <Section name="Given: This stuff exists">
Phil Nasha1e87a42013-12-10 08:20:46 +00007842 <Section name="When: I do this">
7843 <Section name="Then: it should do this">
Phil Nashc6635a72014-12-30 18:25:27 +00007844 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007845 <Original>
7846 itDoesThis()
7847 </Original>
7848 <Expanded>
7849 true
7850 </Expanded>
7851 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007852 <Section name="And: do that">
Phil Nashc6635a72014-12-30 18:25:27 +00007853 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007854 <Original>
7855 itDoesThat()
7856 </Original>
7857 <Expanded>
7858 true
7859 </Expanded>
7860 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007861 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007862 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007863 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007864 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007865 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007866 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007867 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007868 </Section>
7869 <OverallResult success="true"/>
7870 </TestCase>
7871 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00007872 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00007873 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007874 <Original>
7875 v.size() == 0
7876 </Original>
7877 <Expanded>
7878 0 == 0
7879 </Expanded>
7880 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007881 <Section name="When: it is made larger">
7882 <Section name="Then: the size and capacity go up">
Phil Nashc6635a72014-12-30 18:25:27 +00007883 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007884 <Original>
7885 v.size() == 10
7886 </Original>
7887 <Expanded>
7888 10 == 10
7889 </Expanded>
7890 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007891 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007892 <Original>
7893 v.capacity() >= 10
7894 </Original>
7895 <Expanded>
7896 10 >= 10
7897 </Expanded>
7898 </Expression>
7899 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00007900 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nashc6635a72014-12-30 18:25:27 +00007901 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007902 <Original>
7903 v.size() == 5
7904 </Original>
7905 <Expanded>
7906 5 == 5
7907 </Expanded>
7908 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007909 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007910 <Original>
7911 v.capacity() >= 10
7912 </Original>
7913 <Expanded>
7914 10 >= 10
7915 </Expanded>
7916 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007917 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007918 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007919 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007920 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007921 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007922 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007923 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007924 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007925 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007926 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00007927 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00007928 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007929 <Original>
7930 v.size() == 0
7931 </Original>
7932 <Expanded>
7933 0 == 0
7934 </Expanded>
7935 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00007936 <Section name="When: we reserve more space">
Phil Nasha1e87a42013-12-10 08:20:46 +00007937 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nashc6635a72014-12-30 18:25:27 +00007938 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007939 <Original>
7940 v.capacity() >= 10
7941 </Original>
7942 <Expanded>
7943 10 >= 10
7944 </Expanded>
7945 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007946 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01007947 <Original>
7948 v.size() == 0
7949 </Original>
7950 <Expanded>
7951 0 == 0
7952 </Expanded>
7953 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007954 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007955 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007956 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007957 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007958 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007959 </Section>
7960 <OverallResult success="true"/>
7961 </TestCase>
7962 <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 +00007963 <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 +00007964 <Section name="When: The test headers are printed as part of the normal running of the scenario">
7965 <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 +01007966 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007967 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007968 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007969 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01007970 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01007971 </Section>
7972 <OverallResult success="true"/>
7973 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01007974 <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods">
7975 <Section name="Given: No operations precede me">
Phil Nashc6635a72014-12-30 18:25:27 +00007976 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01007977 <Original>
7978 before == 0
7979 </Original>
7980 <Expanded>
7981 0 == 0
7982 </Expanded>
7983 </Expression>
7984 <Section name="When: We get the count">
7985 <Section name="Then: Subsequently values are higher">
Phil Nashc6635a72014-12-30 18:25:27 +00007986 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01007987 <Original>
7988 after > before
7989 </Original>
7990 <Expanded>
7991 1 > 0
7992 </Expanded>
7993 </Expression>
7994 <OverallResults successes="1" failures="0" expectedFailures="0"/>
7995 </Section>
7996 <OverallResults successes="1" failures="0" expectedFailures="0"/>
7997 </Section>
7998 <OverallResults successes="2" failures="0" expectedFailures="0"/>
7999 </Section>
8000 <OverallResult success="true"/>
8001 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01008002 <TestCase name="section tracking">
Phil Nashc6635a72014-12-30 18:25:27 +00008003 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008004 <Original>
8005 !testCaseTracker.isCompleted()
8006 </Original>
8007 <Expanded>
8008 !false
8009 </Expanded>
8010 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01008011 <Section name="test case with no sections">
Phil Nashc6635a72014-12-30 18:25:27 +00008012 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008013 <Original>
8014 !testCaseTracker.isCompleted()
8015 </Original>
8016 <Expanded>
8017 !false
8018 </Expanded>
8019 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008020 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008021 <Original>
8022 testCaseTracker.isCompleted()
8023 </Original>
8024 <Expanded>
8025 true
8026 </Expanded>
8027 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008028 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008029 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008030 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008031 <Original>
8032 !testCaseTracker.isCompleted()
8033 </Original>
8034 <Expanded>
8035 !false
8036 </Expanded>
8037 </Expression>
8038 <Section name="test case with one section">
Phil Nashc6635a72014-12-30 18:25:27 +00008039 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008040 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008041 testCaseTracker.enterSection( section1Name )
8042 </Original>
8043 <Expanded>
8044 true
8045 </Expanded>
8046 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008047 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008048 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01008049 !testCaseTracker.isCompleted()
8050 </Original>
8051 <Expanded>
8052 !false
8053 </Expanded>
8054 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008055 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008056 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008057 testCaseTracker.isCompleted()
8058 </Original>
8059 <Expanded>
8060 true
8061 </Expanded>
8062 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008063 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008064 <Original>
8065 !testCaseTracker.enterSection( section1Name )
8066 </Original>
8067 <Expanded>
8068 !false
8069 </Expanded>
8070 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008071 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008072 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008073 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008074 <Original>
8075 !testCaseTracker.isCompleted()
8076 </Original>
8077 <Expanded>
8078 !false
8079 </Expanded>
8080 </Expression>
8081 <Section name="test case with two consecutive sections">
Phil Nashc6635a72014-12-30 18:25:27 +00008082 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008083 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008084 testCaseTracker.enterSection( section1Name )
8085 </Original>
8086 <Expanded>
8087 true
8088 </Expanded>
8089 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008090 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008091 <Original>
8092 !testCaseTracker.enterSection( section2Name )
8093 </Original>
8094 <Expanded>
8095 !false
8096 </Expanded>
8097 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008098 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008099 <Original>
8100 !testCaseTracker.isCompleted()
8101 </Original>
8102 <Expanded>
8103 !false
8104 </Expanded>
8105 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008106 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008107 <Original>
8108 !testCaseTracker.enterSection( section1Name )
8109 </Original>
8110 <Expanded>
8111 !false
8112 </Expanded>
8113 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008114 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008115 <Original>
8116 testCaseTracker.enterSection( section2Name )
8117 </Original>
8118 <Expanded>
8119 true
8120 </Expanded>
8121 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008122 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008123 <Original>
8124 testCaseTracker.isCompleted()
8125 </Original>
8126 <Expanded>
8127 true
8128 </Expanded>
8129 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008130 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008131 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00008132 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008133 <Original>
8134 !testCaseTracker.isCompleted()
8135 </Original>
8136 <Expanded>
8137 !false
8138 </Expanded>
8139 </Expression>
8140 <Section name="test case with one section within another">
Phil Nashc6635a72014-12-30 18:25:27 +00008141 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008142 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008143 testCaseTracker.enterSection( section1Name )
8144 </Original>
8145 <Expanded>
8146 true
8147 </Expanded>
8148 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008149 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008150 <Original>
8151 testCaseTracker.enterSection( section2Name )
8152 </Original>
8153 <Expanded>
8154 true
8155 </Expanded>
8156 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008157 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01008158 <Original>
Phil Nasha0208652014-04-21 19:02:38 +01008159 !testCaseTracker.isCompleted()
8160 </Original>
8161 <Expanded>
8162 !false
8163 </Expanded>
8164 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008165 <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" >
Phil Nasha0208652014-04-21 19:02:38 +01008166 <Original>
Phil Nash2f7a2962013-09-27 19:01:14 +01008167 testCaseTracker.isCompleted()
8168 </Original>
8169 <Expanded>
8170 true
8171 </Expanded>
8172 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008173 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008174 </Section>
8175 <OverallResult success="true"/>
8176 </TestCase>
Phil Nash50183202014-12-30 18:47:01 +00008177 <OverallResults successes="669" failures="99" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008178 </Group>
Phil Nash50183202014-12-30 18:47:01 +00008179 <OverallResults successes="669" failures="99" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01008180</Catch>