blob: 2ab95bbe4ddfc342a8fd16a11a229f8f28ffd1c9 [file] [log] [blame]
Phil Nash2f7a2962013-09-27 19:01:14 +01001<Catch name="CatchSelfTest">
Phil Nash85c80742015-07-28 18:26:09 +01002 <Group name="CatchSelfTest">
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>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006 Catch::toString(e0) == "0"
Phil Nash5ea32662014-09-03 19:22:47 +01007 </Original>
8 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009 "0" == "0"
Phil Nash5ea32662014-09-03 19:22:47 +010010 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010014 Catch::toString(e1) == "1"
Phil Nash5ea32662014-09-03 19:22:47 +010015 </Original>
16 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010017 "1" == "1"
Phil Nash5ea32662014-09-03 19:22:47 +010018 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010025 Catch::toString(e0) == "E2{0}"
Phil Nash5ea32662014-09-03 19:22:47 +010026 </Original>
27 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010028 "E2{0}" == "E2{0}"
Phil Nash5ea32662014-09-03 19:22:47 +010029 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010033 Catch::toString(e1) == "E2{1}"
Phil Nash5ea32662014-09-03 19:22:47 +010034 </Original>
35 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010036 "E2{1}" == "E2{1}"
Phil Nash5ea32662014-09-03 19:22:47 +010037 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010044 Catch::toString(e0) == "0"
Phil Nash5ea32662014-09-03 19:22:47 +010045 </Original>
46 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010047 "0" == "0"
Phil Nash5ea32662014-09-03 19:22:47 +010048 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010052 Catch::toString(e1) == "1"
Phil Nash5ea32662014-09-03 19:22:47 +010053 </Original>
54 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010055 "1" == "1"
Phil Nash5ea32662014-09-03 19:22:47 +010056 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010063 Catch::toString(e0) == "E2/V0"
Phil Nash5ea32662014-09-03 19:22:47 +010064 </Original>
65 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010066 "E2/V0" == "E2/V0"
Phil Nash5ea32662014-09-03 19:22:47 +010067 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010071 Catch::toString(e1) == "E2/V1"
Phil Nash5ea32662014-09-03 19:22:47 +010072 </Original>
73 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010074 "E2/V1" == "E2/V1"
Phil Nash5ea32662014-09-03 19:22:47 +010075 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +010079 Catch::toString(e3) == "Unknown enum value 10"
Phil Nash886ef162014-09-04 07:27:09 +010080 </Original>
81 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +010082 "Unknown enum value 10"
Phil Nash886ef162014-09-04 07:27:09 +010083==
Phil Nashd6e59cd2015-07-23 18:45:31 +010084"Unknown enum value 10"
Phil Nash886ef162014-09-04 07:27:09 +010085 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100329 s == "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100330 </Original>
331 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100332 "hello" == "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100333 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100340 s == "world"
Phil Nash2f7a2962013-09-27 19:01:14 +0100341 </Original>
342 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100343 "hello" == "world"
Phil Nash2f7a2962013-09-27 19:01:14 +0100344 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100397 data.str_hello == "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100398 </Original>
399 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100400 "hello" == "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100401 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100405 "hello" == data.str_hello
Phil Nash2f7a2962013-09-27 19:01:14 +0100406 </Original>
407 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100408 "hello" == "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100409 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100496 data.str_hello == "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +0100497 </Original>
498 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100499 "hello" == "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +0100500 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100504 data.str_hello == "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +0100505 </Original>
506 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100507 "hello" == "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +0100508 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100512 data.str_hello == "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +0100513 </Original>
514 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100515 "hello" == "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +0100516 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100595 data.str_hello != "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +0100596 </Original>
597 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100598 "hello" != "goodbye"
Phil Nash2f7a2962013-09-27 19:01:14 +0100599 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100603 data.str_hello != "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +0100604 </Original>
605 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100606 "hello" != "hell"
Phil Nash2f7a2962013-09-27 19:01:14 +0100607 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100611 data.str_hello != "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +0100612 </Original>
613 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100614 "hello" != "hello1"
Phil Nash2f7a2962013-09-27 19:01:14 +0100615 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100654 data.str_hello != "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100655 </Original>
656 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100657 "hello" != "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100658 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100761 data.str_hello &lt;= "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100762 </Original>
763 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100764 "hello" &lt;= "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100765 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100769 data.str_hello >= "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100770 </Original>
771 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100772 "hello" >= "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100773 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100777 data.str_hello &lt; "hellp"
Phil Nash2f7a2962013-09-27 19:01:14 +0100778 </Original>
779 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100780 "hello" &lt; "hellp"
Phil Nash2f7a2962013-09-27 19:01:14 +0100781 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100785 data.str_hello &lt; "zebra"
Phil Nash2f7a2962013-09-27 19:01:14 +0100786 </Original>
787 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100788 "hello" &lt; "zebra"
Phil Nash2f7a2962013-09-27 19:01:14 +0100789 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100793 data.str_hello > "hellm"
Phil Nash2f7a2962013-09-27 19:01:14 +0100794 </Original>
795 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100796 "hello" > "hellm"
Phil Nash2f7a2962013-09-27 19:01:14 +0100797 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100801 data.str_hello > "a"
Phil Nash2f7a2962013-09-27 19:01:14 +0100802 </Original>
803 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100804 "hello" > "a"
Phil Nash2f7a2962013-09-27 19:01:14 +0100805 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100900 data.str_hello > "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100901 </Original>
902 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100903 "hello" > "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100904 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100908 data.str_hello &lt; "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100909 </Original>
910 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100911 "hello" &lt; "hello"
Phil Nash2f7a2962013-09-27 19:01:14 +0100912 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100916 data.str_hello > "hellp"
Phil Nash2f7a2962013-09-27 19:01:14 +0100917 </Original>
918 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100919 "hello" > "hellp"
Phil Nash2f7a2962013-09-27 19:01:14 +0100920 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100924 data.str_hello > "z"
Phil Nash2f7a2962013-09-27 19:01:14 +0100925 </Original>
926 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100927 "hello" > "z"
Phil Nash2f7a2962013-09-27 19:01:14 +0100928 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100932 data.str_hello &lt; "hellm"
Phil Nash2f7a2962013-09-27 19:01:14 +0100933 </Original>
934 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100935 "hello" &lt; "hellm"
Phil Nash2f7a2962013-09-27 19:01:14 +0100936 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100940 data.str_hello &lt; "a"
Phil Nash2f7a2962013-09-27 19:01:14 +0100941 </Original>
942 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100943 "hello" &lt; "a"
Phil Nash2f7a2962013-09-27 19:01:14 +0100944 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100948 data.str_hello >= "z"
Phil Nash2f7a2962013-09-27 19:01:14 +0100949 </Original>
950 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100951 "hello" >= "z"
Phil Nash2f7a2962013-09-27 19:01:14 +0100952 </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>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100956 data.str_hello &lt;= "a"
Phil Nash2f7a2962013-09-27 19:01:14 +0100957 </Original>
958 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +0100959 "hello" &lt;= "a"
Phil Nash2f7a2962013-09-27 19:01:14 +0100960 </Expanded>
961 </Expression>
962 <OverallResult success="false"/>
963 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +0000964 <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned">
Phil Nashc6635a72014-12-30 18:25:27 +0000965 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100966 <Original>
967 i == 1
968 </Original>
969 <Expanded>
970 1 == 1
971 </Expanded>
972 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000973 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100974 <Original>
975 ui == 2
976 </Original>
977 <Expanded>
978 2 == 2
979 </Expanded>
980 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000981 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100982 <Original>
983 l == 3
984 </Original>
985 <Expanded>
986 3 == 3
987 </Expanded>
988 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000989 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100990 <Original>
991 ul == 4
992 </Original>
993 <Expanded>
994 4 == 4
995 </Expanded>
996 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +0000997 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +0100998 <Original>
999 c == 5
1000 </Original>
1001 <Expanded>
1002 5 == 5
1003 </Expanded>
1004 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001005 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001006 <Original>
1007 uc == 6
1008 </Original>
1009 <Expanded>
1010 6 == 6
1011 </Expanded>
1012 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001013 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001014 <Original>
1015 1 == i
1016 </Original>
1017 <Expanded>
1018 1 == 1
1019 </Expanded>
1020 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001021 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001022 <Original>
1023 2 == ui
1024 </Original>
1025 <Expanded>
1026 2 == 2
1027 </Expanded>
1028 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001029 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001030 <Original>
1031 3 == l
1032 </Original>
1033 <Expanded>
1034 3 == 3
1035 </Expanded>
1036 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001037 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001038 <Original>
1039 4 == ul
1040 </Original>
1041 <Expanded>
1042 4 == 4
1043 </Expanded>
1044 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001045 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001046 <Original>
1047 5 == c
1048 </Original>
1049 <Expanded>
1050 5 == 5
1051 </Expanded>
1052 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001053 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001054 <Original>
1055 6 == uc
1056 </Original>
1057 <Expanded>
1058 6 == 6
1059 </Expanded>
1060 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001061 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001062 <Original>
1063 (std::numeric_limits&lt;unsigned long>::max)() > ul
1064 </Original>
1065 <Expanded>
Phil Nash0edebf42015-07-28 18:24:20 +01001066 18446744073709551615 (0x<hex digits>)
1067>
10684
Phil Nash2f7a2962013-09-27 19:01:14 +01001069 </Expanded>
1070 </Expression>
1071 <OverallResult success="true"/>
1072 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001073 <TestCase name="comparisons between int variables">
Phil Nashc6635a72014-12-30 18:25:27 +00001074 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001075 <Original>
1076 long_var == unsigned_char_var
1077 </Original>
1078 <Expanded>
1079 1 == 1
1080 </Expanded>
1081 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001082 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001083 <Original>
1084 long_var == unsigned_short_var
1085 </Original>
1086 <Expanded>
1087 1 == 1
1088 </Expanded>
1089 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001090 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001091 <Original>
1092 long_var == unsigned_int_var
1093 </Original>
1094 <Expanded>
1095 1 == 1
1096 </Expanded>
1097 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001098 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001099 <Original>
1100 long_var == unsigned_long_var
1101 </Original>
1102 <Expanded>
1103 1 == 1
1104 </Expanded>
1105 </Expression>
1106 <OverallResult success="true"/>
1107 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001108 <TestCase name="comparisons between const int variables">
Phil Nashc6635a72014-12-30 18:25:27 +00001109 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001110 <Original>
1111 unsigned_char_var == 1
1112 </Original>
1113 <Expanded>
1114 1 == 1
1115 </Expanded>
1116 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001117 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001118 <Original>
1119 unsigned_short_var == 1
1120 </Original>
1121 <Expanded>
1122 1 == 1
1123 </Expanded>
1124 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001125 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001126 <Original>
1127 unsigned_int_var == 1
1128 </Original>
1129 <Expanded>
1130 1 == 1
1131 </Expanded>
1132 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001133 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001134 <Original>
1135 unsigned_long_var == 1
1136 </Original>
1137 <Expanded>
1138 1 == 1
1139 </Expanded>
1140 </Expression>
1141 <OverallResult success="true"/>
1142 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001143 <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour">
Phil Nashc6635a72014-12-30 18:25:27 +00001144 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001145 <Original>
1146 ( -1 > 2u )
1147 </Original>
1148 <Expanded>
1149 true
1150 </Expanded>
1151 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001152 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001153 <Original>
1154 -1 > 2u
1155 </Original>
1156 <Expanded>
1157 -1 > 2
1158 </Expanded>
1159 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001160 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001161 <Original>
1162 ( 2u &lt; -1 )
1163 </Original>
1164 <Expanded>
1165 true
1166 </Expanded>
1167 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001168 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001169 <Original>
1170 2u &lt; -1
1171 </Original>
1172 <Expanded>
1173 2 &lt; -1
1174 </Expanded>
1175 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001176 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001177 <Original>
1178 ( minInt > 2u )
1179 </Original>
1180 <Expanded>
1181 true
1182 </Expanded>
1183 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001184 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001185 <Original>
1186 minInt > 2u
1187 </Original>
1188 <Expanded>
1189 -2147483648 > 2
1190 </Expanded>
1191 </Expression>
1192 <OverallResult success="true"/>
1193 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001194 <TestCase name="Comparisons between ints where one side is computed">
Phil Nashc6635a72014-12-30 18:25:27 +00001195 <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001196 <Original>
1197 54 == 6*9
1198 </Original>
1199 <Expanded>
1200 54 == 54
1201 </Expanded>
1202 </Expression>
1203 <OverallResult success="true"/>
1204 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001205 <TestCase name="Pointers can be compared to null">
Phil Nashc6635a72014-12-30 18:25:27 +00001206 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001207 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001208 p == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001209 </Original>
1210 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001211 NULL == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001212 </Expanded>
1213 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001214 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001215 <Original>
1216 p == pNULL
1217 </Original>
1218 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001219 NULL == NULL
Phil Nash2f7a2962013-09-27 19:01:14 +01001220 </Expanded>
1221 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001222 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001223 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001224 p != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001225 </Original>
1226 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001227 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001228 </Expanded>
1229 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001230 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001231 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001232 cp != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001233 </Original>
1234 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001235 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001236 </Expanded>
1237 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001238 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001239 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001240 cpc != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001241 </Original>
1242 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001243 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001244 </Expanded>
1245 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001246 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001247 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001248 returnsNull() == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001249 </Original>
1250 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001251 {null string} == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001252 </Expanded>
1253 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001254 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001255 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001256 returnsConstNull() == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001257 </Original>
1258 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001259 {null string} == nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01001260 </Expanded>
1261 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001262 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001263 <Original>
Phil Nash805de432015-07-01 07:33:27 +01001264 nullptr != p
Phil Nash2f7a2962013-09-27 19:01:14 +01001265 </Original>
1266 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01001267 nullptr != 0x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01001268 </Expanded>
1269 </Expression>
1270 <OverallResult success="true"/>
1271 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001272 <TestCase name="'Not' checks that should succeed">
Phil Nashc6635a72014-12-30 18:25:27 +00001273 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001274 <Original>
1275 false == false
1276 </Original>
1277 <Expanded>
1278 false == false
1279 </Expanded>
1280 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001281 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001282 <Original>
1283 true == true
1284 </Original>
1285 <Expanded>
1286 true == true
1287 </Expanded>
1288 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001289 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001290 <Original>
1291 !false
1292 </Original>
1293 <Expanded>
1294 true
1295 </Expanded>
1296 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001297 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001298 <Original>
1299 !false
1300 </Original>
1301 <Expanded>
1302 !false
1303 </Expanded>
1304 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001305 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001306 <Original>
1307 !falseValue
1308 </Original>
1309 <Expanded>
1310 true
1311 </Expanded>
1312 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001313 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001314 <Original>
1315 !falseValue
1316 </Original>
1317 <Expanded>
1318 !false
1319 </Expanded>
1320 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001321 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001322 <Original>
1323 !(1 == 2)
1324 </Original>
1325 <Expanded>
1326 true
1327 </Expanded>
1328 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001329 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001330 <Original>
1331 !1 == 2
1332 </Original>
1333 <Expanded>
1334 !(1 == 2)
1335 </Expanded>
1336 </Expression>
1337 <OverallResult success="true"/>
1338 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001339 <TestCase name="'Not' checks that should fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001340 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001341 <Original>
1342 false != false
1343 </Original>
1344 <Expanded>
1345 false != false
1346 </Expanded>
1347 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001348 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001349 <Original>
1350 true != true
1351 </Original>
1352 <Expanded>
1353 true != true
1354 </Expanded>
1355 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001356 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001357 <Original>
1358 !true
1359 </Original>
1360 <Expanded>
1361 false
1362 </Expanded>
1363 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001364 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001365 <Original>
1366 !true
1367 </Original>
1368 <Expanded>
1369 !true
1370 </Expanded>
1371 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001372 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001373 <Original>
1374 !trueValue
1375 </Original>
1376 <Expanded>
1377 false
1378 </Expanded>
1379 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001380 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001381 <Original>
1382 !trueValue
1383 </Original>
1384 <Expanded>
1385 !true
1386 </Expanded>
1387 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001388 <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001389 <Original>
1390 !(1 == 1)
1391 </Original>
1392 <Expanded>
1393 false
1394 </Expanded>
1395 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001396 <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001397 <Original>
1398 !1 == 1
1399 </Original>
1400 <Expanded>
1401 !(1 == 1)
1402 </Expanded>
1403 </Expression>
1404 <OverallResult success="false"/>
1405 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001406 <TestCase name="When checked exceptions are thrown they can be expected or unexpected">
Phil Nashc6635a72014-12-30 18:25:27 +00001407 <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001408 <Original>
1409 thisThrows()
1410 </Original>
1411 <Expanded>
1412 thisThrows()
1413 </Expanded>
1414 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001415 <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001416 <Original>
1417 thisDoesntThrow()
1418 </Original>
1419 <Expanded>
1420 thisDoesntThrow()
1421 </Expanded>
1422 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001423 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001424 <Original>
1425 thisThrows()
1426 </Original>
1427 <Expanded>
1428 thisThrows()
1429 </Expanded>
1430 </Expression>
1431 <OverallResult success="true"/>
1432 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001433 <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00001434 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001435 <Original>
1436 thisThrows()
1437 </Original>
1438 <Expanded>
1439 thisThrows()
1440 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001441 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001442 expected exception
1443 </Exception>
1444 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001445 <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001446 <Original>
1447 thisDoesntThrow()
1448 </Original>
1449 <Expanded>
1450 thisDoesntThrow()
1451 </Expanded>
1452 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001453 <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001454 <Original>
1455 thisThrows()
1456 </Original>
1457 <Expanded>
1458 thisThrows()
1459 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001460 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001461 expected exception
1462 </Exception>
1463 </Expression>
1464 <OverallResult success="false"/>
1465 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001466 <TestCase name="When unchecked exceptions are thrown directly they are always failures">
Phil Nasha99e75b2014-12-11 23:40:29 +00001467 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001468 unexpected exception
1469 </Exception>
1470 <OverallResult success="false"/>
1471 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001472 <TestCase name="An unchecked exception reports the line of the last assertion">
Phil Nashc6635a72014-12-30 18:25:27 +00001473 <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001474 <Original>
1475 1 == 1
1476 </Original>
1477 <Expanded>
1478 1 == 1
1479 </Expanded>
1480 </Expression>
Phil Nasha99e75b2014-12-11 23:40:29 +00001481 <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001482 <Original>
1483 {Unknown expression after the reported line}
1484 </Original>
1485 <Expanded>
1486 {Unknown expression after the reported line}
1487 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001488 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001489 unexpected exception
1490 </Exception>
1491 </Expression>
1492 <OverallResult success="false"/>
1493 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001494 <TestCase name="When unchecked exceptions are thrown from sections they are always failures">
Phil Nash2f7a2962013-09-27 19:01:14 +01001495 <Section name="section name">
Phil Nasha99e75b2014-12-11 23:40:29 +00001496 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001497 unexpected exception
1498 </Exception>
Phil Nash9c1f9a82014-07-03 08:09:57 +01001499 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01001500 </Section>
1501 <OverallResult success="false"/>
1502 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001503 <TestCase name="When unchecked exceptions are thrown from functions they are always failures">
Phil Nashc6635a72014-12-30 18:25:27 +00001504 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001505 <Original>
1506 thisThrows() == 0
1507 </Original>
1508 <Expanded>
1509 thisThrows() == 0
1510 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001511 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001512 expected exception
1513 </Exception>
1514 </Expression>
1515 <OverallResult success="false"/>
1516 </TestCase>
Phil Nash1bccc032014-04-12 19:20:46 +01001517 <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001518 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash1bccc032014-04-12 19:20:46 +01001519 <Original>
1520 thisThrows() == 0
1521 </Original>
1522 <Expanded>
1523 thisThrows() == 0
1524 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001525 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash1bccc032014-04-12 19:20:46 +01001526 expected exception
1527 </Exception>
1528 </Expression>
1529 <OverallResult success="false"/>
1530 </TestCase>
1531 <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail">
Phil Nashc6635a72014-12-30 18:25:27 +00001532 <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nasha176b932014-04-12 19:07:24 +01001533 <Original>
1534 thisThrows() == 0
1535 </Original>
1536 <Expanded>
1537 thisThrows() == 0
1538 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001539 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nasha176b932014-04-12 19:07:24 +01001540 expected exception
1541 </Exception>
1542 </Expression>
1543 <OverallResult success="false"/>
1544 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001545 <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test">
Phil Nash471bd252015-11-03 07:33:43 +00001546 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01001547 </TestCase>
Phil Nasha49f0882015-11-18 08:39:21 +00001548 <TestCase name="Non-std exceptions can be translated">
Phil Nasha99e75b2014-12-11 23:40:29 +00001549 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001550 custom exception
1551 </Exception>
1552 <OverallResult success="false"/>
1553 </TestCase>
Phil Nasha49f0882015-11-18 08:39:21 +00001554 <TestCase name="Custom std-exceptions can be custom translated">
1555 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
1556 custom std exception
1557 </Exception>
1558 <OverallResult success="false"/>
1559 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001560 <TestCase name="Custom exceptions can be translated when testing for nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00001561 <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001562 <Original>
1563 throwCustom()
1564 </Original>
1565 <Expanded>
1566 throwCustom()
1567 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001568 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001569 custom exception - not std
1570 </Exception>
1571 </Expression>
1572 <OverallResult success="false"/>
1573 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001574 <TestCase name="Custom exceptions can be translated when testing for throwing as something else">
Phil Nashc6635a72014-12-30 18:25:27 +00001575 <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001576 <Original>
1577 throwCustom()
1578 </Original>
1579 <Expanded>
1580 throwCustom()
1581 </Expanded>
Phil Nasha99e75b2014-12-11 23:40:29 +00001582 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001583 custom exception - not std
1584 </Exception>
1585 </Expression>
1586 <OverallResult success="false"/>
1587 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001588 <TestCase name="Unexpected exceptions can be translated">
Phil Nasha99e75b2014-12-11 23:40:29 +00001589 <Exception filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001590 3.14
1591 </Exception>
1592 <OverallResult success="false"/>
1593 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001594 <TestCase name="NotImplemented exception">
Phil Nashc6635a72014-12-30 18:25:27 +00001595 <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001596 <Original>
1597 thisFunctionNotImplemented( 7 )
1598 </Original>
1599 <Expanded>
1600 thisFunctionNotImplemented( 7 )
1601 </Expanded>
1602 </Expression>
1603 <OverallResult success="true"/>
1604 </TestCase>
Phil Nash85de7432015-07-13 06:34:41 +01001605 <TestCase name="Exception messages can be tested for">
Phil Nash2104ca22015-07-13 15:03:04 +01001606 <Section name="exact match">
1607 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1608 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001609 thisThrows(), "expected exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001610 </Original>
1611 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001612 thisThrows(), "expected exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001613 </Expanded>
1614 </Expression>
1615 <OverallResults successes="1" failures="0" expectedFailures="0"/>
1616 </Section>
1617 <Section name="different case">
1618 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1619 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001620 thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001621 </Original>
1622 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001623 thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001624 </Expanded>
1625 </Expression>
1626 <OverallResults successes="1" failures="0" expectedFailures="0"/>
1627 </Section>
1628 <Section name="wildcarded">
1629 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1630 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001631 thisThrows(), StartsWith( "expected" )
Phil Nash2104ca22015-07-13 15:03:04 +01001632 </Original>
1633 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001634 thisThrows(), StartsWith( "expected" )
Phil Nash2104ca22015-07-13 15:03:04 +01001635 </Expanded>
1636 </Expression>
1637 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1638 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001639 thisThrows(), EndsWith( "exception" )
Phil Nash2104ca22015-07-13 15:03:04 +01001640 </Original>
1641 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001642 thisThrows(), EndsWith( "exception" )
Phil Nash2104ca22015-07-13 15:03:04 +01001643 </Expanded>
1644 </Expression>
1645 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1646 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001647 thisThrows(), Contains( "except" )
Phil Nash2104ca22015-07-13 15:03:04 +01001648 </Original>
1649 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001650 thisThrows(), Contains( "except" )
Phil Nash2104ca22015-07-13 15:03:04 +01001651 </Expanded>
1652 </Expression>
1653 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1654 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001655 thisThrows(), Contains( "exCept", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001656 </Original>
1657 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001658 thisThrows(), Contains( "exCept", Catch::CaseSensitive::No )
Phil Nash2104ca22015-07-13 15:03:04 +01001659 </Expanded>
1660 </Expression>
1661 <OverallResults successes="4" failures="0" expectedFailures="0"/>
1662 </Section>
1663 <OverallResult success="true"/>
1664 </TestCase>
1665 <TestCase name="Mismatching exception messages failing the test">
1666 <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1667 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001668 thisThrows(), "expected exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001669 </Original>
1670 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001671 thisThrows(), "expected exception"
Phil Nash2104ca22015-07-13 15:03:04 +01001672 </Expanded>
1673 </Expression>
Phil Nash85de7432015-07-13 06:34:41 +01001674 <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
1675 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01001676 thisThrows(), "should fail"
Phil Nash85de7432015-07-13 06:34:41 +01001677 </Original>
1678 <Expanded>
1679 expected exception
1680 </Expanded>
1681 </Expression>
1682 <OverallResult success="false"/>
1683 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00001684 <TestCase name="Generators over two ranges">
Phil Nashc6635a72014-12-30 18:25:27 +00001685 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001686 <Original>
1687 multiply( i, 2 ) == i*2
1688 </Original>
1689 <Expanded>
1690 2 == 2
1691 </Expanded>
1692 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001693 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001694 <Original>
1695 multiply( j, 2 ) == j*2
1696 </Original>
1697 <Expanded>
1698 200 == 200
1699 </Expanded>
1700 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001701 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001702 <Original>
1703 multiply( i, 2 ) == i*2
1704 </Original>
1705 <Expanded>
1706 4 == 4
1707 </Expanded>
1708 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001709 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001710 <Original>
1711 multiply( j, 2 ) == j*2
1712 </Original>
1713 <Expanded>
1714 200 == 200
1715 </Expanded>
1716 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001717 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001718 <Original>
1719 multiply( i, 2 ) == i*2
1720 </Original>
1721 <Expanded>
1722 6 == 6
1723 </Expanded>
1724 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001725 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001726 <Original>
1727 multiply( j, 2 ) == j*2
1728 </Original>
1729 <Expanded>
1730 200 == 200
1731 </Expanded>
1732 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001733 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001734 <Original>
1735 multiply( i, 2 ) == i*2
1736 </Original>
1737 <Expanded>
1738 8 == 8
1739 </Expanded>
1740 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001741 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001742 <Original>
1743 multiply( j, 2 ) == j*2
1744 </Original>
1745 <Expanded>
1746 200 == 200
1747 </Expanded>
1748 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001749 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001750 <Original>
1751 multiply( i, 2 ) == i*2
1752 </Original>
1753 <Expanded>
1754 10 == 10
1755 </Expanded>
1756 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001757 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001758 <Original>
1759 multiply( j, 2 ) == j*2
1760 </Original>
1761 <Expanded>
1762 200 == 200
1763 </Expanded>
1764 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001765 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001766 <Original>
1767 multiply( i, 2 ) == i*2
1768 </Original>
1769 <Expanded>
1770 30 == 30
1771 </Expanded>
1772 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001773 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001774 <Original>
1775 multiply( j, 2 ) == j*2
1776 </Original>
1777 <Expanded>
1778 200 == 200
1779 </Expanded>
1780 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001781 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001782 <Original>
1783 multiply( i, 2 ) == i*2
1784 </Original>
1785 <Expanded>
1786 40 == 40
1787 </Expanded>
1788 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001789 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001790 <Original>
1791 multiply( j, 2 ) == j*2
1792 </Original>
1793 <Expanded>
1794 200 == 200
1795 </Expanded>
1796 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001797 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001798 <Original>
1799 multiply( i, 2 ) == i*2
1800 </Original>
1801 <Expanded>
1802 42 == 42
1803 </Expanded>
1804 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001805 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001806 <Original>
1807 multiply( j, 2 ) == j*2
1808 </Original>
1809 <Expanded>
1810 200 == 200
1811 </Expanded>
1812 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001813 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001814 <Original>
1815 multiply( i, 2 ) == i*2
1816 </Original>
1817 <Expanded>
1818 72 == 72
1819 </Expanded>
1820 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001821 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001822 <Original>
1823 multiply( j, 2 ) == j*2
1824 </Original>
1825 <Expanded>
1826 200 == 200
1827 </Expanded>
1828 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001829 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001830 <Original>
1831 multiply( i, 2 ) == i*2
1832 </Original>
1833 <Expanded>
1834 2 == 2
1835 </Expanded>
1836 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001837 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001838 <Original>
1839 multiply( j, 2 ) == j*2
1840 </Original>
1841 <Expanded>
1842 202 == 202
1843 </Expanded>
1844 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001845 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001846 <Original>
1847 multiply( i, 2 ) == i*2
1848 </Original>
1849 <Expanded>
1850 4 == 4
1851 </Expanded>
1852 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001853 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001854 <Original>
1855 multiply( j, 2 ) == j*2
1856 </Original>
1857 <Expanded>
1858 202 == 202
1859 </Expanded>
1860 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001861 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001862 <Original>
1863 multiply( i, 2 ) == i*2
1864 </Original>
1865 <Expanded>
1866 6 == 6
1867 </Expanded>
1868 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001869 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001870 <Original>
1871 multiply( j, 2 ) == j*2
1872 </Original>
1873 <Expanded>
1874 202 == 202
1875 </Expanded>
1876 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001877 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001878 <Original>
1879 multiply( i, 2 ) == i*2
1880 </Original>
1881 <Expanded>
1882 8 == 8
1883 </Expanded>
1884 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001885 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001886 <Original>
1887 multiply( j, 2 ) == j*2
1888 </Original>
1889 <Expanded>
1890 202 == 202
1891 </Expanded>
1892 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001893 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001894 <Original>
1895 multiply( i, 2 ) == i*2
1896 </Original>
1897 <Expanded>
1898 10 == 10
1899 </Expanded>
1900 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001901 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001902 <Original>
1903 multiply( j, 2 ) == j*2
1904 </Original>
1905 <Expanded>
1906 202 == 202
1907 </Expanded>
1908 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001909 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001910 <Original>
1911 multiply( i, 2 ) == i*2
1912 </Original>
1913 <Expanded>
1914 30 == 30
1915 </Expanded>
1916 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001917 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001918 <Original>
1919 multiply( j, 2 ) == j*2
1920 </Original>
1921 <Expanded>
1922 202 == 202
1923 </Expanded>
1924 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001925 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001926 <Original>
1927 multiply( i, 2 ) == i*2
1928 </Original>
1929 <Expanded>
1930 40 == 40
1931 </Expanded>
1932 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001933 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001934 <Original>
1935 multiply( j, 2 ) == j*2
1936 </Original>
1937 <Expanded>
1938 202 == 202
1939 </Expanded>
1940 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001941 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001942 <Original>
1943 multiply( i, 2 ) == i*2
1944 </Original>
1945 <Expanded>
1946 42 == 42
1947 </Expanded>
1948 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001949 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001950 <Original>
1951 multiply( j, 2 ) == j*2
1952 </Original>
1953 <Expanded>
1954 202 == 202
1955 </Expanded>
1956 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001957 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001958 <Original>
1959 multiply( i, 2 ) == i*2
1960 </Original>
1961 <Expanded>
1962 72 == 72
1963 </Expanded>
1964 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001965 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001966 <Original>
1967 multiply( j, 2 ) == j*2
1968 </Original>
1969 <Expanded>
1970 202 == 202
1971 </Expanded>
1972 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001973 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001974 <Original>
1975 multiply( i, 2 ) == i*2
1976 </Original>
1977 <Expanded>
1978 2 == 2
1979 </Expanded>
1980 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001981 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001982 <Original>
1983 multiply( j, 2 ) == j*2
1984 </Original>
1985 <Expanded>
1986 204 == 204
1987 </Expanded>
1988 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001989 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001990 <Original>
1991 multiply( i, 2 ) == i*2
1992 </Original>
1993 <Expanded>
1994 4 == 4
1995 </Expanded>
1996 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00001997 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01001998 <Original>
1999 multiply( j, 2 ) == j*2
2000 </Original>
2001 <Expanded>
2002 204 == 204
2003 </Expanded>
2004 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002005 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002006 <Original>
2007 multiply( i, 2 ) == i*2
2008 </Original>
2009 <Expanded>
2010 6 == 6
2011 </Expanded>
2012 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002013 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002014 <Original>
2015 multiply( j, 2 ) == j*2
2016 </Original>
2017 <Expanded>
2018 204 == 204
2019 </Expanded>
2020 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002021 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002022 <Original>
2023 multiply( i, 2 ) == i*2
2024 </Original>
2025 <Expanded>
2026 8 == 8
2027 </Expanded>
2028 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002029 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002030 <Original>
2031 multiply( j, 2 ) == j*2
2032 </Original>
2033 <Expanded>
2034 204 == 204
2035 </Expanded>
2036 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002037 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002038 <Original>
2039 multiply( i, 2 ) == i*2
2040 </Original>
2041 <Expanded>
2042 10 == 10
2043 </Expanded>
2044 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002045 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002046 <Original>
2047 multiply( j, 2 ) == j*2
2048 </Original>
2049 <Expanded>
2050 204 == 204
2051 </Expanded>
2052 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002053 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002054 <Original>
2055 multiply( i, 2 ) == i*2
2056 </Original>
2057 <Expanded>
2058 30 == 30
2059 </Expanded>
2060 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002061 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002062 <Original>
2063 multiply( j, 2 ) == j*2
2064 </Original>
2065 <Expanded>
2066 204 == 204
2067 </Expanded>
2068 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002069 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002070 <Original>
2071 multiply( i, 2 ) == i*2
2072 </Original>
2073 <Expanded>
2074 40 == 40
2075 </Expanded>
2076 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002077 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002078 <Original>
2079 multiply( j, 2 ) == j*2
2080 </Original>
2081 <Expanded>
2082 204 == 204
2083 </Expanded>
2084 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002085 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002086 <Original>
2087 multiply( i, 2 ) == i*2
2088 </Original>
2089 <Expanded>
2090 42 == 42
2091 </Expanded>
2092 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002093 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002094 <Original>
2095 multiply( j, 2 ) == j*2
2096 </Original>
2097 <Expanded>
2098 204 == 204
2099 </Expanded>
2100 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002101 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002102 <Original>
2103 multiply( i, 2 ) == i*2
2104 </Original>
2105 <Expanded>
2106 72 == 72
2107 </Expanded>
2108 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002109 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002110 <Original>
2111 multiply( j, 2 ) == j*2
2112 </Original>
2113 <Expanded>
2114 204 == 204
2115 </Expanded>
2116 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002117 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002118 <Original>
2119 multiply( i, 2 ) == i*2
2120 </Original>
2121 <Expanded>
2122 2 == 2
2123 </Expanded>
2124 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002125 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002126 <Original>
2127 multiply( j, 2 ) == j*2
2128 </Original>
2129 <Expanded>
2130 206 == 206
2131 </Expanded>
2132 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002133 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002134 <Original>
2135 multiply( i, 2 ) == i*2
2136 </Original>
2137 <Expanded>
2138 4 == 4
2139 </Expanded>
2140 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002141 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002142 <Original>
2143 multiply( j, 2 ) == j*2
2144 </Original>
2145 <Expanded>
2146 206 == 206
2147 </Expanded>
2148 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002149 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002150 <Original>
2151 multiply( i, 2 ) == i*2
2152 </Original>
2153 <Expanded>
2154 6 == 6
2155 </Expanded>
2156 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002157 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002158 <Original>
2159 multiply( j, 2 ) == j*2
2160 </Original>
2161 <Expanded>
2162 206 == 206
2163 </Expanded>
2164 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002165 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002166 <Original>
2167 multiply( i, 2 ) == i*2
2168 </Original>
2169 <Expanded>
2170 8 == 8
2171 </Expanded>
2172 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002173 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002174 <Original>
2175 multiply( j, 2 ) == j*2
2176 </Original>
2177 <Expanded>
2178 206 == 206
2179 </Expanded>
2180 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002181 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002182 <Original>
2183 multiply( i, 2 ) == i*2
2184 </Original>
2185 <Expanded>
2186 10 == 10
2187 </Expanded>
2188 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002189 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002190 <Original>
2191 multiply( j, 2 ) == j*2
2192 </Original>
2193 <Expanded>
2194 206 == 206
2195 </Expanded>
2196 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002197 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002198 <Original>
2199 multiply( i, 2 ) == i*2
2200 </Original>
2201 <Expanded>
2202 30 == 30
2203 </Expanded>
2204 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002205 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002206 <Original>
2207 multiply( j, 2 ) == j*2
2208 </Original>
2209 <Expanded>
2210 206 == 206
2211 </Expanded>
2212 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002213 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002214 <Original>
2215 multiply( i, 2 ) == i*2
2216 </Original>
2217 <Expanded>
2218 40 == 40
2219 </Expanded>
2220 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002221 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002222 <Original>
2223 multiply( j, 2 ) == j*2
2224 </Original>
2225 <Expanded>
2226 206 == 206
2227 </Expanded>
2228 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002229 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002230 <Original>
2231 multiply( i, 2 ) == i*2
2232 </Original>
2233 <Expanded>
2234 42 == 42
2235 </Expanded>
2236 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002237 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002238 <Original>
2239 multiply( j, 2 ) == j*2
2240 </Original>
2241 <Expanded>
2242 206 == 206
2243 </Expanded>
2244 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002245 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002246 <Original>
2247 multiply( i, 2 ) == i*2
2248 </Original>
2249 <Expanded>
2250 72 == 72
2251 </Expanded>
2252 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002253 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002254 <Original>
2255 multiply( j, 2 ) == j*2
2256 </Original>
2257 <Expanded>
2258 206 == 206
2259 </Expanded>
2260 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002261 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002262 <Original>
2263 multiply( i, 2 ) == i*2
2264 </Original>
2265 <Expanded>
2266 2 == 2
2267 </Expanded>
2268 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002269 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002270 <Original>
2271 multiply( j, 2 ) == j*2
2272 </Original>
2273 <Expanded>
2274 208 == 208
2275 </Expanded>
2276 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002277 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002278 <Original>
2279 multiply( i, 2 ) == i*2
2280 </Original>
2281 <Expanded>
2282 4 == 4
2283 </Expanded>
2284 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002285 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002286 <Original>
2287 multiply( j, 2 ) == j*2
2288 </Original>
2289 <Expanded>
2290 208 == 208
2291 </Expanded>
2292 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002293 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002294 <Original>
2295 multiply( i, 2 ) == i*2
2296 </Original>
2297 <Expanded>
2298 6 == 6
2299 </Expanded>
2300 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002301 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002302 <Original>
2303 multiply( j, 2 ) == j*2
2304 </Original>
2305 <Expanded>
2306 208 == 208
2307 </Expanded>
2308 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002309 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002310 <Original>
2311 multiply( i, 2 ) == i*2
2312 </Original>
2313 <Expanded>
2314 8 == 8
2315 </Expanded>
2316 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002317 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002318 <Original>
2319 multiply( j, 2 ) == j*2
2320 </Original>
2321 <Expanded>
2322 208 == 208
2323 </Expanded>
2324 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002325 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002326 <Original>
2327 multiply( i, 2 ) == i*2
2328 </Original>
2329 <Expanded>
2330 10 == 10
2331 </Expanded>
2332 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002333 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002334 <Original>
2335 multiply( j, 2 ) == j*2
2336 </Original>
2337 <Expanded>
2338 208 == 208
2339 </Expanded>
2340 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002341 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002342 <Original>
2343 multiply( i, 2 ) == i*2
2344 </Original>
2345 <Expanded>
2346 30 == 30
2347 </Expanded>
2348 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002349 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002350 <Original>
2351 multiply( j, 2 ) == j*2
2352 </Original>
2353 <Expanded>
2354 208 == 208
2355 </Expanded>
2356 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002357 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002358 <Original>
2359 multiply( i, 2 ) == i*2
2360 </Original>
2361 <Expanded>
2362 40 == 40
2363 </Expanded>
2364 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002365 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002366 <Original>
2367 multiply( j, 2 ) == j*2
2368 </Original>
2369 <Expanded>
2370 208 == 208
2371 </Expanded>
2372 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002373 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002374 <Original>
2375 multiply( i, 2 ) == i*2
2376 </Original>
2377 <Expanded>
2378 42 == 42
2379 </Expanded>
2380 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002381 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002382 <Original>
2383 multiply( j, 2 ) == j*2
2384 </Original>
2385 <Expanded>
2386 208 == 208
2387 </Expanded>
2388 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002389 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002390 <Original>
2391 multiply( i, 2 ) == i*2
2392 </Original>
2393 <Expanded>
2394 72 == 72
2395 </Expanded>
2396 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002397 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002398 <Original>
2399 multiply( j, 2 ) == j*2
2400 </Original>
2401 <Expanded>
2402 208 == 208
2403 </Expanded>
2404 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002405 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002406 <Original>
2407 multiply( i, 2 ) == i*2
2408 </Original>
2409 <Expanded>
2410 2 == 2
2411 </Expanded>
2412 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002413 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002414 <Original>
2415 multiply( j, 2 ) == j*2
2416 </Original>
2417 <Expanded>
2418 210 == 210
2419 </Expanded>
2420 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002421 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002422 <Original>
2423 multiply( i, 2 ) == i*2
2424 </Original>
2425 <Expanded>
2426 4 == 4
2427 </Expanded>
2428 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002429 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002430 <Original>
2431 multiply( j, 2 ) == j*2
2432 </Original>
2433 <Expanded>
2434 210 == 210
2435 </Expanded>
2436 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002437 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002438 <Original>
2439 multiply( i, 2 ) == i*2
2440 </Original>
2441 <Expanded>
2442 6 == 6
2443 </Expanded>
2444 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002445 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002446 <Original>
2447 multiply( j, 2 ) == j*2
2448 </Original>
2449 <Expanded>
2450 210 == 210
2451 </Expanded>
2452 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002453 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002454 <Original>
2455 multiply( i, 2 ) == i*2
2456 </Original>
2457 <Expanded>
2458 8 == 8
2459 </Expanded>
2460 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002461 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002462 <Original>
2463 multiply( j, 2 ) == j*2
2464 </Original>
2465 <Expanded>
2466 210 == 210
2467 </Expanded>
2468 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002469 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002470 <Original>
2471 multiply( i, 2 ) == i*2
2472 </Original>
2473 <Expanded>
2474 10 == 10
2475 </Expanded>
2476 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002477 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002478 <Original>
2479 multiply( j, 2 ) == j*2
2480 </Original>
2481 <Expanded>
2482 210 == 210
2483 </Expanded>
2484 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002485 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002486 <Original>
2487 multiply( i, 2 ) == i*2
2488 </Original>
2489 <Expanded>
2490 30 == 30
2491 </Expanded>
2492 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002493 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002494 <Original>
2495 multiply( j, 2 ) == j*2
2496 </Original>
2497 <Expanded>
2498 210 == 210
2499 </Expanded>
2500 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002501 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002502 <Original>
2503 multiply( i, 2 ) == i*2
2504 </Original>
2505 <Expanded>
2506 40 == 40
2507 </Expanded>
2508 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002509 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002510 <Original>
2511 multiply( j, 2 ) == j*2
2512 </Original>
2513 <Expanded>
2514 210 == 210
2515 </Expanded>
2516 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002517 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002518 <Original>
2519 multiply( i, 2 ) == i*2
2520 </Original>
2521 <Expanded>
2522 42 == 42
2523 </Expanded>
2524 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002525 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002526 <Original>
2527 multiply( j, 2 ) == j*2
2528 </Original>
2529 <Expanded>
2530 210 == 210
2531 </Expanded>
2532 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002533 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002534 <Original>
2535 multiply( i, 2 ) == i*2
2536 </Original>
2537 <Expanded>
2538 72 == 72
2539 </Expanded>
2540 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002541 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002542 <Original>
2543 multiply( j, 2 ) == j*2
2544 </Original>
2545 <Expanded>
2546 210 == 210
2547 </Expanded>
2548 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002549 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002550 <Original>
2551 multiply( i, 2 ) == i*2
2552 </Original>
2553 <Expanded>
2554 2 == 2
2555 </Expanded>
2556 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002557 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002558 <Original>
2559 multiply( j, 2 ) == j*2
2560 </Original>
2561 <Expanded>
2562 212 == 212
2563 </Expanded>
2564 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002565 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002566 <Original>
2567 multiply( i, 2 ) == i*2
2568 </Original>
2569 <Expanded>
2570 4 == 4
2571 </Expanded>
2572 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002573 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002574 <Original>
2575 multiply( j, 2 ) == j*2
2576 </Original>
2577 <Expanded>
2578 212 == 212
2579 </Expanded>
2580 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002581 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002582 <Original>
2583 multiply( i, 2 ) == i*2
2584 </Original>
2585 <Expanded>
2586 6 == 6
2587 </Expanded>
2588 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002589 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002590 <Original>
2591 multiply( j, 2 ) == j*2
2592 </Original>
2593 <Expanded>
2594 212 == 212
2595 </Expanded>
2596 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002597 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002598 <Original>
2599 multiply( i, 2 ) == i*2
2600 </Original>
2601 <Expanded>
2602 8 == 8
2603 </Expanded>
2604 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002605 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002606 <Original>
2607 multiply( j, 2 ) == j*2
2608 </Original>
2609 <Expanded>
2610 212 == 212
2611 </Expanded>
2612 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002613 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002614 <Original>
2615 multiply( i, 2 ) == i*2
2616 </Original>
2617 <Expanded>
2618 10 == 10
2619 </Expanded>
2620 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002621 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002622 <Original>
2623 multiply( j, 2 ) == j*2
2624 </Original>
2625 <Expanded>
2626 212 == 212
2627 </Expanded>
2628 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002629 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002630 <Original>
2631 multiply( i, 2 ) == i*2
2632 </Original>
2633 <Expanded>
2634 30 == 30
2635 </Expanded>
2636 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002637 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002638 <Original>
2639 multiply( j, 2 ) == j*2
2640 </Original>
2641 <Expanded>
2642 212 == 212
2643 </Expanded>
2644 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002645 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002646 <Original>
2647 multiply( i, 2 ) == i*2
2648 </Original>
2649 <Expanded>
2650 40 == 40
2651 </Expanded>
2652 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002653 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002654 <Original>
2655 multiply( j, 2 ) == j*2
2656 </Original>
2657 <Expanded>
2658 212 == 212
2659 </Expanded>
2660 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002661 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002662 <Original>
2663 multiply( i, 2 ) == i*2
2664 </Original>
2665 <Expanded>
2666 42 == 42
2667 </Expanded>
2668 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002669 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002670 <Original>
2671 multiply( j, 2 ) == j*2
2672 </Original>
2673 <Expanded>
2674 212 == 212
2675 </Expanded>
2676 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002677 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002678 <Original>
2679 multiply( i, 2 ) == i*2
2680 </Original>
2681 <Expanded>
2682 72 == 72
2683 </Expanded>
2684 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002685 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002686 <Original>
2687 multiply( j, 2 ) == j*2
2688 </Original>
2689 <Expanded>
2690 212 == 212
2691 </Expanded>
2692 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002693 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002694 <Original>
2695 multiply( i, 2 ) == i*2
2696 </Original>
2697 <Expanded>
2698 2 == 2
2699 </Expanded>
2700 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002701 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002702 <Original>
2703 multiply( j, 2 ) == j*2
2704 </Original>
2705 <Expanded>
2706 214 == 214
2707 </Expanded>
2708 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002709 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002710 <Original>
2711 multiply( i, 2 ) == i*2
2712 </Original>
2713 <Expanded>
2714 4 == 4
2715 </Expanded>
2716 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002717 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002718 <Original>
2719 multiply( j, 2 ) == j*2
2720 </Original>
2721 <Expanded>
2722 214 == 214
2723 </Expanded>
2724 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002725 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002726 <Original>
2727 multiply( i, 2 ) == i*2
2728 </Original>
2729 <Expanded>
2730 6 == 6
2731 </Expanded>
2732 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002733 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002734 <Original>
2735 multiply( j, 2 ) == j*2
2736 </Original>
2737 <Expanded>
2738 214 == 214
2739 </Expanded>
2740 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002741 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002742 <Original>
2743 multiply( i, 2 ) == i*2
2744 </Original>
2745 <Expanded>
2746 8 == 8
2747 </Expanded>
2748 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002749 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002750 <Original>
2751 multiply( j, 2 ) == j*2
2752 </Original>
2753 <Expanded>
2754 214 == 214
2755 </Expanded>
2756 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002757 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002758 <Original>
2759 multiply( i, 2 ) == i*2
2760 </Original>
2761 <Expanded>
2762 10 == 10
2763 </Expanded>
2764 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002765 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002766 <Original>
2767 multiply( j, 2 ) == j*2
2768 </Original>
2769 <Expanded>
2770 214 == 214
2771 </Expanded>
2772 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002773 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002774 <Original>
2775 multiply( i, 2 ) == i*2
2776 </Original>
2777 <Expanded>
2778 30 == 30
2779 </Expanded>
2780 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002781 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002782 <Original>
2783 multiply( j, 2 ) == j*2
2784 </Original>
2785 <Expanded>
2786 214 == 214
2787 </Expanded>
2788 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002789 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002790 <Original>
2791 multiply( i, 2 ) == i*2
2792 </Original>
2793 <Expanded>
2794 40 == 40
2795 </Expanded>
2796 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002797 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002798 <Original>
2799 multiply( j, 2 ) == j*2
2800 </Original>
2801 <Expanded>
2802 214 == 214
2803 </Expanded>
2804 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002805 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002806 <Original>
2807 multiply( i, 2 ) == i*2
2808 </Original>
2809 <Expanded>
2810 42 == 42
2811 </Expanded>
2812 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002813 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002814 <Original>
2815 multiply( j, 2 ) == j*2
2816 </Original>
2817 <Expanded>
2818 214 == 214
2819 </Expanded>
2820 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002821 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002822 <Original>
2823 multiply( i, 2 ) == i*2
2824 </Original>
2825 <Expanded>
2826 72 == 72
2827 </Expanded>
2828 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002829 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002830 <Original>
2831 multiply( j, 2 ) == j*2
2832 </Original>
2833 <Expanded>
2834 214 == 214
2835 </Expanded>
2836 </Expression>
2837 <OverallResult success="true"/>
2838 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002839 <TestCase name="Generator over a range of pairs">
Phil Nashc6635a72014-12-30 18:25:27 +00002840 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002841 <Original>
2842 i->first == i->second-1
2843 </Original>
2844 <Expanded>
2845 0 == 0
2846 </Expanded>
2847 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002848 <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002849 <Original>
2850 i->first == i->second-1
2851 </Original>
2852 <Expanded>
2853 2 == 2
2854 </Expanded>
2855 </Expression>
2856 <OverallResult success="true"/>
2857 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002858 <TestCase name="INFO and WARN do not abort tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01002859 <Info>
2860 this is a message
2861 </Info>
2862 <Warning>
2863 this is a warning
2864 </Warning>
Phil Nash471bd252015-11-03 07:33:43 +00002865 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002866 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002867 <TestCase name="SUCCEED counts as a test pass">
Phil Nash2f7a2962013-09-27 19:01:14 +01002868 <OverallResult success="true"/>
2869 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002870 <TestCase name="INFO gets logged on failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01002871 <Info>
2872 this message should be logged
2873 </Info>
2874 <Info>
2875 so should this
2876 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002877 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002878 <Original>
2879 a == 1
2880 </Original>
2881 <Expanded>
2882 2 == 1
2883 </Expanded>
2884 </Expression>
2885 <OverallResult success="false"/>
2886 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002887 <TestCase name="INFO gets logged on failure, even if captured before successful assertions">
Phil Nashc6635a72014-12-30 18:25:27 +00002888 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002889 <Original>
2890 a == 2
2891 </Original>
2892 <Expanded>
2893 2 == 2
2894 </Expanded>
2895 </Expression>
2896 <Info>
2897 this message should be logged
2898 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002899 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002900 <Original>
2901 a == 1
2902 </Original>
2903 <Expanded>
2904 2 == 1
2905 </Expanded>
2906 </Expression>
2907 <Info>
2908 and this, but later
2909 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00002910 <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002911 <Original>
2912 a == 0
2913 </Original>
2914 <Expanded>
2915 2 == 0
2916 </Expanded>
2917 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002918 <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002919 <Original>
2920 a == 2
2921 </Original>
2922 <Expanded>
2923 2 == 2
2924 </Expanded>
2925 </Expression>
2926 <OverallResult success="false"/>
2927 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002928 <TestCase name="FAIL aborts the test">
Phil Nash2f7a2962013-09-27 19:01:14 +01002929 <Failure>
2930 This is a failure
2931 </Failure>
2932 <OverallResult success="false"/>
2933 </TestCase>
Phil Nash859760a2013-12-14 14:34:05 +00002934 <TestCase name="FAIL does not require an argument">
2935 <Failure/>
2936 <OverallResult success="false"/>
2937 </TestCase>
Phil Nash557b3bd2013-12-14 23:16:03 +00002938 <TestCase name="SUCCESS does not require an argument">
2939 <OverallResult success="true"/>
2940 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002941 <TestCase name="Output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002942 <Section name="one">
2943 <Failure>
2944 Message from section one
2945 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002946 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002947 </Section>
2948 <Section name="two">
2949 <Failure>
2950 Message from section two
2951 </Failure>
Phil Nash9c1f9a82014-07-03 08:09:57 +01002952 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002953 </Section>
2954 <OverallResult success="false"/>
2955 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002956 <TestCase name="Standard output from all sections is reported">
Phil Nash2f7a2962013-09-27 19:01:14 +01002957 <Section name="one">
Phil Nashf5642be2015-11-03 17:05:08 +00002958 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002959 </Section>
2960 <Section name="two">
Phil Nashf5642be2015-11-03 17:05:08 +00002961 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002962 </Section>
Phil Nashf5642be2015-11-03 17:05:08 +00002963 <OverallResult success="false"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01002964 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00002965 <TestCase name="SCOPED_INFO is reset for each loop">
Phil Nashc6635a72014-12-30 18:25:27 +00002966 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002967 <Original>
2968 i &lt; 10
2969 </Original>
2970 <Expanded>
2971 0 &lt; 10
2972 </Expanded>
2973 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002974 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002975 <Original>
2976 i &lt; 10
2977 </Original>
2978 <Expanded>
2979 1 &lt; 10
2980 </Expanded>
2981 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002982 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002983 <Original>
2984 i &lt; 10
2985 </Original>
2986 <Expanded>
2987 2 &lt; 10
2988 </Expanded>
2989 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002990 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002991 <Original>
2992 i &lt; 10
2993 </Original>
2994 <Expanded>
2995 3 &lt; 10
2996 </Expanded>
2997 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00002998 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01002999 <Original>
3000 i &lt; 10
3001 </Original>
3002 <Expanded>
3003 4 &lt; 10
3004 </Expanded>
3005 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003006 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003007 <Original>
3008 i &lt; 10
3009 </Original>
3010 <Expanded>
3011 5 &lt; 10
3012 </Expanded>
3013 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003014 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003015 <Original>
3016 i &lt; 10
3017 </Original>
3018 <Expanded>
3019 6 &lt; 10
3020 </Expanded>
3021 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003022 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003023 <Original>
3024 i &lt; 10
3025 </Original>
3026 <Expanded>
3027 7 &lt; 10
3028 </Expanded>
3029 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003030 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003031 <Original>
3032 i &lt; 10
3033 </Original>
3034 <Expanded>
3035 8 &lt; 10
3036 </Expanded>
3037 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003038 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003039 <Original>
3040 i &lt; 10
3041 </Original>
3042 <Expanded>
3043 9 &lt; 10
3044 </Expanded>
3045 </Expression>
3046 <Info>
3047 current counter 10
3048 </Info>
3049 <Info>
3050 i := 10
3051 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003052 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003053 <Original>
3054 i &lt; 10
3055 </Original>
3056 <Expanded>
3057 10 &lt; 10
3058 </Expanded>
3059 </Expression>
3060 <OverallResult success="false"/>
3061 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003062 <TestCase name="The NO_FAIL macro reports a failure but does not fail the test">
Phil Nashc6635a72014-12-30 18:25:27 +00003063 <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003064 <Original>
3065 1 == 2
3066 </Original>
3067 <Expanded>
3068 1 == 2
3069 </Expanded>
3070 </Expression>
Phil Nash471bd252015-11-03 07:33:43 +00003071 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003072 </TestCase>
3073 <TestCase name="just info">
Phil Nash471bd252015-11-03 07:33:43 +00003074 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003075 </TestCase>
3076 <TestCase name="just failure">
3077 <Failure>
3078 Previous info should not be seen
3079 </Failure>
3080 <OverallResult success="false"/>
3081 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003082 <TestCase name="sends information to INFO">
3083 <Info>
3084 hi
3085 </Info>
3086 <Info>
3087 i := 7
3088 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003089 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" >
Phil Nash337dc252013-11-19 07:21:03 +00003090 <Original>
3091 false
3092 </Original>
3093 <Expanded>
3094 false
3095 </Expanded>
3096 </Expression>
3097 <OverallResult success="false"/>
3098 </TestCase>
Phil Nash14796812014-05-23 18:55:05 +01003099 <TestCase name="Pointers can be converted to strings">
3100 <Warning>
3101 actual address of p: 0x<hex digits>
3102 </Warning>
3103 <Warning>
3104 toString(p): 0x<hex digits>
3105 </Warning>
Phil Nash471bd252015-11-03 07:33:43 +00003106 <OverallResult success="true"/>
Phil Nash14796812014-05-23 18:55:05 +01003107 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003108 <TestCase name="random SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003109 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003110 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003111 <Original>
3112 a != b
3113 </Original>
3114 <Expanded>
3115 1 != 2
3116 </Expanded>
3117 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003118 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003119 <Original>
3120 b != a
3121 </Original>
3122 <Expanded>
3123 2 != 1
3124 </Expanded>
3125 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003126 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003127 </Section>
3128 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003129 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003130 <Original>
3131 a != b
3132 </Original>
3133 <Expanded>
3134 1 != 2
3135 </Expanded>
3136 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003137 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003138 </Section>
3139 <OverallResult success="true"/>
3140 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003141 <TestCase name="nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003142 <Section name="s1" description="doesn't equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003143 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003144 <Original>
3145 a != b
3146 </Original>
3147 <Expanded>
3148 1 != 2
3149 </Expanded>
3150 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003151 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003152 <Original>
3153 b != a
3154 </Original>
3155 <Expanded>
3156 2 != 1
3157 </Expanded>
3158 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003159 <Section name="s2" description="not equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003160 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003161 <Original>
3162 a != b
3163 </Original>
3164 <Expanded>
3165 1 != 2
3166 </Expanded>
3167 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003168 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003169 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003170 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003171 </Section>
3172 <OverallResult success="true"/>
3173 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003174 <TestCase name="more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003175 <Section name="s1" description="doesn't equal">
Phil Nash2f7a2962013-09-27 19:01:14 +01003176 <Section name="s2" description="equal">
Phil Nashc6635a72014-12-30 18:25:27 +00003177 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003178 <Original>
3179 a == b
3180 </Original>
3181 <Expanded>
3182 1 == 2
3183 </Expanded>
3184 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003185 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003186 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003187 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003188 </Section>
Phil Nash471bd252015-11-03 07:33:43 +00003189 <Section name="s1" description="doesn't equal">
3190 <Section name="s3" description="not equal">
3191 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
3192 <Original>
3193 a != b
3194 </Original>
3195 <Expanded>
3196 1 != 2
3197 </Expanded>
3198 </Expression>
3199 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3200 </Section>
3201 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3202 </Section>
3203 <Section name="s1" description="doesn't equal">
3204 <Section name="s4" description="less than">
3205 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
3206 <Original>
3207 a &lt; b
3208 </Original>
3209 <Expanded>
3210 1 &lt; 2
3211 </Expanded>
3212 </Expression>
3213 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3214 </Section>
3215 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3216 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01003217 <OverallResult success="false"/>
3218 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003219 <TestCase name="even more nested SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003220 <Section name="c">
Phil Nash2f7a2962013-09-27 19:01:14 +01003221 <Section name="d (leaf)">
Phil Nash015e0712015-11-03 07:46:37 +00003222 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003223 </Section>
Phil Nash015e0712015-11-03 07:46:37 +00003224 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003225 </Section>
3226 <Section name="c">
3227 <Section name="e (leaf)">
Phil Nash015e0712015-11-03 07:46:37 +00003228 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003229 </Section>
Phil Nash015e0712015-11-03 07:46:37 +00003230 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003231 </Section>
3232 <Section name="f (leaf)">
Phil Nash015e0712015-11-03 07:46:37 +00003233 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003234 </Section>
Phil Nash471bd252015-11-03 07:33:43 +00003235 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003236 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003237 <TestCase name="looped SECTION tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003238 <Section name="s1" description="b is currently: 0">
Phil Nashc6635a72014-12-30 18:25:27 +00003239 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003240 <Original>
3241 b > a
3242 </Original>
3243 <Expanded>
3244 0 > 1
3245 </Expanded>
3246 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003247 <OverallResults successes="0" failures="1" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003248 </Section>
3249 <OverallResult success="false"/>
3250 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003251 <TestCase name="looped tests">
Phil Nash2f7a2962013-09-27 19:01:14 +01003252 <Info>
3253 Testing if fib[0] (1) is even
3254 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003255 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003256 <Original>
3257 ( fib[i] % 2 ) == 0
3258 </Original>
3259 <Expanded>
3260 1 == 0
3261 </Expanded>
3262 </Expression>
3263 <Info>
3264 Testing if fib[1] (1) is even
3265 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003266 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003267 <Original>
3268 ( fib[i] % 2 ) == 0
3269 </Original>
3270 <Expanded>
3271 1 == 0
3272 </Expanded>
3273 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003274 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003275 <Original>
3276 ( fib[i] % 2 ) == 0
3277 </Original>
3278 <Expanded>
3279 0 == 0
3280 </Expanded>
3281 </Expression>
3282 <Info>
3283 Testing if fib[3] (3) is even
3284 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003285 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003286 <Original>
3287 ( fib[i] % 2 ) == 0
3288 </Original>
3289 <Expanded>
3290 1 == 0
3291 </Expanded>
3292 </Expression>
3293 <Info>
3294 Testing if fib[4] (5) is even
3295 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003296 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003297 <Original>
3298 ( fib[i] % 2 ) == 0
3299 </Original>
3300 <Expanded>
3301 1 == 0
3302 </Expanded>
3303 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003304 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003305 <Original>
3306 ( fib[i] % 2 ) == 0
3307 </Original>
3308 <Expanded>
3309 0 == 0
3310 </Expanded>
3311 </Expression>
3312 <Info>
3313 Testing if fib[6] (13) is even
3314 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003315 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003316 <Original>
3317 ( fib[i] % 2 ) == 0
3318 </Original>
3319 <Expanded>
3320 1 == 0
3321 </Expanded>
3322 </Expression>
3323 <Info>
3324 Testing if fib[7] (21) is even
3325 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003326 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003327 <Original>
3328 ( fib[i] % 2 ) == 0
3329 </Original>
3330 <Expanded>
3331 1 == 0
3332 </Expanded>
3333 </Expression>
3334 <OverallResult success="false"/>
3335 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003336 <TestCase name="Sends stuff to stdout and stderr">
Phil Nash471bd252015-11-03 07:33:43 +00003337 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003338 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003339 <TestCase name="null strings">
Phil Nashc6635a72014-12-30 18:25:27 +00003340 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003341 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003342 makeString( false ) != static_cast&lt;char*>(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003343 </Original>
3344 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003345 "valid string" != {null string}
Phil Nash2f7a2962013-09-27 19:01:14 +01003346 </Expanded>
3347 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003348 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003349 <Original>
Phil Nash805de432015-07-01 07:33:27 +01003350 makeString( true ) == static_cast&lt;char*>(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003351 </Original>
3352 <Expanded>
3353 {null string} == {null string}
3354 </Expanded>
3355 </Expression>
3356 <OverallResult success="true"/>
3357 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003358 <TestCase name="checkedIf">
Phil Nashc6635a72014-12-30 18:25:27 +00003359 <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003360 <Original>
3361 flag
3362 </Original>
3363 <Expanded>
3364 true
3365 </Expanded>
3366 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003367 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003368 <Original>
3369 testCheckedIf( true )
3370 </Original>
3371 <Expanded>
3372 true
3373 </Expanded>
3374 </Expression>
3375 <OverallResult success="true"/>
3376 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003377 <TestCase name="checkedIf, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003378 <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003379 <Original>
3380 flag
3381 </Original>
3382 <Expanded>
3383 false
3384 </Expanded>
3385 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003386 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003387 <Original>
3388 testCheckedIf( false )
3389 </Original>
3390 <Expanded>
3391 false
3392 </Expanded>
3393 </Expression>
3394 <OverallResult success="false"/>
3395 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003396 <TestCase name="checkedElse">
Phil Nashc6635a72014-12-30 18:25:27 +00003397 <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003398 <Original>
3399 flag
3400 </Original>
3401 <Expanded>
3402 true
3403 </Expanded>
3404 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003405 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003406 <Original>
3407 testCheckedElse( true )
3408 </Original>
3409 <Expanded>
3410 true
3411 </Expanded>
3412 </Expression>
3413 <OverallResult success="true"/>
3414 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003415 <TestCase name="checkedElse, failing">
Phil Nashc6635a72014-12-30 18:25:27 +00003416 <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003417 <Original>
3418 flag
3419 </Original>
3420 <Expanded>
3421 false
3422 </Expanded>
3423 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003424 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003425 <Original>
3426 testCheckedElse( false )
3427 </Original>
3428 <Expanded>
3429 false
3430 </Expanded>
3431 </Expression>
3432 <OverallResult success="false"/>
3433 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003434 <TestCase name="xmlentitycheck">
Phil Nash2f7a2962013-09-27 19:01:14 +01003435 <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 Nash015e0712015-11-03 07:46:37 +00003436 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003437 </Section>
3438 <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 Nash015e0712015-11-03 07:46:37 +00003439 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003440 </Section>
Phil Nash471bd252015-11-03 07:33:43 +00003441 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003442 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003443 <TestCase name="send a single char to INFO">
Phil Nash2f7a2962013-09-27 19:01:14 +01003444 <Info>
3445 3
3446 </Info>
Phil Nashc6635a72014-12-30 18:25:27 +00003447 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003448 <Original>
3449 false
3450 </Original>
3451 <Expanded>
3452 false
3453 </Expanded>
3454 </Expression>
3455 <OverallResult success="false"/>
3456 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003457 <TestCase name="atomic if">
Phil Nashc6635a72014-12-30 18:25:27 +00003458 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003459 <Original>
3460 x == 0
3461 </Original>
3462 <Expanded>
3463 0 == 0
3464 </Expanded>
3465 </Expression>
3466 <OverallResult success="true"/>
3467 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003468 <TestCase name="String matchers">
Phil Nashc6635a72014-12-30 18:25:27 +00003469 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003470 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003471 testStringForMatching() Contains( "string" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003472 </Original>
3473 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003474 "this string contains 'abc' as a substring" contains: "string"
Phil Nash2f7a2962013-09-27 19:01:14 +01003475 </Expanded>
3476 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003477 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003478 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003479 testStringForMatching() Contains( "abc" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003480 </Original>
3481 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003482 "this string contains 'abc' as a substring" contains: "abc"
Phil Nash2f7a2962013-09-27 19:01:14 +01003483 </Expanded>
3484 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003485 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003486 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003487 testStringForMatching() StartsWith( "this" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003488 </Original>
3489 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003490 "this string contains 'abc' as a substring" starts with: "this"
Phil Nash2f7a2962013-09-27 19:01:14 +01003491 </Expanded>
3492 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003493 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003494 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003495 testStringForMatching() EndsWith( "substring" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003496 </Original>
3497 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003498 "this string contains 'abc' as a substring" ends with: "substring"
Phil Nash2f7a2962013-09-27 19:01:14 +01003499 </Expanded>
3500 </Expression>
3501 <OverallResult success="true"/>
3502 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003503 <TestCase name="Contains string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003504 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003505 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003506 testStringForMatching() Contains( "not there" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003507 </Original>
3508 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003509 "this string contains 'abc' as a substring" contains: "not there"
Phil Nash2f7a2962013-09-27 19:01:14 +01003510 </Expanded>
3511 </Expression>
3512 <OverallResult success="false"/>
3513 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003514 <TestCase name="StartsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003515 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003516 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003517 testStringForMatching() StartsWith( "string" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003518 </Original>
3519 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003520 "this string contains 'abc' as a substring" starts with: "string"
Phil Nash2f7a2962013-09-27 19:01:14 +01003521 </Expanded>
3522 </Expression>
3523 <OverallResult success="false"/>
3524 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003525 <TestCase name="EndsWith string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003526 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003527 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003528 testStringForMatching() EndsWith( "this" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003529 </Original>
3530 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003531 "this string contains 'abc' as a substring" ends with: "this"
Phil Nash2f7a2962013-09-27 19:01:14 +01003532 </Expanded>
3533 </Expression>
3534 <OverallResult success="false"/>
3535 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003536 <TestCase name="Equals string matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003537 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003538 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003539 testStringForMatching() Equals( "something else" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003540 </Original>
3541 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003542 "this string contains 'abc' as a substring" equals: "something else"
Phil Nash2f7a2962013-09-27 19:01:14 +01003543 </Expanded>
3544 </Expression>
3545 <OverallResult success="false"/>
3546 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003547 <TestCase name="Equals string matcher, with NULL">
Phil Nashc6635a72014-12-30 18:25:27 +00003548 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003549 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003550 "" Equals(nullptr)
Phil Nash2f7a2962013-09-27 19:01:14 +01003551 </Original>
3552 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003553 "" equals: ""
Phil Nash2f7a2962013-09-27 19:01:14 +01003554 </Expanded>
3555 </Expression>
3556 <OverallResult success="true"/>
3557 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003558 <TestCase name="AllOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003559 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003560 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003561 testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003562 </Original>
3563 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003564 "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003565 </Expanded>
3566 </Expression>
3567 <OverallResult success="true"/>
3568 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003569 <TestCase name="AnyOf matcher">
Phil Nashc6635a72014-12-30 18:25:27 +00003570 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003571 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003572 testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003573 </Original>
3574 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003575 "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003576 </Expanded>
3577 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003578 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003579 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003580 testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01003581 </Original>
3582 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003583 "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003584 </Expanded>
3585 </Expression>
3586 <OverallResult success="true"/>
3587 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003588 <TestCase name="Equals">
Phil Nashc6635a72014-12-30 18:25:27 +00003589 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003590 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003591 testStringForMatching() Equals( "this string contains 'abc' as a substring" )
Phil Nash2f7a2962013-09-27 19:01:14 +01003592 </Original>
3593 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003594 "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
Phil Nash2f7a2962013-09-27 19:01:14 +01003595 </Expanded>
3596 </Expression>
3597 <OverallResult success="true"/>
3598 </TestCase>
Phil Nash71fd2c22015-11-06 06:54:15 +00003599 <TestCase name="Matchers can be (AllOf) composed with the &amp;&amp; operator">
Phil Nash054e3c52015-11-05 18:46:00 +00003600 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3601 <Original>
3602 testStringForMatching() Contains( "string" ) &amp;&amp; Contains( "abc" ) &amp;&amp; Contains( "substring" ) &amp;&amp; Contains( "contains" )
3603 </Original>
3604 <Expanded>
3605 "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
3606 </Expanded>
3607 </Expression>
3608 <OverallResult success="true"/>
3609 </TestCase>
Phil Nash71fd2c22015-11-06 06:54:15 +00003610 <TestCase name="Matchers can be (AnyOf) composed with the || operator">
Phil Nash054e3c52015-11-05 18:46:00 +00003611 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3612 <Original>
3613 testStringForMatching() Contains( "string" ) || Contains( "different" ) || Contains( "random" )
3614 </Original>
3615 <Expanded>
3616 "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
3617 </Expanded>
3618 </Expression>
3619 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3620 <Original>
3621 testStringForMatching2() Contains( "string" ) || Contains( "different" ) || Contains( "random" )
3622 </Original>
3623 <Expanded>
3624 "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
3625 </Expanded>
3626 </Expression>
3627 <OverallResult success="true"/>
3628 </TestCase>
Phil Nash71fd2c22015-11-06 06:54:15 +00003629 <TestCase name="Matchers can be composed with both &amp;&amp; and ||">
Phil Nash054e3c52015-11-05 18:46:00 +00003630 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3631 <Original>
3632 testStringForMatching() ( Contains( "string" ) || Contains( "different" ) ) &amp;&amp; Contains( "substring" )
3633 </Original>
3634 <Expanded>
3635 "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
3636 </Expanded>
3637 </Expression>
3638 <OverallResult success="true"/>
3639 </TestCase>
Phil Nash71fd2c22015-11-06 06:54:15 +00003640 <TestCase name="Matchers can be composed with both &amp;&amp; and || - failing">
Phil Nash054e3c52015-11-05 18:46:00 +00003641 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3642 <Original>
3643 testStringForMatching() ( Contains( "string" ) || Contains( "different" ) ) &amp;&amp; Contains( "random" )
3644 </Original>
3645 <Expanded>
3646 "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
3647 </Expanded>
3648 </Expression>
3649 <OverallResult success="false"/>
3650 </TestCase>
3651 <TestCase name="Matchers can be negated (Not) with the ! operator">
3652 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3653 <Original>
3654 testStringForMatching() !Contains( "different" )
3655 </Original>
3656 <Expanded>
3657 "this string contains 'abc' as a substring" not contains: "different"
3658 </Expanded>
3659 </Expression>
3660 <OverallResult success="true"/>
3661 </TestCase>
3662 <TestCase name="Matchers can be negated (Not) with the ! operator - failing">
3663 <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" >
3664 <Original>
3665 testStringForMatching() !Contains( "substring" )
3666 </Original>
3667 <Expanded>
3668 "this string contains 'abc' as a substring" not contains: "substring"
3669 </Expanded>
3670 </Expression>
3671 <OverallResult success="false"/>
3672 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01003673 <TestCase name="Factorials are computed">
Phil Nashc6635a72014-12-30 18:25:27 +00003674 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003675 <Original>
3676 Factorial(0) == 1
3677 </Original>
3678 <Expanded>
3679 1 == 1
3680 </Expanded>
3681 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003682 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003683 <Original>
3684 Factorial(1) == 1
3685 </Original>
3686 <Expanded>
3687 1 == 1
3688 </Expanded>
3689 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003690 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003691 <Original>
3692 Factorial(2) == 2
3693 </Original>
3694 <Expanded>
3695 2 == 2
3696 </Expanded>
3697 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003698 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003699 <Original>
3700 Factorial(3) == 6
3701 </Original>
3702 <Expanded>
3703 6 == 6
3704 </Expanded>
3705 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003706 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003707 <Original>
3708 Factorial(10) == 3628800
3709 </Original>
3710 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01003711 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
Phil Nash2f7a2962013-09-27 19:01:14 +01003712 </Expanded>
3713 </Expression>
3714 <OverallResult success="true"/>
3715 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003716 <TestCase name="An empty test with no assertions">
Phil Nash471bd252015-11-03 07:33:43 +00003717 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003718 </TestCase>
3719 <TestCase name="Nice descriptive name">
3720 <Warning>
3721 This one ran
3722 </Warning>
Phil Nash471bd252015-11-03 07:33:43 +00003723 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003724 </TestCase>
3725 <TestCase name="first tag">
Phil Nash471bd252015-11-03 07:33:43 +00003726 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003727 </TestCase>
3728 <TestCase name="second tag">
Phil Nash471bd252015-11-03 07:33:43 +00003729 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003730 </TestCase>
3731 <TestCase name="vectors can be sized and resized">
Phil Nashc6635a72014-12-30 18:25:27 +00003732 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003733 <Original>
3734 v.size() == 5
3735 </Original>
3736 <Expanded>
3737 5 == 5
3738 </Expanded>
3739 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003740 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003741 <Original>
3742 v.capacity() >= 5
3743 </Original>
3744 <Expanded>
3745 5 >= 5
3746 </Expanded>
3747 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003748 <Section name="resizing bigger changes size and capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003749 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003750 <Original>
3751 v.size() == 10
3752 </Original>
3753 <Expanded>
3754 10 == 10
3755 </Expanded>
3756 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003757 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003758 <Original>
3759 v.capacity() >= 10
3760 </Original>
3761 <Expanded>
3762 10 >= 10
3763 </Expanded>
3764 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003765 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003766 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003767 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003768 <Original>
3769 v.size() == 5
3770 </Original>
3771 <Expanded>
3772 5 == 5
3773 </Expanded>
3774 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003775 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003776 <Original>
3777 v.capacity() >= 5
3778 </Original>
3779 <Expanded>
3780 5 >= 5
3781 </Expanded>
3782 </Expression>
3783 <Section name="resizing smaller changes size but not capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003784 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003785 <Original>
3786 v.size() == 0
3787 </Original>
3788 <Expanded>
3789 0 == 0
3790 </Expanded>
3791 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003792 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003793 <Original>
3794 v.capacity() >= 5
3795 </Original>
3796 <Expanded>
3797 5 >= 5
3798 </Expanded>
3799 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01003800 <Section name="We can use the 'swap trick' to reset the capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003801 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003802 <Original>
3803 v.capacity() == 0
3804 </Original>
3805 <Expanded>
3806 0 == 0
3807 </Expanded>
3808 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003809 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003810 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003811 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003812 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003813 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003814 <Original>
3815 v.size() == 5
3816 </Original>
3817 <Expanded>
3818 5 == 5
3819 </Expanded>
3820 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003821 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003822 <Original>
3823 v.capacity() >= 5
3824 </Original>
3825 <Expanded>
3826 5 >= 5
3827 </Expanded>
3828 </Expression>
3829 <Section name="reserving bigger changes capacity but not size">
Phil Nashc6635a72014-12-30 18:25:27 +00003830 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003831 <Original>
3832 v.size() == 5
3833 </Original>
3834 <Expanded>
3835 5 == 5
3836 </Expanded>
3837 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003838 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003839 <Original>
3840 v.capacity() >= 10
3841 </Original>
3842 <Expanded>
3843 10 >= 10
3844 </Expanded>
3845 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003846 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003847 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00003848 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003849 <Original>
3850 v.size() == 5
3851 </Original>
3852 <Expanded>
3853 5 == 5
3854 </Expanded>
3855 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003856 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003857 <Original>
3858 v.capacity() >= 5
3859 </Original>
3860 <Expanded>
3861 5 >= 5
3862 </Expanded>
3863 </Expression>
3864 <Section name="reserving smaller does not change size or capacity">
Phil Nashc6635a72014-12-30 18:25:27 +00003865 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003866 <Original>
3867 v.size() == 5
3868 </Original>
3869 <Expanded>
3870 5 == 5
3871 </Expanded>
3872 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00003873 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01003874 <Original>
3875 v.capacity() >= 5
3876 </Original>
3877 <Expanded>
3878 5 >= 5
3879 </Expanded>
3880 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003881 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003882 </Section>
3883 <OverallResult success="true"/>
3884 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00003885 <TestCase name="A couple of nested sections followed by a failure">
Phil Nash2f7a2962013-09-27 19:01:14 +01003886 <Section name="Outer">
3887 <Section name="Inner">
Phil Nash9c1f9a82014-07-03 08:09:57 +01003888 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003889 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01003890 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01003891 </Section>
3892 <Failure>
3893 to infinity and beyond
3894 </Failure>
3895 <OverallResult success="false"/>
3896 </TestCase>
Phil Nash20cad7c2014-04-15 18:44:37 +01003897 <TestCase name="not allowed">
3898 <OverallResult success="true"/>
3899 </TestCase>
Phil Nash31caba42014-04-23 07:07:27 +01003900 <TestCase name="Tabs and newlines show in output">
Phil Nashc6635a72014-12-30 18:25:27 +00003901 <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash31caba42014-04-23 07:07:27 +01003902 <Original>
3903 s1 == s2
3904 </Original>
3905 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003906 "if ($b == 10) {
Phil Nash31caba42014-04-23 07:07:27 +01003907 $a = 20;
Phil Nashd6e59cd2015-07-23 18:45:31 +01003908}"
Phil Nash31caba42014-04-23 07:07:27 +01003909==
Phil Nashd6e59cd2015-07-23 18:45:31 +01003910"if ($b == 10) {
Phil Nash31caba42014-04-23 07:07:27 +01003911 $a = 20;
3912}
Phil Nashd6e59cd2015-07-23 18:45:31 +01003913"
Phil Nash31caba42014-04-23 07:07:27 +01003914 </Expanded>
3915 </Expression>
3916 <OverallResult success="false"/>
3917 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01003918 <TestCase name="toString on const wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003919 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003920 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003921 result == "\"wide load\""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003922 </Original>
3923 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003924 ""wide load"" == ""wide load""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003925 </Expanded>
3926 </Expression>
3927 <OverallResult success="true"/>
3928 </TestCase>
3929 <TestCase name="toString on const wchar_t pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003930 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003931 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003932 result == "\"wide load\""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003933 </Original>
3934 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003935 ""wide load"" == ""wide load""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003936 </Expanded>
3937 </Expression>
3938 <OverallResult success="true"/>
3939 </TestCase>
3940 <TestCase name="toString on wchar_t const pointer returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003941 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003942 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003943 result == "\"wide load\""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003944 </Original>
3945 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003946 ""wide load"" == ""wide load""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003947 </Expanded>
3948 </Expression>
3949 <OverallResult success="true"/>
3950 </TestCase>
3951 <TestCase name="toString on wchar_t returns the string contents">
Phil Nashc6635a72014-12-30 18:25:27 +00003952 <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01003953 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003954 result == "\"wide load\""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003955 </Original>
3956 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003957 ""wide load"" == ""wide load""
Phil Nash8b5a4e92014-08-20 08:08:13 +01003958 </Expanded>
3959 </Expression>
3960 <OverallResult success="true"/>
3961 </TestCase>
Phil Nashd6e59cd2015-07-23 18:45:31 +01003962 <TestCase name="XmlEncode">
3963 <Section name="normal string">
3964 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
3965 <Original>
3966 encode( "normal string" ) == "normal string"
3967 </Original>
3968 <Expanded>
3969 "normal string" == "normal string"
3970 </Expanded>
3971 </Expression>
3972 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3973 </Section>
3974 <Section name="empty string">
3975 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
3976 <Original>
3977 encode( "" ) == ""
3978 </Original>
3979 <Expanded>
3980 "" == ""
3981 </Expanded>
3982 </Expression>
3983 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3984 </Section>
3985 <Section name="string with ampersand">
3986 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
3987 <Original>
3988 encode( "smith &amp; jones" ) == "smith &amp;amp; jones"
3989 </Original>
3990 <Expanded>
3991 "smith &amp;amp; jones" == "smith &amp;amp; jones"
3992 </Expanded>
3993 </Expression>
3994 <OverallResults successes="1" failures="0" expectedFailures="0"/>
3995 </Section>
3996 <Section name="string with less-than">
3997 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
3998 <Original>
3999 encode( "smith &lt; jones" ) == "smith &amp;lt; jones"
4000 </Original>
4001 <Expanded>
4002 "smith &amp;lt; jones" == "smith &amp;lt; jones"
4003 </Expanded>
4004 </Expression>
4005 <OverallResults successes="1" failures="0" expectedFailures="0"/>
4006 </Section>
4007 <Section name="string with greater-than">
4008 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4009 <Original>
4010 encode( "smith > jones" ) == "smith > jones"
4011 </Original>
4012 <Expanded>
4013 "smith > jones" == "smith > jones"
4014 </Expanded>
4015 </Expression>
4016 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4017 <Original>
4018 encode( "smith ]]&gt; jones" ) == "smith ]]&amp;gt; jones"
4019 </Original>
4020 <Expanded>
4021 "smith ]]&amp;gt; jones"
4022==
4023"smith ]]&amp;gt; jones"
4024 </Expanded>
4025 </Expression>
4026 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4027 </Section>
4028 <Section name="string with quotes">
4029 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4030 <Original>
4031 encode( stringWithQuotes ) == stringWithQuotes
4032 </Original>
4033 <Expanded>
4034 "don't "quote" me on that"
4035==
4036"don't "quote" me on that"
4037 </Expanded>
4038 </Expression>
4039 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4040 <Original>
4041 encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &amp;quot;quote&amp;quot; me on that"
4042 </Original>
4043 <Expanded>
4044 "don't &amp;quot;quote&amp;quot; me on that"
4045==
4046"don't &amp;quot;quote&amp;quot; me on that"
4047 </Expanded>
4048 </Expression>
4049 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4050 </Section>
4051 <Section name="string with control char (1)">
4052 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4053 <Original>
4054 encode( "[\x01]" ) == "[&amp;#x1]"
4055 </Original>
4056 <Expanded>
4057 "[&amp;#x1]" == "[&amp;#x1]"
4058 </Expanded>
4059 </Expression>
4060 <OverallResults successes="1" failures="0" expectedFailures="0"/>
4061 </Section>
4062 <Section name="string with control char (x7F)">
4063 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4064 <Original>
4065 encode( "[\x7F]" ) == "[&amp;#x7F]"
4066 </Original>
4067 <Expanded>
4068 "[&amp;#x7F]" == "[&amp;#x7F]"
4069 </Expanded>
4070 </Expression>
4071 <OverallResults successes="1" failures="0" expectedFailures="0"/>
4072 </Section>
4073 <OverallResult success="true"/>
4074 </TestCase>
Phil Nash70975512015-07-23 23:05:52 +01004075 <TestCase name="long long">
4076 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" >
4077 <Original>
4078 l == std::numeric_limits&lt;long long>::max()
4079 </Original>
4080 <Expanded>
4081 9223372036854775807 (0x<hex digits>)
4082==
40839223372036854775807 (0x<hex digits>)
4084 </Expanded>
4085 </Expression>
4086 <OverallResult success="true"/>
4087 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004088 <TestCase name="Process can be configured on command line">
4089 <Section name="default - no arguments">
Phil Nashc6635a72014-12-30 18:25:27 +00004090 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004091 <Original>
4092 parseIntoConfig( argv, config )
4093 </Original>
4094 <Expanded>
4095 parseIntoConfig( argv, config )
4096 </Expanded>
4097 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004098 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004099 <Original>
4100 config.shouldDebugBreak == false
4101 </Original>
4102 <Expanded>
4103 false == false
4104 </Expanded>
4105 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004106 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004107 <Original>
4108 config.abortAfter == -1
4109 </Original>
4110 <Expanded>
4111 -1 == -1
4112 </Expanded>
4113 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004114 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004115 <Original>
4116 config.noThrow == false
4117 </Original>
4118 <Expanded>
4119 false == false
4120 </Expanded>
4121 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004122 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004123 <Original>
Phil Nash368714e2015-08-07 08:20:56 +01004124 config.reporterNames.empty()
Phil Nash2f7a2962013-09-27 19:01:14 +01004125 </Original>
4126 <Expanded>
4127 true
4128 </Expanded>
4129 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004130 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004131 </Section>
4132 <Section name="test lists">
Phil Nash2f7a2962013-09-27 19:01:14 +01004133 <Section name="1 test" description="Specify one test case using">
Phil Nashc6635a72014-12-30 18:25:27 +00004134 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004135 <Original>
4136 parseIntoConfig( argv, config )
4137 </Original>
4138 <Expanded>
4139 parseIntoConfig( argv, config )
4140 </Expanded>
4141 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004142 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004143 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004144 cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01004145 </Original>
4146 <Expanded>
4147 false == false
4148 </Expanded>
4149 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004150 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004151 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004152 cfg.testSpec().matches( fakeTestCase( "test1" ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01004153 </Original>
4154 <Expanded>
4155 true
4156 </Expanded>
4157 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004158 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004159 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004160 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004161 </Section>
4162 <Section name="test lists">
4163 <Section name="Specify one test case exclusion using exclude:">
Phil Nashc6635a72014-12-30 18:25:27 +00004164 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004165 <Original>
4166 parseIntoConfig( argv, config )
4167 </Original>
4168 <Expanded>
4169 parseIntoConfig( argv, config )
4170 </Expanded>
4171 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004172 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004173 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004174 cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01004175 </Original>
4176 <Expanded>
4177 false == false
4178 </Expanded>
4179 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004180 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004181 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004182 cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01004183 </Original>
4184 <Expanded>
4185 true
4186 </Expanded>
4187 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004188 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004189 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004190 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004191 </Section>
4192 <Section name="test lists">
4193 <Section name="Specify one test case exclusion using ~">
Phil Nashc6635a72014-12-30 18:25:27 +00004194 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004195 <Original>
4196 parseIntoConfig( argv, config )
4197 </Original>
4198 <Expanded>
4199 parseIntoConfig( argv, config )
4200 </Expanded>
4201 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004202 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004203 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004204 cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false
Phil Nash2f7a2962013-09-27 19:01:14 +01004205 </Original>
4206 <Expanded>
4207 false == false
4208 </Expanded>
4209 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004210 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004211 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004212 cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) )
Phil Nash2f7a2962013-09-27 19:01:14 +01004213 </Original>
4214 <Expanded>
4215 true
4216 </Expanded>
4217 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004218 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004219 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004220 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004221 </Section>
4222 <Section name="reporter">
Phil Nash2f7a2962013-09-27 19:01:14 +01004223 <Section name="-r/console">
Phil Nashc6635a72014-12-30 18:25:27 +00004224 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004225 <Original>
4226 parseIntoConfig( argv, config )
4227 </Original>
4228 <Expanded>
4229 parseIntoConfig( argv, config )
4230 </Expanded>
4231 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004232 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004233 <Original>
Phil Nash368714e2015-08-07 08:20:56 +01004234 config.reporterNames[0] == "console"
Phil Nash2f7a2962013-09-27 19:01:14 +01004235 </Original>
4236 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004237 "console" == "console"
Phil Nash2f7a2962013-09-27 19:01:14 +01004238 </Expanded>
4239 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004240 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004241 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004242 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004243 </Section>
4244 <Section name="reporter">
4245 <Section name="-r/xml">
Phil Nashc6635a72014-12-30 18:25:27 +00004246 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004247 <Original>
4248 parseIntoConfig( argv, config )
4249 </Original>
4250 <Expanded>
4251 parseIntoConfig( argv, config )
4252 </Expanded>
4253 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004254 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004255 <Original>
Phil Nash368714e2015-08-07 08:20:56 +01004256 config.reporterNames[0] == "xml"
Phil Nash2f7a2962013-09-27 19:01:14 +01004257 </Original>
4258 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004259 "xml" == "xml"
Phil Nash2f7a2962013-09-27 19:01:14 +01004260 </Expanded>
4261 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004262 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004263 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004264 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004265 </Section>
4266 <Section name="reporter">
Phil Nash368714e2015-08-07 08:20:56 +01004267 <Section name="-r xml and junit">
4268 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4269 <Original>
4270 parseIntoConfig( argv, config )
4271 </Original>
4272 <Expanded>
4273 parseIntoConfig( argv, config )
4274 </Expanded>
4275 </Expression>
4276 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4277 <Original>
4278 config.reporterNames.size() == 2
4279 </Original>
4280 <Expanded>
4281 2 == 2
4282 </Expanded>
4283 </Expression>
4284 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4285 <Original>
4286 config.reporterNames[0] == "xml"
4287 </Original>
4288 <Expanded>
4289 "xml" == "xml"
4290 </Expanded>
4291 </Expression>
4292 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4293 <Original>
4294 config.reporterNames[1] == "junit"
4295 </Original>
4296 <Expanded>
4297 "junit" == "junit"
4298 </Expanded>
4299 </Expression>
4300 <OverallResults successes="4" failures="0" expectedFailures="0"/>
4301 </Section>
4302 <OverallResults successes="4" failures="0" expectedFailures="0"/>
4303 </Section>
4304 <Section name="reporter">
Phil Nash2f7a2962013-09-27 19:01:14 +01004305 <Section name="--reporter/junit">
Phil Nashc6635a72014-12-30 18:25:27 +00004306 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004307 <Original>
4308 parseIntoConfig( argv, config )
4309 </Original>
4310 <Expanded>
4311 parseIntoConfig( argv, config )
4312 </Expanded>
4313 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004314 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004315 <Original>
Phil Nash368714e2015-08-07 08:20:56 +01004316 config.reporterNames[0] == "junit"
Phil Nash2f7a2962013-09-27 19:01:14 +01004317 </Original>
4318 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004319 "junit" == "junit"
Phil Nash2f7a2962013-09-27 19:01:14 +01004320 </Expanded>
4321 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004322 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004323 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004324 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004325 </Section>
4326 <Section name="debugger">
Phil Nash2f7a2962013-09-27 19:01:14 +01004327 <Section name="-b">
Phil Nashc6635a72014-12-30 18:25:27 +00004328 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004329 <Original>
4330 parseIntoConfig( argv, config )
4331 </Original>
4332 <Expanded>
4333 parseIntoConfig( argv, config )
4334 </Expanded>
4335 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004336 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004337 <Original>
4338 config.shouldDebugBreak == true
4339 </Original>
4340 <Expanded>
4341 true == true
4342 </Expanded>
4343 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004344 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004345 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004346 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004347 </Section>
4348 <Section name="debugger">
4349 <Section name="--break">
Phil Nashc6635a72014-12-30 18:25:27 +00004350 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004351 <Original>
4352 parseIntoConfig( argv, config )
4353 </Original>
4354 <Expanded>
4355 parseIntoConfig( argv, config )
4356 </Expanded>
4357 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004358 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004359 <Original>
4360 config.shouldDebugBreak
4361 </Original>
4362 <Expanded>
4363 true
4364 </Expanded>
4365 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004366 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004367 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004368 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004369 </Section>
4370 <Section name="abort">
Phil Nash2f7a2962013-09-27 19:01:14 +01004371 <Section name="-a aborts after first failure">
Phil Nashc6635a72014-12-30 18:25:27 +00004372 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004373 <Original>
4374 parseIntoConfig( argv, config )
4375 </Original>
4376 <Expanded>
4377 parseIntoConfig( argv, config )
4378 </Expanded>
4379 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004380 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004381 <Original>
4382 config.abortAfter == 1
4383 </Original>
4384 <Expanded>
4385 1 == 1
4386 </Expanded>
4387 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004388 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004389 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004390 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004391 </Section>
4392 <Section name="abort">
4393 <Section name="-x 2 aborts after two failures">
Phil Nashc6635a72014-12-30 18:25:27 +00004394 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004395 <Original>
4396 parseIntoConfig( argv, config )
4397 </Original>
4398 <Expanded>
4399 parseIntoConfig( argv, config )
4400 </Expanded>
4401 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004402 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004403 <Original>
4404 config.abortAfter == 2
4405 </Original>
4406 <Expanded>
4407 2 == 2
4408 </Expanded>
4409 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004410 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004411 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004412 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004413 </Section>
4414 <Section name="abort">
4415 <Section name="-x must be greater than zero">
Phil Nashc6635a72014-12-30 18:25:27 +00004416 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004417 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004418 parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004419 </Original>
4420 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004421 "Value after -x or --abortAfter must be greater than zero
4422- while parsing: (-x, --abortx &lt;no. failures>)" contains: "greater than zero"
Phil Nash2f7a2962013-09-27 19:01:14 +01004423 </Expanded>
4424 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004425 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004426 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004427 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004428 </Section>
4429 <Section name="abort">
4430 <Section name="-x must be numeric">
Phil Nashc6635a72014-12-30 18:25:27 +00004431 <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004432 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004433 parseIntoConfigAndReturnError( argv, config ) Contains( "-x" )
Phil Nash2f7a2962013-09-27 19:01:14 +01004434 </Original>
4435 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004436 "Unable to convert oops to destination type
4437- while parsing: (-x, --abortx &lt;no. failures>)" contains: "-x"
Phil Nash2f7a2962013-09-27 19:01:14 +01004438 </Expanded>
4439 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004440 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004441 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004442 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004443 </Section>
4444 <Section name="nothrow">
Phil Nash2f7a2962013-09-27 19:01:14 +01004445 <Section name="-e">
Phil Nashc6635a72014-12-30 18:25:27 +00004446 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004447 <Original>
4448 parseIntoConfig( argv, config )
4449 </Original>
4450 <Expanded>
4451 parseIntoConfig( argv, config )
4452 </Expanded>
4453 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004454 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004455 <Original>
4456 config.noThrow == true
4457 </Original>
4458 <Expanded>
4459 true == true
4460 </Expanded>
4461 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004462 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004463 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004464 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004465 </Section>
4466 <Section name="nothrow">
4467 <Section name="--nothrow">
Phil Nashc6635a72014-12-30 18:25:27 +00004468 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004469 <Original>
4470 parseIntoConfig( argv, config )
4471 </Original>
4472 <Expanded>
4473 parseIntoConfig( argv, config )
4474 </Expanded>
4475 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004476 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004477 <Original>
4478 config.noThrow == true
4479 </Original>
4480 <Expanded>
4481 true == true
4482 </Expanded>
4483 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004484 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004485 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004486 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004487 </Section>
4488 <Section name="output filename">
Phil Nash2f7a2962013-09-27 19:01:14 +01004489 <Section name="-o filename">
Phil Nashc6635a72014-12-30 18:25:27 +00004490 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004491 <Original>
4492 parseIntoConfig( argv, config )
4493 </Original>
4494 <Expanded>
4495 parseIntoConfig( argv, config )
4496 </Expanded>
4497 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004498 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004499 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004500 config.outputFilename == "filename.ext"
Phil Nash2f7a2962013-09-27 19:01:14 +01004501 </Original>
4502 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004503 "filename.ext" == "filename.ext"
Phil Nash2f7a2962013-09-27 19:01:14 +01004504 </Expanded>
4505 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004506 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004507 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004508 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004509 </Section>
4510 <Section name="output filename">
4511 <Section name="--out">
Phil Nashc6635a72014-12-30 18:25:27 +00004512 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004513 <Original>
4514 parseIntoConfig( argv, config )
4515 </Original>
4516 <Expanded>
4517 parseIntoConfig( argv, config )
4518 </Expanded>
4519 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004520 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004521 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004522 config.outputFilename == "filename.ext"
Phil Nash2f7a2962013-09-27 19:01:14 +01004523 </Original>
4524 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004525 "filename.ext" == "filename.ext"
Phil Nash2f7a2962013-09-27 19:01:14 +01004526 </Expanded>
4527 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004528 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004529 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004530 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004531 </Section>
4532 <Section name="combinations">
Phil Nash2f7a2962013-09-27 19:01:14 +01004533 <Section name="Single character flags can be combined">
Phil Nashc6635a72014-12-30 18:25:27 +00004534 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004535 <Original>
4536 parseIntoConfig( argv, config )
4537 </Original>
4538 <Expanded>
4539 parseIntoConfig( argv, config )
4540 </Expanded>
4541 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004542 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004543 <Original>
4544 config.abortAfter == 1
4545 </Original>
4546 <Expanded>
4547 1 == 1
4548 </Expanded>
4549 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004550 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004551 <Original>
4552 config.shouldDebugBreak
4553 </Original>
4554 <Expanded>
4555 true
4556 </Expanded>
4557 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004558 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004559 <Original>
4560 config.noThrow == true
4561 </Original>
4562 <Expanded>
4563 true == true
4564 </Expanded>
4565 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004566 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004567 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004568 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004569 </Section>
Phil Nash856468c2015-03-04 08:22:32 +00004570 <Section name="force-colour">
4571 <Section name="--force-colour">
4572 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4573 <Original>
4574 parseIntoConfig( argv, config )
4575 </Original>
4576 <Expanded>
4577 parseIntoConfig( argv, config )
4578 </Expanded>
4579 </Expression>
4580 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4581 <Original>
4582 config.forceColour
4583 </Original>
4584 <Expanded>
4585 true
4586 </Expanded>
4587 </Expression>
4588 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4589 </Section>
4590 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4591 </Section>
4592 <Section name="force-colour">
4593 <Section name="without --force-colour">
4594 <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" >
4595 <Original>
4596 parseIntoConfig( argv, config )
4597 </Original>
4598 <Expanded>
4599 parseIntoConfig( argv, config )
4600 </Expanded>
4601 </Expression>
4602 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
4603 <Original>
4604 !config.forceColour
4605 </Original>
4606 <Expanded>
4607 true
4608 </Expanded>
4609 </Expression>
4610 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4611 </Section>
4612 <OverallResults successes="2" failures="0" expectedFailures="0"/>
4613 </Section>
Phil Nash2f7a2962013-09-27 19:01:14 +01004614 <OverallResult success="true"/>
4615 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01004616 <TestCase name="Long strings can be wrapped">
4617 <Section name="plain string">
Phil Nash2f7a2962013-09-27 19:01:14 +01004618 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004619 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004620 <Original>
4621 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4622 </Original>
4623 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004624 "one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004625==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004626"one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004627 </Expanded>
4628 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004629 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004630 <Original>
4631 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4632 </Original>
4633 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004634 "one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004635==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004636"one two three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004637 </Expanded>
4638 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004639 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004640 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004641 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004642 </Section>
4643 <Section name="plain string">
4644 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00004645 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004646 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004647 Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004648 </Original>
4649 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004650 "one two three
4651four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004652==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004653"one two three
4654four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004655 </Expanded>
4656 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004657 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004658 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004659 Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004660 </Original>
4661 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004662 "one two three
4663four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004664==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004665"one two three
4666four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004667 </Expanded>
4668 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004669 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004670 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004671 Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004672 </Original>
4673 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004674 "one two three
4675four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004676==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004677"one two three
4678four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004679 </Expanded>
4680 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004681 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004682 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004683 Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004684 </Original>
4685 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004686 "one two three
4687four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004688==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004689"one two three
4690four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004691 </Expanded>
4692 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004693 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004694 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004695 Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004696 </Original>
4697 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004698 "one two
4699three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004700==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004701"one two
4702three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004703 </Expanded>
4704 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004705 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004706 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004707 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004708 </Section>
4709 <Section name="plain string">
4710 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00004711 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004712 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004713 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004714 </Original>
4715 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004716 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004717three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004718four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004719==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004720"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004721three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004722four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004723 </Expanded>
4724 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004725 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004726 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004727 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004728 </Original>
4729 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004730 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004731three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004732four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004733==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004734"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004735three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004736four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004737 </Expanded>
4738 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004739 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004740 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004741 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004742 </Original>
4743 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004744 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004745three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004746four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004747==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004748"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004749three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004750four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004751 </Expanded>
4752 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004753 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004754 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004755 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004756 </Section>
4757 <Section name="plain string">
4758 <Section name="Wrapped three times">
Phil Nashc6635a72014-12-30 18:25:27 +00004759 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004760 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004761 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004762 </Original>
4763 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004764 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01004765two
4766three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004767four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004768==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004769"one
Phil Nash2f7a2962013-09-27 19:01:14 +01004770two
4771three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004772four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004773 </Expanded>
4774 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004775 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004776 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004777 Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004778 </Original>
4779 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004780 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01004781two
4782three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004783four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004784==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004785"one
Phil Nash2f7a2962013-09-27 19:01:14 +01004786two
4787three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004788four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004789 </Expanded>
4790 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004791 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004792 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004793 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004794 </Section>
4795 <Section name="plain string">
4796 <Section name="Short wrap">
Phil Nashc6635a72014-12-30 18:25:27 +00004797 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004798 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004799 Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef"
Phil Nash2f7a2962013-09-27 19:01:14 +01004800 </Original>
4801 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004802 "abc-
4803def"
Phil Nash2f7a2962013-09-27 19:01:14 +01004804==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004805"abc-
4806def"
Phil Nash2f7a2962013-09-27 19:01:14 +01004807 </Expanded>
4808 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004809 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004810 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004811 Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg"
Phil Nash2f7a2962013-09-27 19:01:14 +01004812 </Original>
4813 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004814 "abc-
4815defg"
Phil Nash2f7a2962013-09-27 19:01:14 +01004816==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004817"abc-
4818defg"
Phil Nash2f7a2962013-09-27 19:01:14 +01004819 </Expanded>
4820 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004821 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004822 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004823 Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh"
Phil Nash2f7a2962013-09-27 19:01:14 +01004824 </Original>
4825 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004826 "abc-
Phil Nash2f7a2962013-09-27 19:01:14 +01004827def-
Phil Nashd6e59cd2015-07-23 18:45:31 +01004828gh"
Phil Nash2f7a2962013-09-27 19:01:14 +01004829==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004830"abc-
Phil Nash2f7a2962013-09-27 19:01:14 +01004831def-
Phil Nashd6e59cd2015-07-23 18:45:31 +01004832gh"
Phil Nash2f7a2962013-09-27 19:01:14 +01004833 </Expanded>
4834 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004835 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004836 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004837 Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01004838 </Original>
4839 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004840 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01004841two
4842thr-
4843ee
Phil Nashd6e59cd2015-07-23 18:45:31 +01004844four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004845==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004846"one
Phil Nash2f7a2962013-09-27 19:01:14 +01004847two
4848thr-
4849ee
Phil Nashd6e59cd2015-07-23 18:45:31 +01004850four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004851 </Expanded>
4852 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004853 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004854 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004855 Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur"
Phil Nash2f7a2962013-09-27 19:01:14 +01004856 </Original>
4857 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004858 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01004859two
4860th-
4861ree
4862fo-
Phil Nashd6e59cd2015-07-23 18:45:31 +01004863ur"
Phil Nash2f7a2962013-09-27 19:01:14 +01004864==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004865"one
Phil Nash2f7a2962013-09-27 19:01:14 +01004866two
4867th-
4868ree
4869fo-
Phil Nashd6e59cd2015-07-23 18:45:31 +01004870ur"
Phil Nash2f7a2962013-09-27 19:01:14 +01004871 </Expanded>
4872 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004873 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004874 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004875 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004876 </Section>
4877 <Section name="plain string">
4878 <Section name="As container">
Phil Nashc6635a72014-12-30 18:25:27 +00004879 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004880 <Original>
4881 text.size() == 4
4882 </Original>
4883 <Expanded>
4884 4 == 4
4885 </Expanded>
4886 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004887 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004888 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004889 text[0] == "one"
Phil Nash2f7a2962013-09-27 19:01:14 +01004890 </Original>
4891 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004892 "one" == "one"
Phil Nash2f7a2962013-09-27 19:01:14 +01004893 </Expanded>
4894 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004895 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004896 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004897 text[1] == "two"
Phil Nash2f7a2962013-09-27 19:01:14 +01004898 </Original>
4899 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004900 "two" == "two"
Phil Nash2f7a2962013-09-27 19:01:14 +01004901 </Expanded>
4902 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004903 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004904 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004905 text[2] == "three"
Phil Nash2f7a2962013-09-27 19:01:14 +01004906 </Original>
4907 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004908 "three" == "three"
Phil Nash2f7a2962013-09-27 19:01:14 +01004909 </Expanded>
4910 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004911 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004912 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004913 text[3] == "four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004914 </Original>
4915 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004916 "four" == "four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004917 </Expanded>
4918 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004919 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004920 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004921 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004922 </Section>
4923 <Section name="plain string">
4924 <Section name="Indent first line differently">
Phil Nashc6635a72014-12-30 18:25:27 +00004925 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004926 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004927 text.toString() == " one two\n three\n four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004928 </Original>
4929 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004930 " one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004931 three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004932 four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004933==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004934" one two
Phil Nash2f7a2962013-09-27 19:01:14 +01004935 three
Phil Nashd6e59cd2015-07-23 18:45:31 +01004936 four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004937 </Expanded>
4938 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004939 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004940 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004941 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004942 </Section>
4943 <Section name="With newlines">
Phil Nash2f7a2962013-09-27 19:01:14 +01004944 <Section name="No wrapping">
Phil Nashc6635a72014-12-30 18:25:27 +00004945 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004946 <Original>
4947 Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString
4948 </Original>
4949 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004950 "one two
4951three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004952==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004953"one two
4954three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004955 </Expanded>
4956 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004957 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004958 <Original>
4959 Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString
4960 </Original>
4961 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004962 "one two
4963three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004964==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004965"one two
4966three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004967 </Expanded>
4968 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004969 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004970 <Original>
4971 Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString
4972 </Original>
4973 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004974 "one two
4975three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004976==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004977"one two
4978three four"
Phil Nash2f7a2962013-09-27 19:01:14 +01004979 </Expanded>
4980 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004981 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004982 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01004983 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01004984 </Section>
4985 <Section name="With newlines">
4986 <Section name="Trailing newline">
Phil Nashc6635a72014-12-30 18:25:27 +00004987 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01004988 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004989 Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n"
Phil Nash2f7a2962013-09-27 19:01:14 +01004990 </Original>
4991 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01004992 "abcdef
4993"
Phil Nash2f7a2962013-09-27 19:01:14 +01004994==
Phil Nashd6e59cd2015-07-23 18:45:31 +01004995"abcdef
4996"
Phil Nash2f7a2962013-09-27 19:01:14 +01004997 </Expanded>
4998 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00004999 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005000 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005001 Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef"
Phil Nash2f7a2962013-09-27 19:01:14 +01005002 </Original>
5003 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005004 "abcdef" == "abcdef"
Phil Nash2f7a2962013-09-27 19:01:14 +01005005 </Expanded>
5006 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005007 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005008 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005009 Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n"
Phil Nash2f7a2962013-09-27 19:01:14 +01005010 </Original>
5011 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005012 "abcdef
5013"
Phil Nash2f7a2962013-09-27 19:01:14 +01005014==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005015"abcdef
5016"
Phil Nash2f7a2962013-09-27 19:01:14 +01005017 </Expanded>
5018 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005019 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005020 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005021 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005022 </Section>
5023 <Section name="With newlines">
5024 <Section name="Wrapped once">
Phil Nashc6635a72014-12-30 18:25:27 +00005025 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005026 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005027 Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01005028 </Original>
5029 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005030 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01005031three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005032four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005033==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005034"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01005035three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005036four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005037 </Expanded>
5038 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005039 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005040 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005041 Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01005042 </Original>
5043 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005044 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01005045three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005046four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005047==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005048"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01005049three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005050four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005051 </Expanded>
5052 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005053 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005054 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005055 Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01005056 </Original>
5057 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005058 "one two
Phil Nash2f7a2962013-09-27 19:01:14 +01005059three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005060four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005061==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005062"one two
Phil Nash2f7a2962013-09-27 19:01:14 +01005063three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005064four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005065 </Expanded>
5066 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005067 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005068 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005069 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005070 </Section>
5071 <Section name="With newlines">
5072 <Section name="Wrapped twice">
Phil Nashc6635a72014-12-30 18:25:27 +00005073 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005074 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005075 Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour"
Phil Nash2f7a2962013-09-27 19:01:14 +01005076 </Original>
5077 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005078 "one
Phil Nash2f7a2962013-09-27 19:01:14 +01005079two
5080three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005081four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005082==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005083"one
Phil Nash2f7a2962013-09-27 19:01:14 +01005084two
5085three
Phil Nashd6e59cd2015-07-23 18:45:31 +01005086four"
Phil Nash2f7a2962013-09-27 19:01:14 +01005087 </Expanded>
5088 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005089 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005090 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005091 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005092 </Section>
5093 <Section name="With tabs">
Phil Nashc6635a72014-12-30 18:25:27 +00005094 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005095 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005096 Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six"
Phil Nash2f7a2962013-09-27 19:01:14 +01005097 </Original>
5098 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005099 "one two three
Phil Nash2f7a2962013-09-27 19:01:14 +01005100 four
5101 five
Phil Nashd6e59cd2015-07-23 18:45:31 +01005102 six"
Phil Nash2f7a2962013-09-27 19:01:14 +01005103==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005104"one two three
Phil Nash2f7a2962013-09-27 19:01:14 +01005105 four
5106 five
Phil Nashd6e59cd2015-07-23 18:45:31 +01005107 six"
Phil Nash2f7a2962013-09-27 19:01:14 +01005108 </Expanded>
5109 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01005110 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005111 </Section>
5112 <OverallResult success="true"/>
5113 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00005114 <TestCase name="replaceInPlace">
5115 <Section name="replace single char">
Phil Nashc6635a72014-12-30 18:25:27 +00005116 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005117 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005118 replaceInPlace( letters, "b", "z" )
Phil Nash3dc37632014-12-21 00:20:09 +00005119 </Original>
5120 <Expanded>
5121 true
5122 </Expanded>
5123 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005124 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005125 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005126 letters == "azcdefcg"
Phil Nash3dc37632014-12-21 00:20:09 +00005127 </Original>
5128 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005129 "azcdefcg" == "azcdefcg"
Phil Nash3dc37632014-12-21 00:20:09 +00005130 </Expanded>
5131 </Expression>
5132 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5133 </Section>
5134 <Section name="replace two chars">
Phil Nashc6635a72014-12-30 18:25:27 +00005135 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005136 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005137 replaceInPlace( letters, "c", "z" )
Phil Nash3dc37632014-12-21 00:20:09 +00005138 </Original>
5139 <Expanded>
5140 true
5141 </Expanded>
5142 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005143 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005144 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005145 letters == "abzdefzg"
Phil Nash3dc37632014-12-21 00:20:09 +00005146 </Original>
5147 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005148 "abzdefzg" == "abzdefzg"
Phil Nash3dc37632014-12-21 00:20:09 +00005149 </Expanded>
5150 </Expression>
5151 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5152 </Section>
5153 <Section name="replace first char">
Phil Nashc6635a72014-12-30 18:25:27 +00005154 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005155 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005156 replaceInPlace( letters, "a", "z" )
Phil Nash3dc37632014-12-21 00:20:09 +00005157 </Original>
5158 <Expanded>
5159 true
5160 </Expanded>
5161 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005162 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005163 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005164 letters == "zbcdefcg"
Phil Nash3dc37632014-12-21 00:20:09 +00005165 </Original>
5166 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005167 "zbcdefcg" == "zbcdefcg"
Phil Nash3dc37632014-12-21 00:20:09 +00005168 </Expanded>
5169 </Expression>
5170 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5171 </Section>
5172 <Section name="replace last char">
Phil Nashc6635a72014-12-30 18:25:27 +00005173 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005174 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005175 replaceInPlace( letters, "g", "z" )
Phil Nash3dc37632014-12-21 00:20:09 +00005176 </Original>
5177 <Expanded>
5178 true
5179 </Expanded>
5180 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005181 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005182 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005183 letters == "abcdefcz"
Phil Nash3dc37632014-12-21 00:20:09 +00005184 </Original>
5185 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005186 "abcdefcz" == "abcdefcz"
Phil Nash3dc37632014-12-21 00:20:09 +00005187 </Expanded>
5188 </Expression>
5189 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5190 </Section>
5191 <Section name="replace all chars">
Phil Nashc6635a72014-12-30 18:25:27 +00005192 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005193 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005194 replaceInPlace( letters, letters, "replaced" )
Phil Nash3dc37632014-12-21 00:20:09 +00005195 </Original>
5196 <Expanded>
5197 true
5198 </Expanded>
5199 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005200 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005201 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005202 letters == "replaced"
Phil Nash3dc37632014-12-21 00:20:09 +00005203 </Original>
5204 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005205 "replaced" == "replaced"
Phil Nash3dc37632014-12-21 00:20:09 +00005206 </Expanded>
5207 </Expression>
5208 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5209 </Section>
5210 <Section name="replace no chars">
Phil Nashc6635a72014-12-30 18:25:27 +00005211 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005212 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005213 !replaceInPlace( letters, "x", "z" )
Phil Nash3dc37632014-12-21 00:20:09 +00005214 </Original>
5215 <Expanded>
5216 !false
5217 </Expanded>
5218 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005219 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash3dc37632014-12-21 00:20:09 +00005220 <Original>
5221 letters == letters
5222 </Original>
5223 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005224 "abcdefcg" == "abcdefcg"
Phil Nash3dc37632014-12-21 00:20:09 +00005225 </Expanded>
5226 </Expression>
5227 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5228 </Section>
Phil Nash6817bb02014-12-30 18:24:31 +00005229 <Section name="escape '">
Phil Nashc6635a72014-12-30 18:25:27 +00005230 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00005231 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005232 replaceInPlace( s, "'", "|'" )
Phil Nash6817bb02014-12-30 18:24:31 +00005233 </Original>
5234 <Expanded>
5235 true
5236 </Expanded>
5237 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005238 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash6817bb02014-12-30 18:24:31 +00005239 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005240 s == "didn|'t"
Phil Nash6817bb02014-12-30 18:24:31 +00005241 </Original>
5242 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005243 "didn|'t" == "didn|'t"
Phil Nash6817bb02014-12-30 18:24:31 +00005244 </Expanded>
5245 </Expression>
5246 <OverallResults successes="2" failures="0" expectedFailures="0"/>
5247 </Section>
Phil Nash3dc37632014-12-21 00:20:09 +00005248 <OverallResult success="true"/>
5249 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01005250 <TestCase name="Strings can be rendered with colour">
Phil Nash471bd252015-11-03 07:33:43 +00005251 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01005252 </TestCase>
5253 <TestCase name="Text can be formatted using the Text class">
Phil Nashc6635a72014-12-30 18:25:27 +00005254 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005255 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005256 Text( "hi there" ).toString() == "hi there"
Phil Nash2f7a2962013-09-27 19:01:14 +01005257 </Original>
5258 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005259 "hi there" == "hi there"
Phil Nash2f7a2962013-09-27 19:01:14 +01005260 </Expanded>
5261 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00005262 <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01005263 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005264 Text( "hi there", narrow ).toString() == "hi\nthere"
Phil Nash2f7a2962013-09-27 19:01:14 +01005265 </Original>
5266 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005267 "hi
5268there"
Phil Nash2f7a2962013-09-27 19:01:14 +01005269==
Phil Nashd6e59cd2015-07-23 18:45:31 +01005270"hi
5271there"
Phil Nash2f7a2962013-09-27 19:01:14 +01005272 </Expanded>
5273 </Expression>
5274 <OverallResult success="true"/>
5275 </TestCase>
Phil Nash93a945c2013-10-23 15:35:07 +01005276 <TestCase name="Long text is truncted">
Phil Nashc6635a72014-12-30 18:25:27 +00005277 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" >
Phil Nash93a945c2013-10-23 15:35:07 +01005278 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005279 t.toString() EndsWith( "... message truncated due to excessive size" )
Phil Nash93a945c2013-10-23 15:35:07 +01005280 </Original>
5281 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01005282 "******************************************************************************-
Phil Nash93a945c2013-10-23 15:35:07 +01005283******************************************************************************-
5284************************
5285******************************************************************************-
5286******************************************************************************-
5287************************
5288******************************************************************************-
5289******************************************************************************-
5290************************
5291******************************************************************************-
5292******************************************************************************-
5293************************
5294******************************************************************************-
5295******************************************************************************-
5296************************
5297******************************************************************************-
5298******************************************************************************-
5299************************
5300******************************************************************************-
5301******************************************************************************-
5302************************
5303******************************************************************************-
5304******************************************************************************-
5305************************
5306******************************************************************************-
5307******************************************************************************-
5308************************
5309******************************************************************************-
5310******************************************************************************-
5311************************
5312******************************************************************************-
5313******************************************************************************-
5314************************
5315******************************************************************************-
5316******************************************************************************-
5317************************
5318******************************************************************************-
5319******************************************************************************-
5320************************
5321******************************************************************************-
5322******************************************************************************-
5323************************
5324******************************************************************************-
5325******************************************************************************-
5326************************
5327******************************************************************************-
5328******************************************************************************-
5329************************
5330******************************************************************************-
5331******************************************************************************-
5332************************
5333******************************************************************************-
5334******************************************************************************-
5335************************
5336******************************************************************************-
5337******************************************************************************-
5338************************
5339******************************************************************************-
5340******************************************************************************-
5341************************
5342******************************************************************************-
5343******************************************************************************-
5344************************
5345******************************************************************************-
5346******************************************************************************-
5347************************
5348******************************************************************************-
5349******************************************************************************-
5350************************
5351******************************************************************************-
5352******************************************************************************-
5353************************
5354******************************************************************************-
5355******************************************************************************-
5356************************
5357******************************************************************************-
5358******************************************************************************-
5359************************
5360******************************************************************************-
5361******************************************************************************-
5362************************
5363******************************************************************************-
5364******************************************************************************-
5365************************
5366******************************************************************************-
5367******************************************************************************-
5368************************
5369******************************************************************************-
5370******************************************************************************-
5371************************
5372******************************************************************************-
5373******************************************************************************-
5374************************
5375******************************************************************************-
5376******************************************************************************-
5377************************
5378******************************************************************************-
5379******************************************************************************-
5380************************
5381******************************************************************************-
5382******************************************************************************-
5383************************
5384******************************************************************************-
5385******************************************************************************-
5386************************
5387******************************************************************************-
5388******************************************************************************-
5389************************
5390******************************************************************************-
5391******************************************************************************-
5392************************
5393******************************************************************************-
5394******************************************************************************-
5395************************
5396******************************************************************************-
5397******************************************************************************-
5398************************
5399******************************************************************************-
5400******************************************************************************-
5401************************
5402******************************************************************************-
5403******************************************************************************-
5404************************
5405******************************************************************************-
5406******************************************************************************-
5407************************
5408******************************************************************************-
5409******************************************************************************-
5410************************
5411******************************************************************************-
5412******************************************************************************-
5413************************
5414******************************************************************************-
5415******************************************************************************-
5416************************
5417******************************************************************************-
5418******************************************************************************-
5419************************
5420******************************************************************************-
5421******************************************************************************-
5422************************
5423******************************************************************************-
5424******************************************************************************-
5425************************
5426******************************************************************************-
5427******************************************************************************-
5428************************
5429******************************************************************************-
5430******************************************************************************-
5431************************
5432******************************************************************************-
5433******************************************************************************-
5434************************
5435******************************************************************************-
5436******************************************************************************-
5437************************
5438******************************************************************************-
5439******************************************************************************-
5440************************
5441******************************************************************************-
5442******************************************************************************-
5443************************
5444******************************************************************************-
5445******************************************************************************-
5446************************
5447******************************************************************************-
5448******************************************************************************-
5449************************
5450******************************************************************************-
5451******************************************************************************-
5452************************
5453******************************************************************************-
5454******************************************************************************-
5455************************
5456******************************************************************************-
5457******************************************************************************-
5458************************
5459******************************************************************************-
5460******************************************************************************-
5461************************
5462******************************************************************************-
5463******************************************************************************-
5464************************
5465******************************************************************************-
5466******************************************************************************-
5467************************
5468******************************************************************************-
5469******************************************************************************-
5470************************
5471******************************************************************************-
5472******************************************************************************-
5473************************
5474******************************************************************************-
5475******************************************************************************-
5476************************
5477******************************************************************************-
5478******************************************************************************-
5479************************
5480******************************************************************************-
5481******************************************************************************-
5482************************
5483******************************************************************************-
5484******************************************************************************-
5485************************
5486******************************************************************************-
5487******************************************************************************-
5488************************
5489******************************************************************************-
5490******************************************************************************-
5491************************
5492******************************************************************************-
5493******************************************************************************-
5494************************
5495******************************************************************************-
5496******************************************************************************-
5497************************
5498******************************************************************************-
5499******************************************************************************-
5500************************
5501******************************************************************************-
5502******************************************************************************-
5503************************
5504******************************************************************************-
5505******************************************************************************-
5506************************
5507******************************************************************************-
5508******************************************************************************-
5509************************
5510******************************************************************************-
5511******************************************************************************-
5512************************
5513******************************************************************************-
5514******************************************************************************-
5515************************
5516******************************************************************************-
5517******************************************************************************-
5518************************
5519******************************************************************************-
5520******************************************************************************-
5521************************
5522******************************************************************************-
5523******************************************************************************-
5524************************
5525******************************************************************************-
5526******************************************************************************-
5527************************
5528******************************************************************************-
5529******************************************************************************-
5530************************
5531******************************************************************************-
5532******************************************************************************-
5533************************
5534******************************************************************************-
5535******************************************************************************-
5536************************
5537******************************************************************************-
5538******************************************************************************-
5539************************
5540******************************************************************************-
5541******************************************************************************-
5542************************
5543******************************************************************************-
5544******************************************************************************-
5545************************
5546******************************************************************************-
5547******************************************************************************-
5548************************
5549******************************************************************************-
5550******************************************************************************-
5551************************
5552******************************************************************************-
5553******************************************************************************-
5554************************
5555******************************************************************************-
5556******************************************************************************-
5557************************
5558******************************************************************************-
5559******************************************************************************-
5560************************
5561******************************************************************************-
5562******************************************************************************-
5563************************
5564******************************************************************************-
5565******************************************************************************-
5566************************
5567******************************************************************************-
5568******************************************************************************-
5569************************
5570******************************************************************************-
5571******************************************************************************-
5572************************
5573******************************************************************************-
5574******************************************************************************-
5575************************
5576******************************************************************************-
5577******************************************************************************-
5578************************
5579******************************************************************************-
5580******************************************************************************-
5581************************
5582******************************************************************************-
5583******************************************************************************-
5584************************
5585******************************************************************************-
5586******************************************************************************-
5587************************
5588******************************************************************************-
5589******************************************************************************-
5590************************
5591******************************************************************************-
5592******************************************************************************-
5593************************
5594******************************************************************************-
5595******************************************************************************-
5596************************
5597******************************************************************************-
5598******************************************************************************-
5599************************
5600******************************************************************************-
5601******************************************************************************-
5602************************
5603******************************************************************************-
5604******************************************************************************-
5605************************
5606******************************************************************************-
5607******************************************************************************-
5608************************
5609******************************************************************************-
5610******************************************************************************-
5611************************
5612******************************************************************************-
5613******************************************************************************-
5614************************
5615******************************************************************************-
5616******************************************************************************-
5617************************
5618******************************************************************************-
5619******************************************************************************-
5620************************
5621******************************************************************************-
5622******************************************************************************-
5623************************
5624******************************************************************************-
5625******************************************************************************-
5626************************
5627******************************************************************************-
5628******************************************************************************-
5629************************
5630******************************************************************************-
5631******************************************************************************-
5632************************
5633******************************************************************************-
5634******************************************************************************-
5635************************
5636******************************************************************************-
5637******************************************************************************-
5638************************
5639******************************************************************************-
5640******************************************************************************-
5641************************
5642******************************************************************************-
5643******************************************************************************-
5644************************
5645******************************************************************************-
5646******************************************************************************-
5647************************
5648******************************************************************************-
5649******************************************************************************-
5650************************
5651******************************************************************************-
5652******************************************************************************-
5653************************
5654******************************************************************************-
5655******************************************************************************-
5656************************
5657******************************************************************************-
5658******************************************************************************-
5659************************
5660******************************************************************************-
5661******************************************************************************-
5662************************
5663******************************************************************************-
5664******************************************************************************-
5665************************
5666******************************************************************************-
5667******************************************************************************-
5668************************
5669******************************************************************************-
5670******************************************************************************-
5671************************
5672******************************************************************************-
5673******************************************************************************-
5674************************
5675******************************************************************************-
5676******************************************************************************-
5677************************
5678******************************************************************************-
5679******************************************************************************-
5680************************
5681******************************************************************************-
5682******************************************************************************-
5683************************
5684******************************************************************************-
5685******************************************************************************-
5686************************
5687******************************************************************************-
5688******************************************************************************-
5689************************
5690******************************************************************************-
5691******************************************************************************-
5692************************
5693******************************************************************************-
5694******************************************************************************-
5695************************
5696******************************************************************************-
5697******************************************************************************-
5698************************
5699******************************************************************************-
5700******************************************************************************-
5701************************
5702******************************************************************************-
5703******************************************************************************-
5704************************
5705******************************************************************************-
5706******************************************************************************-
5707************************
5708******************************************************************************-
5709******************************************************************************-
5710************************
5711******************************************************************************-
5712******************************************************************************-
5713************************
5714******************************************************************************-
5715******************************************************************************-
5716************************
5717******************************************************************************-
5718******************************************************************************-
5719************************
5720******************************************************************************-
5721******************************************************************************-
5722************************
5723******************************************************************************-
5724******************************************************************************-
5725************************
5726******************************************************************************-
5727******************************************************************************-
5728************************
5729******************************************************************************-
5730******************************************************************************-
5731************************
5732******************************************************************************-
5733******************************************************************************-
5734************************
5735******************************************************************************-
5736******************************************************************************-
5737************************
5738******************************************************************************-
5739******************************************************************************-
5740************************
5741******************************************************************************-
5742******************************************************************************-
5743************************
5744******************************************************************************-
5745******************************************************************************-
5746************************
5747******************************************************************************-
5748******************************************************************************-
5749************************
5750******************************************************************************-
5751******************************************************************************-
5752************************
5753******************************************************************************-
5754******************************************************************************-
5755************************
5756******************************************************************************-
5757******************************************************************************-
5758************************
5759******************************************************************************-
5760******************************************************************************-
5761************************
5762******************************************************************************-
5763******************************************************************************-
5764************************
5765******************************************************************************-
5766******************************************************************************-
5767************************
5768******************************************************************************-
5769******************************************************************************-
5770************************
5771******************************************************************************-
5772******************************************************************************-
5773************************
5774******************************************************************************-
5775******************************************************************************-
5776************************
5777******************************************************************************-
5778******************************************************************************-
5779************************
5780******************************************************************************-
5781******************************************************************************-
5782************************
5783******************************************************************************-
5784******************************************************************************-
5785************************
5786******************************************************************************-
5787******************************************************************************-
5788************************
5789******************************************************************************-
5790******************************************************************************-
5791************************
5792******************************************************************************-
5793******************************************************************************-
5794************************
5795******************************************************************************-
5796******************************************************************************-
5797************************
5798******************************************************************************-
5799******************************************************************************-
5800************************
5801******************************************************************************-
5802******************************************************************************-
5803************************
5804******************************************************************************-
5805******************************************************************************-
5806************************
5807******************************************************************************-
5808******************************************************************************-
5809************************
5810******************************************************************************-
5811******************************************************************************-
5812************************
5813******************************************************************************-
5814******************************************************************************-
5815************************
5816******************************************************************************-
5817******************************************************************************-
5818************************
5819******************************************************************************-
5820******************************************************************************-
5821************************
5822******************************************************************************-
5823******************************************************************************-
5824************************
5825******************************************************************************-
5826******************************************************************************-
5827************************
5828******************************************************************************-
5829******************************************************************************-
5830************************
5831******************************************************************************-
5832******************************************************************************-
5833************************
5834******************************************************************************-
5835******************************************************************************-
5836************************
5837******************************************************************************-
5838******************************************************************************-
5839************************
5840******************************************************************************-
5841******************************************************************************-
5842************************
5843******************************************************************************-
5844******************************************************************************-
5845************************
5846******************************************************************************-
5847******************************************************************************-
5848************************
5849******************************************************************************-
5850******************************************************************************-
5851************************
5852******************************************************************************-
5853******************************************************************************-
5854************************
5855******************************************************************************-
5856******************************************************************************-
5857************************
5858******************************************************************************-
5859******************************************************************************-
5860************************
5861******************************************************************************-
5862******************************************************************************-
5863************************
5864******************************************************************************-
5865******************************************************************************-
5866************************
5867******************************************************************************-
5868******************************************************************************-
5869************************
5870******************************************************************************-
5871******************************************************************************-
5872************************
5873******************************************************************************-
5874******************************************************************************-
5875************************
5876******************************************************************************-
5877******************************************************************************-
5878************************
5879******************************************************************************-
5880******************************************************************************-
5881************************
5882******************************************************************************-
5883******************************************************************************-
5884************************
5885******************************************************************************-
5886******************************************************************************-
5887************************
5888******************************************************************************-
5889******************************************************************************-
5890************************
5891******************************************************************************-
5892******************************************************************************-
5893************************
5894******************************************************************************-
5895******************************************************************************-
5896************************
5897******************************************************************************-
5898******************************************************************************-
5899************************
5900******************************************************************************-
5901******************************************************************************-
5902************************
5903******************************************************************************-
5904******************************************************************************-
5905************************
5906******************************************************************************-
5907******************************************************************************-
5908************************
5909******************************************************************************-
5910******************************************************************************-
5911************************
5912******************************************************************************-
5913******************************************************************************-
5914************************
5915******************************************************************************-
5916******************************************************************************-
5917************************
5918******************************************************************************-
5919******************************************************************************-
5920************************
5921******************************************************************************-
5922******************************************************************************-
5923************************
5924******************************************************************************-
5925******************************************************************************-
5926************************
5927******************************************************************************-
5928******************************************************************************-
5929************************
5930******************************************************************************-
5931******************************************************************************-
5932************************
5933******************************************************************************-
5934******************************************************************************-
5935************************
5936******************************************************************************-
5937******************************************************************************-
5938************************
5939******************************************************************************-
5940******************************************************************************-
5941************************
5942******************************************************************************-
5943******************************************************************************-
5944************************
5945******************************************************************************-
5946******************************************************************************-
5947************************
5948******************************************************************************-
5949******************************************************************************-
5950************************
5951******************************************************************************-
5952******************************************************************************-
5953************************
5954******************************************************************************-
5955******************************************************************************-
5956************************
5957******************************************************************************-
5958******************************************************************************-
5959************************
5960******************************************************************************-
5961******************************************************************************-
5962************************
5963******************************************************************************-
5964******************************************************************************-
5965************************
5966******************************************************************************-
5967******************************************************************************-
5968************************
5969******************************************************************************-
5970******************************************************************************-
5971************************
5972******************************************************************************-
5973******************************************************************************-
5974************************
5975******************************************************************************-
5976******************************************************************************-
5977************************
5978******************************************************************************-
5979******************************************************************************-
5980************************
5981******************************************************************************-
5982******************************************************************************-
5983************************
5984******************************************************************************-
5985******************************************************************************-
5986************************
5987******************************************************************************-
5988******************************************************************************-
5989************************
5990******************************************************************************-
5991******************************************************************************-
5992************************
5993******************************************************************************-
5994******************************************************************************-
5995************************
5996******************************************************************************-
5997******************************************************************************-
5998************************
5999******************************************************************************-
6000******************************************************************************-
6001************************
6002******************************************************************************-
6003******************************************************************************-
6004************************
6005******************************************************************************-
6006******************************************************************************-
6007************************
6008******************************************************************************-
6009******************************************************************************-
6010************************
6011******************************************************************************-
6012******************************************************************************-
6013************************
6014******************************************************************************-
6015******************************************************************************-
6016************************
6017******************************************************************************-
6018******************************************************************************-
6019************************
6020******************************************************************************-
6021******************************************************************************-
6022************************
6023******************************************************************************-
6024******************************************************************************-
6025************************
6026******************************************************************************-
6027******************************************************************************-
6028************************
6029******************************************************************************-
6030******************************************************************************-
6031************************
6032******************************************************************************-
6033******************************************************************************-
6034************************
6035******************************************************************************-
6036******************************************************************************-
6037************************
6038******************************************************************************-
6039******************************************************************************-
6040************************
6041******************************************************************************-
6042******************************************************************************-
6043************************
6044******************************************************************************-
6045******************************************************************************-
6046************************
6047******************************************************************************-
6048******************************************************************************-
6049************************
6050******************************************************************************-
6051******************************************************************************-
6052************************
6053******************************************************************************-
6054******************************************************************************-
6055************************
6056******************************************************************************-
6057******************************************************************************-
6058************************
6059******************************************************************************-
6060******************************************************************************-
6061************************
6062******************************************************************************-
6063******************************************************************************-
6064************************
6065******************************************************************************-
6066******************************************************************************-
6067************************
6068******************************************************************************-
6069******************************************************************************-
6070************************
6071******************************************************************************-
6072******************************************************************************-
6073************************
6074******************************************************************************-
6075******************************************************************************-
6076************************
6077******************************************************************************-
6078******************************************************************************-
6079************************
6080******************************************************************************-
6081******************************************************************************-
6082************************
6083******************************************************************************-
6084******************************************************************************-
6085************************
6086******************************************************************************-
6087******************************************************************************-
6088************************
6089******************************************************************************-
6090******************************************************************************-
6091************************
6092******************************************************************************-
6093******************************************************************************-
6094************************
6095******************************************************************************-
6096******************************************************************************-
6097************************
6098******************************************************************************-
6099******************************************************************************-
6100************************
6101******************************************************************************-
6102******************************************************************************-
6103************************
6104******************************************************************************-
6105******************************************************************************-
6106************************
6107******************************************************************************-
6108******************************************************************************-
6109************************
6110******************************************************************************-
6111******************************************************************************-
6112************************
6113******************************************************************************-
6114******************************************************************************-
6115************************
6116******************************************************************************-
6117******************************************************************************-
6118************************
6119******************************************************************************-
6120******************************************************************************-
6121************************
6122******************************************************************************-
6123******************************************************************************-
6124************************
6125******************************************************************************-
6126******************************************************************************-
6127************************
6128******************************************************************************-
6129******************************************************************************-
6130************************
6131******************************************************************************-
6132******************************************************************************-
6133************************
6134******************************************************************************-
6135******************************************************************************-
6136************************
6137******************************************************************************-
6138******************************************************************************-
6139************************
6140******************************************************************************-
6141******************************************************************************-
6142************************
6143******************************************************************************-
6144******************************************************************************-
6145************************
6146******************************************************************************-
6147******************************************************************************-
6148************************
6149******************************************************************************-
6150******************************************************************************-
6151************************
6152******************************************************************************-
6153******************************************************************************-
6154************************
6155******************************************************************************-
6156******************************************************************************-
6157************************
6158******************************************************************************-
6159******************************************************************************-
6160************************
6161******************************************************************************-
6162******************************************************************************-
6163************************
6164******************************************************************************-
6165******************************************************************************-
6166************************
6167******************************************************************************-
6168******************************************************************************-
6169************************
6170******************************************************************************-
6171******************************************************************************-
6172************************
6173******************************************************************************-
6174******************************************************************************-
6175************************
6176******************************************************************************-
6177******************************************************************************-
6178************************
6179******************************************************************************-
6180******************************************************************************-
6181************************
6182******************************************************************************-
6183******************************************************************************-
6184************************
6185******************************************************************************-
6186******************************************************************************-
6187************************
6188******************************************************************************-
6189******************************************************************************-
6190************************
6191******************************************************************************-
6192******************************************************************************-
6193************************
6194******************************************************************************-
6195******************************************************************************-
6196************************
6197******************************************************************************-
6198******************************************************************************-
6199************************
6200******************************************************************************-
6201******************************************************************************-
6202************************
6203******************************************************************************-
6204******************************************************************************-
6205************************
6206******************************************************************************-
6207******************************************************************************-
6208************************
6209******************************************************************************-
6210******************************************************************************-
6211************************
6212******************************************************************************-
6213******************************************************************************-
6214************************
6215******************************************************************************-
6216******************************************************************************-
6217************************
6218******************************************************************************-
6219******************************************************************************-
6220************************
6221******************************************************************************-
6222******************************************************************************-
6223************************
6224******************************************************************************-
6225******************************************************************************-
6226************************
6227******************************************************************************-
6228******************************************************************************-
6229************************
6230******************************************************************************-
6231******************************************************************************-
6232************************
6233******************************************************************************-
6234******************************************************************************-
6235************************
6236******************************************************************************-
6237******************************************************************************-
6238************************
6239******************************************************************************-
6240******************************************************************************-
6241************************
6242******************************************************************************-
6243******************************************************************************-
6244************************
6245******************************************************************************-
6246******************************************************************************-
6247************************
6248******************************************************************************-
6249******************************************************************************-
6250************************
6251******************************************************************************-
6252******************************************************************************-
6253************************
6254******************************************************************************-
6255******************************************************************************-
6256************************
6257******************************************************************************-
6258******************************************************************************-
6259************************
6260******************************************************************************-
6261******************************************************************************-
6262************************
6263******************************************************************************-
6264******************************************************************************-
6265************************
6266******************************************************************************-
6267******************************************************************************-
6268************************
6269******************************************************************************-
6270******************************************************************************-
6271************************
6272******************************************************************************-
6273******************************************************************************-
6274************************
6275******************************************************************************-
6276******************************************************************************-
6277************************
6278******************************************************************************-
6279******************************************************************************-
6280************************
6281******************************************************************************-
Phil Nashd6e59cd2015-07-23 18:45:31 +01006282... message truncated due to excessive size" ends with: "... message truncated due to excessive size"
Phil Nash93a945c2013-10-23 15:35:07 +01006283 </Expanded>
6284 </Expression>
6285 <OverallResult success="true"/>
6286 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006287 <TestCase name="Parsing a std::pair">
Phil Nashc6635a72014-12-30 18:25:27 +00006288 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006289 <Original>
6290 (std::pair&lt;int, int>( 1, 2 )) == aNicePair
6291 </Original>
6292 <Expanded>
6293 std::pair( 1, 2 ) == std::pair( 1, 2 )
6294 </Expanded>
6295 </Expression>
6296 <OverallResult success="true"/>
6297 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00006298 <TestCase name="Where there is more to the expression after the RHS">
Phil Nash2f7a2962013-09-27 19:01:14 +01006299 <Warning>
6300 Uncomment the code in this test to check that it gives a sensible compiler error
6301 </Warning>
Phil Nash471bd252015-11-03 07:33:43 +00006302 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006303 </TestCase>
Phil Nash3c8c9b22014-12-22 20:17:50 +00006304 <TestCase name="Where the LHS is not a simple value">
Phil Nash2f7a2962013-09-27 19:01:14 +01006305 <Warning>
6306 Uncomment the code in this test to check that it gives a sensible compiler error
6307 </Warning>
Phil Nash471bd252015-11-03 07:33:43 +00006308 <OverallResult success="true"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006309 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00006310 <TestCase name="A failing expression with a non streamable type is still captured">
Phil Nashc6635a72014-12-30 18:25:27 +00006311 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006312 <Original>
6313 &amp;o1 == &amp;o2
6314 </Original>
6315 <Expanded>
6316 0x<hex digits> == 0x<hex digits>
6317 </Expanded>
6318 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006319 <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006320 <Original>
6321 o1 == o2
6322 </Original>
6323 <Expanded>
6324 {?} == {?}
6325 </Expanded>
6326 </Expression>
6327 <OverallResult success="false"/>
6328 </TestCase>
Phil Nash3dc37632014-12-21 00:20:09 +00006329 <TestCase name="string literals of different sizes can be compared">
Phil Nashc6635a72014-12-30 18:25:27 +00006330 <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006331 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006332 std::string( "first" ) == "second"
Phil Nash2f7a2962013-09-27 19:01:14 +01006333 </Original>
6334 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006335 "first" == "second"
Phil Nash2f7a2962013-09-27 19:01:14 +01006336 </Expanded>
6337 </Expression>
6338 <OverallResult success="false"/>
6339 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006340 <TestCase name="An expression with side-effects should only be evaluated once">
Phil Nashc6635a72014-12-30 18:25:27 +00006341 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006342 <Original>
6343 i++ == 7
6344 </Original>
6345 <Expanded>
6346 7 == 7
6347 </Expanded>
6348 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006349 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006350 <Original>
6351 i++ == 8
6352 </Original>
6353 <Expanded>
6354 8 == 8
6355 </Expanded>
6356 </Expression>
6357 <OverallResult success="true"/>
6358 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006359 <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup">
Phil Nashc6635a72014-12-30 18:25:27 +00006360 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006361 <Original>
6362 0x<hex digits> == o
6363 </Original>
6364 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006365 3221225472 (0x<hex digits>) == {?}
Phil Nash2f7a2962013-09-27 19:01:14 +01006366 </Expanded>
6367 </Expression>
6368 <OverallResult success="true"/>
6369 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006370 <TestCase name="Demonstrate that a non-const == is not used">
Phil Nashc6635a72014-12-30 18:25:27 +00006371 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006372 <Original>
6373 t == 1u
6374 </Original>
6375 <Expanded>
6376 {?} == 1
6377 </Expanded>
6378 </Expression>
6379 <OverallResult success="true"/>
6380 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006381 <TestCase name="Test enum bit values">
Phil Nashc6635a72014-12-30 18:25:27 +00006382 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006383 <Original>
6384 0x<hex digits> == bit30and31
6385 </Original>
6386 <Expanded>
Phil Nash6ed74b52015-05-20 18:28:22 +01006387 3221225472 (0x<hex digits>) == 3221225472
Phil Nash2f7a2962013-09-27 19:01:14 +01006388 </Expanded>
6389 </Expression>
6390 <OverallResult success="true"/>
6391 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006392 <TestCase name="boolean member">
Phil Nashc6635a72014-12-30 18:25:27 +00006393 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006394 <Original>
Phil Nash805de432015-07-01 07:33:27 +01006395 obj.prop != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01006396 </Original>
6397 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006398 0x<hex digits> != nullptr
Phil Nash2f7a2962013-09-27 19:01:14 +01006399 </Expanded>
6400 </Expression>
6401 <OverallResult success="true"/>
6402 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006403 <TestCase name="(unimplemented) static bools can be evaluated">
Phil Nash2f7a2962013-09-27 19:01:14 +01006404 <Section name="compare to true">
Phil Nashc6635a72014-12-30 18:25:27 +00006405 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006406 <Original>
6407 is_true&lt;true>::value == true
6408 </Original>
6409 <Expanded>
6410 true == true
6411 </Expanded>
6412 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006413 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006414 <Original>
6415 true == is_true&lt;true>::value
6416 </Original>
6417 <Expanded>
6418 true == true
6419 </Expanded>
6420 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006421 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006422 </Section>
6423 <Section name="compare to false">
Phil Nashc6635a72014-12-30 18:25:27 +00006424 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006425 <Original>
6426 is_true&lt;false>::value == false
6427 </Original>
6428 <Expanded>
6429 false == false
6430 </Expanded>
6431 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006432 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006433 <Original>
6434 false == is_true&lt;false>::value
6435 </Original>
6436 <Expanded>
6437 false == false
6438 </Expanded>
6439 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006440 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006441 </Section>
6442 <Section name="negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006443 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006444 <Original>
6445 !is_true&lt;false>::value
6446 </Original>
6447 <Expanded>
6448 true
6449 </Expanded>
6450 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006451 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006452 </Section>
6453 <Section name="double negation">
Phil Nashc6635a72014-12-30 18:25:27 +00006454 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006455 <Original>
6456 !!is_true&lt;true>::value
6457 </Original>
6458 <Expanded>
6459 true
6460 </Expanded>
6461 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006462 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006463 </Section>
6464 <Section name="direct">
Phil Nashc6635a72014-12-30 18:25:27 +00006465 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006466 <Original>
6467 is_true&lt;true>::value
6468 </Original>
6469 <Expanded>
6470 true
6471 </Expanded>
6472 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006473 <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006474 <Original>
6475 !is_true&lt;false>::value
6476 </Original>
6477 <Expanded>
6478 !false
6479 </Expanded>
6480 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006481 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006482 </Section>
6483 <OverallResult success="true"/>
6484 </TestCase>
Phil Nash337dc252013-11-19 07:21:03 +00006485 <TestCase name="Objects that evaluated in boolean contexts can be checked">
Phil Nashc6635a72014-12-30 18:25:27 +00006486 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006487 <Original>
6488 True
6489 </Original>
6490 <Expanded>
6491 true
6492 </Expanded>
6493 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006494 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006495 <Original>
6496 !False
6497 </Original>
6498 <Expanded>
6499 true
6500 </Expanded>
6501 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006502 <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006503 <Original>
6504 !False
6505 </Original>
6506 <Expanded>
6507 !false
6508 </Expanded>
6509 </Expression>
6510 <OverallResult success="true"/>
6511 </TestCase>
6512 <TestCase name="Assertions then sections">
Phil Nashc6635a72014-12-30 18:25:27 +00006513 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006514 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006515 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006516 </Original>
6517 <Expanded>
6518 true
6519 </Expanded>
6520 </Expression>
Phil Nash2f7a2962013-09-27 19:01:14 +01006521 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006522 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006523 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006524 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006525 </Original>
6526 <Expanded>
6527 true
6528 </Expanded>
6529 </Expression>
6530 <Section name="Another section">
Phil Nashc6635a72014-12-30 18:25:27 +00006531 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006532 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006533 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006534 </Original>
6535 <Expanded>
6536 true
6537 </Expanded>
6538 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006539 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006540 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006541 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006542 </Section>
Phil Nashc6635a72014-12-30 18:25:27 +00006543 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006544 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006545 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006546 </Original>
6547 <Expanded>
6548 true
6549 </Expanded>
6550 </Expression>
6551 <Section name="A section">
Phil Nashc6635a72014-12-30 18:25:27 +00006552 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006553 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006554 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006555 </Original>
6556 <Expanded>
6557 true
6558 </Expanded>
6559 </Expression>
6560 <Section name="Another other section">
Phil Nashc6635a72014-12-30 18:25:27 +00006561 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006562 <Original>
Phil Nash9438a032014-05-28 18:53:01 +01006563 Catch::alwaysTrue()
Phil Nash2f7a2962013-09-27 19:01:14 +01006564 </Original>
6565 <Expanded>
6566 true
6567 </Expanded>
6568 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006569 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006570 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01006571 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01006572 </Section>
6573 <OverallResult success="true"/>
6574 </TestCase>
6575 <TestCase name="non streamable - with conv. op">
Phil Nashc6635a72014-12-30 18:25:27 +00006576 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006577 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006578 s == "7"
Phil Nash2f7a2962013-09-27 19:01:14 +01006579 </Original>
6580 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006581 "7" == "7"
Phil Nash2f7a2962013-09-27 19:01:14 +01006582 </Expanded>
6583 </Expression>
6584 <OverallResult success="true"/>
6585 </TestCase>
6586 <TestCase name="Comparing function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006587 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006588 <Original>
6589 a
6590 </Original>
6591 <Expanded>
6592 true
6593 </Expanded>
6594 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00006595 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006596 <Original>
6597 a == &amp;foo
6598 </Original>
6599 <Expanded>
Phil Nashe0910182014-01-07 17:25:27 +00006600 0x<hex digits> == 0x<hex digits>
6601 </Expanded>
6602 </Expression>
6603 <OverallResult success="true"/>
6604 </TestCase>
6605 <TestCase name="Comparing member function pointers">
Phil Nashc6635a72014-12-30 18:25:27 +00006606 <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nashe0910182014-01-07 17:25:27 +00006607 <Original>
6608 m == &amp;S::f
6609 </Original>
6610 <Expanded>
Phil Nash0edebf42015-07-28 18:24:20 +01006611 0x<hex digits>
6612==
66130x<hex digits>
Phil Nash2f7a2962013-09-27 19:01:14 +01006614 </Expanded>
6615 </Expression>
6616 <OverallResult success="true"/>
6617 </TestCase>
6618 <TestCase name="pointer to class">
Phil Nashc6635a72014-12-30 18:25:27 +00006619 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01006620 <Original>
6621 p == 0
6622 </Original>
6623 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006624 NULL == 0
Phil Nash2f7a2962013-09-27 19:01:14 +01006625 </Expanded>
6626 </Expression>
6627 <OverallResult success="true"/>
6628 </TestCase>
Phil Nash1a6f2a02014-04-23 18:19:19 +01006629 <TestCase name="null_ptr">
Phil Nashc6635a72014-12-30 18:25:27 +00006630 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" >
Phil Nash1a6f2a02014-04-23 18:19:19 +01006631 <Original>
6632 ptr.get() == nullptr
6633 </Original>
6634 <Expanded>
Phil Nash805de432015-07-01 07:33:27 +01006635 NULL == nullptr
Phil Nash1a6f2a02014-04-23 18:19:19 +01006636 </Expanded>
6637 </Expression>
6638 <OverallResult success="true"/>
6639 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01006640 <TestCase name="X/level/0/a">
6641 <OverallResult success="true"/>
6642 </TestCase>
6643 <TestCase name="X/level/0/b">
6644 <OverallResult success="true"/>
6645 </TestCase>
6646 <TestCase name="X/level/1/a">
6647 <OverallResult success="true"/>
6648 </TestCase>
6649 <TestCase name="X/level/1/b">
6650 <OverallResult success="true"/>
6651 </TestCase>
Phil Nash5ea32662014-09-03 19:22:47 +01006652 <TestCase name="toString( has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006653 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006654 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006655 Catch::toString( item ) == "toString( has_toString )"
Phil Nash5ea32662014-09-03 19:22:47 +01006656 </Original>
6657 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006658 "toString( has_toString )"
Phil Nash5ea32662014-09-03 19:22:47 +01006659==
Phil Nashd6e59cd2015-07-23 18:45:31 +01006660"toString( has_toString )"
Phil Nash5ea32662014-09-03 19:22:47 +01006661 </Expanded>
6662 </Expression>
6663 <OverallResult success="true"/>
6664 </TestCase>
6665 <TestCase name="toString( has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006666 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006667 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006668 Catch::toString( item ) == "StringMaker&lt;has_maker>"
Phil Nash5ea32662014-09-03 19:22:47 +01006669 </Original>
6670 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006671 "StringMaker&lt;has_maker>"
Phil Nash5ea32662014-09-03 19:22:47 +01006672==
Phil Nashd6e59cd2015-07-23 18:45:31 +01006673"StringMaker&lt;has_maker>"
Phil Nash5ea32662014-09-03 19:22:47 +01006674 </Expanded>
6675 </Expression>
6676 <OverallResult success="true"/>
6677 </TestCase>
6678 <TestCase name="toString( has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006679 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006680 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006681 Catch::toString( item ) == "toString( has_maker_and_toString )"
Phil Nash5ea32662014-09-03 19:22:47 +01006682 </Original>
6683 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006684 "toString( has_maker_and_toString )"
Phil Nash5ea32662014-09-03 19:22:47 +01006685==
Phil Nashd6e59cd2015-07-23 18:45:31 +01006686"toString( has_maker_and_toString )"
Phil Nash5ea32662014-09-03 19:22:47 +01006687 </Expanded>
6688 </Expression>
6689 <OverallResult success="true"/>
6690 </TestCase>
6691 <TestCase name="toString( vectors&lt;has_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006692 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006693 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006694 Catch::toString( v ) == "{ {?} }"
Phil Nash5ea32662014-09-03 19:22:47 +01006695 </Original>
6696 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006697 "{ {?} }" == "{ {?} }"
Phil Nash5ea32662014-09-03 19:22:47 +01006698 </Expanded>
6699 </Expression>
6700 <OverallResult success="true"/>
6701 </TestCase>
6702 <TestCase name="toString( vectors&lt;has_maker )">
Phil Nashc6635a72014-12-30 18:25:27 +00006703 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006704 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006705 Catch::toString( v ) == "{ StringMaker&lt;has_maker> }"
Phil Nash5ea32662014-09-03 19:22:47 +01006706 </Original>
6707 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006708 "{ StringMaker&lt;has_maker> }"
Phil Nash5ea32662014-09-03 19:22:47 +01006709==
Phil Nashd6e59cd2015-07-23 18:45:31 +01006710"{ StringMaker&lt;has_maker> }"
Phil Nash5ea32662014-09-03 19:22:47 +01006711 </Expanded>
6712 </Expression>
6713 <OverallResult success="true"/>
6714 </TestCase>
6715 <TestCase name="toString( vectors&lt;has_maker_and_toString )">
Phil Nashc6635a72014-12-30 18:25:27 +00006716 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01006717 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006718 Catch::toString( v ) == "{ StringMaker&lt;has_maker_and_toString> }"
Phil Nash5ea32662014-09-03 19:22:47 +01006719 </Original>
6720 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01006721 "{ StringMaker&lt;has_maker_and_toString> }"
Phil Nash5ea32662014-09-03 19:22:47 +01006722==
Phil Nashd6e59cd2015-07-23 18:45:31 +01006723"{ StringMaker&lt;has_maker_and_toString> }"
Phil Nash5ea32662014-09-03 19:22:47 +01006724 </Expanded>
6725 </Expression>
6726 <OverallResult success="true"/>
6727 </TestCase>
Phil Nash471bd252015-11-03 07:33:43 +00006728 <TestCase name="Tracker">
6729 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6730 <Original>
6731 testCase.isOpen()
6732 </Original>
6733 <Expanded>
6734 true
6735 </Expanded>
6736 </Expression>
6737 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6738 <Original>
6739 s1.isOpen()
6740 </Original>
6741 <Expanded>
6742 true
6743 </Expanded>
6744 </Expression>
6745 <Section name="successfully close one section">
6746 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6747 <Original>
6748 s1.isSuccessfullyCompleted()
6749 </Original>
6750 <Expanded>
6751 true
6752 </Expanded>
6753 </Expression>
6754 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6755 <Original>
6756 testCase.isComplete() == false
6757 </Original>
6758 <Expanded>
6759 false == false
6760 </Expanded>
6761 </Expression>
6762 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6763 <Original>
6764 ctx.completedCycle()
6765 </Original>
6766 <Expanded>
6767 true
6768 </Expanded>
6769 </Expression>
6770 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6771 <Original>
6772 testCase.isSuccessfullyCompleted()
6773 </Original>
6774 <Expanded>
6775 true
6776 </Expanded>
6777 </Expression>
6778 <OverallResults successes="4" failures="0" expectedFailures="0"/>
6779 </Section>
6780 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6781 <Original>
6782 testCase.isOpen()
6783 </Original>
6784 <Expanded>
6785 true
6786 </Expanded>
6787 </Expression>
6788 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6789 <Original>
6790 s1.isOpen()
6791 </Original>
6792 <Expanded>
6793 true
6794 </Expanded>
6795 </Expression>
6796 <Section name="fail one section">
6797 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6798 <Original>
6799 s1.isComplete()
6800 </Original>
6801 <Expanded>
6802 true
6803 </Expanded>
6804 </Expression>
6805 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6806 <Original>
6807 s1.isSuccessfullyCompleted() == false
6808 </Original>
6809 <Expanded>
6810 false == false
6811 </Expanded>
6812 </Expression>
6813 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6814 <Original>
6815 testCase.isComplete() == false
6816 </Original>
6817 <Expanded>
6818 false == false
6819 </Expanded>
6820 </Expression>
6821 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6822 <Original>
6823 ctx.completedCycle()
6824 </Original>
6825 <Expanded>
6826 true
6827 </Expanded>
6828 </Expression>
6829 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6830 <Original>
6831 testCase.isSuccessfullyCompleted() == false
6832 </Original>
6833 <Expanded>
6834 false == false
6835 </Expanded>
6836 </Expression>
6837 <Section name="re-enter after failed section">
6838 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6839 <Original>
6840 testCase2.isOpen()
6841 </Original>
6842 <Expanded>
6843 true
6844 </Expanded>
6845 </Expression>
6846 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6847 <Original>
6848 s1b.isOpen() == false
6849 </Original>
6850 <Expanded>
6851 false == false
6852 </Expanded>
6853 </Expression>
6854 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6855 <Original>
6856 ctx.completedCycle()
6857 </Original>
6858 <Expanded>
6859 true
6860 </Expanded>
6861 </Expression>
6862 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6863 <Original>
6864 testCase.isComplete()
6865 </Original>
6866 <Expanded>
6867 true
6868 </Expanded>
6869 </Expression>
6870 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6871 <Original>
6872 testCase.isSuccessfullyCompleted()
6873 </Original>
6874 <Expanded>
6875 true
6876 </Expanded>
6877 </Expression>
6878 <OverallResults successes="5" failures="0" expectedFailures="0"/>
6879 </Section>
6880 <OverallResults successes="10" failures="0" expectedFailures="0"/>
6881 </Section>
6882 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6883 <Original>
6884 testCase.isOpen()
6885 </Original>
6886 <Expanded>
6887 true
6888 </Expanded>
6889 </Expression>
6890 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6891 <Original>
6892 s1.isOpen()
6893 </Original>
6894 <Expanded>
6895 true
6896 </Expanded>
6897 </Expression>
6898 <Section name="fail one section">
6899 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6900 <Original>
6901 s1.isComplete()
6902 </Original>
6903 <Expanded>
6904 true
6905 </Expanded>
6906 </Expression>
6907 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6908 <Original>
6909 s1.isSuccessfullyCompleted() == false
6910 </Original>
6911 <Expanded>
6912 false == false
6913 </Expanded>
6914 </Expression>
6915 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6916 <Original>
6917 testCase.isComplete() == false
6918 </Original>
6919 <Expanded>
6920 false == false
6921 </Expanded>
6922 </Expression>
6923 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6924 <Original>
6925 ctx.completedCycle()
6926 </Original>
6927 <Expanded>
6928 true
6929 </Expanded>
6930 </Expression>
6931 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6932 <Original>
6933 testCase.isSuccessfullyCompleted() == false
6934 </Original>
6935 <Expanded>
6936 false == false
6937 </Expanded>
6938 </Expression>
6939 <Section name="re-enter after failed section and find next section">
6940 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6941 <Original>
6942 testCase2.isOpen()
6943 </Original>
6944 <Expanded>
6945 true
6946 </Expanded>
6947 </Expression>
6948 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6949 <Original>
6950 s1b.isOpen() == false
6951 </Original>
6952 <Expanded>
6953 false == false
6954 </Expanded>
6955 </Expression>
6956 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6957 <Original>
6958 s2.isOpen()
6959 </Original>
6960 <Expanded>
6961 true
6962 </Expanded>
6963 </Expression>
6964 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6965 <Original>
6966 ctx.completedCycle()
6967 </Original>
6968 <Expanded>
6969 true
6970 </Expanded>
6971 </Expression>
6972 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6973 <Original>
6974 testCase.isComplete()
6975 </Original>
6976 <Expanded>
6977 true
6978 </Expanded>
6979 </Expression>
6980 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6981 <Original>
6982 testCase.isSuccessfullyCompleted()
6983 </Original>
6984 <Expanded>
6985 true
6986 </Expanded>
6987 </Expression>
6988 <OverallResults successes="6" failures="0" expectedFailures="0"/>
6989 </Section>
6990 <OverallResults successes="11" failures="0" expectedFailures="0"/>
6991 </Section>
6992 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
6993 <Original>
6994 testCase.isOpen()
6995 </Original>
6996 <Expanded>
6997 true
6998 </Expanded>
6999 </Expression>
7000 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7001 <Original>
7002 s1.isOpen()
7003 </Original>
7004 <Expanded>
7005 true
7006 </Expanded>
7007 </Expression>
7008 <Section name="successfully close one section, then find another">
7009 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7010 <Original>
7011 s2.isOpen() == false
7012 </Original>
7013 <Expanded>
7014 false == false
7015 </Expanded>
7016 </Expression>
7017 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7018 <Original>
7019 testCase.isComplete() == false
7020 </Original>
7021 <Expanded>
7022 false == false
7023 </Expanded>
7024 </Expression>
7025 <Section name="Re-enter - skips S1 and enters S2">
7026 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7027 <Original>
7028 testCase2.isOpen()
7029 </Original>
7030 <Expanded>
7031 true
7032 </Expanded>
7033 </Expression>
7034 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7035 <Original>
7036 s1b.isOpen() == false
7037 </Original>
7038 <Expanded>
7039 false == false
7040 </Expanded>
7041 </Expression>
7042 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7043 <Original>
7044 s2b.isOpen()
7045 </Original>
7046 <Expanded>
7047 true
7048 </Expanded>
7049 </Expression>
7050 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7051 <Original>
7052 ctx.completedCycle() == false
7053 </Original>
7054 <Expanded>
7055 false == false
7056 </Expanded>
7057 </Expression>
7058 <Section name="Successfully close S2">
7059 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7060 <Original>
7061 ctx.completedCycle()
7062 </Original>
7063 <Expanded>
7064 true
7065 </Expanded>
7066 </Expression>
7067 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7068 <Original>
7069 s2b.isSuccessfullyCompleted()
7070 </Original>
7071 <Expanded>
7072 true
7073 </Expanded>
7074 </Expression>
7075 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7076 <Original>
7077 testCase2.isComplete() == false
7078 </Original>
7079 <Expanded>
7080 false == false
7081 </Expanded>
7082 </Expression>
7083 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7084 <Original>
7085 testCase2.isSuccessfullyCompleted()
7086 </Original>
7087 <Expanded>
7088 true
7089 </Expanded>
7090 </Expression>
7091 <OverallResults successes="4" failures="0" expectedFailures="0"/>
7092 </Section>
7093 <OverallResults successes="8" failures="0" expectedFailures="0"/>
7094 </Section>
7095 <OverallResults successes="10" failures="0" expectedFailures="0"/>
7096 </Section>
7097 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7098 <Original>
7099 testCase.isOpen()
7100 </Original>
7101 <Expanded>
7102 true
7103 </Expanded>
7104 </Expression>
7105 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7106 <Original>
7107 s1.isOpen()
7108 </Original>
7109 <Expanded>
7110 true
7111 </Expanded>
7112 </Expression>
7113 <Section name="successfully close one section, then find another">
7114 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7115 <Original>
7116 s2.isOpen() == false
7117 </Original>
7118 <Expanded>
7119 false == false
7120 </Expanded>
7121 </Expression>
7122 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7123 <Original>
7124 testCase.isComplete() == false
7125 </Original>
7126 <Expanded>
7127 false == false
7128 </Expanded>
7129 </Expression>
7130 <Section name="Re-enter - skips S1 and enters S2">
7131 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7132 <Original>
7133 testCase2.isOpen()
7134 </Original>
7135 <Expanded>
7136 true
7137 </Expanded>
7138 </Expression>
7139 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7140 <Original>
7141 s1b.isOpen() == false
7142 </Original>
7143 <Expanded>
7144 false == false
7145 </Expanded>
7146 </Expression>
7147 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7148 <Original>
7149 s2b.isOpen()
7150 </Original>
7151 <Expanded>
7152 true
7153 </Expanded>
7154 </Expression>
7155 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7156 <Original>
7157 ctx.completedCycle() == false
7158 </Original>
7159 <Expanded>
7160 false == false
7161 </Expanded>
7162 </Expression>
7163 <Section name="fail S2">
7164 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7165 <Original>
7166 ctx.completedCycle()
7167 </Original>
7168 <Expanded>
7169 true
7170 </Expanded>
7171 </Expression>
7172 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7173 <Original>
7174 s2b.isComplete()
7175 </Original>
7176 <Expanded>
7177 true
7178 </Expanded>
7179 </Expression>
7180 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7181 <Original>
7182 s2b.isSuccessfullyCompleted() == false
7183 </Original>
7184 <Expanded>
7185 false == false
7186 </Expanded>
7187 </Expression>
7188 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7189 <Original>
7190 testCase2.isSuccessfullyCompleted() == false
7191 </Original>
7192 <Expanded>
7193 false == false
7194 </Expanded>
7195 </Expression>
7196 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7197 <Original>
7198 testCase3.isOpen()
7199 </Original>
7200 <Expanded>
7201 true
7202 </Expanded>
7203 </Expression>
7204 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7205 <Original>
7206 s1c.isOpen() == false
7207 </Original>
7208 <Expanded>
7209 false == false
7210 </Expanded>
7211 </Expression>
7212 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7213 <Original>
7214 s2c.isOpen() == false
7215 </Original>
7216 <Expanded>
7217 false == false
7218 </Expanded>
7219 </Expression>
7220 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7221 <Original>
7222 testCase3.isSuccessfullyCompleted()
7223 </Original>
7224 <Expanded>
7225 true
7226 </Expanded>
7227 </Expression>
7228 <OverallResults successes="8" failures="0" expectedFailures="0"/>
7229 </Section>
7230 <OverallResults successes="12" failures="0" expectedFailures="0"/>
7231 </Section>
7232 <OverallResults successes="14" failures="0" expectedFailures="0"/>
7233 </Section>
7234 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7235 <Original>
7236 testCase.isOpen()
7237 </Original>
7238 <Expanded>
7239 true
7240 </Expanded>
7241 </Expression>
7242 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7243 <Original>
7244 s1.isOpen()
7245 </Original>
7246 <Expanded>
7247 true
7248 </Expanded>
7249 </Expression>
7250 <Section name="open a nested section">
7251 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7252 <Original>
7253 s2.isOpen()
7254 </Original>
7255 <Expanded>
7256 true
7257 </Expanded>
7258 </Expression>
7259 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7260 <Original>
7261 s2.isComplete()
7262 </Original>
7263 <Expanded>
7264 true
7265 </Expanded>
7266 </Expression>
7267 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7268 <Original>
7269 s1.isComplete() == false
7270 </Original>
7271 <Expanded>
7272 false == false
7273 </Expanded>
7274 </Expression>
7275 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7276 <Original>
7277 s1.isComplete()
7278 </Original>
7279 <Expanded>
7280 true
7281 </Expanded>
7282 </Expression>
7283 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7284 <Original>
7285 testCase.isComplete() == false
7286 </Original>
7287 <Expanded>
7288 false == false
7289 </Expanded>
7290 </Expression>
7291 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7292 <Original>
7293 testCase.isComplete()
7294 </Original>
7295 <Expanded>
7296 true
7297 </Expanded>
7298 </Expression>
7299 <OverallResults successes="6" failures="0" expectedFailures="0"/>
7300 </Section>
7301 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7302 <Original>
7303 testCase.isOpen()
7304 </Original>
7305 <Expanded>
7306 true
7307 </Expanded>
7308 </Expression>
7309 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7310 <Original>
7311 s1.isOpen()
7312 </Original>
7313 <Expanded>
7314 true
7315 </Expanded>
7316 </Expression>
7317 <Section name="start a generator">
7318 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7319 <Original>
7320 g1.isOpen()
7321 </Original>
7322 <Expanded>
7323 true
7324 </Expanded>
7325 </Expression>
7326 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7327 <Original>
7328 g1.index() == 0
7329 </Original>
7330 <Expanded>
7331 0 == 0
7332 </Expanded>
7333 </Expression>
7334 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7335 <Original>
7336 g1.isComplete() == false
7337 </Original>
7338 <Expanded>
7339 false == false
7340 </Expanded>
7341 </Expression>
7342 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7343 <Original>
7344 s1.isComplete() == false
7345 </Original>
7346 <Expanded>
7347 false == false
7348 </Expanded>
7349 </Expression>
7350 <Section name="close outer section">
7351 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7352 <Original>
7353 s1.isComplete() == false
7354 </Original>
7355 <Expanded>
7356 false == false
7357 </Expanded>
7358 </Expression>
7359 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7360 <Original>
7361 testCase.isSuccessfullyCompleted() == false
7362 </Original>
7363 <Expanded>
7364 false == false
7365 </Expanded>
7366 </Expression>
7367 <Section name="Re-enter for second generation">
7368 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7369 <Original>
7370 testCase2.isOpen()
7371 </Original>
7372 <Expanded>
7373 true
7374 </Expanded>
7375 </Expression>
7376 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7377 <Original>
7378 s1b.isOpen()
7379 </Original>
7380 <Expanded>
7381 true
7382 </Expanded>
7383 </Expression>
7384 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7385 <Original>
7386 g1b.isOpen()
7387 </Original>
7388 <Expanded>
7389 true
7390 </Expanded>
7391 </Expression>
7392 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7393 <Original>
7394 g1b.index() == 1
7395 </Original>
7396 <Expanded>
7397 1 == 1
7398 </Expanded>
7399 </Expression>
7400 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7401 <Original>
7402 s1.isComplete() == false
7403 </Original>
7404 <Expanded>
7405 false == false
7406 </Expanded>
7407 </Expression>
7408 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7409 <Original>
7410 s1b.isComplete()
7411 </Original>
7412 <Expanded>
7413 true
7414 </Expanded>
7415 </Expression>
7416 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7417 <Original>
7418 g1b.isComplete()
7419 </Original>
7420 <Expanded>
7421 true
7422 </Expanded>
7423 </Expression>
7424 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7425 <Original>
7426 testCase2.isComplete()
7427 </Original>
7428 <Expanded>
7429 true
7430 </Expanded>
7431 </Expression>
7432 <OverallResults successes="8" failures="0" expectedFailures="0"/>
7433 </Section>
7434 <OverallResults successes="10" failures="0" expectedFailures="0"/>
7435 </Section>
7436 <OverallResults successes="14" failures="0" expectedFailures="0"/>
7437 </Section>
7438 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7439 <Original>
7440 testCase.isOpen()
7441 </Original>
7442 <Expanded>
7443 true
7444 </Expanded>
7445 </Expression>
7446 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7447 <Original>
7448 s1.isOpen()
7449 </Original>
7450 <Expanded>
7451 true
7452 </Expanded>
7453 </Expression>
7454 <Section name="start a generator">
7455 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7456 <Original>
7457 g1.isOpen()
7458 </Original>
7459 <Expanded>
7460 true
7461 </Expanded>
7462 </Expression>
7463 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7464 <Original>
7465 g1.index() == 0
7466 </Original>
7467 <Expanded>
7468 0 == 0
7469 </Expanded>
7470 </Expression>
7471 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7472 <Original>
7473 g1.isComplete() == false
7474 </Original>
7475 <Expanded>
7476 false == false
7477 </Expanded>
7478 </Expression>
7479 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7480 <Original>
7481 s1.isComplete() == false
7482 </Original>
7483 <Expanded>
7484 false == false
7485 </Expanded>
7486 </Expression>
7487 <Section name="Start a new inner section">
7488 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7489 <Original>
7490 s2.isOpen()
7491 </Original>
7492 <Expanded>
7493 true
7494 </Expanded>
7495 </Expression>
7496 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7497 <Original>
7498 s2.isComplete()
7499 </Original>
7500 <Expanded>
7501 true
7502 </Expanded>
7503 </Expression>
7504 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7505 <Original>
7506 s1.isComplete() == false
7507 </Original>
7508 <Expanded>
7509 false == false
7510 </Expanded>
7511 </Expression>
7512 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7513 <Original>
7514 testCase.isComplete() == false
7515 </Original>
7516 <Expanded>
7517 false == false
7518 </Expanded>
7519 </Expression>
7520 <Section name="Re-enter for second generation">
7521 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7522 <Original>
7523 testCase2.isOpen()
7524 </Original>
7525 <Expanded>
7526 true
7527 </Expanded>
7528 </Expression>
7529 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7530 <Original>
7531 s1b.isOpen()
7532 </Original>
7533 <Expanded>
7534 true
7535 </Expanded>
7536 </Expression>
7537 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7538 <Original>
7539 g1b.isOpen()
7540 </Original>
7541 <Expanded>
7542 true
7543 </Expanded>
7544 </Expression>
7545 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7546 <Original>
7547 g1b.index() == 1
7548 </Original>
7549 <Expanded>
7550 1 == 1
7551 </Expanded>
7552 </Expression>
7553 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7554 <Original>
7555 s2b.isOpen()
7556 </Original>
7557 <Expanded>
7558 true
7559 </Expanded>
7560 </Expression>
7561 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7562 <Original>
7563 s2b.isComplete()
7564 </Original>
7565 <Expanded>
7566 true
7567 </Expanded>
7568 </Expression>
7569 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7570 <Original>
7571 g1b.isComplete()
7572 </Original>
7573 <Expanded>
7574 true
7575 </Expanded>
7576 </Expression>
7577 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7578 <Original>
7579 s1b.isComplete()
7580 </Original>
7581 <Expanded>
7582 true
7583 </Expanded>
7584 </Expression>
7585 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7586 <Original>
7587 testCase2.isComplete()
7588 </Original>
7589 <Expanded>
7590 true
7591 </Expanded>
7592 </Expression>
7593 <OverallResults successes="9" failures="0" expectedFailures="0"/>
7594 </Section>
7595 <OverallResults successes="13" failures="0" expectedFailures="0"/>
7596 </Section>
7597 <OverallResults successes="17" failures="0" expectedFailures="0"/>
7598 </Section>
7599 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7600 <Original>
7601 testCase.isOpen()
7602 </Original>
7603 <Expanded>
7604 true
7605 </Expanded>
7606 </Expression>
7607 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7608 <Original>
7609 s1.isOpen()
7610 </Original>
7611 <Expanded>
7612 true
7613 </Expanded>
7614 </Expression>
7615 <Section name="start a generator">
7616 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7617 <Original>
7618 g1.isOpen()
7619 </Original>
7620 <Expanded>
7621 true
7622 </Expanded>
7623 </Expression>
7624 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7625 <Original>
7626 g1.index() == 0
7627 </Original>
7628 <Expanded>
7629 0 == 0
7630 </Expanded>
7631 </Expression>
7632 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7633 <Original>
7634 g1.isComplete() == false
7635 </Original>
7636 <Expanded>
7637 false == false
7638 </Expanded>
7639 </Expression>
7640 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7641 <Original>
7642 s1.isComplete() == false
7643 </Original>
7644 <Expanded>
7645 false == false
7646 </Expanded>
7647 </Expression>
7648 <Section name="Fail an inner section">
7649 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7650 <Original>
7651 s2.isOpen()
7652 </Original>
7653 <Expanded>
7654 true
7655 </Expanded>
7656 </Expression>
7657 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7658 <Original>
7659 s2.isComplete()
7660 </Original>
7661 <Expanded>
7662 true
7663 </Expanded>
7664 </Expression>
7665 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7666 <Original>
7667 s2.isSuccessfullyCompleted() == false
7668 </Original>
7669 <Expanded>
7670 false == false
7671 </Expanded>
7672 </Expression>
7673 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7674 <Original>
7675 s1.isComplete() == false
7676 </Original>
7677 <Expanded>
7678 false == false
7679 </Expanded>
7680 </Expression>
7681 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7682 <Original>
7683 testCase.isComplete() == false
7684 </Original>
7685 <Expanded>
7686 false == false
7687 </Expanded>
7688 </Expression>
7689 <Section name="Re-enter for second generation">
7690 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7691 <Original>
7692 testCase2.isOpen()
7693 </Original>
7694 <Expanded>
7695 true
7696 </Expanded>
7697 </Expression>
7698 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7699 <Original>
7700 s1b.isOpen()
7701 </Original>
7702 <Expanded>
7703 true
7704 </Expanded>
7705 </Expression>
7706 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7707 <Original>
7708 g1b.isOpen()
7709 </Original>
7710 <Expanded>
7711 true
7712 </Expanded>
7713 </Expression>
7714 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7715 <Original>
7716 g1b.index() == 0
7717 </Original>
7718 <Expanded>
7719 0 == 0
7720 </Expanded>
7721 </Expression>
7722 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7723 <Original>
7724 s2b.isOpen() == false
7725 </Original>
7726 <Expanded>
7727 false == false
7728 </Expanded>
7729 </Expression>
7730 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7731 <Original>
7732 g1b.isComplete() == false
7733 </Original>
7734 <Expanded>
7735 false == false
7736 </Expanded>
7737 </Expression>
7738 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7739 <Original>
7740 s1b.isComplete() == false
7741 </Original>
7742 <Expanded>
7743 false == false
7744 </Expanded>
7745 </Expression>
7746 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7747 <Original>
7748 testCase2.isComplete() == false
7749 </Original>
7750 <Expanded>
7751 false == false
7752 </Expanded>
7753 </Expression>
7754 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7755 <Original>
7756 testCase3.isOpen()
7757 </Original>
7758 <Expanded>
7759 true
7760 </Expanded>
7761 </Expression>
7762 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7763 <Original>
7764 s1c.isOpen()
7765 </Original>
7766 <Expanded>
7767 true
7768 </Expanded>
7769 </Expression>
7770 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7771 <Original>
7772 g1c.isOpen()
7773 </Original>
7774 <Expanded>
7775 true
7776 </Expanded>
7777 </Expression>
7778 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7779 <Original>
7780 g1c.index() == 1
7781 </Original>
7782 <Expanded>
7783 1 == 1
7784 </Expanded>
7785 </Expression>
7786 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7787 <Original>
7788 s2c.isOpen()
7789 </Original>
7790 <Expanded>
7791 true
7792 </Expanded>
7793 </Expression>
7794 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7795 <Original>
7796 s2c.isComplete()
7797 </Original>
7798 <Expanded>
7799 true
7800 </Expanded>
7801 </Expression>
7802 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7803 <Original>
7804 g1c.isComplete()
7805 </Original>
7806 <Expanded>
7807 true
7808 </Expanded>
7809 </Expression>
7810 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7811 <Original>
7812 s1c.isComplete()
7813 </Original>
7814 <Expanded>
7815 true
7816 </Expanded>
7817 </Expression>
7818 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" >
7819 <Original>
7820 testCase3.isComplete()
7821 </Original>
7822 <Expanded>
7823 true
7824 </Expanded>
7825 </Expression>
7826 <OverallResults successes="17" failures="0" expectedFailures="0"/>
7827 </Section>
7828 <OverallResults successes="22" failures="0" expectedFailures="0"/>
7829 </Section>
7830 <OverallResults successes="26" failures="0" expectedFailures="0"/>
7831 </Section>
7832 <OverallResult success="true"/>
7833 </TestCase>
Phil Nash5ea32662014-09-03 19:22:47 +01007834 <TestCase name="std::pair&lt;int,std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007835 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007836 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007837 Catch::toString( value ) == "{ 34, \"xyzzy\" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007838 </Original>
7839 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007840 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007841 </Expanded>
7842 </Expression>
7843 <OverallResult success="true"/>
7844 </TestCase>
7845 <TestCase name="std::pair&lt;int,const std::string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007846 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007847 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007848 Catch::toString(value) == "{ 34, \"xyzzy\" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007849 </Original>
7850 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007851 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007852 </Expanded>
7853 </Expression>
7854 <OverallResult success="true"/>
7855 </TestCase>
7856 <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007857 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007858 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007859 Catch::toString( pr ) == "{ { \"green\", 55 } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007860 </Original>
7861 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007862 "{ { "green", 55 } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007863==
Phil Nashd6e59cd2015-07-23 18:45:31 +01007864"{ { "green", 55 } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007865 </Expanded>
7866 </Expression>
7867 <OverallResult success="true"/>
7868 </TestCase>
7869 <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007870 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007871 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007872 Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007873 </Original>
7874 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007875 "{ { 42, "Arthur" }, { "Ford", 24 } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007876==
Phil Nashd6e59cd2015-07-23 18:45:31 +01007877"{ { 42, "Arthur" }, { "Ford", 24 } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007878 </Expanded>
7879 </Expression>
7880 <OverallResult success="true"/>
7881 </TestCase>
7882 <TestCase name="vector&lt;int> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007883 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007884 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007885 Catch::toString(vv) == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007886 </Original>
7887 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007888 "{ }" == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007889 </Expanded>
7890 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007891 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007892 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007893 Catch::toString(vv) == "{ 42 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007894 </Original>
7895 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007896 "{ 42 }" == "{ 42 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007897 </Expanded>
7898 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007899 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007900 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007901 Catch::toString(vv) == "{ 42, 250 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007902 </Original>
7903 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007904 "{ 42, 250 }" == "{ 42, 250 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007905 </Expanded>
7906 </Expression>
7907 <OverallResult success="true"/>
7908 </TestCase>
7909 <TestCase name="vector&lt;string> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007910 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007911 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007912 Catch::toString(vv) == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007913 </Original>
7914 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007915 "{ }" == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007916 </Expanded>
7917 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007918 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007919 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007920 Catch::toString(vv) == "{ \"hello\" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007921 </Original>
7922 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007923 "{ "hello" }" == "{ "hello" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007924 </Expanded>
7925 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007926 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007927 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007928 Catch::toString(vv) == "{ \"hello\", \"world\" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007929 </Original>
7930 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007931 "{ "hello", "world" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007932==
Phil Nashd6e59cd2015-07-23 18:45:31 +01007933"{ "hello", "world" }"
Phil Nash5ea32662014-09-03 19:22:47 +01007934 </Expanded>
7935 </Expression>
7936 <OverallResult success="true"/>
7937 </TestCase>
7938 <TestCase name="vector&lt;int,allocator> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007939 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007940 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007941 Catch::toString(vv) == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007942 </Original>
7943 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007944 "{ }" == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007945 </Expanded>
7946 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007947 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007948 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007949 Catch::toString(vv) == "{ 42 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007950 </Original>
7951 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007952 "{ 42 }" == "{ 42 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007953 </Expanded>
7954 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007955 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007956 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007957 Catch::toString(vv) == "{ 42, 250 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007958 </Original>
7959 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007960 "{ 42, 250 }" == "{ 42, 250 }"
Phil Nash5ea32662014-09-03 19:22:47 +01007961 </Expanded>
7962 </Expression>
7963 <OverallResult success="true"/>
7964 </TestCase>
7965 <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString">
Phil Nashc6635a72014-12-30 18:25:27 +00007966 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007967 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007968 Catch::toString(v) == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007969 </Original>
7970 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007971 "{ }" == "{ }"
Phil Nash5ea32662014-09-03 19:22:47 +01007972 </Expanded>
7973 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007974 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
Phil Nash5ea32662014-09-03 19:22:47 +01007975 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007976 Catch::toString(v) == "{ { \"hello\" }, { \"world\" } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007977 </Original>
7978 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01007979 "{ { "hello" }, { "world" } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007980==
Phil Nashd6e59cd2015-07-23 18:45:31 +01007981"{ { "hello" }, { "world" } }"
Phil Nash5ea32662014-09-03 19:22:47 +01007982 </Expanded>
7983 </Expression>
7984 <OverallResult success="true"/>
7985 </TestCase>
Phil Nash766491a2014-05-16 18:31:15 +01007986 <TestCase name="Parse test names and tags">
7987 <Section name="Empty test spec should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00007988 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007989 <Original>
7990 spec.hasFilters() == false
7991 </Original>
7992 <Expanded>
7993 false == false
7994 </Expanded>
7995 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00007996 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01007997 <Original>
7998 spec.matches( tcA ) == false
7999 </Original>
8000 <Expanded>
8001 false == false
8002 </Expanded>
8003 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008004 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008005 <Original>
8006 spec.matches( tcB ) == false
8007 </Original>
8008 <Expanded>
8009 false == false
8010 </Expanded>
8011 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008012 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008013 </Section>
8014 <Section name="Test spec from empty string should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00008015 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008016 <Original>
8017 spec.hasFilters() == false
8018 </Original>
8019 <Expanded>
8020 false == false
8021 </Expanded>
8022 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008023 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008024 <Original>
8025 spec.matches(tcA ) == false
8026 </Original>
8027 <Expanded>
8028 false == false
8029 </Expanded>
8030 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008031 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008032 <Original>
8033 spec.matches( tcB ) == false
8034 </Original>
8035 <Expanded>
8036 false == false
8037 </Expanded>
8038 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008039 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008040 </Section>
8041 <Section name="Test spec from just a comma should have no filters">
Phil Nashc6635a72014-12-30 18:25:27 +00008042 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008043 <Original>
8044 spec.hasFilters() == false
8045 </Original>
8046 <Expanded>
8047 false == false
8048 </Expanded>
8049 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008050 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008051 <Original>
8052 spec.matches( tcA ) == false
8053 </Original>
8054 <Expanded>
8055 false == false
8056 </Expanded>
8057 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008058 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008059 <Original>
8060 spec.matches( tcB ) == false
8061 </Original>
8062 <Expanded>
8063 false == false
8064 </Expanded>
8065 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008066 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008067 </Section>
8068 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00008069 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008070 <Original>
8071 spec.hasFilters() == true
8072 </Original>
8073 <Expanded>
8074 true == true
8075 </Expanded>
8076 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008077 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008078 <Original>
8079 spec.matches( tcA ) == false
8080 </Original>
8081 <Expanded>
8082 false == false
8083 </Expanded>
8084 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008085 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008086 <Original>
8087 spec.matches( tcB ) == true
8088 </Original>
8089 <Expanded>
8090 true == true
8091 </Expanded>
8092 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008093 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008094 </Section>
8095 <Section name="Test spec from quoted name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00008096 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008097 <Original>
8098 spec.hasFilters() == true
8099 </Original>
8100 <Expanded>
8101 true == true
8102 </Expanded>
8103 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008104 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008105 <Original>
8106 spec.matches( tcA ) == false
8107 </Original>
8108 <Expanded>
8109 false == false
8110 </Expanded>
8111 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008112 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008113 <Original>
8114 spec.matches( tcB ) == true
8115 </Original>
8116 <Expanded>
8117 true == true
8118 </Expanded>
8119 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008120 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008121 </Section>
8122 <Section name="Test spec from name should have one filter">
Phil Nashc6635a72014-12-30 18:25:27 +00008123 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008124 <Original>
8125 spec.hasFilters() == true
8126 </Original>
8127 <Expanded>
8128 true == true
8129 </Expanded>
8130 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008131 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008132 <Original>
8133 spec.matches( tcA ) == false
8134 </Original>
8135 <Expanded>
8136 false == false
8137 </Expanded>
8138 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008139 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008140 <Original>
8141 spec.matches( tcB ) == true
8142 </Original>
8143 <Expanded>
8144 true == true
8145 </Expanded>
8146 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008147 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008148 <Original>
8149 spec.matches( tcC ) == false
8150 </Original>
8151 <Expanded>
8152 false == false
8153 </Expanded>
8154 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008155 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008156 </Section>
8157 <Section name="Wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00008158 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008159 <Original>
8160 spec.hasFilters() == true
8161 </Original>
8162 <Expanded>
8163 true == true
8164 </Expanded>
8165 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008166 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008167 <Original>
8168 spec.matches( tcA ) == false
8169 </Original>
8170 <Expanded>
8171 false == false
8172 </Expanded>
8173 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008174 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008175 <Original>
8176 spec.matches( tcB ) == false
8177 </Original>
8178 <Expanded>
8179 false == false
8180 </Expanded>
8181 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008182 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008183 <Original>
8184 spec.matches( tcC ) == true
8185 </Original>
8186 <Expanded>
8187 true == true
8188 </Expanded>
8189 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008190 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008191 <Original>
8192 spec.matches( tcD ) == false
8193 </Original>
8194 <Expanded>
8195 false == false
8196 </Expanded>
8197 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008198 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008199 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01008200 parseTestSpec( "*a" ).matches( tcA ) == true
Phil Nash766491a2014-05-16 18:31:15 +01008201 </Original>
8202 <Expanded>
8203 true == true
8204 </Expanded>
8205 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008206 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008207 </Section>
8208 <Section name="Wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00008209 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008210 <Original>
8211 spec.hasFilters() == true
8212 </Original>
8213 <Expanded>
8214 true == true
8215 </Expanded>
8216 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008217 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008218 <Original>
8219 spec.matches( tcA ) == false
8220 </Original>
8221 <Expanded>
8222 false == false
8223 </Expanded>
8224 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008225 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008226 <Original>
8227 spec.matches( tcB ) == false
8228 </Original>
8229 <Expanded>
8230 false == false
8231 </Expanded>
8232 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008233 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008234 <Original>
8235 spec.matches( tcC ) == true
8236 </Original>
8237 <Expanded>
8238 true == true
8239 </Expanded>
8240 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008241 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008242 <Original>
8243 spec.matches( tcD ) == false
8244 </Original>
8245 <Expanded>
8246 false == false
8247 </Expanded>
8248 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008249 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008250 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01008251 parseTestSpec( "a*" ).matches( tcA ) == true
Phil Nash766491a2014-05-16 18:31:15 +01008252 </Original>
8253 <Expanded>
8254 true == true
8255 </Expanded>
8256 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008257 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008258 </Section>
8259 <Section name="Wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00008260 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008261 <Original>
8262 spec.hasFilters() == true
8263 </Original>
8264 <Expanded>
8265 true == true
8266 </Expanded>
8267 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008268 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008269 <Original>
8270 spec.matches( tcA ) == false
8271 </Original>
8272 <Expanded>
8273 false == false
8274 </Expanded>
8275 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008276 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008277 <Original>
8278 spec.matches( tcB ) == false
8279 </Original>
8280 <Expanded>
8281 false == false
8282 </Expanded>
8283 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008284 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008285 <Original>
8286 spec.matches( tcC ) == true
8287 </Original>
8288 <Expanded>
8289 true == true
8290 </Expanded>
8291 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008292 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008293 <Original>
8294 spec.matches( tcD ) == true
8295 </Original>
8296 <Expanded>
8297 true == true
8298 </Expanded>
8299 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008300 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008301 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01008302 parseTestSpec( "*a*" ).matches( tcA ) == true
Phil Nash766491a2014-05-16 18:31:15 +01008303 </Original>
8304 <Expanded>
8305 true == true
8306 </Expanded>
8307 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008308 <OverallResults successes="6" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008309 </Section>
Phil Nash71390352014-05-19 18:21:01 +01008310 <Section name="Redundant wildcard at the start">
Phil Nashc6635a72014-12-30 18:25:27 +00008311 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008312 <Original>
8313 spec.hasFilters() == true
8314 </Original>
8315 <Expanded>
8316 true == true
8317 </Expanded>
8318 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008319 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008320 <Original>
8321 spec.matches( tcA ) == true
8322 </Original>
8323 <Expanded>
8324 true == true
8325 </Expanded>
8326 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008327 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008328 <Original>
8329 spec.matches( tcB ) == false
8330 </Original>
8331 <Expanded>
8332 false == false
8333 </Expanded>
8334 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008335 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01008336 </Section>
8337 <Section name="Redundant wildcard at the end">
Phil Nashc6635a72014-12-30 18:25:27 +00008338 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008339 <Original>
8340 spec.hasFilters() == true
8341 </Original>
8342 <Expanded>
8343 true == true
8344 </Expanded>
8345 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008346 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008347 <Original>
8348 spec.matches( tcA ) == true
8349 </Original>
8350 <Expanded>
8351 true == true
8352 </Expanded>
8353 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008354 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008355 <Original>
8356 spec.matches( tcB ) == false
8357 </Original>
8358 <Expanded>
8359 false == false
8360 </Expanded>
8361 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008362 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01008363 </Section>
8364 <Section name="Redundant wildcard at both ends">
Phil Nashc6635a72014-12-30 18:25:27 +00008365 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008366 <Original>
8367 spec.hasFilters() == true
8368 </Original>
8369 <Expanded>
8370 true == true
8371 </Expanded>
8372 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008373 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008374 <Original>
8375 spec.matches( tcA ) == true
8376 </Original>
8377 <Expanded>
8378 true == true
8379 </Expanded>
8380 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008381 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008382 <Original>
8383 spec.matches( tcB ) == false
8384 </Original>
8385 <Expanded>
8386 false == false
8387 </Expanded>
8388 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008389 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01008390 </Section>
8391 <Section name="Wildcard at both ends, redundant at start">
Phil Nashc6635a72014-12-30 18:25:27 +00008392 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008393 <Original>
8394 spec.hasFilters() == true
8395 </Original>
8396 <Expanded>
8397 true == true
8398 </Expanded>
8399 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008400 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008401 <Original>
8402 spec.matches( tcA ) == false
8403 </Original>
8404 <Expanded>
8405 false == false
8406 </Expanded>
8407 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008408 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008409 <Original>
8410 spec.matches( tcB ) == false
8411 </Original>
8412 <Expanded>
8413 false == false
8414 </Expanded>
8415 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008416 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008417 <Original>
8418 spec.matches( tcC ) == true
8419 </Original>
8420 <Expanded>
8421 true == true
8422 </Expanded>
8423 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008424 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash71390352014-05-19 18:21:01 +01008425 <Original>
8426 spec.matches( tcD ) == true
8427 </Original>
8428 <Expanded>
8429 true == true
8430 </Expanded>
8431 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008432 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash71390352014-05-19 18:21:01 +01008433 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01008434 <Section name="Just wildcard">
Phil Nashc6635a72014-12-30 18:25:27 +00008435 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008436 <Original>
8437 spec.hasFilters() == true
8438 </Original>
8439 <Expanded>
8440 true == true
8441 </Expanded>
8442 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008443 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008444 <Original>
8445 spec.matches( tcA ) == true
8446 </Original>
8447 <Expanded>
8448 true == true
8449 </Expanded>
8450 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008451 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008452 <Original>
8453 spec.matches( tcB ) == true
8454 </Original>
8455 <Expanded>
8456 true == true
8457 </Expanded>
8458 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008459 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008460 <Original>
8461 spec.matches( tcC ) == true
8462 </Original>
8463 <Expanded>
8464 true == true
8465 </Expanded>
8466 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008467 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008468 <Original>
8469 spec.matches( tcD ) == true
8470 </Original>
8471 <Expanded>
8472 true == true
8473 </Expanded>
8474 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008475 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008476 </Section>
8477 <Section name="Single tag">
Phil Nashc6635a72014-12-30 18:25:27 +00008478 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008479 <Original>
8480 spec.hasFilters() == true
8481 </Original>
8482 <Expanded>
8483 true == true
8484 </Expanded>
8485 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008486 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008487 <Original>
8488 spec.matches( tcA ) == false
8489 </Original>
8490 <Expanded>
8491 false == false
8492 </Expanded>
8493 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008494 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008495 <Original>
8496 spec.matches( tcB ) == true
8497 </Original>
8498 <Expanded>
8499 true == true
8500 </Expanded>
8501 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008502 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008503 <Original>
8504 spec.matches( tcC ) == false
8505 </Original>
8506 <Expanded>
8507 false == false
8508 </Expanded>
8509 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008510 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008511 </Section>
8512 <Section name="Single tag, two matches">
Phil Nashc6635a72014-12-30 18:25:27 +00008513 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008514 <Original>
8515 spec.hasFilters() == true
8516 </Original>
8517 <Expanded>
8518 true == true
8519 </Expanded>
8520 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008521 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008522 <Original>
8523 spec.matches( tcA ) == false
8524 </Original>
8525 <Expanded>
8526 false == false
8527 </Expanded>
8528 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008529 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008530 <Original>
8531 spec.matches( tcB ) == true
8532 </Original>
8533 <Expanded>
8534 true == true
8535 </Expanded>
8536 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008537 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008538 <Original>
8539 spec.matches( tcC ) == true
8540 </Original>
8541 <Expanded>
8542 true == true
8543 </Expanded>
8544 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008545 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008546 </Section>
8547 <Section name="Two tags">
Phil Nashc6635a72014-12-30 18:25:27 +00008548 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008549 <Original>
8550 spec.hasFilters() == true
8551 </Original>
8552 <Expanded>
8553 true == true
8554 </Expanded>
8555 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008556 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008557 <Original>
8558 spec.matches( tcA ) == false
8559 </Original>
8560 <Expanded>
8561 false == false
8562 </Expanded>
8563 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008564 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008565 <Original>
8566 spec.matches( tcB ) == false
8567 </Original>
8568 <Expanded>
8569 false == false
8570 </Expanded>
8571 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008572 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008573 <Original>
8574 spec.matches( tcC ) == true
8575 </Original>
8576 <Expanded>
8577 true == true
8578 </Expanded>
8579 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008580 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008581 </Section>
Phil Nasha2d8f772014-05-20 18:28:48 +01008582 <Section name="Two tags, spare separated">
Phil Nashc6635a72014-12-30 18:25:27 +00008583 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01008584 <Original>
8585 spec.hasFilters() == true
8586 </Original>
8587 <Expanded>
8588 true == true
8589 </Expanded>
8590 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008591 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01008592 <Original>
8593 spec.matches( tcA ) == false
8594 </Original>
8595 <Expanded>
8596 false == false
8597 </Expanded>
8598 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008599 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01008600 <Original>
8601 spec.matches( tcB ) == false
8602 </Original>
8603 <Expanded>
8604 false == false
8605 </Expanded>
8606 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008607 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nasha2d8f772014-05-20 18:28:48 +01008608 <Original>
8609 spec.matches( tcC ) == true
8610 </Original>
8611 <Expanded>
8612 true == true
8613 </Expanded>
8614 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008615 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nasha2d8f772014-05-20 18:28:48 +01008616 </Section>
Phil Nash766491a2014-05-16 18:31:15 +01008617 <Section name="Wildcarded name and tag">
Phil Nashc6635a72014-12-30 18:25:27 +00008618 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008619 <Original>
8620 spec.hasFilters() == true
8621 </Original>
8622 <Expanded>
8623 true == true
8624 </Expanded>
8625 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008626 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008627 <Original>
8628 spec.matches( tcA ) == false
8629 </Original>
8630 <Expanded>
8631 false == false
8632 </Expanded>
8633 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008634 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008635 <Original>
8636 spec.matches( tcB ) == false
8637 </Original>
8638 <Expanded>
8639 false == false
8640 </Expanded>
8641 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008642 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008643 <Original>
8644 spec.matches( tcC ) == true
8645 </Original>
8646 <Expanded>
8647 true == true
8648 </Expanded>
8649 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008650 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008651 <Original>
8652 spec.matches( tcD ) == false
8653 </Original>
8654 <Expanded>
8655 false == false
8656 </Expanded>
8657 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008658 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008659 </Section>
8660 <Section name="Single tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008661 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008662 <Original>
8663 spec.hasFilters() == true
8664 </Original>
8665 <Expanded>
8666 true == true
8667 </Expanded>
8668 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008669 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008670 <Original>
8671 spec.matches( tcA ) == true
8672 </Original>
8673 <Expanded>
8674 true == true
8675 </Expanded>
8676 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008677 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008678 <Original>
8679 spec.matches( tcB ) == false
8680 </Original>
8681 <Expanded>
8682 false == false
8683 </Expanded>
8684 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008685 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008686 <Original>
8687 spec.matches( tcC ) == true
8688 </Original>
8689 <Expanded>
8690 true == true
8691 </Expanded>
8692 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008693 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008694 </Section>
8695 <Section name="One tag exclusion and one tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008696 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008697 <Original>
8698 spec.hasFilters() == true
8699 </Original>
8700 <Expanded>
8701 true == true
8702 </Expanded>
8703 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008704 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008705 <Original>
8706 spec.matches( tcA ) == false
8707 </Original>
8708 <Expanded>
8709 false == false
8710 </Expanded>
8711 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008712 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008713 <Original>
8714 spec.matches( tcB ) == true
8715 </Original>
8716 <Expanded>
8717 true == true
8718 </Expanded>
8719 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008720 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008721 <Original>
8722 spec.matches( tcC ) == false
8723 </Original>
8724 <Expanded>
8725 false == false
8726 </Expanded>
8727 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008728 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008729 </Section>
8730 <Section name="One tag exclusion and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008731 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008732 <Original>
8733 spec.hasFilters() == true
8734 </Original>
8735 <Expanded>
8736 true == true
8737 </Expanded>
8738 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008739 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008740 <Original>
8741 spec.matches( tcA ) == false
8742 </Original>
8743 <Expanded>
8744 false == false
8745 </Expanded>
8746 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008747 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008748 <Original>
8749 spec.matches( tcB ) == false
8750 </Original>
8751 <Expanded>
8752 false == false
8753 </Expanded>
8754 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008755 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008756 <Original>
8757 spec.matches( tcC ) == false
8758 </Original>
8759 <Expanded>
8760 false == false
8761 </Expanded>
8762 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008763 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008764 <Original>
8765 spec.matches( tcD ) == true
8766 </Original>
8767 <Expanded>
8768 true == true
8769 </Expanded>
8770 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008771 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008772 </Section>
8773 <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008774 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008775 <Original>
8776 spec.hasFilters() == true
8777 </Original>
8778 <Expanded>
8779 true == true
8780 </Expanded>
8781 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008782 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008783 <Original>
8784 spec.matches( tcA ) == false
8785 </Original>
8786 <Expanded>
8787 false == false
8788 </Expanded>
8789 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008790 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008791 <Original>
8792 spec.matches( tcB ) == false
8793 </Original>
8794 <Expanded>
8795 false == false
8796 </Expanded>
8797 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008798 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008799 <Original>
8800 spec.matches( tcC ) == false
8801 </Original>
8802 <Expanded>
8803 false == false
8804 </Expanded>
8805 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008806 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008807 <Original>
8808 spec.matches( tcD ) == true
8809 </Original>
8810 <Expanded>
8811 true == true
8812 </Expanded>
8813 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008814 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008815 </Section>
8816 <Section name="name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008817 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008818 <Original>
8819 spec.hasFilters() == true
8820 </Original>
8821 <Expanded>
8822 true == true
8823 </Expanded>
8824 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008825 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008826 <Original>
8827 spec.matches( tcA ) == true
8828 </Original>
8829 <Expanded>
8830 true == true
8831 </Expanded>
8832 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008833 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008834 <Original>
8835 spec.matches( tcB ) == false
8836 </Original>
8837 <Expanded>
8838 false == false
8839 </Expanded>
8840 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008841 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008842 <Original>
8843 spec.matches( tcC ) == true
8844 </Original>
8845 <Expanded>
8846 true == true
8847 </Expanded>
8848 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008849 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008850 <Original>
8851 spec.matches( tcD ) == true
8852 </Original>
8853 <Expanded>
8854 true == true
8855 </Expanded>
8856 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008857 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008858 </Section>
8859 <Section name="wildcarded name exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008860 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008861 <Original>
8862 spec.hasFilters() == true
8863 </Original>
8864 <Expanded>
8865 true == true
8866 </Expanded>
8867 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008868 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008869 <Original>
8870 spec.matches( tcA ) == true
8871 </Original>
8872 <Expanded>
8873 true == true
8874 </Expanded>
8875 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008876 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008877 <Original>
8878 spec.matches( tcB ) == true
8879 </Original>
8880 <Expanded>
8881 true == true
8882 </Expanded>
8883 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008884 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008885 <Original>
8886 spec.matches( tcC ) == false
8887 </Original>
8888 <Expanded>
8889 false == false
8890 </Expanded>
8891 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008892 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008893 <Original>
8894 spec.matches( tcD ) == false
8895 </Original>
8896 <Expanded>
8897 false == false
8898 </Expanded>
8899 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008900 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008901 </Section>
8902 <Section name="wildcarded name exclusion with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008903 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008904 <Original>
8905 spec.hasFilters() == true
8906 </Original>
8907 <Expanded>
8908 true == true
8909 </Expanded>
8910 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008911 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008912 <Original>
8913 spec.matches( tcA ) == true
8914 </Original>
8915 <Expanded>
8916 true == true
8917 </Expanded>
8918 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008919 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008920 <Original>
8921 spec.matches( tcB ) == true
8922 </Original>
8923 <Expanded>
8924 true == true
8925 </Expanded>
8926 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008927 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008928 <Original>
8929 spec.matches( tcC ) == true
8930 </Original>
8931 <Expanded>
8932 true == true
8933 </Expanded>
8934 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008935 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008936 <Original>
8937 spec.matches( tcD ) == false
8938 </Original>
8939 <Expanded>
8940 false == false
8941 </Expanded>
8942 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008943 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008944 </Section>
8945 <Section name="wildcarded name exclusion, using exclude:, with tag inclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00008946 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008947 <Original>
8948 spec.hasFilters() == true
8949 </Original>
8950 <Expanded>
8951 true == true
8952 </Expanded>
8953 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008954 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008955 <Original>
8956 spec.matches( tcA ) == true
8957 </Original>
8958 <Expanded>
8959 true == true
8960 </Expanded>
8961 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008962 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008963 <Original>
8964 spec.matches( tcB ) == true
8965 </Original>
8966 <Expanded>
8967 true == true
8968 </Expanded>
8969 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008970 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008971 <Original>
8972 spec.matches( tcC ) == true
8973 </Original>
8974 <Expanded>
8975 true == true
8976 </Expanded>
8977 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008978 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008979 <Original>
8980 spec.matches( tcD ) == false
8981 </Original>
8982 <Expanded>
8983 false == false
8984 </Expanded>
8985 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01008986 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01008987 </Section>
8988 <Section name="two wildcarded names">
Phil Nashc6635a72014-12-30 18:25:27 +00008989 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008990 <Original>
8991 spec.hasFilters() == true
8992 </Original>
8993 <Expanded>
8994 true == true
8995 </Expanded>
8996 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00008997 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01008998 <Original>
8999 spec.matches( tcA ) == false
9000 </Original>
9001 <Expanded>
9002 false == false
9003 </Expanded>
9004 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009005 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009006 <Original>
9007 spec.matches( tcB ) == false
9008 </Original>
9009 <Expanded>
9010 false == false
9011 </Expanded>
9012 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009013 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009014 <Original>
9015 spec.matches( tcC ) == true
9016 </Original>
9017 <Expanded>
9018 true == true
9019 </Expanded>
9020 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009021 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009022 <Original>
9023 spec.matches( tcD ) == false
9024 </Original>
9025 <Expanded>
9026 false == false
9027 </Expanded>
9028 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009029 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01009030 </Section>
9031 <Section name="empty tag">
Phil Nashc6635a72014-12-30 18:25:27 +00009032 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009033 <Original>
9034 spec.hasFilters() == false
9035 </Original>
9036 <Expanded>
9037 false == false
9038 </Expanded>
9039 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009040 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009041 <Original>
9042 spec.matches( tcA ) == false
9043 </Original>
9044 <Expanded>
9045 false == false
9046 </Expanded>
9047 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009048 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009049 <Original>
9050 spec.matches( tcB ) == false
9051 </Original>
9052 <Expanded>
9053 false == false
9054 </Expanded>
9055 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009056 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009057 <Original>
9058 spec.matches( tcC ) == false
9059 </Original>
9060 <Expanded>
9061 false == false
9062 </Expanded>
9063 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009064 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009065 <Original>
9066 spec.matches( tcD ) == false
9067 </Original>
9068 <Expanded>
9069 false == false
9070 </Expanded>
9071 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009072 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01009073 </Section>
9074 <Section name="empty quoted name">
Phil Nashc6635a72014-12-30 18:25:27 +00009075 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009076 <Original>
9077 spec.hasFilters() == false
9078 </Original>
9079 <Expanded>
9080 false == false
9081 </Expanded>
9082 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009083 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009084 <Original>
9085 spec.matches( tcA ) == false
9086 </Original>
9087 <Expanded>
9088 false == false
9089 </Expanded>
9090 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009091 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009092 <Original>
9093 spec.matches( tcB ) == false
9094 </Original>
9095 <Expanded>
9096 false == false
9097 </Expanded>
9098 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009099 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009100 <Original>
9101 spec.matches( tcC ) == false
9102 </Original>
9103 <Expanded>
9104 false == false
9105 </Expanded>
9106 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009107 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009108 <Original>
9109 spec.matches( tcD ) == false
9110 </Original>
9111 <Expanded>
9112 false == false
9113 </Expanded>
9114 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009115 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01009116 </Section>
9117 <Section name="quoted string followed by tag exclusion">
Phil Nashc6635a72014-12-30 18:25:27 +00009118 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009119 <Original>
9120 spec.hasFilters() == true
9121 </Original>
9122 <Expanded>
9123 true == true
9124 </Expanded>
9125 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009126 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009127 <Original>
9128 spec.matches( tcA ) == false
9129 </Original>
9130 <Expanded>
9131 false == false
9132 </Expanded>
9133 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009134 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009135 <Original>
9136 spec.matches( tcB ) == false
9137 </Original>
9138 <Expanded>
9139 false == false
9140 </Expanded>
9141 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009142 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009143 <Original>
9144 spec.matches( tcC ) == false
9145 </Original>
9146 <Expanded>
9147 false == false
9148 </Expanded>
9149 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009150 <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" >
Phil Nash766491a2014-05-16 18:31:15 +01009151 <Original>
9152 spec.matches( tcD ) == true
9153 </Original>
9154 <Expanded>
9155 true == true
9156 </Expanded>
9157 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009158 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash766491a2014-05-16 18:31:15 +01009159 </Section>
9160 <OverallResult success="true"/>
9161 </TestCase>
Phil Nash50183202014-12-30 18:47:01 +00009162 <TestCase name="tuple&lt;>">
9163 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9164 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009165 "{ }" == Catch::toString(type{})
Phil Nash50183202014-12-30 18:47:01 +00009166 </Original>
9167 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009168 "{ }" == "{ }"
Phil Nash50183202014-12-30 18:47:01 +00009169 </Expanded>
9170 </Expression>
9171 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9172 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009173 "{ }" == Catch::toString(value)
Phil Nash50183202014-12-30 18:47:01 +00009174 </Original>
9175 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009176 "{ }" == "{ }"
Phil Nash50183202014-12-30 18:47:01 +00009177 </Expanded>
9178 </Expression>
9179 <OverallResult success="true"/>
9180 </TestCase>
9181 <TestCase name="tuple&lt;int>">
9182 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9183 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009184 "{ 0 }" == Catch::toString(type{0})
Phil Nash50183202014-12-30 18:47:01 +00009185 </Original>
9186 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009187 "{ 0 }" == "{ 0 }"
Phil Nash50183202014-12-30 18:47:01 +00009188 </Expanded>
9189 </Expression>
9190 <OverallResult success="true"/>
9191 </TestCase>
9192 <TestCase name="tuple&lt;float,int>">
9193 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9194 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009195 "1.2f" == Catch::toString(float(1.2))
Phil Nash50183202014-12-30 18:47:01 +00009196 </Original>
9197 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009198 "1.2f" == "1.2f"
Phil Nash50183202014-12-30 18:47:01 +00009199 </Expanded>
9200 </Expression>
9201 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9202 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009203 "{ 1.2f, 0 }" == Catch::toString(type{1.2,0})
Phil Nash50183202014-12-30 18:47:01 +00009204 </Original>
9205 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009206 "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
Phil Nash50183202014-12-30 18:47:01 +00009207 </Expanded>
9208 </Expression>
9209 <OverallResult success="true"/>
9210 </TestCase>
9211 <TestCase name="tuple&lt;string,string>">
9212 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9213 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009214 "{ \"hello\", \"world\" }" == Catch::toString(type{"hello","world"})
Phil Nash50183202014-12-30 18:47:01 +00009215 </Original>
9216 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009217 "{ "hello", "world" }"
Phil Nash50183202014-12-30 18:47:01 +00009218==
Phil Nashd6e59cd2015-07-23 18:45:31 +01009219"{ "hello", "world" }"
Phil Nash50183202014-12-30 18:47:01 +00009220 </Expanded>
9221 </Expression>
9222 <OverallResult success="true"/>
9223 </TestCase>
9224 <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>">
9225 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9226 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009227 "{ { 42 }, { }, 1.2f }" == Catch::toString(value)
Phil Nash50183202014-12-30 18:47:01 +00009228 </Original>
9229 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009230 "{ { 42 }, { }, 1.2f }"
Phil Nash50183202014-12-30 18:47:01 +00009231==
Phil Nashd6e59cd2015-07-23 18:45:31 +01009232"{ { 42 }, { }, 1.2f }"
Phil Nash50183202014-12-30 18:47:01 +00009233 </Expanded>
9234 </Expression>
9235 <OverallResult success="true"/>
9236 </TestCase>
9237 <TestCase name="tuple&lt;nullptr,int,const char *>">
9238 <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" >
9239 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009240 "{ nullptr, 42, \"Catch me\" }" == Catch::toString(value)
Phil Nash50183202014-12-30 18:47:01 +00009241 </Original>
9242 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009243 "{ nullptr, 42, "Catch me" }"
Phil Nash50183202014-12-30 18:47:01 +00009244==
Phil Nashd6e59cd2015-07-23 18:45:31 +01009245"{ nullptr, 42, "Catch me" }"
Phil Nash50183202014-12-30 18:47:01 +00009246 </Expanded>
9247 </Expression>
9248 <OverallResult success="true"/>
9249 </TestCase>
Phil Nash061861d2014-06-30 07:34:27 +01009250 <TestCase name="Tag alias can be registered against tag patterns">
9251 <Section name="The same tag alias can only be registered once">
Phil Nashc6635a72014-12-30 18:25:27 +00009252 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009253 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009254 what Contains( "[@zzz]" )
Phil Nash061861d2014-06-30 07:34:27 +01009255 </Original>
9256 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009257 "error: tag alias, "[@zzz]" already registered.
Phil Nash061861d2014-06-30 07:34:27 +01009258 First seen at file:2
Phil Nashd6e59cd2015-07-23 18:45:31 +01009259 Redefined at file:10" contains: "[@zzz]"
Phil Nash061861d2014-06-30 07:34:27 +01009260 </Expanded>
9261 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009262 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009263 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009264 what Contains( "file" )
Phil Nash061861d2014-06-30 07:34:27 +01009265 </Original>
9266 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009267 "error: tag alias, "[@zzz]" already registered.
Phil Nash061861d2014-06-30 07:34:27 +01009268 First seen at file:2
Phil Nashd6e59cd2015-07-23 18:45:31 +01009269 Redefined at file:10" contains: "file"
Phil Nash061861d2014-06-30 07:34:27 +01009270 </Expanded>
9271 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009272 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009273 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009274 what Contains( "2" )
Phil Nash061861d2014-06-30 07:34:27 +01009275 </Original>
9276 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009277 "error: tag alias, "[@zzz]" already registered.
Phil Nash061861d2014-06-30 07:34:27 +01009278 First seen at file:2
Phil Nashd6e59cd2015-07-23 18:45:31 +01009279 Redefined at file:10" contains: "2"
Phil Nash061861d2014-06-30 07:34:27 +01009280 </Expanded>
9281 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009282 <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009283 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009284 what Contains( "10" )
Phil Nash061861d2014-06-30 07:34:27 +01009285 </Original>
9286 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009287 "error: tag alias, "[@zzz]" already registered.
Phil Nash061861d2014-06-30 07:34:27 +01009288 First seen at file:2
Phil Nashd6e59cd2015-07-23 18:45:31 +01009289 Redefined at file:10" contains: "10"
Phil Nash061861d2014-06-30 07:34:27 +01009290 </Expanded>
9291 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009292 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01009293 </Section>
9294 <Section name="Tag aliases must be of the form [@name]">
Phil Nashc6635a72014-12-30 18:25:27 +00009295 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009296 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009297 registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009298 </Original>
9299 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009300 registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009301 </Expanded>
9302 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009303 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009304 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009305 registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009306 </Original>
9307 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009308 registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009309 </Expanded>
9310 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009311 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009312 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009313 registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009314 </Original>
9315 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009316 registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009317 </Expanded>
9318 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009319 <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" >
Phil Nash061861d2014-06-30 07:34:27 +01009320 <Original>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009321 registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009322 </Original>
9323 <Expanded>
Phil Nashd6e59cd2015-07-23 18:45:31 +01009324 registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
Phil Nash061861d2014-06-30 07:34:27 +01009325 </Expanded>
9326 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009327 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash061861d2014-06-30 07:34:27 +01009328 </Section>
9329 <OverallResult success="true"/>
9330 </TestCase>
Phil Nash2f7a2962013-09-27 19:01:14 +01009331 <TestCase name="Anonymous test case 1">
9332 <OverallResult success="true"/>
9333 </TestCase>
9334 <TestCase name="Test case with one argument">
9335 <OverallResult success="true"/>
9336 </TestCase>
9337 <TestCase name="Variadic macros">
9338 <Section name="Section with one argument">
Phil Nash9c1f9a82014-07-03 08:09:57 +01009339 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009340 </Section>
9341 <OverallResult success="true"/>
9342 </TestCase>
9343 <TestCase name="Scenario: Do that thing with the thing">
Phil Nasha1e87a42013-12-10 08:20:46 +00009344 <Section name="Given: This stuff exists">
Phil Nasha1e87a42013-12-10 08:20:46 +00009345 <Section name="When: I do this">
9346 <Section name="Then: it should do this">
Phil Nashc6635a72014-12-30 18:25:27 +00009347 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009348 <Original>
9349 itDoesThis()
9350 </Original>
9351 <Expanded>
9352 true
9353 </Expanded>
9354 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00009355 <Section name="And: do that">
Phil Nashc6635a72014-12-30 18:25:27 +00009356 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009357 <Original>
9358 itDoesThat()
9359 </Original>
9360 <Expanded>
9361 true
9362 </Expanded>
9363 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009364 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009365 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009366 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009367 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009368 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009369 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009370 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009371 </Section>
9372 <OverallResult success="true"/>
9373 </TestCase>
9374 <TestCase name="Scenario: Vector resizing affects size and capacity">
Phil Nasha1e87a42013-12-10 08:20:46 +00009375 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00009376 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009377 <Original>
9378 v.size() == 0
9379 </Original>
9380 <Expanded>
9381 0 == 0
9382 </Expanded>
9383 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00009384 <Section name="When: it is made larger">
9385 <Section name="Then: the size and capacity go up">
Phil Nashc6635a72014-12-30 18:25:27 +00009386 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009387 <Original>
9388 v.size() == 10
9389 </Original>
9390 <Expanded>
9391 10 == 10
9392 </Expanded>
9393 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009394 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009395 <Original>
9396 v.capacity() >= 10
9397 </Original>
9398 <Expanded>
9399 10 >= 10
9400 </Expanded>
9401 </Expression>
9402 <Section name="And when: it is made smaller again">
Phil Nasha1e87a42013-12-10 08:20:46 +00009403 <Section name="Then: the size goes down but the capacity stays the same">
Phil Nashc6635a72014-12-30 18:25:27 +00009404 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009405 <Original>
9406 v.size() == 5
9407 </Original>
9408 <Expanded>
9409 5 == 5
9410 </Expanded>
9411 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009412 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009413 <Original>
9414 v.capacity() >= 10
9415 </Original>
9416 <Expanded>
9417 10 >= 10
9418 </Expanded>
9419 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009420 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009421 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009422 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009423 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009424 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009425 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009426 <OverallResults successes="4" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009427 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009428 <OverallResults successes="5" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009429 </Section>
Phil Nasha1e87a42013-12-10 08:20:46 +00009430 <Section name="Given: an empty vector">
Phil Nashc6635a72014-12-30 18:25:27 +00009431 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009432 <Original>
9433 v.size() == 0
9434 </Original>
9435 <Expanded>
9436 0 == 0
9437 </Expanded>
9438 </Expression>
Phil Nasha1e87a42013-12-10 08:20:46 +00009439 <Section name="When: we reserve more space">
Phil Nasha1e87a42013-12-10 08:20:46 +00009440 <Section name="Then: The capacity is increased but the size remains the same">
Phil Nashc6635a72014-12-30 18:25:27 +00009441 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009442 <Original>
9443 v.capacity() >= 10
9444 </Original>
9445 <Expanded>
9446 10 >= 10
9447 </Expanded>
9448 </Expression>
Phil Nashc6635a72014-12-30 18:25:27 +00009449 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash2f7a2962013-09-27 19:01:14 +01009450 <Original>
9451 v.size() == 0
9452 </Original>
9453 <Expanded>
9454 0 == 0
9455 </Expanded>
9456 </Expression>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009457 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009458 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009459 <OverallResults successes="2" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009460 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009461 <OverallResults successes="3" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009462 </Section>
9463 <OverallResult success="true"/>
9464 </TestCase>
9465 <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 +00009466 <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 +00009467 <Section name="When: The test headers are printed as part of the normal running of the scenario">
9468 <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 +01009469 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009470 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009471 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009472 </Section>
Phil Nash9c1f9a82014-07-03 08:09:57 +01009473 <OverallResults successes="1" failures="0" expectedFailures="0"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009474 </Section>
9475 <OverallResult success="true"/>
9476 </TestCase>
Phil Nash8b5a4e92014-08-20 08:08:13 +01009477 <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods">
9478 <Section name="Given: No operations precede me">
Phil Nashc6635a72014-12-30 18:25:27 +00009479 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01009480 <Original>
9481 before == 0
9482 </Original>
9483 <Expanded>
9484 0 == 0
9485 </Expanded>
9486 </Expression>
9487 <Section name="When: We get the count">
9488 <Section name="Then: Subsequently values are higher">
Phil Nashc6635a72014-12-30 18:25:27 +00009489 <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" >
Phil Nash8b5a4e92014-08-20 08:08:13 +01009490 <Original>
9491 after > before
9492 </Original>
9493 <Expanded>
9494 1 > 0
9495 </Expanded>
9496 </Expression>
9497 <OverallResults successes="1" failures="0" expectedFailures="0"/>
9498 </Section>
9499 <OverallResults successes="1" failures="0" expectedFailures="0"/>
9500 </Section>
9501 <OverallResults successes="2" failures="0" expectedFailures="0"/>
9502 </Section>
9503 <OverallResult success="true"/>
9504 </TestCase>
Phil Nasha49f0882015-11-18 08:39:21 +00009505 <OverallResults successes="817" failures="85" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009506 </Group>
Phil Nasha49f0882015-11-18 08:39:21 +00009507 <OverallResults successes="817" failures="85" expectedFailures="13"/>
Phil Nash2f7a2962013-09-27 19:01:14 +01009508</Catch>