Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1 | <Catch name="CatchSelfTest"> |
Phil Nash | 3e1d3c7 | 2014-09-08 08:14:22 +0100 | [diff] [blame] | 2 | <Group name="all tests"> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 3 | <TestCase name="toString(enum)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 5 | <Original> |
| 6 | Catch::toString(e0) == "0" |
| 7 | </Original> |
| 8 | <Expanded> |
| 9 | "0" == "0" |
| 10 | </Expanded> |
| 11 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 12 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 13 | <Original> |
| 14 | Catch::toString(e1) == "1" |
| 15 | </Original> |
| 16 | <Expanded> |
| 17 | "1" == "1" |
| 18 | </Expanded> |
| 19 | </Expression> |
| 20 | <OverallResult success="true"/> |
| 21 | </TestCase> |
| 22 | <TestCase name="toString(enum w/operator<<)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 23 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 24 | <Original> |
| 25 | Catch::toString(e0) == "E2{0}" |
| 26 | </Original> |
| 27 | <Expanded> |
| 28 | "E2{0}" == "E2{0}" |
| 29 | </Expanded> |
| 30 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 31 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 32 | <Original> |
| 33 | Catch::toString(e1) == "E2{1}" |
| 34 | </Original> |
| 35 | <Expanded> |
| 36 | "E2{1}" == "E2{1}" |
| 37 | </Expanded> |
| 38 | </Expression> |
| 39 | <OverallResult success="true"/> |
| 40 | </TestCase> |
| 41 | <TestCase name="toString(enum class)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 42 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 43 | <Original> |
| 44 | Catch::toString(e0) == "0" |
| 45 | </Original> |
| 46 | <Expanded> |
| 47 | "0" == "0" |
| 48 | </Expanded> |
| 49 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 50 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 51 | <Original> |
| 52 | Catch::toString(e1) == "1" |
| 53 | </Original> |
| 54 | <Expanded> |
| 55 | "1" == "1" |
| 56 | </Expanded> |
| 57 | </Expression> |
| 58 | <OverallResult success="true"/> |
| 59 | </TestCase> |
| 60 | <TestCase name="toString(enum class w/operator<<)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 61 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 62 | <Original> |
| 63 | Catch::toString(e0) == "E2/V0" |
| 64 | </Original> |
| 65 | <Expanded> |
| 66 | "E2/V0" == "E2/V0" |
| 67 | </Expanded> |
| 68 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 69 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 70 | <Original> |
| 71 | Catch::toString(e1) == "E2/V1" |
| 72 | </Original> |
| 73 | <Expanded> |
| 74 | "E2/V1" == "E2/V1" |
| 75 | </Expanded> |
| 76 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 77 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 78 | <Original> |
| 79 | Catch::toString(e3) == "Unknown enum value 10" |
| 80 | </Original> |
| 81 | <Expanded> |
| 82 | "Unknown enum value 10" |
| 83 | == |
| 84 | "Unknown enum value 10" |
| 85 | </Expanded> |
| 86 | </Expression> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 87 | <OverallResult success="true"/> |
| 88 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 89 | <TestCase name="Some simple comparisons between doubles"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 90 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 91 | <Original> |
| 92 | d == Approx( 1.23 ) |
| 93 | </Original> |
| 94 | <Expanded> |
| 95 | 1.23 == Approx( 1.23 ) |
| 96 | </Expanded> |
| 97 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 98 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 99 | <Original> |
| 100 | d != Approx( 1.22 ) |
| 101 | </Original> |
| 102 | <Expanded> |
| 103 | 1.23 != Approx( 1.22 ) |
| 104 | </Expanded> |
| 105 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 106 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 107 | <Original> |
| 108 | d != Approx( 1.24 ) |
| 109 | </Original> |
| 110 | <Expanded> |
| 111 | 1.23 != Approx( 1.24 ) |
| 112 | </Expanded> |
| 113 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 114 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 115 | <Original> |
| 116 | Approx( d ) == 1.23 |
| 117 | </Original> |
| 118 | <Expanded> |
| 119 | Approx( 1.23 ) == 1.23 |
| 120 | </Expanded> |
| 121 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 122 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 123 | <Original> |
| 124 | Approx( d ) != 1.22 |
| 125 | </Original> |
| 126 | <Expanded> |
| 127 | Approx( 1.23 ) != 1.22 |
| 128 | </Expanded> |
| 129 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 130 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 131 | <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 Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 140 | <TestCase name="Approximate comparisons with different epsilons"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 141 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 142 | <Original> |
| 143 | d != Approx( 1.231 ) |
| 144 | </Original> |
| 145 | <Expanded> |
| 146 | 1.23 != Approx( 1.231 ) |
| 147 | </Expanded> |
| 148 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 149 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 150 | <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 Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 159 | <TestCase name="Approximate comparisons with floats"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 160 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 161 | <Original> |
| 162 | 1.23f == Approx( 1.23f ) |
| 163 | </Original> |
| 164 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 165 | 1.23f == Approx( 1.2300000191 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 166 | </Expanded> |
| 167 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 168 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 169 | <Original> |
| 170 | 0.0f == Approx( 0.0f ) |
| 171 | </Original> |
| 172 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 173 | 0.0f == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 174 | </Expanded> |
| 175 | </Expression> |
| 176 | <OverallResult success="true"/> |
| 177 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 178 | <TestCase name="Approximate comparisons with ints"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 179 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 180 | <Original> |
| 181 | 1 == Approx( 1 ) |
| 182 | </Original> |
| 183 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 184 | 1 == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 185 | </Expanded> |
| 186 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 187 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 188 | <Original> |
| 189 | 0 == Approx( 0 ) |
| 190 | </Original> |
| 191 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 192 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 193 | </Expanded> |
| 194 | </Expression> |
| 195 | <OverallResult success="true"/> |
| 196 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 197 | <TestCase name="Approximate comparisons with mixed numeric types"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 198 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 199 | <Original> |
| 200 | 1.0f == Approx( 1 ) |
| 201 | </Original> |
| 202 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 203 | 1.0f == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 204 | </Expanded> |
| 205 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 206 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 207 | <Original> |
| 208 | 0 == Approx( dZero) |
| 209 | </Original> |
| 210 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 211 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 212 | </Expanded> |
| 213 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 214 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 215 | <Original> |
| 216 | 0 == Approx( dSmall ).epsilon( 0.001 ) |
| 217 | </Original> |
| 218 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 219 | 0 == Approx( 0.00001 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 220 | </Expanded> |
| 221 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 222 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 223 | <Original> |
| 224 | 1.234f == Approx( dMedium ) |
| 225 | </Original> |
| 226 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 227 | 1.234f == Approx( 1.234 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 228 | </Expanded> |
| 229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 230 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 231 | <Original> |
| 232 | dMedium == Approx( 1.234f ) |
| 233 | </Original> |
| 234 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 235 | 1.234 == Approx( 1.2339999676 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 236 | </Expanded> |
| 237 | </Expression> |
| 238 | <OverallResult success="true"/> |
| 239 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 240 | <TestCase name="Use a custom approx"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 241 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 242 | <Original> |
| 243 | d == approx( 1.23 ) |
| 244 | </Original> |
| 245 | <Expanded> |
| 246 | 1.23 == Approx( 1.23 ) |
| 247 | </Expanded> |
| 248 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 249 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 250 | <Original> |
| 251 | d == approx( 1.22 ) |
| 252 | </Original> |
| 253 | <Expanded> |
| 254 | 1.23 == Approx( 1.22 ) |
| 255 | </Expanded> |
| 256 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 257 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 258 | <Original> |
| 259 | d == approx( 1.24 ) |
| 260 | </Original> |
| 261 | <Expanded> |
| 262 | 1.23 == Approx( 1.24 ) |
| 263 | </Expanded> |
| 264 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 265 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 266 | <Original> |
| 267 | d != approx( 1.25 ) |
| 268 | </Original> |
| 269 | <Expanded> |
| 270 | 1.23 != Approx( 1.25 ) |
| 271 | </Expanded> |
| 272 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 273 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 274 | <Original> |
| 275 | approx( d ) == 1.23 |
| 276 | </Original> |
| 277 | <Expanded> |
| 278 | Approx( 1.23 ) == 1.23 |
| 279 | </Expanded> |
| 280 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 281 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 282 | <Original> |
| 283 | approx( d ) == 1.22 |
| 284 | </Original> |
| 285 | <Expanded> |
| 286 | Approx( 1.23 ) == 1.22 |
| 287 | </Expanded> |
| 288 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 289 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 290 | <Original> |
| 291 | approx( d ) == 1.24 |
| 292 | </Original> |
| 293 | <Expanded> |
| 294 | Approx( 1.23 ) == 1.24 |
| 295 | </Expanded> |
| 296 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 297 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 298 | <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 Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 308 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 309 | <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 Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 316 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 317 | <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 Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 326 | <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 327 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 328 | <Original> |
| 329 | s == "hello" |
| 330 | </Original> |
| 331 | <Expanded> |
| 332 | "hello" == "hello" |
| 333 | </Expanded> |
| 334 | </Expression> |
| 335 | <OverallResult success="true"/> |
| 336 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 337 | <TestCase name="A METHOD_AS_TEST_CASE based test run that fails"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 338 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 339 | <Original> |
| 340 | s == "world" |
| 341 | </Original> |
| 342 | <Expanded> |
| 343 | "hello" == "world" |
| 344 | </Expanded> |
| 345 | </Expression> |
| 346 | <OverallResult success="false"/> |
| 347 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 348 | <TestCase name="A TEST_CASE_METHOD based test run that succeeds"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 349 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 350 | <Original> |
| 351 | m_a == 1 |
| 352 | </Original> |
| 353 | <Expanded> |
| 354 | 1 == 1 |
| 355 | </Expanded> |
| 356 | </Expression> |
| 357 | <OverallResult success="true"/> |
| 358 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 359 | <TestCase name="A TEST_CASE_METHOD based test run that fails"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 360 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 361 | <Original> |
| 362 | m_a == 2 |
| 363 | </Original> |
| 364 | <Expanded> |
| 365 | 1 == 2 |
| 366 | </Expanded> |
| 367 | </Expression> |
| 368 | <OverallResult success="false"/> |
| 369 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 370 | <TestCase name="Equality checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 371 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 372 | <Original> |
| 373 | data.int_seven == 7 |
| 374 | </Original> |
| 375 | <Expanded> |
| 376 | 7 == 7 |
| 377 | </Expanded> |
| 378 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 379 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 380 | <Original> |
| 381 | data.float_nine_point_one == Approx( 9.1f ) |
| 382 | </Original> |
| 383 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 384 | 9.1f == Approx( 9.1000003815 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 385 | </Expanded> |
| 386 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 387 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 388 | <Original> |
| 389 | data.double_pi == Approx( 3.1415926535 ) |
| 390 | </Original> |
| 391 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 392 | 3.1415926535 == Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 393 | </Expanded> |
| 394 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 395 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 396 | <Original> |
| 397 | data.str_hello == "hello" |
| 398 | </Original> |
| 399 | <Expanded> |
| 400 | "hello" == "hello" |
| 401 | </Expanded> |
| 402 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 403 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 404 | <Original> |
| 405 | "hello" == data.str_hello |
| 406 | </Original> |
| 407 | <Expanded> |
| 408 | "hello" == "hello" |
| 409 | </Expanded> |
| 410 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 411 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 412 | <Original> |
| 413 | data.str_hello.size() == 5 |
| 414 | </Original> |
| 415 | <Expanded> |
| 416 | 5 == 5 |
| 417 | </Expanded> |
| 418 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 419 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 420 | <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 Nash | baf181f | 2014-05-20 18:11:43 +0100 | [diff] [blame] | 429 | <TestCase name="Equality checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 430 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 431 | <Original> |
| 432 | data.int_seven == 6 |
| 433 | </Original> |
| 434 | <Expanded> |
| 435 | 7 == 6 |
| 436 | </Expanded> |
| 437 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 438 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 439 | <Original> |
| 440 | data.int_seven == 8 |
| 441 | </Original> |
| 442 | <Expanded> |
| 443 | 7 == 8 |
| 444 | </Expanded> |
| 445 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 446 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 447 | <Original> |
| 448 | data.int_seven == 0 |
| 449 | </Original> |
| 450 | <Expanded> |
| 451 | 7 == 0 |
| 452 | </Expanded> |
| 453 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 454 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 455 | <Original> |
| 456 | data.float_nine_point_one == Approx( 9.11f ) |
| 457 | </Original> |
| 458 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 459 | 9.1f == Approx( 9.1099996567 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 460 | </Expanded> |
| 461 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 462 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 463 | <Original> |
| 464 | data.float_nine_point_one == Approx( 9.0f ) |
| 465 | </Original> |
| 466 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 467 | 9.1f == Approx( 9.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 468 | </Expanded> |
| 469 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 470 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 471 | <Original> |
| 472 | data.float_nine_point_one == Approx( 1 ) |
| 473 | </Original> |
| 474 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 475 | 9.1f == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 476 | </Expanded> |
| 477 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 478 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 479 | <Original> |
| 480 | data.float_nine_point_one == Approx( 0 ) |
| 481 | </Original> |
| 482 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 483 | 9.1f == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 484 | </Expanded> |
| 485 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 486 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 487 | <Original> |
| 488 | data.double_pi == Approx( 3.1415 ) |
| 489 | </Original> |
| 490 | <Expanded> |
| 491 | 3.1415926535 == Approx( 3.1415 ) |
| 492 | </Expanded> |
| 493 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 494 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 495 | <Original> |
| 496 | data.str_hello == "goodbye" |
| 497 | </Original> |
| 498 | <Expanded> |
| 499 | "hello" == "goodbye" |
| 500 | </Expanded> |
| 501 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 502 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 503 | <Original> |
| 504 | data.str_hello == "hell" |
| 505 | </Original> |
| 506 | <Expanded> |
| 507 | "hello" == "hell" |
| 508 | </Expanded> |
| 509 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 510 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 511 | <Original> |
| 512 | data.str_hello == "hello1" |
| 513 | </Original> |
| 514 | <Expanded> |
| 515 | "hello" == "hello1" |
| 516 | </Expanded> |
| 517 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 518 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 519 | <Original> |
| 520 | data.str_hello.size() == 6 |
| 521 | </Original> |
| 522 | <Expanded> |
| 523 | 5 == 6 |
| 524 | </Expanded> |
| 525 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 526 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 527 | <Original> |
| 528 | x == Approx( 1.301 ) |
| 529 | </Original> |
| 530 | <Expanded> |
| 531 | 1.3 == Approx( 1.301 ) |
| 532 | </Expanded> |
| 533 | </Expression> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 534 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 535 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 536 | <TestCase name="Inequality checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 537 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 538 | <Original> |
| 539 | data.int_seven != 6 |
| 540 | </Original> |
| 541 | <Expanded> |
| 542 | 7 != 6 |
| 543 | </Expanded> |
| 544 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 545 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 546 | <Original> |
| 547 | data.int_seven != 8 |
| 548 | </Original> |
| 549 | <Expanded> |
| 550 | 7 != 8 |
| 551 | </Expanded> |
| 552 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 553 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 554 | <Original> |
| 555 | data.float_nine_point_one != Approx( 9.11f ) |
| 556 | </Original> |
| 557 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 558 | 9.1f != Approx( 9.1099996567 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 559 | </Expanded> |
| 560 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 561 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 562 | <Original> |
| 563 | data.float_nine_point_one != Approx( 9.0f ) |
| 564 | </Original> |
| 565 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 566 | 9.1f != Approx( 9.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 567 | </Expanded> |
| 568 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 569 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 570 | <Original> |
| 571 | data.float_nine_point_one != Approx( 1 ) |
| 572 | </Original> |
| 573 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 574 | 9.1f != Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 575 | </Expanded> |
| 576 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 577 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 578 | <Original> |
| 579 | data.float_nine_point_one != Approx( 0 ) |
| 580 | </Original> |
| 581 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 582 | 9.1f != Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 583 | </Expanded> |
| 584 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 585 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 586 | <Original> |
| 587 | data.double_pi != Approx( 3.1415 ) |
| 588 | </Original> |
| 589 | <Expanded> |
| 590 | 3.1415926535 != Approx( 3.1415 ) |
| 591 | </Expanded> |
| 592 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 593 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 594 | <Original> |
| 595 | data.str_hello != "goodbye" |
| 596 | </Original> |
| 597 | <Expanded> |
| 598 | "hello" != "goodbye" |
| 599 | </Expanded> |
| 600 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 601 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 602 | <Original> |
| 603 | data.str_hello != "hell" |
| 604 | </Original> |
| 605 | <Expanded> |
| 606 | "hello" != "hell" |
| 607 | </Expanded> |
| 608 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 609 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 610 | <Original> |
| 611 | data.str_hello != "hello1" |
| 612 | </Original> |
| 613 | <Expanded> |
| 614 | "hello" != "hello1" |
| 615 | </Expanded> |
| 616 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 617 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 618 | <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 Nash | baf181f | 2014-05-20 18:11:43 +0100 | [diff] [blame] | 627 | <TestCase name="Inequality checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 628 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 629 | <Original> |
| 630 | data.int_seven != 7 |
| 631 | </Original> |
| 632 | <Expanded> |
| 633 | 7 != 7 |
| 634 | </Expanded> |
| 635 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 636 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 637 | <Original> |
| 638 | data.float_nine_point_one != Approx( 9.1f ) |
| 639 | </Original> |
| 640 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 641 | 9.1f != Approx( 9.1000003815 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 642 | </Expanded> |
| 643 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 644 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 645 | <Original> |
| 646 | data.double_pi != Approx( 3.1415926535 ) |
| 647 | </Original> |
| 648 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 649 | 3.1415926535 != Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 650 | </Expanded> |
| 651 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 652 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 653 | <Original> |
| 654 | data.str_hello != "hello" |
| 655 | </Original> |
| 656 | <Expanded> |
| 657 | "hello" != "hello" |
| 658 | </Expanded> |
| 659 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 660 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 661 | <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 Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 670 | <TestCase name="Ordering comparison checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 671 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 672 | <Original> |
| 673 | data.int_seven < 8 |
| 674 | </Original> |
| 675 | <Expanded> |
| 676 | 7 < 8 |
| 677 | </Expanded> |
| 678 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 679 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 680 | <Original> |
| 681 | data.int_seven > 6 |
| 682 | </Original> |
| 683 | <Expanded> |
| 684 | 7 > 6 |
| 685 | </Expanded> |
| 686 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 687 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 688 | <Original> |
| 689 | data.int_seven > 0 |
| 690 | </Original> |
| 691 | <Expanded> |
| 692 | 7 > 0 |
| 693 | </Expanded> |
| 694 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 695 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 696 | <Original> |
| 697 | data.int_seven > -1 |
| 698 | </Original> |
| 699 | <Expanded> |
| 700 | 7 > -1 |
| 701 | </Expanded> |
| 702 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 703 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 704 | <Original> |
| 705 | data.int_seven >= 7 |
| 706 | </Original> |
| 707 | <Expanded> |
| 708 | 7 >= 7 |
| 709 | </Expanded> |
| 710 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 711 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 712 | <Original> |
| 713 | data.int_seven >= 6 |
| 714 | </Original> |
| 715 | <Expanded> |
| 716 | 7 >= 6 |
| 717 | </Expanded> |
| 718 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 719 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 720 | <Original> |
| 721 | data.int_seven <= 7 |
| 722 | </Original> |
| 723 | <Expanded> |
| 724 | 7 <= 7 |
| 725 | </Expanded> |
| 726 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 727 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 728 | <Original> |
| 729 | data.int_seven <= 8 |
| 730 | </Original> |
| 731 | <Expanded> |
| 732 | 7 <= 8 |
| 733 | </Expanded> |
| 734 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 735 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 736 | <Original> |
| 737 | data.float_nine_point_one > 9 |
| 738 | </Original> |
| 739 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 740 | 9.1f > 9 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 741 | </Expanded> |
| 742 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 743 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 744 | <Original> |
| 745 | data.float_nine_point_one < 10 |
| 746 | </Original> |
| 747 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 748 | 9.1f < 10 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 749 | </Expanded> |
| 750 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 751 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 752 | <Original> |
| 753 | data.float_nine_point_one < 9.2 |
| 754 | </Original> |
| 755 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 756 | 9.1f < 9.2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 757 | </Expanded> |
| 758 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 759 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 760 | <Original> |
| 761 | data.str_hello <= "hello" |
| 762 | </Original> |
| 763 | <Expanded> |
| 764 | "hello" <= "hello" |
| 765 | </Expanded> |
| 766 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 767 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 768 | <Original> |
| 769 | data.str_hello >= "hello" |
| 770 | </Original> |
| 771 | <Expanded> |
| 772 | "hello" >= "hello" |
| 773 | </Expanded> |
| 774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 775 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 776 | <Original> |
| 777 | data.str_hello < "hellp" |
| 778 | </Original> |
| 779 | <Expanded> |
| 780 | "hello" < "hellp" |
| 781 | </Expanded> |
| 782 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 783 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 784 | <Original> |
| 785 | data.str_hello < "zebra" |
| 786 | </Original> |
| 787 | <Expanded> |
| 788 | "hello" < "zebra" |
| 789 | </Expanded> |
| 790 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 791 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 792 | <Original> |
| 793 | data.str_hello > "hellm" |
| 794 | </Original> |
| 795 | <Expanded> |
| 796 | "hello" > "hellm" |
| 797 | </Expanded> |
| 798 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 799 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 800 | <Original> |
| 801 | data.str_hello > "a" |
| 802 | </Original> |
| 803 | <Expanded> |
| 804 | "hello" > "a" |
| 805 | </Expanded> |
| 806 | </Expression> |
| 807 | <OverallResult success="true"/> |
| 808 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 809 | <TestCase name="Ordering comparison checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 810 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 811 | <Original> |
| 812 | data.int_seven > 7 |
| 813 | </Original> |
| 814 | <Expanded> |
| 815 | 7 > 7 |
| 816 | </Expanded> |
| 817 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 818 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 819 | <Original> |
| 820 | data.int_seven < 7 |
| 821 | </Original> |
| 822 | <Expanded> |
| 823 | 7 < 7 |
| 824 | </Expanded> |
| 825 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 826 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 827 | <Original> |
| 828 | data.int_seven > 8 |
| 829 | </Original> |
| 830 | <Expanded> |
| 831 | 7 > 8 |
| 832 | </Expanded> |
| 833 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 834 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 835 | <Original> |
| 836 | data.int_seven < 6 |
| 837 | </Original> |
| 838 | <Expanded> |
| 839 | 7 < 6 |
| 840 | </Expanded> |
| 841 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 842 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 843 | <Original> |
| 844 | data.int_seven < 0 |
| 845 | </Original> |
| 846 | <Expanded> |
| 847 | 7 < 0 |
| 848 | </Expanded> |
| 849 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 850 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 851 | <Original> |
| 852 | data.int_seven < -1 |
| 853 | </Original> |
| 854 | <Expanded> |
| 855 | 7 < -1 |
| 856 | </Expanded> |
| 857 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 858 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 859 | <Original> |
| 860 | data.int_seven >= 8 |
| 861 | </Original> |
| 862 | <Expanded> |
| 863 | 7 >= 8 |
| 864 | </Expanded> |
| 865 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 866 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 867 | <Original> |
| 868 | data.int_seven <= 6 |
| 869 | </Original> |
| 870 | <Expanded> |
| 871 | 7 <= 6 |
| 872 | </Expanded> |
| 873 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 874 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 875 | <Original> |
| 876 | data.float_nine_point_one < 9 |
| 877 | </Original> |
| 878 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 879 | 9.1f < 9 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 880 | </Expanded> |
| 881 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 882 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 883 | <Original> |
| 884 | data.float_nine_point_one > 10 |
| 885 | </Original> |
| 886 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 887 | 9.1f > 10 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 888 | </Expanded> |
| 889 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 890 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 891 | <Original> |
| 892 | data.float_nine_point_one > 9.2 |
| 893 | </Original> |
| 894 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 895 | 9.1f > 9.2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 896 | </Expanded> |
| 897 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 898 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 899 | <Original> |
| 900 | data.str_hello > "hello" |
| 901 | </Original> |
| 902 | <Expanded> |
| 903 | "hello" > "hello" |
| 904 | </Expanded> |
| 905 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 906 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 907 | <Original> |
| 908 | data.str_hello < "hello" |
| 909 | </Original> |
| 910 | <Expanded> |
| 911 | "hello" < "hello" |
| 912 | </Expanded> |
| 913 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 914 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 915 | <Original> |
| 916 | data.str_hello > "hellp" |
| 917 | </Original> |
| 918 | <Expanded> |
| 919 | "hello" > "hellp" |
| 920 | </Expanded> |
| 921 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 922 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 923 | <Original> |
| 924 | data.str_hello > "z" |
| 925 | </Original> |
| 926 | <Expanded> |
| 927 | "hello" > "z" |
| 928 | </Expanded> |
| 929 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 930 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 931 | <Original> |
| 932 | data.str_hello < "hellm" |
| 933 | </Original> |
| 934 | <Expanded> |
| 935 | "hello" < "hellm" |
| 936 | </Expanded> |
| 937 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 938 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 939 | <Original> |
| 940 | data.str_hello < "a" |
| 941 | </Original> |
| 942 | <Expanded> |
| 943 | "hello" < "a" |
| 944 | </Expanded> |
| 945 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 946 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 947 | <Original> |
| 948 | data.str_hello >= "z" |
| 949 | </Original> |
| 950 | <Expanded> |
| 951 | "hello" >= "z" |
| 952 | </Expanded> |
| 953 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 954 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 955 | <Original> |
| 956 | data.str_hello <= "a" |
| 957 | </Original> |
| 958 | <Expanded> |
| 959 | "hello" <= "a" |
| 960 | </Expanded> |
| 961 | </Expression> |
| 962 | <OverallResult success="false"/> |
| 963 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 964 | <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 965 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 966 | <Original> |
| 967 | i == 1 |
| 968 | </Original> |
| 969 | <Expanded> |
| 970 | 1 == 1 |
| 971 | </Expanded> |
| 972 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 973 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 974 | <Original> |
| 975 | ui == 2 |
| 976 | </Original> |
| 977 | <Expanded> |
| 978 | 2 == 2 |
| 979 | </Expanded> |
| 980 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 981 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 982 | <Original> |
| 983 | l == 3 |
| 984 | </Original> |
| 985 | <Expanded> |
| 986 | 3 == 3 |
| 987 | </Expanded> |
| 988 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 989 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 990 | <Original> |
| 991 | ul == 4 |
| 992 | </Original> |
| 993 | <Expanded> |
| 994 | 4 == 4 |
| 995 | </Expanded> |
| 996 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 997 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 998 | <Original> |
| 999 | c == 5 |
| 1000 | </Original> |
| 1001 | <Expanded> |
| 1002 | 5 == 5 |
| 1003 | </Expanded> |
| 1004 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1005 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1006 | <Original> |
| 1007 | uc == 6 |
| 1008 | </Original> |
| 1009 | <Expanded> |
| 1010 | 6 == 6 |
| 1011 | </Expanded> |
| 1012 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1013 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1014 | <Original> |
| 1015 | 1 == i |
| 1016 | </Original> |
| 1017 | <Expanded> |
| 1018 | 1 == 1 |
| 1019 | </Expanded> |
| 1020 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1021 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1022 | <Original> |
| 1023 | 2 == ui |
| 1024 | </Original> |
| 1025 | <Expanded> |
| 1026 | 2 == 2 |
| 1027 | </Expanded> |
| 1028 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1029 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1030 | <Original> |
| 1031 | 3 == l |
| 1032 | </Original> |
| 1033 | <Expanded> |
| 1034 | 3 == 3 |
| 1035 | </Expanded> |
| 1036 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1037 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1038 | <Original> |
| 1039 | 4 == ul |
| 1040 | </Original> |
| 1041 | <Expanded> |
| 1042 | 4 == 4 |
| 1043 | </Expanded> |
| 1044 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1045 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1046 | <Original> |
| 1047 | 5 == c |
| 1048 | </Original> |
| 1049 | <Expanded> |
| 1050 | 5 == 5 |
| 1051 | </Expanded> |
| 1052 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1053 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1054 | <Original> |
| 1055 | 6 == uc |
| 1056 | </Original> |
| 1057 | <Expanded> |
| 1058 | 6 == 6 |
| 1059 | </Expanded> |
| 1060 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1061 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1062 | <Original> |
| 1063 | (std::numeric_limits<unsigned long>::max)() > ul |
| 1064 | </Original> |
| 1065 | <Expanded> |
| 1066 | 0x<hex digits> > 4 |
| 1067 | </Expanded> |
| 1068 | </Expression> |
| 1069 | <OverallResult success="true"/> |
| 1070 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1071 | <TestCase name="comparisons between int variables"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1072 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1073 | <Original> |
| 1074 | long_var == unsigned_char_var |
| 1075 | </Original> |
| 1076 | <Expanded> |
| 1077 | 1 == 1 |
| 1078 | </Expanded> |
| 1079 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1080 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1081 | <Original> |
| 1082 | long_var == unsigned_short_var |
| 1083 | </Original> |
| 1084 | <Expanded> |
| 1085 | 1 == 1 |
| 1086 | </Expanded> |
| 1087 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1088 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1089 | <Original> |
| 1090 | long_var == unsigned_int_var |
| 1091 | </Original> |
| 1092 | <Expanded> |
| 1093 | 1 == 1 |
| 1094 | </Expanded> |
| 1095 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1096 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1097 | <Original> |
| 1098 | long_var == unsigned_long_var |
| 1099 | </Original> |
| 1100 | <Expanded> |
| 1101 | 1 == 1 |
| 1102 | </Expanded> |
| 1103 | </Expression> |
| 1104 | <OverallResult success="true"/> |
| 1105 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1106 | <TestCase name="comparisons between const int variables"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1107 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1108 | <Original> |
| 1109 | unsigned_char_var == 1 |
| 1110 | </Original> |
| 1111 | <Expanded> |
| 1112 | 1 == 1 |
| 1113 | </Expanded> |
| 1114 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1115 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1116 | <Original> |
| 1117 | unsigned_short_var == 1 |
| 1118 | </Original> |
| 1119 | <Expanded> |
| 1120 | 1 == 1 |
| 1121 | </Expanded> |
| 1122 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1123 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1124 | <Original> |
| 1125 | unsigned_int_var == 1 |
| 1126 | </Original> |
| 1127 | <Expanded> |
| 1128 | 1 == 1 |
| 1129 | </Expanded> |
| 1130 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1131 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1132 | <Original> |
| 1133 | unsigned_long_var == 1 |
| 1134 | </Original> |
| 1135 | <Expanded> |
| 1136 | 1 == 1 |
| 1137 | </Expanded> |
| 1138 | </Expression> |
| 1139 | <OverallResult success="true"/> |
| 1140 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1141 | <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1142 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1143 | <Original> |
| 1144 | ( -1 > 2u ) |
| 1145 | </Original> |
| 1146 | <Expanded> |
| 1147 | true |
| 1148 | </Expanded> |
| 1149 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1150 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1151 | <Original> |
| 1152 | -1 > 2u |
| 1153 | </Original> |
| 1154 | <Expanded> |
| 1155 | -1 > 2 |
| 1156 | </Expanded> |
| 1157 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1158 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1159 | <Original> |
| 1160 | ( 2u < -1 ) |
| 1161 | </Original> |
| 1162 | <Expanded> |
| 1163 | true |
| 1164 | </Expanded> |
| 1165 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1166 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1167 | <Original> |
| 1168 | 2u < -1 |
| 1169 | </Original> |
| 1170 | <Expanded> |
| 1171 | 2 < -1 |
| 1172 | </Expanded> |
| 1173 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1174 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1175 | <Original> |
| 1176 | ( minInt > 2u ) |
| 1177 | </Original> |
| 1178 | <Expanded> |
| 1179 | true |
| 1180 | </Expanded> |
| 1181 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1182 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1183 | <Original> |
| 1184 | minInt > 2u |
| 1185 | </Original> |
| 1186 | <Expanded> |
| 1187 | -2147483648 > 2 |
| 1188 | </Expanded> |
| 1189 | </Expression> |
| 1190 | <OverallResult success="true"/> |
| 1191 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1192 | <TestCase name="Comparisons between ints where one side is computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1193 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1194 | <Original> |
| 1195 | 54 == 6*9 |
| 1196 | </Original> |
| 1197 | <Expanded> |
| 1198 | 54 == 54 |
| 1199 | </Expanded> |
| 1200 | </Expression> |
| 1201 | <OverallResult success="true"/> |
| 1202 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1203 | <TestCase name="Pointers can be compared to null"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1204 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1205 | <Original> |
| 1206 | p == __null |
| 1207 | </Original> |
| 1208 | <Expanded> |
| 1209 | __null == 0 |
| 1210 | </Expanded> |
| 1211 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1212 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1213 | <Original> |
| 1214 | p == pNULL |
| 1215 | </Original> |
| 1216 | <Expanded> |
| 1217 | __null == __null |
| 1218 | </Expanded> |
| 1219 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1220 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1221 | <Original> |
| 1222 | p != __null |
| 1223 | </Original> |
| 1224 | <Expanded> |
| 1225 | 0x<hex digits> != 0 |
| 1226 | </Expanded> |
| 1227 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1228 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1229 | <Original> |
| 1230 | cp != __null |
| 1231 | </Original> |
| 1232 | <Expanded> |
| 1233 | 0x<hex digits> != 0 |
| 1234 | </Expanded> |
| 1235 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1236 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1237 | <Original> |
| 1238 | cpc != __null |
| 1239 | </Original> |
| 1240 | <Expanded> |
| 1241 | 0x<hex digits> != 0 |
| 1242 | </Expanded> |
| 1243 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1244 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1245 | <Original> |
| 1246 | returnsNull() == __null |
| 1247 | </Original> |
| 1248 | <Expanded> |
| 1249 | {null string} == 0 |
| 1250 | </Expanded> |
| 1251 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1252 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1253 | <Original> |
| 1254 | returnsConstNull() == __null |
| 1255 | </Original> |
| 1256 | <Expanded> |
| 1257 | {null string} == 0 |
| 1258 | </Expanded> |
| 1259 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1260 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1261 | <Original> |
| 1262 | __null != p |
| 1263 | </Original> |
| 1264 | <Expanded> |
| 1265 | 0 != 0x<hex digits> |
| 1266 | </Expanded> |
| 1267 | </Expression> |
| 1268 | <OverallResult success="true"/> |
| 1269 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1270 | <TestCase name="'Not' checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1271 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1272 | <Original> |
| 1273 | false == false |
| 1274 | </Original> |
| 1275 | <Expanded> |
| 1276 | false == false |
| 1277 | </Expanded> |
| 1278 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1279 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1280 | <Original> |
| 1281 | true == true |
| 1282 | </Original> |
| 1283 | <Expanded> |
| 1284 | true == true |
| 1285 | </Expanded> |
| 1286 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1287 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1288 | <Original> |
| 1289 | !false |
| 1290 | </Original> |
| 1291 | <Expanded> |
| 1292 | true |
| 1293 | </Expanded> |
| 1294 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1295 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1296 | <Original> |
| 1297 | !false |
| 1298 | </Original> |
| 1299 | <Expanded> |
| 1300 | !false |
| 1301 | </Expanded> |
| 1302 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1303 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1304 | <Original> |
| 1305 | !falseValue |
| 1306 | </Original> |
| 1307 | <Expanded> |
| 1308 | true |
| 1309 | </Expanded> |
| 1310 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1311 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1312 | <Original> |
| 1313 | !falseValue |
| 1314 | </Original> |
| 1315 | <Expanded> |
| 1316 | !false |
| 1317 | </Expanded> |
| 1318 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1319 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1320 | <Original> |
| 1321 | !(1 == 2) |
| 1322 | </Original> |
| 1323 | <Expanded> |
| 1324 | true |
| 1325 | </Expanded> |
| 1326 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1327 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1328 | <Original> |
| 1329 | !1 == 2 |
| 1330 | </Original> |
| 1331 | <Expanded> |
| 1332 | !(1 == 2) |
| 1333 | </Expanded> |
| 1334 | </Expression> |
| 1335 | <OverallResult success="true"/> |
| 1336 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1337 | <TestCase name="'Not' checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1338 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1339 | <Original> |
| 1340 | false != false |
| 1341 | </Original> |
| 1342 | <Expanded> |
| 1343 | false != false |
| 1344 | </Expanded> |
| 1345 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1346 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1347 | <Original> |
| 1348 | true != true |
| 1349 | </Original> |
| 1350 | <Expanded> |
| 1351 | true != true |
| 1352 | </Expanded> |
| 1353 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1354 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1355 | <Original> |
| 1356 | !true |
| 1357 | </Original> |
| 1358 | <Expanded> |
| 1359 | false |
| 1360 | </Expanded> |
| 1361 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1362 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1363 | <Original> |
| 1364 | !true |
| 1365 | </Original> |
| 1366 | <Expanded> |
| 1367 | !true |
| 1368 | </Expanded> |
| 1369 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1370 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1371 | <Original> |
| 1372 | !trueValue |
| 1373 | </Original> |
| 1374 | <Expanded> |
| 1375 | false |
| 1376 | </Expanded> |
| 1377 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1378 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1379 | <Original> |
| 1380 | !trueValue |
| 1381 | </Original> |
| 1382 | <Expanded> |
| 1383 | !true |
| 1384 | </Expanded> |
| 1385 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1386 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1387 | <Original> |
| 1388 | !(1 == 1) |
| 1389 | </Original> |
| 1390 | <Expanded> |
| 1391 | false |
| 1392 | </Expanded> |
| 1393 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1394 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1395 | <Original> |
| 1396 | !1 == 1 |
| 1397 | </Original> |
| 1398 | <Expanded> |
| 1399 | !(1 == 1) |
| 1400 | </Expanded> |
| 1401 | </Expression> |
| 1402 | <OverallResult success="false"/> |
| 1403 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1404 | <TestCase name="When checked exceptions are thrown they can be expected or unexpected"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1405 | <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1406 | <Original> |
| 1407 | thisThrows() |
| 1408 | </Original> |
| 1409 | <Expanded> |
| 1410 | thisThrows() |
| 1411 | </Expanded> |
| 1412 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1413 | <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1414 | <Original> |
| 1415 | thisDoesntThrow() |
| 1416 | </Original> |
| 1417 | <Expanded> |
| 1418 | thisDoesntThrow() |
| 1419 | </Expanded> |
| 1420 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1421 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1422 | <Original> |
| 1423 | thisThrows() |
| 1424 | </Original> |
| 1425 | <Expanded> |
| 1426 | thisThrows() |
| 1427 | </Expanded> |
| 1428 | </Expression> |
| 1429 | <OverallResult success="true"/> |
| 1430 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1431 | <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1432 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1433 | <Original> |
| 1434 | thisThrows() |
| 1435 | </Original> |
| 1436 | <Expanded> |
| 1437 | thisThrows() |
| 1438 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1439 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1440 | expected exception |
| 1441 | </Exception> |
| 1442 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1443 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1444 | <Original> |
| 1445 | thisDoesntThrow() |
| 1446 | </Original> |
| 1447 | <Expanded> |
| 1448 | thisDoesntThrow() |
| 1449 | </Expanded> |
| 1450 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1451 | <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1452 | <Original> |
| 1453 | thisThrows() |
| 1454 | </Original> |
| 1455 | <Expanded> |
| 1456 | thisThrows() |
| 1457 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1458 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1459 | expected exception |
| 1460 | </Exception> |
| 1461 | </Expression> |
| 1462 | <OverallResult success="false"/> |
| 1463 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1464 | <TestCase name="When unchecked exceptions are thrown directly they are always failures"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1465 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1466 | unexpected exception |
| 1467 | </Exception> |
| 1468 | <OverallResult success="false"/> |
| 1469 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1470 | <TestCase name="An unchecked exception reports the line of the last assertion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1471 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1472 | <Original> |
| 1473 | 1 == 1 |
| 1474 | </Original> |
| 1475 | <Expanded> |
| 1476 | 1 == 1 |
| 1477 | </Expanded> |
| 1478 | </Expression> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1479 | <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1480 | <Original> |
| 1481 | {Unknown expression after the reported line} |
| 1482 | </Original> |
| 1483 | <Expanded> |
| 1484 | {Unknown expression after the reported line} |
| 1485 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1486 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1487 | unexpected exception |
| 1488 | </Exception> |
| 1489 | </Expression> |
| 1490 | <OverallResult success="false"/> |
| 1491 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1492 | <TestCase name="When unchecked exceptions are thrown from sections they are always failures"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1493 | <Section name="section name"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1494 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1495 | unexpected exception |
| 1496 | </Exception> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 1497 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1498 | </Section> |
| 1499 | <OverallResult success="false"/> |
| 1500 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1501 | <TestCase name="When unchecked exceptions are thrown from functions they are always failures"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1502 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1503 | <Original> |
| 1504 | thisThrows() == 0 |
| 1505 | </Original> |
| 1506 | <Expanded> |
| 1507 | thisThrows() == 0 |
| 1508 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1509 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1510 | expected exception |
| 1511 | </Exception> |
| 1512 | </Expression> |
| 1513 | <OverallResult success="false"/> |
| 1514 | </TestCase> |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1515 | <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1516 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1517 | <Original> |
| 1518 | thisThrows() == 0 |
| 1519 | </Original> |
| 1520 | <Expanded> |
| 1521 | thisThrows() == 0 |
| 1522 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1523 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1524 | expected exception |
| 1525 | </Exception> |
| 1526 | </Expression> |
| 1527 | <OverallResult success="false"/> |
| 1528 | </TestCase> |
| 1529 | <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1530 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | a176b93 | 2014-04-12 19:07:24 +0100 | [diff] [blame] | 1531 | <Original> |
| 1532 | thisThrows() == 0 |
| 1533 | </Original> |
| 1534 | <Expanded> |
| 1535 | thisThrows() == 0 |
| 1536 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1537 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | a176b93 | 2014-04-12 19:07:24 +0100 | [diff] [blame] | 1538 | expected exception |
| 1539 | </Exception> |
| 1540 | </Expression> |
| 1541 | <OverallResult success="false"/> |
| 1542 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1543 | <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 1544 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1545 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1546 | <TestCase name="Unexpected custom exceptions can be translated"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1547 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1548 | custom exception |
| 1549 | </Exception> |
| 1550 | <OverallResult success="false"/> |
| 1551 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1552 | <TestCase name="Custom exceptions can be translated when testing for nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1553 | <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1554 | <Original> |
| 1555 | throwCustom() |
| 1556 | </Original> |
| 1557 | <Expanded> |
| 1558 | throwCustom() |
| 1559 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1560 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1561 | custom exception - not std |
| 1562 | </Exception> |
| 1563 | </Expression> |
| 1564 | <OverallResult success="false"/> |
| 1565 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1566 | <TestCase name="Custom exceptions can be translated when testing for throwing as something else"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1567 | <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1568 | <Original> |
| 1569 | throwCustom() |
| 1570 | </Original> |
| 1571 | <Expanded> |
| 1572 | throwCustom() |
| 1573 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1574 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1575 | custom exception - not std |
| 1576 | </Exception> |
| 1577 | </Expression> |
| 1578 | <OverallResult success="false"/> |
| 1579 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1580 | <TestCase name="Unexpected exceptions can be translated"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1581 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1582 | 3.14 |
| 1583 | </Exception> |
| 1584 | <OverallResult success="false"/> |
| 1585 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1586 | <TestCase name="NotImplemented exception"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1587 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1588 | <Original> |
| 1589 | thisFunctionNotImplemented( 7 ) |
| 1590 | </Original> |
| 1591 | <Expanded> |
| 1592 | thisFunctionNotImplemented( 7 ) |
| 1593 | </Expanded> |
| 1594 | </Expression> |
| 1595 | <OverallResult success="true"/> |
| 1596 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1597 | <TestCase name="Generators over two ranges"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1598 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1599 | <Original> |
| 1600 | multiply( i, 2 ) == i*2 |
| 1601 | </Original> |
| 1602 | <Expanded> |
| 1603 | 2 == 2 |
| 1604 | </Expanded> |
| 1605 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1606 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1607 | <Original> |
| 1608 | multiply( j, 2 ) == j*2 |
| 1609 | </Original> |
| 1610 | <Expanded> |
| 1611 | 200 == 200 |
| 1612 | </Expanded> |
| 1613 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1614 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1615 | <Original> |
| 1616 | multiply( i, 2 ) == i*2 |
| 1617 | </Original> |
| 1618 | <Expanded> |
| 1619 | 4 == 4 |
| 1620 | </Expanded> |
| 1621 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1622 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1623 | <Original> |
| 1624 | multiply( j, 2 ) == j*2 |
| 1625 | </Original> |
| 1626 | <Expanded> |
| 1627 | 200 == 200 |
| 1628 | </Expanded> |
| 1629 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1630 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1631 | <Original> |
| 1632 | multiply( i, 2 ) == i*2 |
| 1633 | </Original> |
| 1634 | <Expanded> |
| 1635 | 6 == 6 |
| 1636 | </Expanded> |
| 1637 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1638 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1639 | <Original> |
| 1640 | multiply( j, 2 ) == j*2 |
| 1641 | </Original> |
| 1642 | <Expanded> |
| 1643 | 200 == 200 |
| 1644 | </Expanded> |
| 1645 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1646 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1647 | <Original> |
| 1648 | multiply( i, 2 ) == i*2 |
| 1649 | </Original> |
| 1650 | <Expanded> |
| 1651 | 8 == 8 |
| 1652 | </Expanded> |
| 1653 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1654 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1655 | <Original> |
| 1656 | multiply( j, 2 ) == j*2 |
| 1657 | </Original> |
| 1658 | <Expanded> |
| 1659 | 200 == 200 |
| 1660 | </Expanded> |
| 1661 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1662 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1663 | <Original> |
| 1664 | multiply( i, 2 ) == i*2 |
| 1665 | </Original> |
| 1666 | <Expanded> |
| 1667 | 10 == 10 |
| 1668 | </Expanded> |
| 1669 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1670 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1671 | <Original> |
| 1672 | multiply( j, 2 ) == j*2 |
| 1673 | </Original> |
| 1674 | <Expanded> |
| 1675 | 200 == 200 |
| 1676 | </Expanded> |
| 1677 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1678 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1679 | <Original> |
| 1680 | multiply( i, 2 ) == i*2 |
| 1681 | </Original> |
| 1682 | <Expanded> |
| 1683 | 30 == 30 |
| 1684 | </Expanded> |
| 1685 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1686 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1687 | <Original> |
| 1688 | multiply( j, 2 ) == j*2 |
| 1689 | </Original> |
| 1690 | <Expanded> |
| 1691 | 200 == 200 |
| 1692 | </Expanded> |
| 1693 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1694 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1695 | <Original> |
| 1696 | multiply( i, 2 ) == i*2 |
| 1697 | </Original> |
| 1698 | <Expanded> |
| 1699 | 40 == 40 |
| 1700 | </Expanded> |
| 1701 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1702 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1703 | <Original> |
| 1704 | multiply( j, 2 ) == j*2 |
| 1705 | </Original> |
| 1706 | <Expanded> |
| 1707 | 200 == 200 |
| 1708 | </Expanded> |
| 1709 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1710 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1711 | <Original> |
| 1712 | multiply( i, 2 ) == i*2 |
| 1713 | </Original> |
| 1714 | <Expanded> |
| 1715 | 42 == 42 |
| 1716 | </Expanded> |
| 1717 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1718 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1719 | <Original> |
| 1720 | multiply( j, 2 ) == j*2 |
| 1721 | </Original> |
| 1722 | <Expanded> |
| 1723 | 200 == 200 |
| 1724 | </Expanded> |
| 1725 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1726 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1727 | <Original> |
| 1728 | multiply( i, 2 ) == i*2 |
| 1729 | </Original> |
| 1730 | <Expanded> |
| 1731 | 72 == 72 |
| 1732 | </Expanded> |
| 1733 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1734 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1735 | <Original> |
| 1736 | multiply( j, 2 ) == j*2 |
| 1737 | </Original> |
| 1738 | <Expanded> |
| 1739 | 200 == 200 |
| 1740 | </Expanded> |
| 1741 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1742 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1743 | <Original> |
| 1744 | multiply( i, 2 ) == i*2 |
| 1745 | </Original> |
| 1746 | <Expanded> |
| 1747 | 2 == 2 |
| 1748 | </Expanded> |
| 1749 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1750 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1751 | <Original> |
| 1752 | multiply( j, 2 ) == j*2 |
| 1753 | </Original> |
| 1754 | <Expanded> |
| 1755 | 202 == 202 |
| 1756 | </Expanded> |
| 1757 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1758 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1759 | <Original> |
| 1760 | multiply( i, 2 ) == i*2 |
| 1761 | </Original> |
| 1762 | <Expanded> |
| 1763 | 4 == 4 |
| 1764 | </Expanded> |
| 1765 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1766 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1767 | <Original> |
| 1768 | multiply( j, 2 ) == j*2 |
| 1769 | </Original> |
| 1770 | <Expanded> |
| 1771 | 202 == 202 |
| 1772 | </Expanded> |
| 1773 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1774 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1775 | <Original> |
| 1776 | multiply( i, 2 ) == i*2 |
| 1777 | </Original> |
| 1778 | <Expanded> |
| 1779 | 6 == 6 |
| 1780 | </Expanded> |
| 1781 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1782 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1783 | <Original> |
| 1784 | multiply( j, 2 ) == j*2 |
| 1785 | </Original> |
| 1786 | <Expanded> |
| 1787 | 202 == 202 |
| 1788 | </Expanded> |
| 1789 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1790 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1791 | <Original> |
| 1792 | multiply( i, 2 ) == i*2 |
| 1793 | </Original> |
| 1794 | <Expanded> |
| 1795 | 8 == 8 |
| 1796 | </Expanded> |
| 1797 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1798 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1799 | <Original> |
| 1800 | multiply( j, 2 ) == j*2 |
| 1801 | </Original> |
| 1802 | <Expanded> |
| 1803 | 202 == 202 |
| 1804 | </Expanded> |
| 1805 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1806 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1807 | <Original> |
| 1808 | multiply( i, 2 ) == i*2 |
| 1809 | </Original> |
| 1810 | <Expanded> |
| 1811 | 10 == 10 |
| 1812 | </Expanded> |
| 1813 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1814 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1815 | <Original> |
| 1816 | multiply( j, 2 ) == j*2 |
| 1817 | </Original> |
| 1818 | <Expanded> |
| 1819 | 202 == 202 |
| 1820 | </Expanded> |
| 1821 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1822 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1823 | <Original> |
| 1824 | multiply( i, 2 ) == i*2 |
| 1825 | </Original> |
| 1826 | <Expanded> |
| 1827 | 30 == 30 |
| 1828 | </Expanded> |
| 1829 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1830 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1831 | <Original> |
| 1832 | multiply( j, 2 ) == j*2 |
| 1833 | </Original> |
| 1834 | <Expanded> |
| 1835 | 202 == 202 |
| 1836 | </Expanded> |
| 1837 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1838 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1839 | <Original> |
| 1840 | multiply( i, 2 ) == i*2 |
| 1841 | </Original> |
| 1842 | <Expanded> |
| 1843 | 40 == 40 |
| 1844 | </Expanded> |
| 1845 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1846 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1847 | <Original> |
| 1848 | multiply( j, 2 ) == j*2 |
| 1849 | </Original> |
| 1850 | <Expanded> |
| 1851 | 202 == 202 |
| 1852 | </Expanded> |
| 1853 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1854 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1855 | <Original> |
| 1856 | multiply( i, 2 ) == i*2 |
| 1857 | </Original> |
| 1858 | <Expanded> |
| 1859 | 42 == 42 |
| 1860 | </Expanded> |
| 1861 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1862 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1863 | <Original> |
| 1864 | multiply( j, 2 ) == j*2 |
| 1865 | </Original> |
| 1866 | <Expanded> |
| 1867 | 202 == 202 |
| 1868 | </Expanded> |
| 1869 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1870 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1871 | <Original> |
| 1872 | multiply( i, 2 ) == i*2 |
| 1873 | </Original> |
| 1874 | <Expanded> |
| 1875 | 72 == 72 |
| 1876 | </Expanded> |
| 1877 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1878 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1879 | <Original> |
| 1880 | multiply( j, 2 ) == j*2 |
| 1881 | </Original> |
| 1882 | <Expanded> |
| 1883 | 202 == 202 |
| 1884 | </Expanded> |
| 1885 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1886 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1887 | <Original> |
| 1888 | multiply( i, 2 ) == i*2 |
| 1889 | </Original> |
| 1890 | <Expanded> |
| 1891 | 2 == 2 |
| 1892 | </Expanded> |
| 1893 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1894 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1895 | <Original> |
| 1896 | multiply( j, 2 ) == j*2 |
| 1897 | </Original> |
| 1898 | <Expanded> |
| 1899 | 204 == 204 |
| 1900 | </Expanded> |
| 1901 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1902 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1903 | <Original> |
| 1904 | multiply( i, 2 ) == i*2 |
| 1905 | </Original> |
| 1906 | <Expanded> |
| 1907 | 4 == 4 |
| 1908 | </Expanded> |
| 1909 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1910 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1911 | <Original> |
| 1912 | multiply( j, 2 ) == j*2 |
| 1913 | </Original> |
| 1914 | <Expanded> |
| 1915 | 204 == 204 |
| 1916 | </Expanded> |
| 1917 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1918 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1919 | <Original> |
| 1920 | multiply( i, 2 ) == i*2 |
| 1921 | </Original> |
| 1922 | <Expanded> |
| 1923 | 6 == 6 |
| 1924 | </Expanded> |
| 1925 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1926 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1927 | <Original> |
| 1928 | multiply( j, 2 ) == j*2 |
| 1929 | </Original> |
| 1930 | <Expanded> |
| 1931 | 204 == 204 |
| 1932 | </Expanded> |
| 1933 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1934 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1935 | <Original> |
| 1936 | multiply( i, 2 ) == i*2 |
| 1937 | </Original> |
| 1938 | <Expanded> |
| 1939 | 8 == 8 |
| 1940 | </Expanded> |
| 1941 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1942 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1943 | <Original> |
| 1944 | multiply( j, 2 ) == j*2 |
| 1945 | </Original> |
| 1946 | <Expanded> |
| 1947 | 204 == 204 |
| 1948 | </Expanded> |
| 1949 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1950 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1951 | <Original> |
| 1952 | multiply( i, 2 ) == i*2 |
| 1953 | </Original> |
| 1954 | <Expanded> |
| 1955 | 10 == 10 |
| 1956 | </Expanded> |
| 1957 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1958 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1959 | <Original> |
| 1960 | multiply( j, 2 ) == j*2 |
| 1961 | </Original> |
| 1962 | <Expanded> |
| 1963 | 204 == 204 |
| 1964 | </Expanded> |
| 1965 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1966 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1967 | <Original> |
| 1968 | multiply( i, 2 ) == i*2 |
| 1969 | </Original> |
| 1970 | <Expanded> |
| 1971 | 30 == 30 |
| 1972 | </Expanded> |
| 1973 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1974 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1975 | <Original> |
| 1976 | multiply( j, 2 ) == j*2 |
| 1977 | </Original> |
| 1978 | <Expanded> |
| 1979 | 204 == 204 |
| 1980 | </Expanded> |
| 1981 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1982 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1983 | <Original> |
| 1984 | multiply( i, 2 ) == i*2 |
| 1985 | </Original> |
| 1986 | <Expanded> |
| 1987 | 40 == 40 |
| 1988 | </Expanded> |
| 1989 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1990 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1991 | <Original> |
| 1992 | multiply( j, 2 ) == j*2 |
| 1993 | </Original> |
| 1994 | <Expanded> |
| 1995 | 204 == 204 |
| 1996 | </Expanded> |
| 1997 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1998 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1999 | <Original> |
| 2000 | multiply( i, 2 ) == i*2 |
| 2001 | </Original> |
| 2002 | <Expanded> |
| 2003 | 42 == 42 |
| 2004 | </Expanded> |
| 2005 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2006 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2007 | <Original> |
| 2008 | multiply( j, 2 ) == j*2 |
| 2009 | </Original> |
| 2010 | <Expanded> |
| 2011 | 204 == 204 |
| 2012 | </Expanded> |
| 2013 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2014 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2015 | <Original> |
| 2016 | multiply( i, 2 ) == i*2 |
| 2017 | </Original> |
| 2018 | <Expanded> |
| 2019 | 72 == 72 |
| 2020 | </Expanded> |
| 2021 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2022 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2023 | <Original> |
| 2024 | multiply( j, 2 ) == j*2 |
| 2025 | </Original> |
| 2026 | <Expanded> |
| 2027 | 204 == 204 |
| 2028 | </Expanded> |
| 2029 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2030 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2031 | <Original> |
| 2032 | multiply( i, 2 ) == i*2 |
| 2033 | </Original> |
| 2034 | <Expanded> |
| 2035 | 2 == 2 |
| 2036 | </Expanded> |
| 2037 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2038 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2039 | <Original> |
| 2040 | multiply( j, 2 ) == j*2 |
| 2041 | </Original> |
| 2042 | <Expanded> |
| 2043 | 206 == 206 |
| 2044 | </Expanded> |
| 2045 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2046 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2047 | <Original> |
| 2048 | multiply( i, 2 ) == i*2 |
| 2049 | </Original> |
| 2050 | <Expanded> |
| 2051 | 4 == 4 |
| 2052 | </Expanded> |
| 2053 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2054 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2055 | <Original> |
| 2056 | multiply( j, 2 ) == j*2 |
| 2057 | </Original> |
| 2058 | <Expanded> |
| 2059 | 206 == 206 |
| 2060 | </Expanded> |
| 2061 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2062 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2063 | <Original> |
| 2064 | multiply( i, 2 ) == i*2 |
| 2065 | </Original> |
| 2066 | <Expanded> |
| 2067 | 6 == 6 |
| 2068 | </Expanded> |
| 2069 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2070 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2071 | <Original> |
| 2072 | multiply( j, 2 ) == j*2 |
| 2073 | </Original> |
| 2074 | <Expanded> |
| 2075 | 206 == 206 |
| 2076 | </Expanded> |
| 2077 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2078 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2079 | <Original> |
| 2080 | multiply( i, 2 ) == i*2 |
| 2081 | </Original> |
| 2082 | <Expanded> |
| 2083 | 8 == 8 |
| 2084 | </Expanded> |
| 2085 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2086 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2087 | <Original> |
| 2088 | multiply( j, 2 ) == j*2 |
| 2089 | </Original> |
| 2090 | <Expanded> |
| 2091 | 206 == 206 |
| 2092 | </Expanded> |
| 2093 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2094 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2095 | <Original> |
| 2096 | multiply( i, 2 ) == i*2 |
| 2097 | </Original> |
| 2098 | <Expanded> |
| 2099 | 10 == 10 |
| 2100 | </Expanded> |
| 2101 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2102 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2103 | <Original> |
| 2104 | multiply( j, 2 ) == j*2 |
| 2105 | </Original> |
| 2106 | <Expanded> |
| 2107 | 206 == 206 |
| 2108 | </Expanded> |
| 2109 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2110 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2111 | <Original> |
| 2112 | multiply( i, 2 ) == i*2 |
| 2113 | </Original> |
| 2114 | <Expanded> |
| 2115 | 30 == 30 |
| 2116 | </Expanded> |
| 2117 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2118 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2119 | <Original> |
| 2120 | multiply( j, 2 ) == j*2 |
| 2121 | </Original> |
| 2122 | <Expanded> |
| 2123 | 206 == 206 |
| 2124 | </Expanded> |
| 2125 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2126 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2127 | <Original> |
| 2128 | multiply( i, 2 ) == i*2 |
| 2129 | </Original> |
| 2130 | <Expanded> |
| 2131 | 40 == 40 |
| 2132 | </Expanded> |
| 2133 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2134 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2135 | <Original> |
| 2136 | multiply( j, 2 ) == j*2 |
| 2137 | </Original> |
| 2138 | <Expanded> |
| 2139 | 206 == 206 |
| 2140 | </Expanded> |
| 2141 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2142 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2143 | <Original> |
| 2144 | multiply( i, 2 ) == i*2 |
| 2145 | </Original> |
| 2146 | <Expanded> |
| 2147 | 42 == 42 |
| 2148 | </Expanded> |
| 2149 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2150 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2151 | <Original> |
| 2152 | multiply( j, 2 ) == j*2 |
| 2153 | </Original> |
| 2154 | <Expanded> |
| 2155 | 206 == 206 |
| 2156 | </Expanded> |
| 2157 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2158 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2159 | <Original> |
| 2160 | multiply( i, 2 ) == i*2 |
| 2161 | </Original> |
| 2162 | <Expanded> |
| 2163 | 72 == 72 |
| 2164 | </Expanded> |
| 2165 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2166 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2167 | <Original> |
| 2168 | multiply( j, 2 ) == j*2 |
| 2169 | </Original> |
| 2170 | <Expanded> |
| 2171 | 206 == 206 |
| 2172 | </Expanded> |
| 2173 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2174 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2175 | <Original> |
| 2176 | multiply( i, 2 ) == i*2 |
| 2177 | </Original> |
| 2178 | <Expanded> |
| 2179 | 2 == 2 |
| 2180 | </Expanded> |
| 2181 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2182 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2183 | <Original> |
| 2184 | multiply( j, 2 ) == j*2 |
| 2185 | </Original> |
| 2186 | <Expanded> |
| 2187 | 208 == 208 |
| 2188 | </Expanded> |
| 2189 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2190 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2191 | <Original> |
| 2192 | multiply( i, 2 ) == i*2 |
| 2193 | </Original> |
| 2194 | <Expanded> |
| 2195 | 4 == 4 |
| 2196 | </Expanded> |
| 2197 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2198 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2199 | <Original> |
| 2200 | multiply( j, 2 ) == j*2 |
| 2201 | </Original> |
| 2202 | <Expanded> |
| 2203 | 208 == 208 |
| 2204 | </Expanded> |
| 2205 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2206 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2207 | <Original> |
| 2208 | multiply( i, 2 ) == i*2 |
| 2209 | </Original> |
| 2210 | <Expanded> |
| 2211 | 6 == 6 |
| 2212 | </Expanded> |
| 2213 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2214 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2215 | <Original> |
| 2216 | multiply( j, 2 ) == j*2 |
| 2217 | </Original> |
| 2218 | <Expanded> |
| 2219 | 208 == 208 |
| 2220 | </Expanded> |
| 2221 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2222 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2223 | <Original> |
| 2224 | multiply( i, 2 ) == i*2 |
| 2225 | </Original> |
| 2226 | <Expanded> |
| 2227 | 8 == 8 |
| 2228 | </Expanded> |
| 2229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2230 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2231 | <Original> |
| 2232 | multiply( j, 2 ) == j*2 |
| 2233 | </Original> |
| 2234 | <Expanded> |
| 2235 | 208 == 208 |
| 2236 | </Expanded> |
| 2237 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2238 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2239 | <Original> |
| 2240 | multiply( i, 2 ) == i*2 |
| 2241 | </Original> |
| 2242 | <Expanded> |
| 2243 | 10 == 10 |
| 2244 | </Expanded> |
| 2245 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2246 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2247 | <Original> |
| 2248 | multiply( j, 2 ) == j*2 |
| 2249 | </Original> |
| 2250 | <Expanded> |
| 2251 | 208 == 208 |
| 2252 | </Expanded> |
| 2253 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2254 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2255 | <Original> |
| 2256 | multiply( i, 2 ) == i*2 |
| 2257 | </Original> |
| 2258 | <Expanded> |
| 2259 | 30 == 30 |
| 2260 | </Expanded> |
| 2261 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2262 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2263 | <Original> |
| 2264 | multiply( j, 2 ) == j*2 |
| 2265 | </Original> |
| 2266 | <Expanded> |
| 2267 | 208 == 208 |
| 2268 | </Expanded> |
| 2269 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2270 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2271 | <Original> |
| 2272 | multiply( i, 2 ) == i*2 |
| 2273 | </Original> |
| 2274 | <Expanded> |
| 2275 | 40 == 40 |
| 2276 | </Expanded> |
| 2277 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2278 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2279 | <Original> |
| 2280 | multiply( j, 2 ) == j*2 |
| 2281 | </Original> |
| 2282 | <Expanded> |
| 2283 | 208 == 208 |
| 2284 | </Expanded> |
| 2285 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2286 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2287 | <Original> |
| 2288 | multiply( i, 2 ) == i*2 |
| 2289 | </Original> |
| 2290 | <Expanded> |
| 2291 | 42 == 42 |
| 2292 | </Expanded> |
| 2293 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2294 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2295 | <Original> |
| 2296 | multiply( j, 2 ) == j*2 |
| 2297 | </Original> |
| 2298 | <Expanded> |
| 2299 | 208 == 208 |
| 2300 | </Expanded> |
| 2301 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2302 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2303 | <Original> |
| 2304 | multiply( i, 2 ) == i*2 |
| 2305 | </Original> |
| 2306 | <Expanded> |
| 2307 | 72 == 72 |
| 2308 | </Expanded> |
| 2309 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2310 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2311 | <Original> |
| 2312 | multiply( j, 2 ) == j*2 |
| 2313 | </Original> |
| 2314 | <Expanded> |
| 2315 | 208 == 208 |
| 2316 | </Expanded> |
| 2317 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2318 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2319 | <Original> |
| 2320 | multiply( i, 2 ) == i*2 |
| 2321 | </Original> |
| 2322 | <Expanded> |
| 2323 | 2 == 2 |
| 2324 | </Expanded> |
| 2325 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2326 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2327 | <Original> |
| 2328 | multiply( j, 2 ) == j*2 |
| 2329 | </Original> |
| 2330 | <Expanded> |
| 2331 | 210 == 210 |
| 2332 | </Expanded> |
| 2333 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2334 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2335 | <Original> |
| 2336 | multiply( i, 2 ) == i*2 |
| 2337 | </Original> |
| 2338 | <Expanded> |
| 2339 | 4 == 4 |
| 2340 | </Expanded> |
| 2341 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2342 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2343 | <Original> |
| 2344 | multiply( j, 2 ) == j*2 |
| 2345 | </Original> |
| 2346 | <Expanded> |
| 2347 | 210 == 210 |
| 2348 | </Expanded> |
| 2349 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2350 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2351 | <Original> |
| 2352 | multiply( i, 2 ) == i*2 |
| 2353 | </Original> |
| 2354 | <Expanded> |
| 2355 | 6 == 6 |
| 2356 | </Expanded> |
| 2357 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2358 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2359 | <Original> |
| 2360 | multiply( j, 2 ) == j*2 |
| 2361 | </Original> |
| 2362 | <Expanded> |
| 2363 | 210 == 210 |
| 2364 | </Expanded> |
| 2365 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2366 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2367 | <Original> |
| 2368 | multiply( i, 2 ) == i*2 |
| 2369 | </Original> |
| 2370 | <Expanded> |
| 2371 | 8 == 8 |
| 2372 | </Expanded> |
| 2373 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2374 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2375 | <Original> |
| 2376 | multiply( j, 2 ) == j*2 |
| 2377 | </Original> |
| 2378 | <Expanded> |
| 2379 | 210 == 210 |
| 2380 | </Expanded> |
| 2381 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2382 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2383 | <Original> |
| 2384 | multiply( i, 2 ) == i*2 |
| 2385 | </Original> |
| 2386 | <Expanded> |
| 2387 | 10 == 10 |
| 2388 | </Expanded> |
| 2389 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2390 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2391 | <Original> |
| 2392 | multiply( j, 2 ) == j*2 |
| 2393 | </Original> |
| 2394 | <Expanded> |
| 2395 | 210 == 210 |
| 2396 | </Expanded> |
| 2397 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2398 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2399 | <Original> |
| 2400 | multiply( i, 2 ) == i*2 |
| 2401 | </Original> |
| 2402 | <Expanded> |
| 2403 | 30 == 30 |
| 2404 | </Expanded> |
| 2405 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2406 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2407 | <Original> |
| 2408 | multiply( j, 2 ) == j*2 |
| 2409 | </Original> |
| 2410 | <Expanded> |
| 2411 | 210 == 210 |
| 2412 | </Expanded> |
| 2413 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2414 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2415 | <Original> |
| 2416 | multiply( i, 2 ) == i*2 |
| 2417 | </Original> |
| 2418 | <Expanded> |
| 2419 | 40 == 40 |
| 2420 | </Expanded> |
| 2421 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2422 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2423 | <Original> |
| 2424 | multiply( j, 2 ) == j*2 |
| 2425 | </Original> |
| 2426 | <Expanded> |
| 2427 | 210 == 210 |
| 2428 | </Expanded> |
| 2429 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2430 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2431 | <Original> |
| 2432 | multiply( i, 2 ) == i*2 |
| 2433 | </Original> |
| 2434 | <Expanded> |
| 2435 | 42 == 42 |
| 2436 | </Expanded> |
| 2437 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2438 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2439 | <Original> |
| 2440 | multiply( j, 2 ) == j*2 |
| 2441 | </Original> |
| 2442 | <Expanded> |
| 2443 | 210 == 210 |
| 2444 | </Expanded> |
| 2445 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2446 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2447 | <Original> |
| 2448 | multiply( i, 2 ) == i*2 |
| 2449 | </Original> |
| 2450 | <Expanded> |
| 2451 | 72 == 72 |
| 2452 | </Expanded> |
| 2453 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2454 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2455 | <Original> |
| 2456 | multiply( j, 2 ) == j*2 |
| 2457 | </Original> |
| 2458 | <Expanded> |
| 2459 | 210 == 210 |
| 2460 | </Expanded> |
| 2461 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2462 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2463 | <Original> |
| 2464 | multiply( i, 2 ) == i*2 |
| 2465 | </Original> |
| 2466 | <Expanded> |
| 2467 | 2 == 2 |
| 2468 | </Expanded> |
| 2469 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2470 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2471 | <Original> |
| 2472 | multiply( j, 2 ) == j*2 |
| 2473 | </Original> |
| 2474 | <Expanded> |
| 2475 | 212 == 212 |
| 2476 | </Expanded> |
| 2477 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2478 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2479 | <Original> |
| 2480 | multiply( i, 2 ) == i*2 |
| 2481 | </Original> |
| 2482 | <Expanded> |
| 2483 | 4 == 4 |
| 2484 | </Expanded> |
| 2485 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2486 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2487 | <Original> |
| 2488 | multiply( j, 2 ) == j*2 |
| 2489 | </Original> |
| 2490 | <Expanded> |
| 2491 | 212 == 212 |
| 2492 | </Expanded> |
| 2493 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2494 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2495 | <Original> |
| 2496 | multiply( i, 2 ) == i*2 |
| 2497 | </Original> |
| 2498 | <Expanded> |
| 2499 | 6 == 6 |
| 2500 | </Expanded> |
| 2501 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2502 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2503 | <Original> |
| 2504 | multiply( j, 2 ) == j*2 |
| 2505 | </Original> |
| 2506 | <Expanded> |
| 2507 | 212 == 212 |
| 2508 | </Expanded> |
| 2509 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2510 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2511 | <Original> |
| 2512 | multiply( i, 2 ) == i*2 |
| 2513 | </Original> |
| 2514 | <Expanded> |
| 2515 | 8 == 8 |
| 2516 | </Expanded> |
| 2517 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2518 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2519 | <Original> |
| 2520 | multiply( j, 2 ) == j*2 |
| 2521 | </Original> |
| 2522 | <Expanded> |
| 2523 | 212 == 212 |
| 2524 | </Expanded> |
| 2525 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2526 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2527 | <Original> |
| 2528 | multiply( i, 2 ) == i*2 |
| 2529 | </Original> |
| 2530 | <Expanded> |
| 2531 | 10 == 10 |
| 2532 | </Expanded> |
| 2533 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2534 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2535 | <Original> |
| 2536 | multiply( j, 2 ) == j*2 |
| 2537 | </Original> |
| 2538 | <Expanded> |
| 2539 | 212 == 212 |
| 2540 | </Expanded> |
| 2541 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2542 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2543 | <Original> |
| 2544 | multiply( i, 2 ) == i*2 |
| 2545 | </Original> |
| 2546 | <Expanded> |
| 2547 | 30 == 30 |
| 2548 | </Expanded> |
| 2549 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2550 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2551 | <Original> |
| 2552 | multiply( j, 2 ) == j*2 |
| 2553 | </Original> |
| 2554 | <Expanded> |
| 2555 | 212 == 212 |
| 2556 | </Expanded> |
| 2557 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2558 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2559 | <Original> |
| 2560 | multiply( i, 2 ) == i*2 |
| 2561 | </Original> |
| 2562 | <Expanded> |
| 2563 | 40 == 40 |
| 2564 | </Expanded> |
| 2565 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2566 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2567 | <Original> |
| 2568 | multiply( j, 2 ) == j*2 |
| 2569 | </Original> |
| 2570 | <Expanded> |
| 2571 | 212 == 212 |
| 2572 | </Expanded> |
| 2573 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2574 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2575 | <Original> |
| 2576 | multiply( i, 2 ) == i*2 |
| 2577 | </Original> |
| 2578 | <Expanded> |
| 2579 | 42 == 42 |
| 2580 | </Expanded> |
| 2581 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2582 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2583 | <Original> |
| 2584 | multiply( j, 2 ) == j*2 |
| 2585 | </Original> |
| 2586 | <Expanded> |
| 2587 | 212 == 212 |
| 2588 | </Expanded> |
| 2589 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2590 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2591 | <Original> |
| 2592 | multiply( i, 2 ) == i*2 |
| 2593 | </Original> |
| 2594 | <Expanded> |
| 2595 | 72 == 72 |
| 2596 | </Expanded> |
| 2597 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2598 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2599 | <Original> |
| 2600 | multiply( j, 2 ) == j*2 |
| 2601 | </Original> |
| 2602 | <Expanded> |
| 2603 | 212 == 212 |
| 2604 | </Expanded> |
| 2605 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2606 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2607 | <Original> |
| 2608 | multiply( i, 2 ) == i*2 |
| 2609 | </Original> |
| 2610 | <Expanded> |
| 2611 | 2 == 2 |
| 2612 | </Expanded> |
| 2613 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2614 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2615 | <Original> |
| 2616 | multiply( j, 2 ) == j*2 |
| 2617 | </Original> |
| 2618 | <Expanded> |
| 2619 | 214 == 214 |
| 2620 | </Expanded> |
| 2621 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2622 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2623 | <Original> |
| 2624 | multiply( i, 2 ) == i*2 |
| 2625 | </Original> |
| 2626 | <Expanded> |
| 2627 | 4 == 4 |
| 2628 | </Expanded> |
| 2629 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2630 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2631 | <Original> |
| 2632 | multiply( j, 2 ) == j*2 |
| 2633 | </Original> |
| 2634 | <Expanded> |
| 2635 | 214 == 214 |
| 2636 | </Expanded> |
| 2637 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2638 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2639 | <Original> |
| 2640 | multiply( i, 2 ) == i*2 |
| 2641 | </Original> |
| 2642 | <Expanded> |
| 2643 | 6 == 6 |
| 2644 | </Expanded> |
| 2645 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2646 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2647 | <Original> |
| 2648 | multiply( j, 2 ) == j*2 |
| 2649 | </Original> |
| 2650 | <Expanded> |
| 2651 | 214 == 214 |
| 2652 | </Expanded> |
| 2653 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2654 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2655 | <Original> |
| 2656 | multiply( i, 2 ) == i*2 |
| 2657 | </Original> |
| 2658 | <Expanded> |
| 2659 | 8 == 8 |
| 2660 | </Expanded> |
| 2661 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2662 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2663 | <Original> |
| 2664 | multiply( j, 2 ) == j*2 |
| 2665 | </Original> |
| 2666 | <Expanded> |
| 2667 | 214 == 214 |
| 2668 | </Expanded> |
| 2669 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2670 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2671 | <Original> |
| 2672 | multiply( i, 2 ) == i*2 |
| 2673 | </Original> |
| 2674 | <Expanded> |
| 2675 | 10 == 10 |
| 2676 | </Expanded> |
| 2677 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2678 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2679 | <Original> |
| 2680 | multiply( j, 2 ) == j*2 |
| 2681 | </Original> |
| 2682 | <Expanded> |
| 2683 | 214 == 214 |
| 2684 | </Expanded> |
| 2685 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2686 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2687 | <Original> |
| 2688 | multiply( i, 2 ) == i*2 |
| 2689 | </Original> |
| 2690 | <Expanded> |
| 2691 | 30 == 30 |
| 2692 | </Expanded> |
| 2693 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2694 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2695 | <Original> |
| 2696 | multiply( j, 2 ) == j*2 |
| 2697 | </Original> |
| 2698 | <Expanded> |
| 2699 | 214 == 214 |
| 2700 | </Expanded> |
| 2701 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2702 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2703 | <Original> |
| 2704 | multiply( i, 2 ) == i*2 |
| 2705 | </Original> |
| 2706 | <Expanded> |
| 2707 | 40 == 40 |
| 2708 | </Expanded> |
| 2709 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2710 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2711 | <Original> |
| 2712 | multiply( j, 2 ) == j*2 |
| 2713 | </Original> |
| 2714 | <Expanded> |
| 2715 | 214 == 214 |
| 2716 | </Expanded> |
| 2717 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2718 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2719 | <Original> |
| 2720 | multiply( i, 2 ) == i*2 |
| 2721 | </Original> |
| 2722 | <Expanded> |
| 2723 | 42 == 42 |
| 2724 | </Expanded> |
| 2725 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2726 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2727 | <Original> |
| 2728 | multiply( j, 2 ) == j*2 |
| 2729 | </Original> |
| 2730 | <Expanded> |
| 2731 | 214 == 214 |
| 2732 | </Expanded> |
| 2733 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2734 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2735 | <Original> |
| 2736 | multiply( i, 2 ) == i*2 |
| 2737 | </Original> |
| 2738 | <Expanded> |
| 2739 | 72 == 72 |
| 2740 | </Expanded> |
| 2741 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2742 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2743 | <Original> |
| 2744 | multiply( j, 2 ) == j*2 |
| 2745 | </Original> |
| 2746 | <Expanded> |
| 2747 | 214 == 214 |
| 2748 | </Expanded> |
| 2749 | </Expression> |
| 2750 | <OverallResult success="true"/> |
| 2751 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2752 | <TestCase name="Generator over a range of pairs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2753 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2754 | <Original> |
| 2755 | i->first == i->second-1 |
| 2756 | </Original> |
| 2757 | <Expanded> |
| 2758 | 0 == 0 |
| 2759 | </Expanded> |
| 2760 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2761 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2762 | <Original> |
| 2763 | i->first == i->second-1 |
| 2764 | </Original> |
| 2765 | <Expanded> |
| 2766 | 2 == 2 |
| 2767 | </Expanded> |
| 2768 | </Expression> |
| 2769 | <OverallResult success="true"/> |
| 2770 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2771 | <TestCase name="INFO and WARN do not abort tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2772 | <Info> |
| 2773 | this is a message |
| 2774 | </Info> |
| 2775 | <Warning> |
| 2776 | this is a warning |
| 2777 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2778 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2779 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2780 | <TestCase name="SUCCEED counts as a test pass"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2781 | <OverallResult success="true"/> |
| 2782 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2783 | <TestCase name="INFO gets logged on failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2784 | <Info> |
| 2785 | this message should be logged |
| 2786 | </Info> |
| 2787 | <Info> |
| 2788 | so should this |
| 2789 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2790 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2791 | <Original> |
| 2792 | a == 1 |
| 2793 | </Original> |
| 2794 | <Expanded> |
| 2795 | 2 == 1 |
| 2796 | </Expanded> |
| 2797 | </Expression> |
| 2798 | <OverallResult success="false"/> |
| 2799 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2800 | <TestCase name="INFO gets logged on failure, even if captured before successful assertions"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2801 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2802 | <Original> |
| 2803 | a == 2 |
| 2804 | </Original> |
| 2805 | <Expanded> |
| 2806 | 2 == 2 |
| 2807 | </Expanded> |
| 2808 | </Expression> |
| 2809 | <Info> |
| 2810 | this message should be logged |
| 2811 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2812 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2813 | <Original> |
| 2814 | a == 1 |
| 2815 | </Original> |
| 2816 | <Expanded> |
| 2817 | 2 == 1 |
| 2818 | </Expanded> |
| 2819 | </Expression> |
| 2820 | <Info> |
| 2821 | and this, but later |
| 2822 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2823 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2824 | <Original> |
| 2825 | a == 0 |
| 2826 | </Original> |
| 2827 | <Expanded> |
| 2828 | 2 == 0 |
| 2829 | </Expanded> |
| 2830 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2831 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2832 | <Original> |
| 2833 | a == 2 |
| 2834 | </Original> |
| 2835 | <Expanded> |
| 2836 | 2 == 2 |
| 2837 | </Expanded> |
| 2838 | </Expression> |
| 2839 | <OverallResult success="false"/> |
| 2840 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2841 | <TestCase name="FAIL aborts the test"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2842 | <Failure> |
| 2843 | This is a failure |
| 2844 | </Failure> |
| 2845 | <OverallResult success="false"/> |
| 2846 | </TestCase> |
Phil Nash | 859760a | 2013-12-14 14:34:05 +0000 | [diff] [blame] | 2847 | <TestCase name="FAIL does not require an argument"> |
| 2848 | <Failure/> |
| 2849 | <OverallResult success="false"/> |
| 2850 | </TestCase> |
Phil Nash | 557b3bd | 2013-12-14 23:16:03 +0000 | [diff] [blame] | 2851 | <TestCase name="SUCCESS does not require an argument"> |
| 2852 | <OverallResult success="true"/> |
| 2853 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2854 | <TestCase name="Output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2855 | <Section name="one"> |
| 2856 | <Failure> |
| 2857 | Message from section one |
| 2858 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2859 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2860 | </Section> |
| 2861 | <Section name="two"> |
| 2862 | <Failure> |
| 2863 | Message from section two |
| 2864 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2865 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2866 | </Section> |
| 2867 | <OverallResult success="false"/> |
| 2868 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2869 | <TestCase name="Standard output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2870 | <Section name="one"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2871 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2872 | </Section> |
| 2873 | <Section name="two"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2874 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2875 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2876 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2877 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2878 | <TestCase name="SCOPED_INFO is reset for each loop"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2879 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2880 | <Original> |
| 2881 | i < 10 |
| 2882 | </Original> |
| 2883 | <Expanded> |
| 2884 | 0 < 10 |
| 2885 | </Expanded> |
| 2886 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2887 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2888 | <Original> |
| 2889 | i < 10 |
| 2890 | </Original> |
| 2891 | <Expanded> |
| 2892 | 1 < 10 |
| 2893 | </Expanded> |
| 2894 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2895 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2896 | <Original> |
| 2897 | i < 10 |
| 2898 | </Original> |
| 2899 | <Expanded> |
| 2900 | 2 < 10 |
| 2901 | </Expanded> |
| 2902 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2903 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2904 | <Original> |
| 2905 | i < 10 |
| 2906 | </Original> |
| 2907 | <Expanded> |
| 2908 | 3 < 10 |
| 2909 | </Expanded> |
| 2910 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2911 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2912 | <Original> |
| 2913 | i < 10 |
| 2914 | </Original> |
| 2915 | <Expanded> |
| 2916 | 4 < 10 |
| 2917 | </Expanded> |
| 2918 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2919 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2920 | <Original> |
| 2921 | i < 10 |
| 2922 | </Original> |
| 2923 | <Expanded> |
| 2924 | 5 < 10 |
| 2925 | </Expanded> |
| 2926 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2927 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2928 | <Original> |
| 2929 | i < 10 |
| 2930 | </Original> |
| 2931 | <Expanded> |
| 2932 | 6 < 10 |
| 2933 | </Expanded> |
| 2934 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2935 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2936 | <Original> |
| 2937 | i < 10 |
| 2938 | </Original> |
| 2939 | <Expanded> |
| 2940 | 7 < 10 |
| 2941 | </Expanded> |
| 2942 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2943 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2944 | <Original> |
| 2945 | i < 10 |
| 2946 | </Original> |
| 2947 | <Expanded> |
| 2948 | 8 < 10 |
| 2949 | </Expanded> |
| 2950 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2951 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2952 | <Original> |
| 2953 | i < 10 |
| 2954 | </Original> |
| 2955 | <Expanded> |
| 2956 | 9 < 10 |
| 2957 | </Expanded> |
| 2958 | </Expression> |
| 2959 | <Info> |
| 2960 | current counter 10 |
| 2961 | </Info> |
| 2962 | <Info> |
| 2963 | i := 10 |
| 2964 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2965 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2966 | <Original> |
| 2967 | i < 10 |
| 2968 | </Original> |
| 2969 | <Expanded> |
| 2970 | 10 < 10 |
| 2971 | </Expanded> |
| 2972 | </Expression> |
| 2973 | <OverallResult success="false"/> |
| 2974 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2975 | <TestCase name="The NO_FAIL macro reports a failure but does not fail the test"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2976 | <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2977 | <Original> |
| 2978 | 1 == 2 |
| 2979 | </Original> |
| 2980 | <Expanded> |
| 2981 | 1 == 2 |
| 2982 | </Expanded> |
| 2983 | </Expression> |
| 2984 | <OverallResult success="false"/> |
| 2985 | </TestCase> |
| 2986 | <TestCase name="just info"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2987 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2988 | </TestCase> |
| 2989 | <TestCase name="just failure"> |
| 2990 | <Failure> |
| 2991 | Previous info should not be seen |
| 2992 | </Failure> |
| 2993 | <OverallResult success="false"/> |
| 2994 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2995 | <TestCase name="sends information to INFO"> |
| 2996 | <Info> |
| 2997 | hi |
| 2998 | </Info> |
| 2999 | <Info> |
| 3000 | i := 7 |
| 3001 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3002 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3003 | <Original> |
| 3004 | false |
| 3005 | </Original> |
| 3006 | <Expanded> |
| 3007 | false |
| 3008 | </Expanded> |
| 3009 | </Expression> |
| 3010 | <OverallResult success="false"/> |
| 3011 | </TestCase> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3012 | <TestCase name="Pointers can be converted to strings"> |
| 3013 | <Warning> |
| 3014 | actual address of p: 0x<hex digits> |
| 3015 | </Warning> |
| 3016 | <Warning> |
| 3017 | toString(p): 0x<hex digits> |
| 3018 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3019 | <OverallResult success="false"/> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3020 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3021 | <TestCase name="random SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3022 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3023 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3024 | <Original> |
| 3025 | a != b |
| 3026 | </Original> |
| 3027 | <Expanded> |
| 3028 | 1 != 2 |
| 3029 | </Expanded> |
| 3030 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3031 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3032 | <Original> |
| 3033 | b != a |
| 3034 | </Original> |
| 3035 | <Expanded> |
| 3036 | 2 != 1 |
| 3037 | </Expanded> |
| 3038 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3039 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3040 | </Section> |
| 3041 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3042 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3043 | <Original> |
| 3044 | a != b |
| 3045 | </Original> |
| 3046 | <Expanded> |
| 3047 | 1 != 2 |
| 3048 | </Expanded> |
| 3049 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3050 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3051 | </Section> |
| 3052 | <OverallResult success="true"/> |
| 3053 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3054 | <TestCase name="nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3055 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3056 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3057 | <Original> |
| 3058 | a != b |
| 3059 | </Original> |
| 3060 | <Expanded> |
| 3061 | 1 != 2 |
| 3062 | </Expanded> |
| 3063 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3064 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3065 | <Original> |
| 3066 | b != a |
| 3067 | </Original> |
| 3068 | <Expanded> |
| 3069 | 2 != 1 |
| 3070 | </Expanded> |
| 3071 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3072 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3073 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3074 | <Original> |
| 3075 | a != b |
| 3076 | </Original> |
| 3077 | <Expanded> |
| 3078 | 1 != 2 |
| 3079 | </Expanded> |
| 3080 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3081 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3082 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3083 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3084 | </Section> |
| 3085 | <OverallResult success="true"/> |
| 3086 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3087 | <TestCase name="more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3088 | <Section name="s1" description="doesn't equal"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3089 | <Section name="s2" description="equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3090 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3091 | <Original> |
| 3092 | a == b |
| 3093 | </Original> |
| 3094 | <Expanded> |
| 3095 | 1 == 2 |
| 3096 | </Expanded> |
| 3097 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3098 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3099 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3100 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3101 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3102 | <OverallResult success="false"/> |
| 3103 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3104 | <TestCase name="even more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3105 | <Section name="c"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3106 | <Section name="d (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3107 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3108 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3109 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3110 | </Section> |
| 3111 | <Section name="c"> |
| 3112 | <Section name="e (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3113 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3114 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3115 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3116 | </Section> |
| 3117 | <Section name="f (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3118 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3119 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3120 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3121 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3122 | <TestCase name="looped SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3123 | <Section name="s1" description="b is currently: 0"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3124 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3125 | <Original> |
| 3126 | b > a |
| 3127 | </Original> |
| 3128 | <Expanded> |
| 3129 | 0 > 1 |
| 3130 | </Expanded> |
| 3131 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3132 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3133 | </Section> |
| 3134 | <OverallResult success="false"/> |
| 3135 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3136 | <TestCase name="looped tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3137 | <Info> |
| 3138 | Testing if fib[0] (1) is even |
| 3139 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3140 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3141 | <Original> |
| 3142 | ( fib[i] % 2 ) == 0 |
| 3143 | </Original> |
| 3144 | <Expanded> |
| 3145 | 1 == 0 |
| 3146 | </Expanded> |
| 3147 | </Expression> |
| 3148 | <Info> |
| 3149 | Testing if fib[1] (1) is even |
| 3150 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3151 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3152 | <Original> |
| 3153 | ( fib[i] % 2 ) == 0 |
| 3154 | </Original> |
| 3155 | <Expanded> |
| 3156 | 1 == 0 |
| 3157 | </Expanded> |
| 3158 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3159 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3160 | <Original> |
| 3161 | ( fib[i] % 2 ) == 0 |
| 3162 | </Original> |
| 3163 | <Expanded> |
| 3164 | 0 == 0 |
| 3165 | </Expanded> |
| 3166 | </Expression> |
| 3167 | <Info> |
| 3168 | Testing if fib[3] (3) is even |
| 3169 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3170 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3171 | <Original> |
| 3172 | ( fib[i] % 2 ) == 0 |
| 3173 | </Original> |
| 3174 | <Expanded> |
| 3175 | 1 == 0 |
| 3176 | </Expanded> |
| 3177 | </Expression> |
| 3178 | <Info> |
| 3179 | Testing if fib[4] (5) is even |
| 3180 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3181 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3182 | <Original> |
| 3183 | ( fib[i] % 2 ) == 0 |
| 3184 | </Original> |
| 3185 | <Expanded> |
| 3186 | 1 == 0 |
| 3187 | </Expanded> |
| 3188 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3189 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3190 | <Original> |
| 3191 | ( fib[i] % 2 ) == 0 |
| 3192 | </Original> |
| 3193 | <Expanded> |
| 3194 | 0 == 0 |
| 3195 | </Expanded> |
| 3196 | </Expression> |
| 3197 | <Info> |
| 3198 | Testing if fib[6] (13) is even |
| 3199 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3200 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3201 | <Original> |
| 3202 | ( fib[i] % 2 ) == 0 |
| 3203 | </Original> |
| 3204 | <Expanded> |
| 3205 | 1 == 0 |
| 3206 | </Expanded> |
| 3207 | </Expression> |
| 3208 | <Info> |
| 3209 | Testing if fib[7] (21) is even |
| 3210 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3211 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3212 | <Original> |
| 3213 | ( fib[i] % 2 ) == 0 |
| 3214 | </Original> |
| 3215 | <Expanded> |
| 3216 | 1 == 0 |
| 3217 | </Expanded> |
| 3218 | </Expression> |
| 3219 | <OverallResult success="false"/> |
| 3220 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3221 | <TestCase name="Sends stuff to stdout and stderr"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3222 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3223 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3224 | <TestCase name="null strings"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3225 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3226 | <Original> |
| 3227 | makeString( false ) != static_cast<char*>(__null) |
| 3228 | </Original> |
| 3229 | <Expanded> |
| 3230 | "valid string" != {null string} |
| 3231 | </Expanded> |
| 3232 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3233 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3234 | <Original> |
| 3235 | makeString( true ) == static_cast<char*>(__null) |
| 3236 | </Original> |
| 3237 | <Expanded> |
| 3238 | {null string} == {null string} |
| 3239 | </Expanded> |
| 3240 | </Expression> |
| 3241 | <OverallResult success="true"/> |
| 3242 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3243 | <TestCase name="checkedIf"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3244 | <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3245 | <Original> |
| 3246 | flag |
| 3247 | </Original> |
| 3248 | <Expanded> |
| 3249 | true |
| 3250 | </Expanded> |
| 3251 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3252 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3253 | <Original> |
| 3254 | testCheckedIf( true ) |
| 3255 | </Original> |
| 3256 | <Expanded> |
| 3257 | true |
| 3258 | </Expanded> |
| 3259 | </Expression> |
| 3260 | <OverallResult success="true"/> |
| 3261 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3262 | <TestCase name="checkedIf, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3263 | <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3264 | <Original> |
| 3265 | flag |
| 3266 | </Original> |
| 3267 | <Expanded> |
| 3268 | false |
| 3269 | </Expanded> |
| 3270 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3271 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3272 | <Original> |
| 3273 | testCheckedIf( false ) |
| 3274 | </Original> |
| 3275 | <Expanded> |
| 3276 | false |
| 3277 | </Expanded> |
| 3278 | </Expression> |
| 3279 | <OverallResult success="false"/> |
| 3280 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3281 | <TestCase name="checkedElse"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3282 | <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3283 | <Original> |
| 3284 | flag |
| 3285 | </Original> |
| 3286 | <Expanded> |
| 3287 | true |
| 3288 | </Expanded> |
| 3289 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3290 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3291 | <Original> |
| 3292 | testCheckedElse( true ) |
| 3293 | </Original> |
| 3294 | <Expanded> |
| 3295 | true |
| 3296 | </Expanded> |
| 3297 | </Expression> |
| 3298 | <OverallResult success="true"/> |
| 3299 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3300 | <TestCase name="checkedElse, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3301 | <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3302 | <Original> |
| 3303 | flag |
| 3304 | </Original> |
| 3305 | <Expanded> |
| 3306 | false |
| 3307 | </Expanded> |
| 3308 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3309 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3310 | <Original> |
| 3311 | testCheckedElse( false ) |
| 3312 | </Original> |
| 3313 | <Expanded> |
| 3314 | false |
| 3315 | </Expanded> |
| 3316 | </Expression> |
| 3317 | <OverallResult success="false"/> |
| 3318 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3319 | <TestCase name="xmlentitycheck"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3320 | <Section name="embedded xml" description="<test>it should be possible to embed xml characters, such as <, " or &, or even whole <xml>documents</xml> within an attribute</test>"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3321 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3322 | </Section> |
| 3323 | <Section name="encoded chars" description="these should all be encoded: &&&"""<<<&"<<&""> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3324 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3325 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3326 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3327 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3328 | <TestCase name="send a single char to INFO"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3329 | <Info> |
| 3330 | 3 |
| 3331 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3332 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3333 | <Original> |
| 3334 | false |
| 3335 | </Original> |
| 3336 | <Expanded> |
| 3337 | false |
| 3338 | </Expanded> |
| 3339 | </Expression> |
| 3340 | <OverallResult success="false"/> |
| 3341 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3342 | <TestCase name="atomic if"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3343 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3344 | <Original> |
| 3345 | x == 0 |
| 3346 | </Original> |
| 3347 | <Expanded> |
| 3348 | 0 == 0 |
| 3349 | </Expanded> |
| 3350 | </Expression> |
| 3351 | <OverallResult success="true"/> |
| 3352 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3353 | <TestCase name="String matchers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3354 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3355 | <Original> |
| 3356 | testStringForMatching() Contains( "string" ) |
| 3357 | </Original> |
| 3358 | <Expanded> |
| 3359 | "this string contains 'abc' as a substring" contains: "string" |
| 3360 | </Expanded> |
| 3361 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3362 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3363 | <Original> |
| 3364 | testStringForMatching() Contains( "abc" ) |
| 3365 | </Original> |
| 3366 | <Expanded> |
| 3367 | "this string contains 'abc' as a substring" contains: "abc" |
| 3368 | </Expanded> |
| 3369 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3370 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3371 | <Original> |
| 3372 | testStringForMatching() StartsWith( "this" ) |
| 3373 | </Original> |
| 3374 | <Expanded> |
| 3375 | "this string contains 'abc' as a substring" starts with: "this" |
| 3376 | </Expanded> |
| 3377 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3378 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3379 | <Original> |
| 3380 | testStringForMatching() EndsWith( "substring" ) |
| 3381 | </Original> |
| 3382 | <Expanded> |
| 3383 | "this string contains 'abc' as a substring" ends with: "substring" |
| 3384 | </Expanded> |
| 3385 | </Expression> |
| 3386 | <OverallResult success="true"/> |
| 3387 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3388 | <TestCase name="Contains string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3389 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3390 | <Original> |
| 3391 | testStringForMatching() Contains( "not there" ) |
| 3392 | </Original> |
| 3393 | <Expanded> |
| 3394 | "this string contains 'abc' as a substring" contains: "not there" |
| 3395 | </Expanded> |
| 3396 | </Expression> |
| 3397 | <OverallResult success="false"/> |
| 3398 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3399 | <TestCase name="StartsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3400 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3401 | <Original> |
| 3402 | testStringForMatching() StartsWith( "string" ) |
| 3403 | </Original> |
| 3404 | <Expanded> |
| 3405 | "this string contains 'abc' as a substring" starts with: "string" |
| 3406 | </Expanded> |
| 3407 | </Expression> |
| 3408 | <OverallResult success="false"/> |
| 3409 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3410 | <TestCase name="EndsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3411 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3412 | <Original> |
| 3413 | testStringForMatching() EndsWith( "this" ) |
| 3414 | </Original> |
| 3415 | <Expanded> |
| 3416 | "this string contains 'abc' as a substring" ends with: "this" |
| 3417 | </Expanded> |
| 3418 | </Expression> |
| 3419 | <OverallResult success="false"/> |
| 3420 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3421 | <TestCase name="Equals string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3422 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3423 | <Original> |
| 3424 | testStringForMatching() Equals( "something else" ) |
| 3425 | </Original> |
| 3426 | <Expanded> |
| 3427 | "this string contains 'abc' as a substring" equals: "something else" |
| 3428 | </Expanded> |
| 3429 | </Expression> |
| 3430 | <OverallResult success="false"/> |
| 3431 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3432 | <TestCase name="Equals string matcher, with NULL"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3433 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3434 | <Original> |
| 3435 | "" Equals(__null) |
| 3436 | </Original> |
| 3437 | <Expanded> |
| 3438 | "" equals: "" |
| 3439 | </Expanded> |
| 3440 | </Expression> |
| 3441 | <OverallResult success="true"/> |
| 3442 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3443 | <TestCase name="AllOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3444 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3445 | <Original> |
| 3446 | testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) |
| 3447 | </Original> |
| 3448 | <Expanded> |
| 3449 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) |
| 3450 | </Expanded> |
| 3451 | </Expression> |
| 3452 | <OverallResult success="true"/> |
| 3453 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3454 | <TestCase name="AnyOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3455 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3456 | <Original> |
| 3457 | testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) |
| 3458 | </Original> |
| 3459 | <Expanded> |
| 3460 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) |
| 3461 | </Expanded> |
| 3462 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3463 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3464 | <Original> |
| 3465 | testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) |
| 3466 | </Original> |
| 3467 | <Expanded> |
| 3468 | "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) |
| 3469 | </Expanded> |
| 3470 | </Expression> |
| 3471 | <OverallResult success="true"/> |
| 3472 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3473 | <TestCase name="Equals"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3474 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3475 | <Original> |
| 3476 | testStringForMatching() Equals( "this string contains 'abc' as a substring" ) |
| 3477 | </Original> |
| 3478 | <Expanded> |
| 3479 | "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" |
| 3480 | </Expanded> |
| 3481 | </Expression> |
| 3482 | <OverallResult success="true"/> |
| 3483 | </TestCase> |
| 3484 | <TestCase name="Factorials are computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3485 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3486 | <Original> |
| 3487 | Factorial(0) == 1 |
| 3488 | </Original> |
| 3489 | <Expanded> |
| 3490 | 1 == 1 |
| 3491 | </Expanded> |
| 3492 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3493 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3494 | <Original> |
| 3495 | Factorial(1) == 1 |
| 3496 | </Original> |
| 3497 | <Expanded> |
| 3498 | 1 == 1 |
| 3499 | </Expanded> |
| 3500 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3501 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3502 | <Original> |
| 3503 | Factorial(2) == 2 |
| 3504 | </Original> |
| 3505 | <Expanded> |
| 3506 | 2 == 2 |
| 3507 | </Expanded> |
| 3508 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3509 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3510 | <Original> |
| 3511 | Factorial(3) == 6 |
| 3512 | </Original> |
| 3513 | <Expanded> |
| 3514 | 6 == 6 |
| 3515 | </Expanded> |
| 3516 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3517 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3518 | <Original> |
| 3519 | Factorial(10) == 3628800 |
| 3520 | </Original> |
| 3521 | <Expanded> |
Phil Nash | ff9e51d | 2014-12-12 08:10:45 +0000 | [diff] [blame] | 3522 | 0x<hex digits> == 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3523 | </Expanded> |
| 3524 | </Expression> |
| 3525 | <OverallResult success="true"/> |
| 3526 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3527 | <TestCase name="An empty test with no assertions"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3528 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3529 | </TestCase> |
| 3530 | <TestCase name="Nice descriptive name"> |
| 3531 | <Warning> |
| 3532 | This one ran |
| 3533 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3534 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3535 | </TestCase> |
| 3536 | <TestCase name="first tag"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3537 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3538 | </TestCase> |
| 3539 | <TestCase name="second tag"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3540 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3541 | </TestCase> |
| 3542 | <TestCase name="vectors can be sized and resized"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3543 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3544 | <Original> |
| 3545 | v.size() == 5 |
| 3546 | </Original> |
| 3547 | <Expanded> |
| 3548 | 5 == 5 |
| 3549 | </Expanded> |
| 3550 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3551 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3552 | <Original> |
| 3553 | v.capacity() >= 5 |
| 3554 | </Original> |
| 3555 | <Expanded> |
| 3556 | 5 >= 5 |
| 3557 | </Expanded> |
| 3558 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3559 | <Section name="resizing bigger changes size and capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3560 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3561 | <Original> |
| 3562 | v.size() == 10 |
| 3563 | </Original> |
| 3564 | <Expanded> |
| 3565 | 10 == 10 |
| 3566 | </Expanded> |
| 3567 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3568 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3569 | <Original> |
| 3570 | v.capacity() >= 10 |
| 3571 | </Original> |
| 3572 | <Expanded> |
| 3573 | 10 >= 10 |
| 3574 | </Expanded> |
| 3575 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3576 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3577 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3578 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3579 | <Original> |
| 3580 | v.size() == 5 |
| 3581 | </Original> |
| 3582 | <Expanded> |
| 3583 | 5 == 5 |
| 3584 | </Expanded> |
| 3585 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3586 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3587 | <Original> |
| 3588 | v.capacity() >= 5 |
| 3589 | </Original> |
| 3590 | <Expanded> |
| 3591 | 5 >= 5 |
| 3592 | </Expanded> |
| 3593 | </Expression> |
| 3594 | <Section name="resizing smaller changes size but not capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3595 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3596 | <Original> |
| 3597 | v.size() == 0 |
| 3598 | </Original> |
| 3599 | <Expanded> |
| 3600 | 0 == 0 |
| 3601 | </Expanded> |
| 3602 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3603 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3604 | <Original> |
| 3605 | v.capacity() >= 5 |
| 3606 | </Original> |
| 3607 | <Expanded> |
| 3608 | 5 >= 5 |
| 3609 | </Expanded> |
| 3610 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3611 | <Section name="We can use the 'swap trick' to reset the capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3612 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3613 | <Original> |
| 3614 | v.capacity() == 0 |
| 3615 | </Original> |
| 3616 | <Expanded> |
| 3617 | 0 == 0 |
| 3618 | </Expanded> |
| 3619 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3620 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3621 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3622 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3623 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3624 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3625 | <Original> |
| 3626 | v.size() == 5 |
| 3627 | </Original> |
| 3628 | <Expanded> |
| 3629 | 5 == 5 |
| 3630 | </Expanded> |
| 3631 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3632 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3633 | <Original> |
| 3634 | v.capacity() >= 5 |
| 3635 | </Original> |
| 3636 | <Expanded> |
| 3637 | 5 >= 5 |
| 3638 | </Expanded> |
| 3639 | </Expression> |
| 3640 | <Section name="reserving bigger changes capacity but not size"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3641 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3642 | <Original> |
| 3643 | v.size() == 5 |
| 3644 | </Original> |
| 3645 | <Expanded> |
| 3646 | 5 == 5 |
| 3647 | </Expanded> |
| 3648 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3649 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3650 | <Original> |
| 3651 | v.capacity() >= 10 |
| 3652 | </Original> |
| 3653 | <Expanded> |
| 3654 | 10 >= 10 |
| 3655 | </Expanded> |
| 3656 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3657 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3658 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3659 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3660 | <Original> |
| 3661 | v.size() == 5 |
| 3662 | </Original> |
| 3663 | <Expanded> |
| 3664 | 5 == 5 |
| 3665 | </Expanded> |
| 3666 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3667 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3668 | <Original> |
| 3669 | v.capacity() >= 5 |
| 3670 | </Original> |
| 3671 | <Expanded> |
| 3672 | 5 >= 5 |
| 3673 | </Expanded> |
| 3674 | </Expression> |
| 3675 | <Section name="reserving smaller does not change size or capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3676 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3677 | <Original> |
| 3678 | v.size() == 5 |
| 3679 | </Original> |
| 3680 | <Expanded> |
| 3681 | 5 == 5 |
| 3682 | </Expanded> |
| 3683 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3684 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3685 | <Original> |
| 3686 | v.capacity() >= 5 |
| 3687 | </Original> |
| 3688 | <Expanded> |
| 3689 | 5 >= 5 |
| 3690 | </Expanded> |
| 3691 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3692 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3693 | </Section> |
| 3694 | <OverallResult success="true"/> |
| 3695 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3696 | <TestCase name="A couple of nested sections followed by a failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3697 | <Section name="Outer"> |
| 3698 | <Section name="Inner"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3699 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3700 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3701 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3702 | </Section> |
| 3703 | <Failure> |
| 3704 | to infinity and beyond |
| 3705 | </Failure> |
| 3706 | <OverallResult success="false"/> |
| 3707 | </TestCase> |
Phil Nash | 20cad7c | 2014-04-15 18:44:37 +0100 | [diff] [blame] | 3708 | <TestCase name="not allowed"> |
| 3709 | <OverallResult success="true"/> |
| 3710 | </TestCase> |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3711 | <TestCase name="Tabs and newlines show in output"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3712 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3713 | <Original> |
| 3714 | s1 == s2 |
| 3715 | </Original> |
| 3716 | <Expanded> |
| 3717 | "if ($b == 10) { |
| 3718 | $a = 20; |
| 3719 | }" |
| 3720 | == |
| 3721 | "if ($b == 10) { |
| 3722 | $a = 20; |
| 3723 | } |
| 3724 | " |
| 3725 | </Expanded> |
| 3726 | </Expression> |
| 3727 | <OverallResult success="false"/> |
| 3728 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3729 | <TestCase name="toString on const wchar_t const pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3730 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3731 | <Original> |
| 3732 | result == "\"wide load\"" |
| 3733 | </Original> |
| 3734 | <Expanded> |
| 3735 | ""wide load"" == ""wide load"" |
| 3736 | </Expanded> |
| 3737 | </Expression> |
| 3738 | <OverallResult success="true"/> |
| 3739 | </TestCase> |
| 3740 | <TestCase name="toString on const wchar_t pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3741 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3742 | <Original> |
| 3743 | result == "\"wide load\"" |
| 3744 | </Original> |
| 3745 | <Expanded> |
| 3746 | ""wide load"" == ""wide load"" |
| 3747 | </Expanded> |
| 3748 | </Expression> |
| 3749 | <OverallResult success="true"/> |
| 3750 | </TestCase> |
| 3751 | <TestCase name="toString on wchar_t const pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3752 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3753 | <Original> |
| 3754 | result == "\"wide load\"" |
| 3755 | </Original> |
| 3756 | <Expanded> |
| 3757 | ""wide load"" == ""wide load"" |
| 3758 | </Expanded> |
| 3759 | </Expression> |
| 3760 | <OverallResult success="true"/> |
| 3761 | </TestCase> |
| 3762 | <TestCase name="toString on wchar_t returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3763 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3764 | <Original> |
| 3765 | result == "\"wide load\"" |
| 3766 | </Original> |
| 3767 | <Expanded> |
| 3768 | ""wide load"" == ""wide load"" |
| 3769 | </Expanded> |
| 3770 | </Expression> |
| 3771 | <OverallResult success="true"/> |
| 3772 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3773 | <TestCase name="Process can be configured on command line"> |
| 3774 | <Section name="default - no arguments"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3775 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3776 | <Original> |
| 3777 | parseIntoConfig( argv, config ) |
| 3778 | </Original> |
| 3779 | <Expanded> |
| 3780 | parseIntoConfig( argv, config ) |
| 3781 | </Expanded> |
| 3782 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3783 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3784 | <Original> |
| 3785 | config.shouldDebugBreak == false |
| 3786 | </Original> |
| 3787 | <Expanded> |
| 3788 | false == false |
| 3789 | </Expanded> |
| 3790 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3791 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3792 | <Original> |
| 3793 | config.abortAfter == -1 |
| 3794 | </Original> |
| 3795 | <Expanded> |
| 3796 | -1 == -1 |
| 3797 | </Expanded> |
| 3798 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3799 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3800 | <Original> |
| 3801 | config.noThrow == false |
| 3802 | </Original> |
| 3803 | <Expanded> |
| 3804 | false == false |
| 3805 | </Expanded> |
| 3806 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3807 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3808 | <Original> |
| 3809 | config.reporterName.empty() |
| 3810 | </Original> |
| 3811 | <Expanded> |
| 3812 | true |
| 3813 | </Expanded> |
| 3814 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3815 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3816 | </Section> |
| 3817 | <Section name="test lists"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3818 | <Section name="1 test" description="Specify one test case using"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3819 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3820 | <Original> |
| 3821 | parseIntoConfig( argv, config ) |
| 3822 | </Original> |
| 3823 | <Expanded> |
| 3824 | parseIntoConfig( argv, config ) |
| 3825 | </Expanded> |
| 3826 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3827 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3828 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3829 | cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3830 | </Original> |
| 3831 | <Expanded> |
| 3832 | false == false |
| 3833 | </Expanded> |
| 3834 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3835 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3836 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3837 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3838 | </Original> |
| 3839 | <Expanded> |
| 3840 | true |
| 3841 | </Expanded> |
| 3842 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3843 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3844 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3845 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3846 | </Section> |
| 3847 | <Section name="test lists"> |
| 3848 | <Section name="Specify one test case exclusion using exclude:"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3849 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3850 | <Original> |
| 3851 | parseIntoConfig( argv, config ) |
| 3852 | </Original> |
| 3853 | <Expanded> |
| 3854 | parseIntoConfig( argv, config ) |
| 3855 | </Expanded> |
| 3856 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3857 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3858 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3859 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3860 | </Original> |
| 3861 | <Expanded> |
| 3862 | false == false |
| 3863 | </Expanded> |
| 3864 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3865 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3866 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3867 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3868 | </Original> |
| 3869 | <Expanded> |
| 3870 | true |
| 3871 | </Expanded> |
| 3872 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3873 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3874 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3875 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3876 | </Section> |
| 3877 | <Section name="test lists"> |
| 3878 | <Section name="Specify one test case exclusion using ~"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3879 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3880 | <Original> |
| 3881 | parseIntoConfig( argv, config ) |
| 3882 | </Original> |
| 3883 | <Expanded> |
| 3884 | parseIntoConfig( argv, config ) |
| 3885 | </Expanded> |
| 3886 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3887 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3888 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3889 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3890 | </Original> |
| 3891 | <Expanded> |
| 3892 | false == false |
| 3893 | </Expanded> |
| 3894 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3895 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3896 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3897 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3898 | </Original> |
| 3899 | <Expanded> |
| 3900 | true |
| 3901 | </Expanded> |
| 3902 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3903 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3904 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3905 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3906 | </Section> |
| 3907 | <Section name="reporter"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3908 | <Section name="-r/console"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3909 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3910 | <Original> |
| 3911 | parseIntoConfig( argv, config ) |
| 3912 | </Original> |
| 3913 | <Expanded> |
| 3914 | parseIntoConfig( argv, config ) |
| 3915 | </Expanded> |
| 3916 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3917 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3918 | <Original> |
| 3919 | config.reporterName == "console" |
| 3920 | </Original> |
| 3921 | <Expanded> |
| 3922 | "console" == "console" |
| 3923 | </Expanded> |
| 3924 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3925 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3926 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3927 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3928 | </Section> |
| 3929 | <Section name="reporter"> |
| 3930 | <Section name="-r/xml"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3931 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3932 | <Original> |
| 3933 | parseIntoConfig( argv, config ) |
| 3934 | </Original> |
| 3935 | <Expanded> |
| 3936 | parseIntoConfig( argv, config ) |
| 3937 | </Expanded> |
| 3938 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3939 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3940 | <Original> |
| 3941 | config.reporterName == "xml" |
| 3942 | </Original> |
| 3943 | <Expanded> |
| 3944 | "xml" == "xml" |
| 3945 | </Expanded> |
| 3946 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3947 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3948 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3949 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3950 | </Section> |
| 3951 | <Section name="reporter"> |
| 3952 | <Section name="--reporter/junit"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3953 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3954 | <Original> |
| 3955 | parseIntoConfig( argv, config ) |
| 3956 | </Original> |
| 3957 | <Expanded> |
| 3958 | parseIntoConfig( argv, config ) |
| 3959 | </Expanded> |
| 3960 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3961 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3962 | <Original> |
| 3963 | config.reporterName == "junit" |
| 3964 | </Original> |
| 3965 | <Expanded> |
| 3966 | "junit" == "junit" |
| 3967 | </Expanded> |
| 3968 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3969 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3970 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3971 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3972 | </Section> |
| 3973 | <Section name="debugger"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3974 | <Section name="-b"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3975 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3976 | <Original> |
| 3977 | parseIntoConfig( argv, config ) |
| 3978 | </Original> |
| 3979 | <Expanded> |
| 3980 | parseIntoConfig( argv, config ) |
| 3981 | </Expanded> |
| 3982 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3983 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3984 | <Original> |
| 3985 | config.shouldDebugBreak == true |
| 3986 | </Original> |
| 3987 | <Expanded> |
| 3988 | true == true |
| 3989 | </Expanded> |
| 3990 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3991 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3992 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3993 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3994 | </Section> |
| 3995 | <Section name="debugger"> |
| 3996 | <Section name="--break"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3997 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3998 | <Original> |
| 3999 | parseIntoConfig( argv, config ) |
| 4000 | </Original> |
| 4001 | <Expanded> |
| 4002 | parseIntoConfig( argv, config ) |
| 4003 | </Expanded> |
| 4004 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4005 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4006 | <Original> |
| 4007 | config.shouldDebugBreak |
| 4008 | </Original> |
| 4009 | <Expanded> |
| 4010 | true |
| 4011 | </Expanded> |
| 4012 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4013 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4014 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4015 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4016 | </Section> |
| 4017 | <Section name="abort"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4018 | <Section name="-a aborts after first failure"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4019 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4020 | <Original> |
| 4021 | parseIntoConfig( argv, config ) |
| 4022 | </Original> |
| 4023 | <Expanded> |
| 4024 | parseIntoConfig( argv, config ) |
| 4025 | </Expanded> |
| 4026 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4027 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4028 | <Original> |
| 4029 | config.abortAfter == 1 |
| 4030 | </Original> |
| 4031 | <Expanded> |
| 4032 | 1 == 1 |
| 4033 | </Expanded> |
| 4034 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4035 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4036 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4037 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4038 | </Section> |
| 4039 | <Section name="abort"> |
| 4040 | <Section name="-x 2 aborts after two failures"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4041 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4042 | <Original> |
| 4043 | parseIntoConfig( argv, config ) |
| 4044 | </Original> |
| 4045 | <Expanded> |
| 4046 | parseIntoConfig( argv, config ) |
| 4047 | </Expanded> |
| 4048 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4049 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4050 | <Original> |
| 4051 | config.abortAfter == 2 |
| 4052 | </Original> |
| 4053 | <Expanded> |
| 4054 | 2 == 2 |
| 4055 | </Expanded> |
| 4056 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4057 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4058 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4059 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4060 | </Section> |
| 4061 | <Section name="abort"> |
| 4062 | <Section name="-x must be greater than zero"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4063 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4064 | <Original> |
| 4065 | parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) |
| 4066 | </Original> |
| 4067 | <Expanded> |
| 4068 | "Value after -x or --abortAfter must be greater than zero |
Phil Nash | e9d3537 | 2014-04-12 19:05:03 +0100 | [diff] [blame] | 4069 | - while parsing: (-x, --abortx <no. failures>)" contains: "greater than zero" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4070 | </Expanded> |
| 4071 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4072 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4073 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4074 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4075 | </Section> |
| 4076 | <Section name="abort"> |
| 4077 | <Section name="-x must be numeric"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4078 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4079 | <Original> |
| 4080 | parseIntoConfigAndReturnError( argv, config ) Contains( "-x" ) |
| 4081 | </Original> |
| 4082 | <Expanded> |
| 4083 | "Unable to convert oops to destination type |
Phil Nash | e9d3537 | 2014-04-12 19:05:03 +0100 | [diff] [blame] | 4084 | - while parsing: (-x, --abortx <no. failures>)" contains: "-x" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4085 | </Expanded> |
| 4086 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4087 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4088 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4089 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4090 | </Section> |
| 4091 | <Section name="nothrow"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4092 | <Section name="-e"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4093 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4094 | <Original> |
| 4095 | parseIntoConfig( argv, config ) |
| 4096 | </Original> |
| 4097 | <Expanded> |
| 4098 | parseIntoConfig( argv, config ) |
| 4099 | </Expanded> |
| 4100 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4101 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4102 | <Original> |
| 4103 | config.noThrow == true |
| 4104 | </Original> |
| 4105 | <Expanded> |
| 4106 | true == true |
| 4107 | </Expanded> |
| 4108 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4109 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4110 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4111 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4112 | </Section> |
| 4113 | <Section name="nothrow"> |
| 4114 | <Section name="--nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4115 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4116 | <Original> |
| 4117 | parseIntoConfig( argv, config ) |
| 4118 | </Original> |
| 4119 | <Expanded> |
| 4120 | parseIntoConfig( argv, config ) |
| 4121 | </Expanded> |
| 4122 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4123 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4124 | <Original> |
| 4125 | config.noThrow == true |
| 4126 | </Original> |
| 4127 | <Expanded> |
| 4128 | true == true |
| 4129 | </Expanded> |
| 4130 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4131 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4132 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4133 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4134 | </Section> |
| 4135 | <Section name="output filename"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4136 | <Section name="-o filename"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4137 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4138 | <Original> |
| 4139 | parseIntoConfig( argv, config ) |
| 4140 | </Original> |
| 4141 | <Expanded> |
| 4142 | parseIntoConfig( argv, config ) |
| 4143 | </Expanded> |
| 4144 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4145 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4146 | <Original> |
| 4147 | config.outputFilename == "filename.ext" |
| 4148 | </Original> |
| 4149 | <Expanded> |
| 4150 | "filename.ext" == "filename.ext" |
| 4151 | </Expanded> |
| 4152 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4153 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4154 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4155 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4156 | </Section> |
| 4157 | <Section name="output filename"> |
| 4158 | <Section name="--out"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4159 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4160 | <Original> |
| 4161 | parseIntoConfig( argv, config ) |
| 4162 | </Original> |
| 4163 | <Expanded> |
| 4164 | parseIntoConfig( argv, config ) |
| 4165 | </Expanded> |
| 4166 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4167 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4168 | <Original> |
| 4169 | config.outputFilename == "filename.ext" |
| 4170 | </Original> |
| 4171 | <Expanded> |
| 4172 | "filename.ext" == "filename.ext" |
| 4173 | </Expanded> |
| 4174 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4175 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4176 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4177 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4178 | </Section> |
| 4179 | <Section name="combinations"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4180 | <Section name="Single character flags can be combined"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4181 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4182 | <Original> |
| 4183 | parseIntoConfig( argv, config ) |
| 4184 | </Original> |
| 4185 | <Expanded> |
| 4186 | parseIntoConfig( argv, config ) |
| 4187 | </Expanded> |
| 4188 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4189 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4190 | <Original> |
| 4191 | config.abortAfter == 1 |
| 4192 | </Original> |
| 4193 | <Expanded> |
| 4194 | 1 == 1 |
| 4195 | </Expanded> |
| 4196 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4197 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4198 | <Original> |
| 4199 | config.shouldDebugBreak |
| 4200 | </Original> |
| 4201 | <Expanded> |
| 4202 | true |
| 4203 | </Expanded> |
| 4204 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4205 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4206 | <Original> |
| 4207 | config.noThrow == true |
| 4208 | </Original> |
| 4209 | <Expanded> |
| 4210 | true == true |
| 4211 | </Expanded> |
| 4212 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4213 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4214 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4215 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4216 | </Section> |
| 4217 | <OverallResult success="true"/> |
| 4218 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4219 | <TestCase name="Long strings can be wrapped"> |
| 4220 | <Section name="plain string"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4221 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4222 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4223 | <Original> |
| 4224 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4225 | </Original> |
| 4226 | <Expanded> |
| 4227 | "one two three four" |
| 4228 | == |
| 4229 | "one two three four" |
| 4230 | </Expanded> |
| 4231 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4232 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4233 | <Original> |
| 4234 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4235 | </Original> |
| 4236 | <Expanded> |
| 4237 | "one two three four" |
| 4238 | == |
| 4239 | "one two three four" |
| 4240 | </Expanded> |
| 4241 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4242 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4243 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4244 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4245 | </Section> |
| 4246 | <Section name="plain string"> |
| 4247 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4248 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4249 | <Original> |
| 4250 | Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" |
| 4251 | </Original> |
| 4252 | <Expanded> |
| 4253 | "one two three |
| 4254 | four" |
| 4255 | == |
| 4256 | "one two three |
| 4257 | four" |
| 4258 | </Expanded> |
| 4259 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4260 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4261 | <Original> |
| 4262 | Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" |
| 4263 | </Original> |
| 4264 | <Expanded> |
| 4265 | "one two three |
| 4266 | four" |
| 4267 | == |
| 4268 | "one two three |
| 4269 | four" |
| 4270 | </Expanded> |
| 4271 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4272 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4273 | <Original> |
| 4274 | Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" |
| 4275 | </Original> |
| 4276 | <Expanded> |
| 4277 | "one two three |
| 4278 | four" |
| 4279 | == |
| 4280 | "one two three |
| 4281 | four" |
| 4282 | </Expanded> |
| 4283 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4284 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4285 | <Original> |
| 4286 | Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" |
| 4287 | </Original> |
| 4288 | <Expanded> |
| 4289 | "one two three |
| 4290 | four" |
| 4291 | == |
| 4292 | "one two three |
| 4293 | four" |
| 4294 | </Expanded> |
| 4295 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4296 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4297 | <Original> |
| 4298 | Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" |
| 4299 | </Original> |
| 4300 | <Expanded> |
| 4301 | "one two |
| 4302 | three four" |
| 4303 | == |
| 4304 | "one two |
| 4305 | three four" |
| 4306 | </Expanded> |
| 4307 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4308 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4309 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4310 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4311 | </Section> |
| 4312 | <Section name="plain string"> |
| 4313 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4314 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4315 | <Original> |
| 4316 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
| 4317 | </Original> |
| 4318 | <Expanded> |
| 4319 | "one two |
| 4320 | three |
| 4321 | four" |
| 4322 | == |
| 4323 | "one two |
| 4324 | three |
| 4325 | four" |
| 4326 | </Expanded> |
| 4327 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4328 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4329 | <Original> |
| 4330 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
| 4331 | </Original> |
| 4332 | <Expanded> |
| 4333 | "one two |
| 4334 | three |
| 4335 | four" |
| 4336 | == |
| 4337 | "one two |
| 4338 | three |
| 4339 | four" |
| 4340 | </Expanded> |
| 4341 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4342 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4343 | <Original> |
| 4344 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
| 4345 | </Original> |
| 4346 | <Expanded> |
| 4347 | "one two |
| 4348 | three |
| 4349 | four" |
| 4350 | == |
| 4351 | "one two |
| 4352 | three |
| 4353 | four" |
| 4354 | </Expanded> |
| 4355 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4356 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4357 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4358 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4359 | </Section> |
| 4360 | <Section name="plain string"> |
| 4361 | <Section name="Wrapped three times"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4362 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4363 | <Original> |
| 4364 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4365 | </Original> |
| 4366 | <Expanded> |
| 4367 | "one |
| 4368 | two |
| 4369 | three |
| 4370 | four" |
| 4371 | == |
| 4372 | "one |
| 4373 | two |
| 4374 | three |
| 4375 | four" |
| 4376 | </Expanded> |
| 4377 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4378 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4379 | <Original> |
| 4380 | Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4381 | </Original> |
| 4382 | <Expanded> |
| 4383 | "one |
| 4384 | two |
| 4385 | three |
| 4386 | four" |
| 4387 | == |
| 4388 | "one |
| 4389 | two |
| 4390 | three |
| 4391 | four" |
| 4392 | </Expanded> |
| 4393 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4394 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4395 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4396 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4397 | </Section> |
| 4398 | <Section name="plain string"> |
| 4399 | <Section name="Short wrap"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4400 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4401 | <Original> |
| 4402 | Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" |
| 4403 | </Original> |
| 4404 | <Expanded> |
| 4405 | "abc- |
| 4406 | def" |
| 4407 | == |
| 4408 | "abc- |
| 4409 | def" |
| 4410 | </Expanded> |
| 4411 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4412 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4413 | <Original> |
| 4414 | Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" |
| 4415 | </Original> |
| 4416 | <Expanded> |
| 4417 | "abc- |
| 4418 | defg" |
| 4419 | == |
| 4420 | "abc- |
| 4421 | defg" |
| 4422 | </Expanded> |
| 4423 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4424 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4425 | <Original> |
| 4426 | Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" |
| 4427 | </Original> |
| 4428 | <Expanded> |
| 4429 | "abc- |
| 4430 | def- |
| 4431 | gh" |
| 4432 | == |
| 4433 | "abc- |
| 4434 | def- |
| 4435 | gh" |
| 4436 | </Expanded> |
| 4437 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4438 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4439 | <Original> |
| 4440 | Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" |
| 4441 | </Original> |
| 4442 | <Expanded> |
| 4443 | "one |
| 4444 | two |
| 4445 | thr- |
| 4446 | ee |
| 4447 | four" |
| 4448 | == |
| 4449 | "one |
| 4450 | two |
| 4451 | thr- |
| 4452 | ee |
| 4453 | four" |
| 4454 | </Expanded> |
| 4455 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4456 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4457 | <Original> |
| 4458 | Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" |
| 4459 | </Original> |
| 4460 | <Expanded> |
| 4461 | "one |
| 4462 | two |
| 4463 | th- |
| 4464 | ree |
| 4465 | fo- |
| 4466 | ur" |
| 4467 | == |
| 4468 | "one |
| 4469 | two |
| 4470 | th- |
| 4471 | ree |
| 4472 | fo- |
| 4473 | ur" |
| 4474 | </Expanded> |
| 4475 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4476 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4477 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4478 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4479 | </Section> |
| 4480 | <Section name="plain string"> |
| 4481 | <Section name="As container"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4482 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4483 | <Original> |
| 4484 | text.size() == 4 |
| 4485 | </Original> |
| 4486 | <Expanded> |
| 4487 | 4 == 4 |
| 4488 | </Expanded> |
| 4489 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4490 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4491 | <Original> |
| 4492 | text[0] == "one" |
| 4493 | </Original> |
| 4494 | <Expanded> |
| 4495 | "one" == "one" |
| 4496 | </Expanded> |
| 4497 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4498 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4499 | <Original> |
| 4500 | text[1] == "two" |
| 4501 | </Original> |
| 4502 | <Expanded> |
| 4503 | "two" == "two" |
| 4504 | </Expanded> |
| 4505 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4506 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4507 | <Original> |
| 4508 | text[2] == "three" |
| 4509 | </Original> |
| 4510 | <Expanded> |
| 4511 | "three" == "three" |
| 4512 | </Expanded> |
| 4513 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4514 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4515 | <Original> |
| 4516 | text[3] == "four" |
| 4517 | </Original> |
| 4518 | <Expanded> |
| 4519 | "four" == "four" |
| 4520 | </Expanded> |
| 4521 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4522 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4523 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4524 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4525 | </Section> |
| 4526 | <Section name="plain string"> |
| 4527 | <Section name="Indent first line differently"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4528 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4529 | <Original> |
| 4530 | text.toString() == " one two\n three\n four" |
| 4531 | </Original> |
| 4532 | <Expanded> |
| 4533 | " one two |
| 4534 | three |
| 4535 | four" |
| 4536 | == |
| 4537 | " one two |
| 4538 | three |
| 4539 | four" |
| 4540 | </Expanded> |
| 4541 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4542 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4543 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4544 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4545 | </Section> |
| 4546 | <Section name="With newlines"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4547 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4548 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4549 | <Original> |
| 4550 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4551 | </Original> |
| 4552 | <Expanded> |
| 4553 | "one two |
| 4554 | three four" |
| 4555 | == |
| 4556 | "one two |
| 4557 | three four" |
| 4558 | </Expanded> |
| 4559 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4560 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4561 | <Original> |
| 4562 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4563 | </Original> |
| 4564 | <Expanded> |
| 4565 | "one two |
| 4566 | three four" |
| 4567 | == |
| 4568 | "one two |
| 4569 | three four" |
| 4570 | </Expanded> |
| 4571 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4572 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4573 | <Original> |
| 4574 | Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString |
| 4575 | </Original> |
| 4576 | <Expanded> |
| 4577 | "one two |
| 4578 | three four" |
| 4579 | == |
| 4580 | "one two |
| 4581 | three four" |
| 4582 | </Expanded> |
| 4583 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4584 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4585 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4586 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4587 | </Section> |
| 4588 | <Section name="With newlines"> |
| 4589 | <Section name="Trailing newline"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4590 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4591 | <Original> |
| 4592 | Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" |
| 4593 | </Original> |
| 4594 | <Expanded> |
| 4595 | "abcdef |
| 4596 | " |
| 4597 | == |
| 4598 | "abcdef |
| 4599 | " |
| 4600 | </Expanded> |
| 4601 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4602 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4603 | <Original> |
| 4604 | Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" |
| 4605 | </Original> |
| 4606 | <Expanded> |
| 4607 | "abcdef" == "abcdef" |
| 4608 | </Expanded> |
| 4609 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4610 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4611 | <Original> |
| 4612 | Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" |
| 4613 | </Original> |
| 4614 | <Expanded> |
| 4615 | "abcdef |
| 4616 | " |
| 4617 | == |
| 4618 | "abcdef |
| 4619 | " |
| 4620 | </Expanded> |
| 4621 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4622 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4623 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4624 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4625 | </Section> |
| 4626 | <Section name="With newlines"> |
| 4627 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4628 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4629 | <Original> |
| 4630 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
| 4631 | </Original> |
| 4632 | <Expanded> |
| 4633 | "one two |
| 4634 | three |
| 4635 | four" |
| 4636 | == |
| 4637 | "one two |
| 4638 | three |
| 4639 | four" |
| 4640 | </Expanded> |
| 4641 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4642 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4643 | <Original> |
| 4644 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
| 4645 | </Original> |
| 4646 | <Expanded> |
| 4647 | "one two |
| 4648 | three |
| 4649 | four" |
| 4650 | == |
| 4651 | "one two |
| 4652 | three |
| 4653 | four" |
| 4654 | </Expanded> |
| 4655 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4656 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4657 | <Original> |
| 4658 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
| 4659 | </Original> |
| 4660 | <Expanded> |
| 4661 | "one two |
| 4662 | three |
| 4663 | four" |
| 4664 | == |
| 4665 | "one two |
| 4666 | three |
| 4667 | four" |
| 4668 | </Expanded> |
| 4669 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4670 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4671 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4672 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4673 | </Section> |
| 4674 | <Section name="With newlines"> |
| 4675 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4676 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4677 | <Original> |
| 4678 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4679 | </Original> |
| 4680 | <Expanded> |
| 4681 | "one |
| 4682 | two |
| 4683 | three |
| 4684 | four" |
| 4685 | == |
| 4686 | "one |
| 4687 | two |
| 4688 | three |
| 4689 | four" |
| 4690 | </Expanded> |
| 4691 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4692 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4693 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4694 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4695 | </Section> |
| 4696 | <Section name="With tabs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4697 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4698 | <Original> |
| 4699 | Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" |
| 4700 | </Original> |
| 4701 | <Expanded> |
| 4702 | "one two three |
| 4703 | four |
| 4704 | five |
| 4705 | six" |
| 4706 | == |
| 4707 | "one two three |
| 4708 | four |
| 4709 | five |
| 4710 | six" |
| 4711 | </Expanded> |
| 4712 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4713 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4714 | </Section> |
| 4715 | <OverallResult success="true"/> |
| 4716 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4717 | <TestCase name="replaceInPlace"> |
| 4718 | <Section name="replace single char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4719 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4720 | <Original> |
| 4721 | replaceInPlace( letters, "b", "z" ) |
| 4722 | </Original> |
| 4723 | <Expanded> |
| 4724 | true |
| 4725 | </Expanded> |
| 4726 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4727 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4728 | <Original> |
| 4729 | letters == "azcdefcg" |
| 4730 | </Original> |
| 4731 | <Expanded> |
| 4732 | "azcdefcg" == "azcdefcg" |
| 4733 | </Expanded> |
| 4734 | </Expression> |
| 4735 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4736 | </Section> |
| 4737 | <Section name="replace two chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4738 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4739 | <Original> |
| 4740 | replaceInPlace( letters, "c", "z" ) |
| 4741 | </Original> |
| 4742 | <Expanded> |
| 4743 | true |
| 4744 | </Expanded> |
| 4745 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4746 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4747 | <Original> |
| 4748 | letters == "abzdefzg" |
| 4749 | </Original> |
| 4750 | <Expanded> |
| 4751 | "abzdefzg" == "abzdefzg" |
| 4752 | </Expanded> |
| 4753 | </Expression> |
| 4754 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4755 | </Section> |
| 4756 | <Section name="replace first char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4757 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4758 | <Original> |
| 4759 | replaceInPlace( letters, "a", "z" ) |
| 4760 | </Original> |
| 4761 | <Expanded> |
| 4762 | true |
| 4763 | </Expanded> |
| 4764 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4765 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4766 | <Original> |
| 4767 | letters == "zbcdefcg" |
| 4768 | </Original> |
| 4769 | <Expanded> |
| 4770 | "zbcdefcg" == "zbcdefcg" |
| 4771 | </Expanded> |
| 4772 | </Expression> |
| 4773 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4774 | </Section> |
| 4775 | <Section name="replace last char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4776 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4777 | <Original> |
| 4778 | replaceInPlace( letters, "g", "z" ) |
| 4779 | </Original> |
| 4780 | <Expanded> |
| 4781 | true |
| 4782 | </Expanded> |
| 4783 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4784 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4785 | <Original> |
| 4786 | letters == "abcdefcz" |
| 4787 | </Original> |
| 4788 | <Expanded> |
| 4789 | "abcdefcz" == "abcdefcz" |
| 4790 | </Expanded> |
| 4791 | </Expression> |
| 4792 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4793 | </Section> |
| 4794 | <Section name="replace all chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4795 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4796 | <Original> |
| 4797 | replaceInPlace( letters, letters, "replaced" ) |
| 4798 | </Original> |
| 4799 | <Expanded> |
| 4800 | true |
| 4801 | </Expanded> |
| 4802 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4803 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4804 | <Original> |
| 4805 | letters == "replaced" |
| 4806 | </Original> |
| 4807 | <Expanded> |
| 4808 | "replaced" == "replaced" |
| 4809 | </Expanded> |
| 4810 | </Expression> |
| 4811 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4812 | </Section> |
| 4813 | <Section name="replace no chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4814 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4815 | <Original> |
| 4816 | !replaceInPlace( letters, "x", "z" ) |
| 4817 | </Original> |
| 4818 | <Expanded> |
| 4819 | !false |
| 4820 | </Expanded> |
| 4821 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4822 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4823 | <Original> |
| 4824 | letters == letters |
| 4825 | </Original> |
| 4826 | <Expanded> |
| 4827 | "abcdefcg" == "abcdefcg" |
| 4828 | </Expanded> |
| 4829 | </Expression> |
| 4830 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4831 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4832 | <Section name="escape '"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4833 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4834 | <Original> |
| 4835 | replaceInPlace( s, "'", "|'" ) |
| 4836 | </Original> |
| 4837 | <Expanded> |
| 4838 | true |
| 4839 | </Expanded> |
| 4840 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4841 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4842 | <Original> |
| 4843 | s == "didn|'t" |
| 4844 | </Original> |
| 4845 | <Expanded> |
| 4846 | "didn|'t" == "didn|'t" |
| 4847 | </Expanded> |
| 4848 | </Expression> |
| 4849 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4850 | </Section> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4851 | <OverallResult success="true"/> |
| 4852 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4853 | <TestCase name="Strings can be rendered with colour"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4854 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4855 | </TestCase> |
| 4856 | <TestCase name="Text can be formatted using the Text class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4857 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4858 | <Original> |
| 4859 | Text( "hi there" ).toString() == "hi there" |
| 4860 | </Original> |
| 4861 | <Expanded> |
| 4862 | "hi there" == "hi there" |
| 4863 | </Expanded> |
| 4864 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4865 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4866 | <Original> |
| 4867 | Text( "hi there", narrow ).toString() == "hi\nthere" |
| 4868 | </Original> |
| 4869 | <Expanded> |
| 4870 | "hi |
| 4871 | there" |
| 4872 | == |
| 4873 | "hi |
| 4874 | there" |
| 4875 | </Expanded> |
| 4876 | </Expression> |
| 4877 | <OverallResult success="true"/> |
| 4878 | </TestCase> |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 4879 | <TestCase name="Long text is truncted"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4880 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 4881 | <Original> |
| 4882 | t.toString() EndsWith( "... message truncated due to excessive size" ) |
| 4883 | </Original> |
| 4884 | <Expanded> |
| 4885 | "******************************************************************************- |
| 4886 | ******************************************************************************- |
| 4887 | ************************ |
| 4888 | ******************************************************************************- |
| 4889 | ******************************************************************************- |
| 4890 | ************************ |
| 4891 | ******************************************************************************- |
| 4892 | ******************************************************************************- |
| 4893 | ************************ |
| 4894 | ******************************************************************************- |
| 4895 | ******************************************************************************- |
| 4896 | ************************ |
| 4897 | ******************************************************************************- |
| 4898 | ******************************************************************************- |
| 4899 | ************************ |
| 4900 | ******************************************************************************- |
| 4901 | ******************************************************************************- |
| 4902 | ************************ |
| 4903 | ******************************************************************************- |
| 4904 | ******************************************************************************- |
| 4905 | ************************ |
| 4906 | ******************************************************************************- |
| 4907 | ******************************************************************************- |
| 4908 | ************************ |
| 4909 | ******************************************************************************- |
| 4910 | ******************************************************************************- |
| 4911 | ************************ |
| 4912 | ******************************************************************************- |
| 4913 | ******************************************************************************- |
| 4914 | ************************ |
| 4915 | ******************************************************************************- |
| 4916 | ******************************************************************************- |
| 4917 | ************************ |
| 4918 | ******************************************************************************- |
| 4919 | ******************************************************************************- |
| 4920 | ************************ |
| 4921 | ******************************************************************************- |
| 4922 | ******************************************************************************- |
| 4923 | ************************ |
| 4924 | ******************************************************************************- |
| 4925 | ******************************************************************************- |
| 4926 | ************************ |
| 4927 | ******************************************************************************- |
| 4928 | ******************************************************************************- |
| 4929 | ************************ |
| 4930 | ******************************************************************************- |
| 4931 | ******************************************************************************- |
| 4932 | ************************ |
| 4933 | ******************************************************************************- |
| 4934 | ******************************************************************************- |
| 4935 | ************************ |
| 4936 | ******************************************************************************- |
| 4937 | ******************************************************************************- |
| 4938 | ************************ |
| 4939 | ******************************************************************************- |
| 4940 | ******************************************************************************- |
| 4941 | ************************ |
| 4942 | ******************************************************************************- |
| 4943 | ******************************************************************************- |
| 4944 | ************************ |
| 4945 | ******************************************************************************- |
| 4946 | ******************************************************************************- |
| 4947 | ************************ |
| 4948 | ******************************************************************************- |
| 4949 | ******************************************************************************- |
| 4950 | ************************ |
| 4951 | ******************************************************************************- |
| 4952 | ******************************************************************************- |
| 4953 | ************************ |
| 4954 | ******************************************************************************- |
| 4955 | ******************************************************************************- |
| 4956 | ************************ |
| 4957 | ******************************************************************************- |
| 4958 | ******************************************************************************- |
| 4959 | ************************ |
| 4960 | ******************************************************************************- |
| 4961 | ******************************************************************************- |
| 4962 | ************************ |
| 4963 | ******************************************************************************- |
| 4964 | ******************************************************************************- |
| 4965 | ************************ |
| 4966 | ******************************************************************************- |
| 4967 | ******************************************************************************- |
| 4968 | ************************ |
| 4969 | ******************************************************************************- |
| 4970 | ******************************************************************************- |
| 4971 | ************************ |
| 4972 | ******************************************************************************- |
| 4973 | ******************************************************************************- |
| 4974 | ************************ |
| 4975 | ******************************************************************************- |
| 4976 | ******************************************************************************- |
| 4977 | ************************ |
| 4978 | ******************************************************************************- |
| 4979 | ******************************************************************************- |
| 4980 | ************************ |
| 4981 | ******************************************************************************- |
| 4982 | ******************************************************************************- |
| 4983 | ************************ |
| 4984 | ******************************************************************************- |
| 4985 | ******************************************************************************- |
| 4986 | ************************ |
| 4987 | ******************************************************************************- |
| 4988 | ******************************************************************************- |
| 4989 | ************************ |
| 4990 | ******************************************************************************- |
| 4991 | ******************************************************************************- |
| 4992 | ************************ |
| 4993 | ******************************************************************************- |
| 4994 | ******************************************************************************- |
| 4995 | ************************ |
| 4996 | ******************************************************************************- |
| 4997 | ******************************************************************************- |
| 4998 | ************************ |
| 4999 | ******************************************************************************- |
| 5000 | ******************************************************************************- |
| 5001 | ************************ |
| 5002 | ******************************************************************************- |
| 5003 | ******************************************************************************- |
| 5004 | ************************ |
| 5005 | ******************************************************************************- |
| 5006 | ******************************************************************************- |
| 5007 | ************************ |
| 5008 | ******************************************************************************- |
| 5009 | ******************************************************************************- |
| 5010 | ************************ |
| 5011 | ******************************************************************************- |
| 5012 | ******************************************************************************- |
| 5013 | ************************ |
| 5014 | ******************************************************************************- |
| 5015 | ******************************************************************************- |
| 5016 | ************************ |
| 5017 | ******************************************************************************- |
| 5018 | ******************************************************************************- |
| 5019 | ************************ |
| 5020 | ******************************************************************************- |
| 5021 | ******************************************************************************- |
| 5022 | ************************ |
| 5023 | ******************************************************************************- |
| 5024 | ******************************************************************************- |
| 5025 | ************************ |
| 5026 | ******************************************************************************- |
| 5027 | ******************************************************************************- |
| 5028 | ************************ |
| 5029 | ******************************************************************************- |
| 5030 | ******************************************************************************- |
| 5031 | ************************ |
| 5032 | ******************************************************************************- |
| 5033 | ******************************************************************************- |
| 5034 | ************************ |
| 5035 | ******************************************************************************- |
| 5036 | ******************************************************************************- |
| 5037 | ************************ |
| 5038 | ******************************************************************************- |
| 5039 | ******************************************************************************- |
| 5040 | ************************ |
| 5041 | ******************************************************************************- |
| 5042 | ******************************************************************************- |
| 5043 | ************************ |
| 5044 | ******************************************************************************- |
| 5045 | ******************************************************************************- |
| 5046 | ************************ |
| 5047 | ******************************************************************************- |
| 5048 | ******************************************************************************- |
| 5049 | ************************ |
| 5050 | ******************************************************************************- |
| 5051 | ******************************************************************************- |
| 5052 | ************************ |
| 5053 | ******************************************************************************- |
| 5054 | ******************************************************************************- |
| 5055 | ************************ |
| 5056 | ******************************************************************************- |
| 5057 | ******************************************************************************- |
| 5058 | ************************ |
| 5059 | ******************************************************************************- |
| 5060 | ******************************************************************************- |
| 5061 | ************************ |
| 5062 | ******************************************************************************- |
| 5063 | ******************************************************************************- |
| 5064 | ************************ |
| 5065 | ******************************************************************************- |
| 5066 | ******************************************************************************- |
| 5067 | ************************ |
| 5068 | ******************************************************************************- |
| 5069 | ******************************************************************************- |
| 5070 | ************************ |
| 5071 | ******************************************************************************- |
| 5072 | ******************************************************************************- |
| 5073 | ************************ |
| 5074 | ******************************************************************************- |
| 5075 | ******************************************************************************- |
| 5076 | ************************ |
| 5077 | ******************************************************************************- |
| 5078 | ******************************************************************************- |
| 5079 | ************************ |
| 5080 | ******************************************************************************- |
| 5081 | ******************************************************************************- |
| 5082 | ************************ |
| 5083 | ******************************************************************************- |
| 5084 | ******************************************************************************- |
| 5085 | ************************ |
| 5086 | ******************************************************************************- |
| 5087 | ******************************************************************************- |
| 5088 | ************************ |
| 5089 | ******************************************************************************- |
| 5090 | ******************************************************************************- |
| 5091 | ************************ |
| 5092 | ******************************************************************************- |
| 5093 | ******************************************************************************- |
| 5094 | ************************ |
| 5095 | ******************************************************************************- |
| 5096 | ******************************************************************************- |
| 5097 | ************************ |
| 5098 | ******************************************************************************- |
| 5099 | ******************************************************************************- |
| 5100 | ************************ |
| 5101 | ******************************************************************************- |
| 5102 | ******************************************************************************- |
| 5103 | ************************ |
| 5104 | ******************************************************************************- |
| 5105 | ******************************************************************************- |
| 5106 | ************************ |
| 5107 | ******************************************************************************- |
| 5108 | ******************************************************************************- |
| 5109 | ************************ |
| 5110 | ******************************************************************************- |
| 5111 | ******************************************************************************- |
| 5112 | ************************ |
| 5113 | ******************************************************************************- |
| 5114 | ******************************************************************************- |
| 5115 | ************************ |
| 5116 | ******************************************************************************- |
| 5117 | ******************************************************************************- |
| 5118 | ************************ |
| 5119 | ******************************************************************************- |
| 5120 | ******************************************************************************- |
| 5121 | ************************ |
| 5122 | ******************************************************************************- |
| 5123 | ******************************************************************************- |
| 5124 | ************************ |
| 5125 | ******************************************************************************- |
| 5126 | ******************************************************************************- |
| 5127 | ************************ |
| 5128 | ******************************************************************************- |
| 5129 | ******************************************************************************- |
| 5130 | ************************ |
| 5131 | ******************************************************************************- |
| 5132 | ******************************************************************************- |
| 5133 | ************************ |
| 5134 | ******************************************************************************- |
| 5135 | ******************************************************************************- |
| 5136 | ************************ |
| 5137 | ******************************************************************************- |
| 5138 | ******************************************************************************- |
| 5139 | ************************ |
| 5140 | ******************************************************************************- |
| 5141 | ******************************************************************************- |
| 5142 | ************************ |
| 5143 | ******************************************************************************- |
| 5144 | ******************************************************************************- |
| 5145 | ************************ |
| 5146 | ******************************************************************************- |
| 5147 | ******************************************************************************- |
| 5148 | ************************ |
| 5149 | ******************************************************************************- |
| 5150 | ******************************************************************************- |
| 5151 | ************************ |
| 5152 | ******************************************************************************- |
| 5153 | ******************************************************************************- |
| 5154 | ************************ |
| 5155 | ******************************************************************************- |
| 5156 | ******************************************************************************- |
| 5157 | ************************ |
| 5158 | ******************************************************************************- |
| 5159 | ******************************************************************************- |
| 5160 | ************************ |
| 5161 | ******************************************************************************- |
| 5162 | ******************************************************************************- |
| 5163 | ************************ |
| 5164 | ******************************************************************************- |
| 5165 | ******************************************************************************- |
| 5166 | ************************ |
| 5167 | ******************************************************************************- |
| 5168 | ******************************************************************************- |
| 5169 | ************************ |
| 5170 | ******************************************************************************- |
| 5171 | ******************************************************************************- |
| 5172 | ************************ |
| 5173 | ******************************************************************************- |
| 5174 | ******************************************************************************- |
| 5175 | ************************ |
| 5176 | ******************************************************************************- |
| 5177 | ******************************************************************************- |
| 5178 | ************************ |
| 5179 | ******************************************************************************- |
| 5180 | ******************************************************************************- |
| 5181 | ************************ |
| 5182 | ******************************************************************************- |
| 5183 | ******************************************************************************- |
| 5184 | ************************ |
| 5185 | ******************************************************************************- |
| 5186 | ******************************************************************************- |
| 5187 | ************************ |
| 5188 | ******************************************************************************- |
| 5189 | ******************************************************************************- |
| 5190 | ************************ |
| 5191 | ******************************************************************************- |
| 5192 | ******************************************************************************- |
| 5193 | ************************ |
| 5194 | ******************************************************************************- |
| 5195 | ******************************************************************************- |
| 5196 | ************************ |
| 5197 | ******************************************************************************- |
| 5198 | ******************************************************************************- |
| 5199 | ************************ |
| 5200 | ******************************************************************************- |
| 5201 | ******************************************************************************- |
| 5202 | ************************ |
| 5203 | ******************************************************************************- |
| 5204 | ******************************************************************************- |
| 5205 | ************************ |
| 5206 | ******************************************************************************- |
| 5207 | ******************************************************************************- |
| 5208 | ************************ |
| 5209 | ******************************************************************************- |
| 5210 | ******************************************************************************- |
| 5211 | ************************ |
| 5212 | ******************************************************************************- |
| 5213 | ******************************************************************************- |
| 5214 | ************************ |
| 5215 | ******************************************************************************- |
| 5216 | ******************************************************************************- |
| 5217 | ************************ |
| 5218 | ******************************************************************************- |
| 5219 | ******************************************************************************- |
| 5220 | ************************ |
| 5221 | ******************************************************************************- |
| 5222 | ******************************************************************************- |
| 5223 | ************************ |
| 5224 | ******************************************************************************- |
| 5225 | ******************************************************************************- |
| 5226 | ************************ |
| 5227 | ******************************************************************************- |
| 5228 | ******************************************************************************- |
| 5229 | ************************ |
| 5230 | ******************************************************************************- |
| 5231 | ******************************************************************************- |
| 5232 | ************************ |
| 5233 | ******************************************************************************- |
| 5234 | ******************************************************************************- |
| 5235 | ************************ |
| 5236 | ******************************************************************************- |
| 5237 | ******************************************************************************- |
| 5238 | ************************ |
| 5239 | ******************************************************************************- |
| 5240 | ******************************************************************************- |
| 5241 | ************************ |
| 5242 | ******************************************************************************- |
| 5243 | ******************************************************************************- |
| 5244 | ************************ |
| 5245 | ******************************************************************************- |
| 5246 | ******************************************************************************- |
| 5247 | ************************ |
| 5248 | ******************************************************************************- |
| 5249 | ******************************************************************************- |
| 5250 | ************************ |
| 5251 | ******************************************************************************- |
| 5252 | ******************************************************************************- |
| 5253 | ************************ |
| 5254 | ******************************************************************************- |
| 5255 | ******************************************************************************- |
| 5256 | ************************ |
| 5257 | ******************************************************************************- |
| 5258 | ******************************************************************************- |
| 5259 | ************************ |
| 5260 | ******************************************************************************- |
| 5261 | ******************************************************************************- |
| 5262 | ************************ |
| 5263 | ******************************************************************************- |
| 5264 | ******************************************************************************- |
| 5265 | ************************ |
| 5266 | ******************************************************************************- |
| 5267 | ******************************************************************************- |
| 5268 | ************************ |
| 5269 | ******************************************************************************- |
| 5270 | ******************************************************************************- |
| 5271 | ************************ |
| 5272 | ******************************************************************************- |
| 5273 | ******************************************************************************- |
| 5274 | ************************ |
| 5275 | ******************************************************************************- |
| 5276 | ******************************************************************************- |
| 5277 | ************************ |
| 5278 | ******************************************************************************- |
| 5279 | ******************************************************************************- |
| 5280 | ************************ |
| 5281 | ******************************************************************************- |
| 5282 | ******************************************************************************- |
| 5283 | ************************ |
| 5284 | ******************************************************************************- |
| 5285 | ******************************************************************************- |
| 5286 | ************************ |
| 5287 | ******************************************************************************- |
| 5288 | ******************************************************************************- |
| 5289 | ************************ |
| 5290 | ******************************************************************************- |
| 5291 | ******************************************************************************- |
| 5292 | ************************ |
| 5293 | ******************************************************************************- |
| 5294 | ******************************************************************************- |
| 5295 | ************************ |
| 5296 | ******************************************************************************- |
| 5297 | ******************************************************************************- |
| 5298 | ************************ |
| 5299 | ******************************************************************************- |
| 5300 | ******************************************************************************- |
| 5301 | ************************ |
| 5302 | ******************************************************************************- |
| 5303 | ******************************************************************************- |
| 5304 | ************************ |
| 5305 | ******************************************************************************- |
| 5306 | ******************************************************************************- |
| 5307 | ************************ |
| 5308 | ******************************************************************************- |
| 5309 | ******************************************************************************- |
| 5310 | ************************ |
| 5311 | ******************************************************************************- |
| 5312 | ******************************************************************************- |
| 5313 | ************************ |
| 5314 | ******************************************************************************- |
| 5315 | ******************************************************************************- |
| 5316 | ************************ |
| 5317 | ******************************************************************************- |
| 5318 | ******************************************************************************- |
| 5319 | ************************ |
| 5320 | ******************************************************************************- |
| 5321 | ******************************************************************************- |
| 5322 | ************************ |
| 5323 | ******************************************************************************- |
| 5324 | ******************************************************************************- |
| 5325 | ************************ |
| 5326 | ******************************************************************************- |
| 5327 | ******************************************************************************- |
| 5328 | ************************ |
| 5329 | ******************************************************************************- |
| 5330 | ******************************************************************************- |
| 5331 | ************************ |
| 5332 | ******************************************************************************- |
| 5333 | ******************************************************************************- |
| 5334 | ************************ |
| 5335 | ******************************************************************************- |
| 5336 | ******************************************************************************- |
| 5337 | ************************ |
| 5338 | ******************************************************************************- |
| 5339 | ******************************************************************************- |
| 5340 | ************************ |
| 5341 | ******************************************************************************- |
| 5342 | ******************************************************************************- |
| 5343 | ************************ |
| 5344 | ******************************************************************************- |
| 5345 | ******************************************************************************- |
| 5346 | ************************ |
| 5347 | ******************************************************************************- |
| 5348 | ******************************************************************************- |
| 5349 | ************************ |
| 5350 | ******************************************************************************- |
| 5351 | ******************************************************************************- |
| 5352 | ************************ |
| 5353 | ******************************************************************************- |
| 5354 | ******************************************************************************- |
| 5355 | ************************ |
| 5356 | ******************************************************************************- |
| 5357 | ******************************************************************************- |
| 5358 | ************************ |
| 5359 | ******************************************************************************- |
| 5360 | ******************************************************************************- |
| 5361 | ************************ |
| 5362 | ******************************************************************************- |
| 5363 | ******************************************************************************- |
| 5364 | ************************ |
| 5365 | ******************************************************************************- |
| 5366 | ******************************************************************************- |
| 5367 | ************************ |
| 5368 | ******************************************************************************- |
| 5369 | ******************************************************************************- |
| 5370 | ************************ |
| 5371 | ******************************************************************************- |
| 5372 | ******************************************************************************- |
| 5373 | ************************ |
| 5374 | ******************************************************************************- |
| 5375 | ******************************************************************************- |
| 5376 | ************************ |
| 5377 | ******************************************************************************- |
| 5378 | ******************************************************************************- |
| 5379 | ************************ |
| 5380 | ******************************************************************************- |
| 5381 | ******************************************************************************- |
| 5382 | ************************ |
| 5383 | ******************************************************************************- |
| 5384 | ******************************************************************************- |
| 5385 | ************************ |
| 5386 | ******************************************************************************- |
| 5387 | ******************************************************************************- |
| 5388 | ************************ |
| 5389 | ******************************************************************************- |
| 5390 | ******************************************************************************- |
| 5391 | ************************ |
| 5392 | ******************************************************************************- |
| 5393 | ******************************************************************************- |
| 5394 | ************************ |
| 5395 | ******************************************************************************- |
| 5396 | ******************************************************************************- |
| 5397 | ************************ |
| 5398 | ******************************************************************************- |
| 5399 | ******************************************************************************- |
| 5400 | ************************ |
| 5401 | ******************************************************************************- |
| 5402 | ******************************************************************************- |
| 5403 | ************************ |
| 5404 | ******************************************************************************- |
| 5405 | ******************************************************************************- |
| 5406 | ************************ |
| 5407 | ******************************************************************************- |
| 5408 | ******************************************************************************- |
| 5409 | ************************ |
| 5410 | ******************************************************************************- |
| 5411 | ******************************************************************************- |
| 5412 | ************************ |
| 5413 | ******************************************************************************- |
| 5414 | ******************************************************************************- |
| 5415 | ************************ |
| 5416 | ******************************************************************************- |
| 5417 | ******************************************************************************- |
| 5418 | ************************ |
| 5419 | ******************************************************************************- |
| 5420 | ******************************************************************************- |
| 5421 | ************************ |
| 5422 | ******************************************************************************- |
| 5423 | ******************************************************************************- |
| 5424 | ************************ |
| 5425 | ******************************************************************************- |
| 5426 | ******************************************************************************- |
| 5427 | ************************ |
| 5428 | ******************************************************************************- |
| 5429 | ******************************************************************************- |
| 5430 | ************************ |
| 5431 | ******************************************************************************- |
| 5432 | ******************************************************************************- |
| 5433 | ************************ |
| 5434 | ******************************************************************************- |
| 5435 | ******************************************************************************- |
| 5436 | ************************ |
| 5437 | ******************************************************************************- |
| 5438 | ******************************************************************************- |
| 5439 | ************************ |
| 5440 | ******************************************************************************- |
| 5441 | ******************************************************************************- |
| 5442 | ************************ |
| 5443 | ******************************************************************************- |
| 5444 | ******************************************************************************- |
| 5445 | ************************ |
| 5446 | ******************************************************************************- |
| 5447 | ******************************************************************************- |
| 5448 | ************************ |
| 5449 | ******************************************************************************- |
| 5450 | ******************************************************************************- |
| 5451 | ************************ |
| 5452 | ******************************************************************************- |
| 5453 | ******************************************************************************- |
| 5454 | ************************ |
| 5455 | ******************************************************************************- |
| 5456 | ******************************************************************************- |
| 5457 | ************************ |
| 5458 | ******************************************************************************- |
| 5459 | ******************************************************************************- |
| 5460 | ************************ |
| 5461 | ******************************************************************************- |
| 5462 | ******************************************************************************- |
| 5463 | ************************ |
| 5464 | ******************************************************************************- |
| 5465 | ******************************************************************************- |
| 5466 | ************************ |
| 5467 | ******************************************************************************- |
| 5468 | ******************************************************************************- |
| 5469 | ************************ |
| 5470 | ******************************************************************************- |
| 5471 | ******************************************************************************- |
| 5472 | ************************ |
| 5473 | ******************************************************************************- |
| 5474 | ******************************************************************************- |
| 5475 | ************************ |
| 5476 | ******************************************************************************- |
| 5477 | ******************************************************************************- |
| 5478 | ************************ |
| 5479 | ******************************************************************************- |
| 5480 | ******************************************************************************- |
| 5481 | ************************ |
| 5482 | ******************************************************************************- |
| 5483 | ******************************************************************************- |
| 5484 | ************************ |
| 5485 | ******************************************************************************- |
| 5486 | ******************************************************************************- |
| 5487 | ************************ |
| 5488 | ******************************************************************************- |
| 5489 | ******************************************************************************- |
| 5490 | ************************ |
| 5491 | ******************************************************************************- |
| 5492 | ******************************************************************************- |
| 5493 | ************************ |
| 5494 | ******************************************************************************- |
| 5495 | ******************************************************************************- |
| 5496 | ************************ |
| 5497 | ******************************************************************************- |
| 5498 | ******************************************************************************- |
| 5499 | ************************ |
| 5500 | ******************************************************************************- |
| 5501 | ******************************************************************************- |
| 5502 | ************************ |
| 5503 | ******************************************************************************- |
| 5504 | ******************************************************************************- |
| 5505 | ************************ |
| 5506 | ******************************************************************************- |
| 5507 | ******************************************************************************- |
| 5508 | ************************ |
| 5509 | ******************************************************************************- |
| 5510 | ******************************************************************************- |
| 5511 | ************************ |
| 5512 | ******************************************************************************- |
| 5513 | ******************************************************************************- |
| 5514 | ************************ |
| 5515 | ******************************************************************************- |
| 5516 | ******************************************************************************- |
| 5517 | ************************ |
| 5518 | ******************************************************************************- |
| 5519 | ******************************************************************************- |
| 5520 | ************************ |
| 5521 | ******************************************************************************- |
| 5522 | ******************************************************************************- |
| 5523 | ************************ |
| 5524 | ******************************************************************************- |
| 5525 | ******************************************************************************- |
| 5526 | ************************ |
| 5527 | ******************************************************************************- |
| 5528 | ******************************************************************************- |
| 5529 | ************************ |
| 5530 | ******************************************************************************- |
| 5531 | ******************************************************************************- |
| 5532 | ************************ |
| 5533 | ******************************************************************************- |
| 5534 | ******************************************************************************- |
| 5535 | ************************ |
| 5536 | ******************************************************************************- |
| 5537 | ******************************************************************************- |
| 5538 | ************************ |
| 5539 | ******************************************************************************- |
| 5540 | ******************************************************************************- |
| 5541 | ************************ |
| 5542 | ******************************************************************************- |
| 5543 | ******************************************************************************- |
| 5544 | ************************ |
| 5545 | ******************************************************************************- |
| 5546 | ******************************************************************************- |
| 5547 | ************************ |
| 5548 | ******************************************************************************- |
| 5549 | ******************************************************************************- |
| 5550 | ************************ |
| 5551 | ******************************************************************************- |
| 5552 | ******************************************************************************- |
| 5553 | ************************ |
| 5554 | ******************************************************************************- |
| 5555 | ******************************************************************************- |
| 5556 | ************************ |
| 5557 | ******************************************************************************- |
| 5558 | ******************************************************************************- |
| 5559 | ************************ |
| 5560 | ******************************************************************************- |
| 5561 | ******************************************************************************- |
| 5562 | ************************ |
| 5563 | ******************************************************************************- |
| 5564 | ******************************************************************************- |
| 5565 | ************************ |
| 5566 | ******************************************************************************- |
| 5567 | ******************************************************************************- |
| 5568 | ************************ |
| 5569 | ******************************************************************************- |
| 5570 | ******************************************************************************- |
| 5571 | ************************ |
| 5572 | ******************************************************************************- |
| 5573 | ******************************************************************************- |
| 5574 | ************************ |
| 5575 | ******************************************************************************- |
| 5576 | ******************************************************************************- |
| 5577 | ************************ |
| 5578 | ******************************************************************************- |
| 5579 | ******************************************************************************- |
| 5580 | ************************ |
| 5581 | ******************************************************************************- |
| 5582 | ******************************************************************************- |
| 5583 | ************************ |
| 5584 | ******************************************************************************- |
| 5585 | ******************************************************************************- |
| 5586 | ************************ |
| 5587 | ******************************************************************************- |
| 5588 | ******************************************************************************- |
| 5589 | ************************ |
| 5590 | ******************************************************************************- |
| 5591 | ******************************************************************************- |
| 5592 | ************************ |
| 5593 | ******************************************************************************- |
| 5594 | ******************************************************************************- |
| 5595 | ************************ |
| 5596 | ******************************************************************************- |
| 5597 | ******************************************************************************- |
| 5598 | ************************ |
| 5599 | ******************************************************************************- |
| 5600 | ******************************************************************************- |
| 5601 | ************************ |
| 5602 | ******************************************************************************- |
| 5603 | ******************************************************************************- |
| 5604 | ************************ |
| 5605 | ******************************************************************************- |
| 5606 | ******************************************************************************- |
| 5607 | ************************ |
| 5608 | ******************************************************************************- |
| 5609 | ******************************************************************************- |
| 5610 | ************************ |
| 5611 | ******************************************************************************- |
| 5612 | ******************************************************************************- |
| 5613 | ************************ |
| 5614 | ******************************************************************************- |
| 5615 | ******************************************************************************- |
| 5616 | ************************ |
| 5617 | ******************************************************************************- |
| 5618 | ******************************************************************************- |
| 5619 | ************************ |
| 5620 | ******************************************************************************- |
| 5621 | ******************************************************************************- |
| 5622 | ************************ |
| 5623 | ******************************************************************************- |
| 5624 | ******************************************************************************- |
| 5625 | ************************ |
| 5626 | ******************************************************************************- |
| 5627 | ******************************************************************************- |
| 5628 | ************************ |
| 5629 | ******************************************************************************- |
| 5630 | ******************************************************************************- |
| 5631 | ************************ |
| 5632 | ******************************************************************************- |
| 5633 | ******************************************************************************- |
| 5634 | ************************ |
| 5635 | ******************************************************************************- |
| 5636 | ******************************************************************************- |
| 5637 | ************************ |
| 5638 | ******************************************************************************- |
| 5639 | ******************************************************************************- |
| 5640 | ************************ |
| 5641 | ******************************************************************************- |
| 5642 | ******************************************************************************- |
| 5643 | ************************ |
| 5644 | ******************************************************************************- |
| 5645 | ******************************************************************************- |
| 5646 | ************************ |
| 5647 | ******************************************************************************- |
| 5648 | ******************************************************************************- |
| 5649 | ************************ |
| 5650 | ******************************************************************************- |
| 5651 | ******************************************************************************- |
| 5652 | ************************ |
| 5653 | ******************************************************************************- |
| 5654 | ******************************************************************************- |
| 5655 | ************************ |
| 5656 | ******************************************************************************- |
| 5657 | ******************************************************************************- |
| 5658 | ************************ |
| 5659 | ******************************************************************************- |
| 5660 | ******************************************************************************- |
| 5661 | ************************ |
| 5662 | ******************************************************************************- |
| 5663 | ******************************************************************************- |
| 5664 | ************************ |
| 5665 | ******************************************************************************- |
| 5666 | ******************************************************************************- |
| 5667 | ************************ |
| 5668 | ******************************************************************************- |
| 5669 | ******************************************************************************- |
| 5670 | ************************ |
| 5671 | ******************************************************************************- |
| 5672 | ******************************************************************************- |
| 5673 | ************************ |
| 5674 | ******************************************************************************- |
| 5675 | ******************************************************************************- |
| 5676 | ************************ |
| 5677 | ******************************************************************************- |
| 5678 | ******************************************************************************- |
| 5679 | ************************ |
| 5680 | ******************************************************************************- |
| 5681 | ******************************************************************************- |
| 5682 | ************************ |
| 5683 | ******************************************************************************- |
| 5684 | ******************************************************************************- |
| 5685 | ************************ |
| 5686 | ******************************************************************************- |
| 5687 | ******************************************************************************- |
| 5688 | ************************ |
| 5689 | ******************************************************************************- |
| 5690 | ******************************************************************************- |
| 5691 | ************************ |
| 5692 | ******************************************************************************- |
| 5693 | ******************************************************************************- |
| 5694 | ************************ |
| 5695 | ******************************************************************************- |
| 5696 | ******************************************************************************- |
| 5697 | ************************ |
| 5698 | ******************************************************************************- |
| 5699 | ******************************************************************************- |
| 5700 | ************************ |
| 5701 | ******************************************************************************- |
| 5702 | ******************************************************************************- |
| 5703 | ************************ |
| 5704 | ******************************************************************************- |
| 5705 | ******************************************************************************- |
| 5706 | ************************ |
| 5707 | ******************************************************************************- |
| 5708 | ******************************************************************************- |
| 5709 | ************************ |
| 5710 | ******************************************************************************- |
| 5711 | ******************************************************************************- |
| 5712 | ************************ |
| 5713 | ******************************************************************************- |
| 5714 | ******************************************************************************- |
| 5715 | ************************ |
| 5716 | ******************************************************************************- |
| 5717 | ******************************************************************************- |
| 5718 | ************************ |
| 5719 | ******************************************************************************- |
| 5720 | ******************************************************************************- |
| 5721 | ************************ |
| 5722 | ******************************************************************************- |
| 5723 | ******************************************************************************- |
| 5724 | ************************ |
| 5725 | ******************************************************************************- |
| 5726 | ******************************************************************************- |
| 5727 | ************************ |
| 5728 | ******************************************************************************- |
| 5729 | ******************************************************************************- |
| 5730 | ************************ |
| 5731 | ******************************************************************************- |
| 5732 | ******************************************************************************- |
| 5733 | ************************ |
| 5734 | ******************************************************************************- |
| 5735 | ******************************************************************************- |
| 5736 | ************************ |
| 5737 | ******************************************************************************- |
| 5738 | ******************************************************************************- |
| 5739 | ************************ |
| 5740 | ******************************************************************************- |
| 5741 | ******************************************************************************- |
| 5742 | ************************ |
| 5743 | ******************************************************************************- |
| 5744 | ******************************************************************************- |
| 5745 | ************************ |
| 5746 | ******************************************************************************- |
| 5747 | ******************************************************************************- |
| 5748 | ************************ |
| 5749 | ******************************************************************************- |
| 5750 | ******************************************************************************- |
| 5751 | ************************ |
| 5752 | ******************************************************************************- |
| 5753 | ******************************************************************************- |
| 5754 | ************************ |
| 5755 | ******************************************************************************- |
| 5756 | ******************************************************************************- |
| 5757 | ************************ |
| 5758 | ******************************************************************************- |
| 5759 | ******************************************************************************- |
| 5760 | ************************ |
| 5761 | ******************************************************************************- |
| 5762 | ******************************************************************************- |
| 5763 | ************************ |
| 5764 | ******************************************************************************- |
| 5765 | ******************************************************************************- |
| 5766 | ************************ |
| 5767 | ******************************************************************************- |
| 5768 | ******************************************************************************- |
| 5769 | ************************ |
| 5770 | ******************************************************************************- |
| 5771 | ******************************************************************************- |
| 5772 | ************************ |
| 5773 | ******************************************************************************- |
| 5774 | ******************************************************************************- |
| 5775 | ************************ |
| 5776 | ******************************************************************************- |
| 5777 | ******************************************************************************- |
| 5778 | ************************ |
| 5779 | ******************************************************************************- |
| 5780 | ******************************************************************************- |
| 5781 | ************************ |
| 5782 | ******************************************************************************- |
| 5783 | ******************************************************************************- |
| 5784 | ************************ |
| 5785 | ******************************************************************************- |
| 5786 | ******************************************************************************- |
| 5787 | ************************ |
| 5788 | ******************************************************************************- |
| 5789 | ******************************************************************************- |
| 5790 | ************************ |
| 5791 | ******************************************************************************- |
| 5792 | ******************************************************************************- |
| 5793 | ************************ |
| 5794 | ******************************************************************************- |
| 5795 | ******************************************************************************- |
| 5796 | ************************ |
| 5797 | ******************************************************************************- |
| 5798 | ******************************************************************************- |
| 5799 | ************************ |
| 5800 | ******************************************************************************- |
| 5801 | ******************************************************************************- |
| 5802 | ************************ |
| 5803 | ******************************************************************************- |
| 5804 | ******************************************************************************- |
| 5805 | ************************ |
| 5806 | ******************************************************************************- |
| 5807 | ******************************************************************************- |
| 5808 | ************************ |
| 5809 | ******************************************************************************- |
| 5810 | ******************************************************************************- |
| 5811 | ************************ |
| 5812 | ******************************************************************************- |
| 5813 | ******************************************************************************- |
| 5814 | ************************ |
| 5815 | ******************************************************************************- |
| 5816 | ******************************************************************************- |
| 5817 | ************************ |
| 5818 | ******************************************************************************- |
| 5819 | ******************************************************************************- |
| 5820 | ************************ |
| 5821 | ******************************************************************************- |
| 5822 | ******************************************************************************- |
| 5823 | ************************ |
| 5824 | ******************************************************************************- |
| 5825 | ******************************************************************************- |
| 5826 | ************************ |
| 5827 | ******************************************************************************- |
| 5828 | ******************************************************************************- |
| 5829 | ************************ |
| 5830 | ******************************************************************************- |
| 5831 | ******************************************************************************- |
| 5832 | ************************ |
| 5833 | ******************************************************************************- |
| 5834 | ******************************************************************************- |
| 5835 | ************************ |
| 5836 | ******************************************************************************- |
| 5837 | ******************************************************************************- |
| 5838 | ************************ |
| 5839 | ******************************************************************************- |
| 5840 | ******************************************************************************- |
| 5841 | ************************ |
| 5842 | ******************************************************************************- |
| 5843 | ******************************************************************************- |
| 5844 | ************************ |
| 5845 | ******************************************************************************- |
| 5846 | ******************************************************************************- |
| 5847 | ************************ |
| 5848 | ******************************************************************************- |
| 5849 | ******************************************************************************- |
| 5850 | ************************ |
| 5851 | ******************************************************************************- |
| 5852 | ******************************************************************************- |
| 5853 | ************************ |
| 5854 | ******************************************************************************- |
| 5855 | ******************************************************************************- |
| 5856 | ************************ |
| 5857 | ******************************************************************************- |
| 5858 | ******************************************************************************- |
| 5859 | ************************ |
| 5860 | ******************************************************************************- |
| 5861 | ******************************************************************************- |
| 5862 | ************************ |
| 5863 | ******************************************************************************- |
| 5864 | ******************************************************************************- |
| 5865 | ************************ |
| 5866 | ******************************************************************************- |
| 5867 | ******************************************************************************- |
| 5868 | ************************ |
| 5869 | ******************************************************************************- |
| 5870 | ******************************************************************************- |
| 5871 | ************************ |
| 5872 | ******************************************************************************- |
| 5873 | ******************************************************************************- |
| 5874 | ************************ |
| 5875 | ******************************************************************************- |
| 5876 | ******************************************************************************- |
| 5877 | ************************ |
| 5878 | ******************************************************************************- |
| 5879 | ******************************************************************************- |
| 5880 | ************************ |
| 5881 | ******************************************************************************- |
| 5882 | ******************************************************************************- |
| 5883 | ************************ |
| 5884 | ******************************************************************************- |
| 5885 | ... message truncated due to excessive size" ends with: "... message truncated due to excessive size" |
| 5886 | </Expanded> |
| 5887 | </Expression> |
| 5888 | <OverallResult success="true"/> |
| 5889 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5890 | <TestCase name="Parsing a std::pair"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5891 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5892 | <Original> |
| 5893 | (std::pair<int, int>( 1, 2 )) == aNicePair |
| 5894 | </Original> |
| 5895 | <Expanded> |
| 5896 | std::pair( 1, 2 ) == std::pair( 1, 2 ) |
| 5897 | </Expanded> |
| 5898 | </Expression> |
| 5899 | <OverallResult success="true"/> |
| 5900 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 5901 | <TestCase name="Where there is more to the expression after the RHS"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5902 | <Warning> |
| 5903 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 5904 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5905 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5906 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 5907 | <TestCase name="Where the LHS is not a simple value"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5908 | <Warning> |
| 5909 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 5910 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5911 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5912 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5913 | <TestCase name="A failing expression with a non streamable type is still captured"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5914 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5915 | <Original> |
| 5916 | &o1 == &o2 |
| 5917 | </Original> |
| 5918 | <Expanded> |
| 5919 | 0x<hex digits> == 0x<hex digits> |
| 5920 | </Expanded> |
| 5921 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5922 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5923 | <Original> |
| 5924 | o1 == o2 |
| 5925 | </Original> |
| 5926 | <Expanded> |
| 5927 | {?} == {?} |
| 5928 | </Expanded> |
| 5929 | </Expression> |
| 5930 | <OverallResult success="false"/> |
| 5931 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5932 | <TestCase name="string literals of different sizes can be compared"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5933 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5934 | <Original> |
| 5935 | std::string( "first" ) == "second" |
| 5936 | </Original> |
| 5937 | <Expanded> |
| 5938 | "first" == "second" |
| 5939 | </Expanded> |
| 5940 | </Expression> |
| 5941 | <OverallResult success="false"/> |
| 5942 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5943 | <TestCase name="An expression with side-effects should only be evaluated once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5944 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5945 | <Original> |
| 5946 | i++ == 7 |
| 5947 | </Original> |
| 5948 | <Expanded> |
| 5949 | 7 == 7 |
| 5950 | </Expanded> |
| 5951 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5952 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5953 | <Original> |
| 5954 | i++ == 8 |
| 5955 | </Original> |
| 5956 | <Expanded> |
| 5957 | 8 == 8 |
| 5958 | </Expanded> |
| 5959 | </Expression> |
| 5960 | <OverallResult success="true"/> |
| 5961 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5962 | <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5963 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5964 | <Original> |
| 5965 | 0x<hex digits> == o |
| 5966 | </Original> |
| 5967 | <Expanded> |
| 5968 | 0x<hex digits> == {?} |
| 5969 | </Expanded> |
| 5970 | </Expression> |
| 5971 | <OverallResult success="true"/> |
| 5972 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5973 | <TestCase name="Demonstrate that a non-const == is not used"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5974 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5975 | <Original> |
| 5976 | t == 1u |
| 5977 | </Original> |
| 5978 | <Expanded> |
| 5979 | {?} == 1 |
| 5980 | </Expanded> |
| 5981 | </Expression> |
| 5982 | <OverallResult success="true"/> |
| 5983 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5984 | <TestCase name="Test enum bit values"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5985 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5986 | <Original> |
| 5987 | 0x<hex digits> == bit30and31 |
| 5988 | </Original> |
| 5989 | <Expanded> |
| 5990 | 0x<hex digits> == 3221225472 |
| 5991 | </Expanded> |
| 5992 | </Expression> |
| 5993 | <OverallResult success="true"/> |
| 5994 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5995 | <TestCase name="boolean member"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5996 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5997 | <Original> |
| 5998 | obj.prop != __null |
| 5999 | </Original> |
| 6000 | <Expanded> |
| 6001 | 0x<hex digits> != 0 |
| 6002 | </Expanded> |
| 6003 | </Expression> |
| 6004 | <OverallResult success="true"/> |
| 6005 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6006 | <TestCase name="(unimplemented) static bools can be evaluated"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6007 | <Section name="compare to true"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6008 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6009 | <Original> |
| 6010 | is_true<true>::value == true |
| 6011 | </Original> |
| 6012 | <Expanded> |
| 6013 | true == true |
| 6014 | </Expanded> |
| 6015 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6016 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6017 | <Original> |
| 6018 | true == is_true<true>::value |
| 6019 | </Original> |
| 6020 | <Expanded> |
| 6021 | true == true |
| 6022 | </Expanded> |
| 6023 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6024 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6025 | </Section> |
| 6026 | <Section name="compare to false"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6027 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6028 | <Original> |
| 6029 | is_true<false>::value == false |
| 6030 | </Original> |
| 6031 | <Expanded> |
| 6032 | false == false |
| 6033 | </Expanded> |
| 6034 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6035 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6036 | <Original> |
| 6037 | false == is_true<false>::value |
| 6038 | </Original> |
| 6039 | <Expanded> |
| 6040 | false == false |
| 6041 | </Expanded> |
| 6042 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6043 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6044 | </Section> |
| 6045 | <Section name="negation"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6046 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6047 | <Original> |
| 6048 | !is_true<false>::value |
| 6049 | </Original> |
| 6050 | <Expanded> |
| 6051 | true |
| 6052 | </Expanded> |
| 6053 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6054 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6055 | </Section> |
| 6056 | <Section name="double negation"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6057 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6058 | <Original> |
| 6059 | !!is_true<true>::value |
| 6060 | </Original> |
| 6061 | <Expanded> |
| 6062 | true |
| 6063 | </Expanded> |
| 6064 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6065 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6066 | </Section> |
| 6067 | <Section name="direct"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6068 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6069 | <Original> |
| 6070 | is_true<true>::value |
| 6071 | </Original> |
| 6072 | <Expanded> |
| 6073 | true |
| 6074 | </Expanded> |
| 6075 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6076 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6077 | <Original> |
| 6078 | !is_true<false>::value |
| 6079 | </Original> |
| 6080 | <Expanded> |
| 6081 | !false |
| 6082 | </Expanded> |
| 6083 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6084 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6085 | </Section> |
| 6086 | <OverallResult success="true"/> |
| 6087 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6088 | <TestCase name="Objects that evaluated in boolean contexts can be checked"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6089 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6090 | <Original> |
| 6091 | True |
| 6092 | </Original> |
| 6093 | <Expanded> |
| 6094 | true |
| 6095 | </Expanded> |
| 6096 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6097 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6098 | <Original> |
| 6099 | !False |
| 6100 | </Original> |
| 6101 | <Expanded> |
| 6102 | true |
| 6103 | </Expanded> |
| 6104 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6105 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6106 | <Original> |
| 6107 | !False |
| 6108 | </Original> |
| 6109 | <Expanded> |
| 6110 | !false |
| 6111 | </Expanded> |
| 6112 | </Expression> |
| 6113 | <OverallResult success="true"/> |
| 6114 | </TestCase> |
| 6115 | <TestCase name="Assertions then sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6116 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6117 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6118 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6119 | </Original> |
| 6120 | <Expanded> |
| 6121 | true |
| 6122 | </Expanded> |
| 6123 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6124 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6125 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6126 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6127 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6128 | </Original> |
| 6129 | <Expanded> |
| 6130 | true |
| 6131 | </Expanded> |
| 6132 | </Expression> |
| 6133 | <Section name="Another section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6134 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6135 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6136 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6137 | </Original> |
| 6138 | <Expanded> |
| 6139 | true |
| 6140 | </Expanded> |
| 6141 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6142 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6143 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6144 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6145 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6146 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6147 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6148 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6149 | </Original> |
| 6150 | <Expanded> |
| 6151 | true |
| 6152 | </Expanded> |
| 6153 | </Expression> |
| 6154 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6155 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6156 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6157 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6158 | </Original> |
| 6159 | <Expanded> |
| 6160 | true |
| 6161 | </Expanded> |
| 6162 | </Expression> |
| 6163 | <Section name="Another other section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6164 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6165 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6166 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6167 | </Original> |
| 6168 | <Expanded> |
| 6169 | true |
| 6170 | </Expanded> |
| 6171 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6172 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6173 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6174 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6175 | </Section> |
| 6176 | <OverallResult success="true"/> |
| 6177 | </TestCase> |
| 6178 | <TestCase name="non streamable - with conv. op"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6179 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6180 | <Original> |
| 6181 | s == "7" |
| 6182 | </Original> |
| 6183 | <Expanded> |
| 6184 | "7" == "7" |
| 6185 | </Expanded> |
| 6186 | </Expression> |
| 6187 | <OverallResult success="true"/> |
| 6188 | </TestCase> |
| 6189 | <TestCase name="Comparing function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6190 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6191 | <Original> |
| 6192 | a |
| 6193 | </Original> |
| 6194 | <Expanded> |
| 6195 | true |
| 6196 | </Expanded> |
| 6197 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6198 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6199 | <Original> |
| 6200 | a == &foo |
| 6201 | </Original> |
| 6202 | <Expanded> |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6203 | 0x<hex digits> == 0x<hex digits> |
| 6204 | </Expanded> |
| 6205 | </Expression> |
| 6206 | <OverallResult success="true"/> |
| 6207 | </TestCase> |
| 6208 | <TestCase name="Comparing member function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6209 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6210 | <Original> |
| 6211 | m == &S::f |
| 6212 | </Original> |
| 6213 | <Expanded> |
| 6214 | 0x<hex digits> |
| 6215 | == |
| 6216 | 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6217 | </Expanded> |
| 6218 | </Expression> |
| 6219 | <OverallResult success="true"/> |
| 6220 | </TestCase> |
| 6221 | <TestCase name="pointer to class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6222 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6223 | <Original> |
| 6224 | p == 0 |
| 6225 | </Original> |
| 6226 | <Expanded> |
| 6227 | __null == 0 |
| 6228 | </Expanded> |
| 6229 | </Expression> |
| 6230 | <OverallResult success="true"/> |
| 6231 | </TestCase> |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6232 | <TestCase name="null_ptr"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6233 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6234 | <Original> |
| 6235 | ptr.get() == nullptr |
| 6236 | </Original> |
| 6237 | <Expanded> |
| 6238 | __null == nullptr |
| 6239 | </Expanded> |
| 6240 | </Expression> |
| 6241 | <OverallResult success="true"/> |
| 6242 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6243 | <TestCase name="X/level/0/a"> |
| 6244 | <OverallResult success="true"/> |
| 6245 | </TestCase> |
| 6246 | <TestCase name="X/level/0/b"> |
| 6247 | <OverallResult success="true"/> |
| 6248 | </TestCase> |
| 6249 | <TestCase name="X/level/1/a"> |
| 6250 | <OverallResult success="true"/> |
| 6251 | </TestCase> |
| 6252 | <TestCase name="X/level/1/b"> |
| 6253 | <OverallResult success="true"/> |
| 6254 | </TestCase> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6255 | <TestCase name="toString( has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6256 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6257 | <Original> |
| 6258 | Catch::toString( item ) == "toString( has_toString )" |
| 6259 | </Original> |
| 6260 | <Expanded> |
| 6261 | "toString( has_toString )" |
| 6262 | == |
| 6263 | "toString( has_toString )" |
| 6264 | </Expanded> |
| 6265 | </Expression> |
| 6266 | <OverallResult success="true"/> |
| 6267 | </TestCase> |
| 6268 | <TestCase name="toString( has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6269 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6270 | <Original> |
| 6271 | Catch::toString( item ) == "StringMaker<has_maker>" |
| 6272 | </Original> |
| 6273 | <Expanded> |
| 6274 | "StringMaker<has_maker>" |
| 6275 | == |
| 6276 | "StringMaker<has_maker>" |
| 6277 | </Expanded> |
| 6278 | </Expression> |
| 6279 | <OverallResult success="true"/> |
| 6280 | </TestCase> |
| 6281 | <TestCase name="toString( has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6282 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6283 | <Original> |
| 6284 | Catch::toString( item ) == "toString( has_maker_and_toString )" |
| 6285 | </Original> |
| 6286 | <Expanded> |
| 6287 | "toString( has_maker_and_toString )" |
| 6288 | == |
| 6289 | "toString( has_maker_and_toString )" |
| 6290 | </Expanded> |
| 6291 | </Expression> |
| 6292 | <OverallResult success="true"/> |
| 6293 | </TestCase> |
| 6294 | <TestCase name="toString( vectors<has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6295 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6296 | <Original> |
| 6297 | Catch::toString( v ) == "{ {?} }" |
| 6298 | </Original> |
| 6299 | <Expanded> |
| 6300 | "{ {?} }" == "{ {?} }" |
| 6301 | </Expanded> |
| 6302 | </Expression> |
| 6303 | <OverallResult success="true"/> |
| 6304 | </TestCase> |
| 6305 | <TestCase name="toString( vectors<has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6306 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6307 | <Original> |
| 6308 | Catch::toString( v ) == "{ StringMaker<has_maker> }" |
| 6309 | </Original> |
| 6310 | <Expanded> |
| 6311 | "{ StringMaker<has_maker> }" |
| 6312 | == |
| 6313 | "{ StringMaker<has_maker> }" |
| 6314 | </Expanded> |
| 6315 | </Expression> |
| 6316 | <OverallResult success="true"/> |
| 6317 | </TestCase> |
| 6318 | <TestCase name="toString( vectors<has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6319 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6320 | <Original> |
| 6321 | Catch::toString( v ) == "{ StringMaker<has_maker_and_toString> }" |
| 6322 | </Original> |
| 6323 | <Expanded> |
| 6324 | "{ StringMaker<has_maker_and_toString> }" |
| 6325 | == |
| 6326 | "{ StringMaker<has_maker_and_toString> }" |
| 6327 | </Expanded> |
| 6328 | </Expression> |
| 6329 | <OverallResult success="true"/> |
| 6330 | </TestCase> |
| 6331 | <TestCase name="std::pair<int,std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6332 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6333 | <Original> |
| 6334 | Catch::toString( value ) == "{ 34, \"xyzzy\" }" |
| 6335 | </Original> |
| 6336 | <Expanded> |
| 6337 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 6338 | </Expanded> |
| 6339 | </Expression> |
| 6340 | <OverallResult success="true"/> |
| 6341 | </TestCase> |
| 6342 | <TestCase name="std::pair<int,const std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6343 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6344 | <Original> |
| 6345 | Catch::toString(value) == "{ 34, \"xyzzy\" }" |
| 6346 | </Original> |
| 6347 | <Expanded> |
| 6348 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 6349 | </Expanded> |
| 6350 | </Expression> |
| 6351 | <OverallResult success="true"/> |
| 6352 | </TestCase> |
| 6353 | <TestCase name="std::vector<std::pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6354 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6355 | <Original> |
| 6356 | Catch::toString( pr ) == "{ { \"green\", 55 } }" |
| 6357 | </Original> |
| 6358 | <Expanded> |
| 6359 | "{ { "green", 55 } }" |
| 6360 | == |
| 6361 | "{ { "green", 55 } }" |
| 6362 | </Expanded> |
| 6363 | </Expression> |
| 6364 | <OverallResult success="true"/> |
| 6365 | </TestCase> |
| 6366 | <TestCase name="pair<pair<int,const char *,pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6367 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6368 | <Original> |
| 6369 | Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" |
| 6370 | </Original> |
| 6371 | <Expanded> |
| 6372 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 6373 | == |
| 6374 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 6375 | </Expanded> |
| 6376 | </Expression> |
| 6377 | <OverallResult success="true"/> |
| 6378 | </TestCase> |
| 6379 | <TestCase name="vector<int> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6380 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6381 | <Original> |
| 6382 | Catch::toString(vv) == "{ }" |
| 6383 | </Original> |
| 6384 | <Expanded> |
| 6385 | "{ }" == "{ }" |
| 6386 | </Expanded> |
| 6387 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6388 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6389 | <Original> |
| 6390 | Catch::toString(vv) == "{ 42 }" |
| 6391 | </Original> |
| 6392 | <Expanded> |
| 6393 | "{ 42 }" == "{ 42 }" |
| 6394 | </Expanded> |
| 6395 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6396 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6397 | <Original> |
| 6398 | Catch::toString(vv) == "{ 42, 512 }" |
| 6399 | </Original> |
| 6400 | <Expanded> |
| 6401 | "{ 42, 512 }" == "{ 42, 512 }" |
| 6402 | </Expanded> |
| 6403 | </Expression> |
| 6404 | <OverallResult success="true"/> |
| 6405 | </TestCase> |
| 6406 | <TestCase name="vector<string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6407 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6408 | <Original> |
| 6409 | Catch::toString(vv) == "{ }" |
| 6410 | </Original> |
| 6411 | <Expanded> |
| 6412 | "{ }" == "{ }" |
| 6413 | </Expanded> |
| 6414 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6415 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6416 | <Original> |
| 6417 | Catch::toString(vv) == "{ \"hello\" }" |
| 6418 | </Original> |
| 6419 | <Expanded> |
| 6420 | "{ "hello" }" == "{ "hello" }" |
| 6421 | </Expanded> |
| 6422 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6423 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6424 | <Original> |
| 6425 | Catch::toString(vv) == "{ \"hello\", \"world\" }" |
| 6426 | </Original> |
| 6427 | <Expanded> |
| 6428 | "{ "hello", "world" }" |
| 6429 | == |
| 6430 | "{ "hello", "world" }" |
| 6431 | </Expanded> |
| 6432 | </Expression> |
| 6433 | <OverallResult success="true"/> |
| 6434 | </TestCase> |
| 6435 | <TestCase name="vector<int,allocator> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6436 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6437 | <Original> |
| 6438 | Catch::toString(vv) == "{ }" |
| 6439 | </Original> |
| 6440 | <Expanded> |
| 6441 | "{ }" == "{ }" |
| 6442 | </Expanded> |
| 6443 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6444 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6445 | <Original> |
| 6446 | Catch::toString(vv) == "{ 42 }" |
| 6447 | </Original> |
| 6448 | <Expanded> |
| 6449 | "{ 42 }" == "{ 42 }" |
| 6450 | </Expanded> |
| 6451 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6452 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6453 | <Original> |
| 6454 | Catch::toString(vv) == "{ 42, 512 }" |
| 6455 | </Original> |
| 6456 | <Expanded> |
| 6457 | "{ 42, 512 }" == "{ 42, 512 }" |
| 6458 | </Expanded> |
| 6459 | </Expression> |
| 6460 | <OverallResult success="true"/> |
| 6461 | </TestCase> |
| 6462 | <TestCase name="vec<vec<string,alloc>> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6463 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6464 | <Original> |
| 6465 | Catch::toString(v) == "{ }" |
| 6466 | </Original> |
| 6467 | <Expanded> |
| 6468 | "{ }" == "{ }" |
| 6469 | </Expanded> |
| 6470 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6471 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6472 | <Original> |
| 6473 | Catch::toString(v) == "{ { \"hello\" }, { \"world\" } }" |
| 6474 | </Original> |
| 6475 | <Expanded> |
| 6476 | "{ { "hello" }, { "world" } }" |
| 6477 | == |
| 6478 | "{ { "hello" }, { "world" } }" |
| 6479 | </Expanded> |
| 6480 | </Expression> |
| 6481 | <OverallResult success="true"/> |
| 6482 | </TestCase> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6483 | <TestCase name="Parse test names and tags"> |
| 6484 | <Section name="Empty test spec should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6485 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6486 | <Original> |
| 6487 | spec.hasFilters() == false |
| 6488 | </Original> |
| 6489 | <Expanded> |
| 6490 | false == false |
| 6491 | </Expanded> |
| 6492 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6493 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6494 | <Original> |
| 6495 | spec.matches( tcA ) == false |
| 6496 | </Original> |
| 6497 | <Expanded> |
| 6498 | false == false |
| 6499 | </Expanded> |
| 6500 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6501 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6502 | <Original> |
| 6503 | spec.matches( tcB ) == false |
| 6504 | </Original> |
| 6505 | <Expanded> |
| 6506 | false == false |
| 6507 | </Expanded> |
| 6508 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6509 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6510 | </Section> |
| 6511 | <Section name="Test spec from empty string should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6512 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6513 | <Original> |
| 6514 | spec.hasFilters() == false |
| 6515 | </Original> |
| 6516 | <Expanded> |
| 6517 | false == false |
| 6518 | </Expanded> |
| 6519 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6520 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6521 | <Original> |
| 6522 | spec.matches(tcA ) == false |
| 6523 | </Original> |
| 6524 | <Expanded> |
| 6525 | false == false |
| 6526 | </Expanded> |
| 6527 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6528 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6529 | <Original> |
| 6530 | spec.matches( tcB ) == false |
| 6531 | </Original> |
| 6532 | <Expanded> |
| 6533 | false == false |
| 6534 | </Expanded> |
| 6535 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6536 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6537 | </Section> |
| 6538 | <Section name="Test spec from just a comma should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6539 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6540 | <Original> |
| 6541 | spec.hasFilters() == false |
| 6542 | </Original> |
| 6543 | <Expanded> |
| 6544 | false == false |
| 6545 | </Expanded> |
| 6546 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6547 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6548 | <Original> |
| 6549 | spec.matches( tcA ) == false |
| 6550 | </Original> |
| 6551 | <Expanded> |
| 6552 | false == false |
| 6553 | </Expanded> |
| 6554 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6555 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6556 | <Original> |
| 6557 | spec.matches( tcB ) == false |
| 6558 | </Original> |
| 6559 | <Expanded> |
| 6560 | false == false |
| 6561 | </Expanded> |
| 6562 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6563 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6564 | </Section> |
| 6565 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6566 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6567 | <Original> |
| 6568 | spec.hasFilters() == true |
| 6569 | </Original> |
| 6570 | <Expanded> |
| 6571 | true == true |
| 6572 | </Expanded> |
| 6573 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6574 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6575 | <Original> |
| 6576 | spec.matches( tcA ) == false |
| 6577 | </Original> |
| 6578 | <Expanded> |
| 6579 | false == false |
| 6580 | </Expanded> |
| 6581 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6582 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6583 | <Original> |
| 6584 | spec.matches( tcB ) == true |
| 6585 | </Original> |
| 6586 | <Expanded> |
| 6587 | true == true |
| 6588 | </Expanded> |
| 6589 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6590 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6591 | </Section> |
| 6592 | <Section name="Test spec from quoted name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6593 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6594 | <Original> |
| 6595 | spec.hasFilters() == true |
| 6596 | </Original> |
| 6597 | <Expanded> |
| 6598 | true == true |
| 6599 | </Expanded> |
| 6600 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6601 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6602 | <Original> |
| 6603 | spec.matches( tcA ) == false |
| 6604 | </Original> |
| 6605 | <Expanded> |
| 6606 | false == false |
| 6607 | </Expanded> |
| 6608 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6609 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6610 | <Original> |
| 6611 | spec.matches( tcB ) == true |
| 6612 | </Original> |
| 6613 | <Expanded> |
| 6614 | true == true |
| 6615 | </Expanded> |
| 6616 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6617 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6618 | </Section> |
| 6619 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6620 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6621 | <Original> |
| 6622 | spec.hasFilters() == true |
| 6623 | </Original> |
| 6624 | <Expanded> |
| 6625 | true == true |
| 6626 | </Expanded> |
| 6627 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6628 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6629 | <Original> |
| 6630 | spec.matches( tcA ) == false |
| 6631 | </Original> |
| 6632 | <Expanded> |
| 6633 | false == false |
| 6634 | </Expanded> |
| 6635 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6636 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6637 | <Original> |
| 6638 | spec.matches( tcB ) == true |
| 6639 | </Original> |
| 6640 | <Expanded> |
| 6641 | true == true |
| 6642 | </Expanded> |
| 6643 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6644 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6645 | <Original> |
| 6646 | spec.matches( tcC ) == false |
| 6647 | </Original> |
| 6648 | <Expanded> |
| 6649 | false == false |
| 6650 | </Expanded> |
| 6651 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6652 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6653 | </Section> |
| 6654 | <Section name="Wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6655 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6656 | <Original> |
| 6657 | spec.hasFilters() == true |
| 6658 | </Original> |
| 6659 | <Expanded> |
| 6660 | true == true |
| 6661 | </Expanded> |
| 6662 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6663 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6664 | <Original> |
| 6665 | spec.matches( tcA ) == false |
| 6666 | </Original> |
| 6667 | <Expanded> |
| 6668 | false == false |
| 6669 | </Expanded> |
| 6670 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6671 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6672 | <Original> |
| 6673 | spec.matches( tcB ) == false |
| 6674 | </Original> |
| 6675 | <Expanded> |
| 6676 | false == false |
| 6677 | </Expanded> |
| 6678 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6679 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6680 | <Original> |
| 6681 | spec.matches( tcC ) == true |
| 6682 | </Original> |
| 6683 | <Expanded> |
| 6684 | true == true |
| 6685 | </Expanded> |
| 6686 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6687 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6688 | <Original> |
| 6689 | spec.matches( tcD ) == false |
| 6690 | </Original> |
| 6691 | <Expanded> |
| 6692 | false == false |
| 6693 | </Expanded> |
| 6694 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6695 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6696 | <Original> |
| 6697 | parseTestSpec( "*a" ).matches( tcA ) == true |
| 6698 | </Original> |
| 6699 | <Expanded> |
| 6700 | true == true |
| 6701 | </Expanded> |
| 6702 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6703 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6704 | </Section> |
| 6705 | <Section name="Wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6706 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6707 | <Original> |
| 6708 | spec.hasFilters() == true |
| 6709 | </Original> |
| 6710 | <Expanded> |
| 6711 | true == true |
| 6712 | </Expanded> |
| 6713 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6714 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6715 | <Original> |
| 6716 | spec.matches( tcA ) == false |
| 6717 | </Original> |
| 6718 | <Expanded> |
| 6719 | false == false |
| 6720 | </Expanded> |
| 6721 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6722 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6723 | <Original> |
| 6724 | spec.matches( tcB ) == false |
| 6725 | </Original> |
| 6726 | <Expanded> |
| 6727 | false == false |
| 6728 | </Expanded> |
| 6729 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6730 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6731 | <Original> |
| 6732 | spec.matches( tcC ) == true |
| 6733 | </Original> |
| 6734 | <Expanded> |
| 6735 | true == true |
| 6736 | </Expanded> |
| 6737 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6738 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6739 | <Original> |
| 6740 | spec.matches( tcD ) == false |
| 6741 | </Original> |
| 6742 | <Expanded> |
| 6743 | false == false |
| 6744 | </Expanded> |
| 6745 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6746 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6747 | <Original> |
| 6748 | parseTestSpec( "a*" ).matches( tcA ) == true |
| 6749 | </Original> |
| 6750 | <Expanded> |
| 6751 | true == true |
| 6752 | </Expanded> |
| 6753 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6754 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6755 | </Section> |
| 6756 | <Section name="Wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6757 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6758 | <Original> |
| 6759 | spec.hasFilters() == true |
| 6760 | </Original> |
| 6761 | <Expanded> |
| 6762 | true == true |
| 6763 | </Expanded> |
| 6764 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6765 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6766 | <Original> |
| 6767 | spec.matches( tcA ) == false |
| 6768 | </Original> |
| 6769 | <Expanded> |
| 6770 | false == false |
| 6771 | </Expanded> |
| 6772 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6773 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6774 | <Original> |
| 6775 | spec.matches( tcB ) == false |
| 6776 | </Original> |
| 6777 | <Expanded> |
| 6778 | false == false |
| 6779 | </Expanded> |
| 6780 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6781 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6782 | <Original> |
| 6783 | spec.matches( tcC ) == true |
| 6784 | </Original> |
| 6785 | <Expanded> |
| 6786 | true == true |
| 6787 | </Expanded> |
| 6788 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6789 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6790 | <Original> |
| 6791 | spec.matches( tcD ) == true |
| 6792 | </Original> |
| 6793 | <Expanded> |
| 6794 | true == true |
| 6795 | </Expanded> |
| 6796 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6797 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6798 | <Original> |
| 6799 | parseTestSpec( "*a*" ).matches( tcA ) == true |
| 6800 | </Original> |
| 6801 | <Expanded> |
| 6802 | true == true |
| 6803 | </Expanded> |
| 6804 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6805 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6806 | </Section> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6807 | <Section name="Redundant wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6808 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6809 | <Original> |
| 6810 | spec.hasFilters() == true |
| 6811 | </Original> |
| 6812 | <Expanded> |
| 6813 | true == true |
| 6814 | </Expanded> |
| 6815 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6816 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6817 | <Original> |
| 6818 | spec.matches( tcA ) == true |
| 6819 | </Original> |
| 6820 | <Expanded> |
| 6821 | true == true |
| 6822 | </Expanded> |
| 6823 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6824 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6825 | <Original> |
| 6826 | spec.matches( tcB ) == false |
| 6827 | </Original> |
| 6828 | <Expanded> |
| 6829 | false == false |
| 6830 | </Expanded> |
| 6831 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6832 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6833 | </Section> |
| 6834 | <Section name="Redundant wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6835 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6836 | <Original> |
| 6837 | spec.hasFilters() == true |
| 6838 | </Original> |
| 6839 | <Expanded> |
| 6840 | true == true |
| 6841 | </Expanded> |
| 6842 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6843 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6844 | <Original> |
| 6845 | spec.matches( tcA ) == true |
| 6846 | </Original> |
| 6847 | <Expanded> |
| 6848 | true == true |
| 6849 | </Expanded> |
| 6850 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6851 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6852 | <Original> |
| 6853 | spec.matches( tcB ) == false |
| 6854 | </Original> |
| 6855 | <Expanded> |
| 6856 | false == false |
| 6857 | </Expanded> |
| 6858 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6859 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6860 | </Section> |
| 6861 | <Section name="Redundant wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6862 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6863 | <Original> |
| 6864 | spec.hasFilters() == true |
| 6865 | </Original> |
| 6866 | <Expanded> |
| 6867 | true == true |
| 6868 | </Expanded> |
| 6869 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6870 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6871 | <Original> |
| 6872 | spec.matches( tcA ) == true |
| 6873 | </Original> |
| 6874 | <Expanded> |
| 6875 | true == true |
| 6876 | </Expanded> |
| 6877 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6878 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6879 | <Original> |
| 6880 | spec.matches( tcB ) == false |
| 6881 | </Original> |
| 6882 | <Expanded> |
| 6883 | false == false |
| 6884 | </Expanded> |
| 6885 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6886 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6887 | </Section> |
| 6888 | <Section name="Wildcard at both ends, redundant at start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6889 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6890 | <Original> |
| 6891 | spec.hasFilters() == true |
| 6892 | </Original> |
| 6893 | <Expanded> |
| 6894 | true == true |
| 6895 | </Expanded> |
| 6896 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6897 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6898 | <Original> |
| 6899 | spec.matches( tcA ) == false |
| 6900 | </Original> |
| 6901 | <Expanded> |
| 6902 | false == false |
| 6903 | </Expanded> |
| 6904 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6905 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6906 | <Original> |
| 6907 | spec.matches( tcB ) == false |
| 6908 | </Original> |
| 6909 | <Expanded> |
| 6910 | false == false |
| 6911 | </Expanded> |
| 6912 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6913 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6914 | <Original> |
| 6915 | spec.matches( tcC ) == true |
| 6916 | </Original> |
| 6917 | <Expanded> |
| 6918 | true == true |
| 6919 | </Expanded> |
| 6920 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6921 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6922 | <Original> |
| 6923 | spec.matches( tcD ) == true |
| 6924 | </Original> |
| 6925 | <Expanded> |
| 6926 | true == true |
| 6927 | </Expanded> |
| 6928 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6929 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6930 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6931 | <Section name="Just wildcard"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6932 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6933 | <Original> |
| 6934 | spec.hasFilters() == true |
| 6935 | </Original> |
| 6936 | <Expanded> |
| 6937 | true == true |
| 6938 | </Expanded> |
| 6939 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6940 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6941 | <Original> |
| 6942 | spec.matches( tcA ) == true |
| 6943 | </Original> |
| 6944 | <Expanded> |
| 6945 | true == true |
| 6946 | </Expanded> |
| 6947 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6948 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6949 | <Original> |
| 6950 | spec.matches( tcB ) == true |
| 6951 | </Original> |
| 6952 | <Expanded> |
| 6953 | true == true |
| 6954 | </Expanded> |
| 6955 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6956 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6957 | <Original> |
| 6958 | spec.matches( tcC ) == true |
| 6959 | </Original> |
| 6960 | <Expanded> |
| 6961 | true == true |
| 6962 | </Expanded> |
| 6963 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6964 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6965 | <Original> |
| 6966 | spec.matches( tcD ) == true |
| 6967 | </Original> |
| 6968 | <Expanded> |
| 6969 | true == true |
| 6970 | </Expanded> |
| 6971 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6972 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6973 | </Section> |
| 6974 | <Section name="Single tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6975 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6976 | <Original> |
| 6977 | spec.hasFilters() == true |
| 6978 | </Original> |
| 6979 | <Expanded> |
| 6980 | true == true |
| 6981 | </Expanded> |
| 6982 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6983 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6984 | <Original> |
| 6985 | spec.matches( tcA ) == false |
| 6986 | </Original> |
| 6987 | <Expanded> |
| 6988 | false == false |
| 6989 | </Expanded> |
| 6990 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6991 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6992 | <Original> |
| 6993 | spec.matches( tcB ) == true |
| 6994 | </Original> |
| 6995 | <Expanded> |
| 6996 | true == true |
| 6997 | </Expanded> |
| 6998 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6999 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7000 | <Original> |
| 7001 | spec.matches( tcC ) == false |
| 7002 | </Original> |
| 7003 | <Expanded> |
| 7004 | false == false |
| 7005 | </Expanded> |
| 7006 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7007 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7008 | </Section> |
| 7009 | <Section name="Single tag, two matches"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7010 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7011 | <Original> |
| 7012 | spec.hasFilters() == true |
| 7013 | </Original> |
| 7014 | <Expanded> |
| 7015 | true == true |
| 7016 | </Expanded> |
| 7017 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7018 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7019 | <Original> |
| 7020 | spec.matches( tcA ) == false |
| 7021 | </Original> |
| 7022 | <Expanded> |
| 7023 | false == false |
| 7024 | </Expanded> |
| 7025 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7026 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7027 | <Original> |
| 7028 | spec.matches( tcB ) == true |
| 7029 | </Original> |
| 7030 | <Expanded> |
| 7031 | true == true |
| 7032 | </Expanded> |
| 7033 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7034 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7035 | <Original> |
| 7036 | spec.matches( tcC ) == true |
| 7037 | </Original> |
| 7038 | <Expanded> |
| 7039 | true == true |
| 7040 | </Expanded> |
| 7041 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7042 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7043 | </Section> |
| 7044 | <Section name="Two tags"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7045 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7046 | <Original> |
| 7047 | spec.hasFilters() == true |
| 7048 | </Original> |
| 7049 | <Expanded> |
| 7050 | true == true |
| 7051 | </Expanded> |
| 7052 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7053 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7054 | <Original> |
| 7055 | spec.matches( tcA ) == false |
| 7056 | </Original> |
| 7057 | <Expanded> |
| 7058 | false == false |
| 7059 | </Expanded> |
| 7060 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7061 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7062 | <Original> |
| 7063 | spec.matches( tcB ) == false |
| 7064 | </Original> |
| 7065 | <Expanded> |
| 7066 | false == false |
| 7067 | </Expanded> |
| 7068 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7069 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7070 | <Original> |
| 7071 | spec.matches( tcC ) == true |
| 7072 | </Original> |
| 7073 | <Expanded> |
| 7074 | true == true |
| 7075 | </Expanded> |
| 7076 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7077 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7078 | </Section> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7079 | <Section name="Two tags, spare separated"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7080 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7081 | <Original> |
| 7082 | spec.hasFilters() == true |
| 7083 | </Original> |
| 7084 | <Expanded> |
| 7085 | true == true |
| 7086 | </Expanded> |
| 7087 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7088 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7089 | <Original> |
| 7090 | spec.matches( tcA ) == false |
| 7091 | </Original> |
| 7092 | <Expanded> |
| 7093 | false == false |
| 7094 | </Expanded> |
| 7095 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7096 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7097 | <Original> |
| 7098 | spec.matches( tcB ) == false |
| 7099 | </Original> |
| 7100 | <Expanded> |
| 7101 | false == false |
| 7102 | </Expanded> |
| 7103 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7104 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7105 | <Original> |
| 7106 | spec.matches( tcC ) == true |
| 7107 | </Original> |
| 7108 | <Expanded> |
| 7109 | true == true |
| 7110 | </Expanded> |
| 7111 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7112 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7113 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7114 | <Section name="Wildcarded name and tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7115 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7116 | <Original> |
| 7117 | spec.hasFilters() == true |
| 7118 | </Original> |
| 7119 | <Expanded> |
| 7120 | true == true |
| 7121 | </Expanded> |
| 7122 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7123 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7124 | <Original> |
| 7125 | spec.matches( tcA ) == false |
| 7126 | </Original> |
| 7127 | <Expanded> |
| 7128 | false == false |
| 7129 | </Expanded> |
| 7130 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7131 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7132 | <Original> |
| 7133 | spec.matches( tcB ) == false |
| 7134 | </Original> |
| 7135 | <Expanded> |
| 7136 | false == false |
| 7137 | </Expanded> |
| 7138 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7139 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7140 | <Original> |
| 7141 | spec.matches( tcC ) == true |
| 7142 | </Original> |
| 7143 | <Expanded> |
| 7144 | true == true |
| 7145 | </Expanded> |
| 7146 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7147 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7148 | <Original> |
| 7149 | spec.matches( tcD ) == false |
| 7150 | </Original> |
| 7151 | <Expanded> |
| 7152 | false == false |
| 7153 | </Expanded> |
| 7154 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7155 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7156 | </Section> |
| 7157 | <Section name="Single tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7158 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7159 | <Original> |
| 7160 | spec.hasFilters() == true |
| 7161 | </Original> |
| 7162 | <Expanded> |
| 7163 | true == true |
| 7164 | </Expanded> |
| 7165 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7166 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7167 | <Original> |
| 7168 | spec.matches( tcA ) == true |
| 7169 | </Original> |
| 7170 | <Expanded> |
| 7171 | true == true |
| 7172 | </Expanded> |
| 7173 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7174 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7175 | <Original> |
| 7176 | spec.matches( tcB ) == false |
| 7177 | </Original> |
| 7178 | <Expanded> |
| 7179 | false == false |
| 7180 | </Expanded> |
| 7181 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7182 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7183 | <Original> |
| 7184 | spec.matches( tcC ) == true |
| 7185 | </Original> |
| 7186 | <Expanded> |
| 7187 | true == true |
| 7188 | </Expanded> |
| 7189 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7190 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7191 | </Section> |
| 7192 | <Section name="One tag exclusion and one tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7193 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7194 | <Original> |
| 7195 | spec.hasFilters() == true |
| 7196 | </Original> |
| 7197 | <Expanded> |
| 7198 | true == true |
| 7199 | </Expanded> |
| 7200 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7201 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7202 | <Original> |
| 7203 | spec.matches( tcA ) == false |
| 7204 | </Original> |
| 7205 | <Expanded> |
| 7206 | false == false |
| 7207 | </Expanded> |
| 7208 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7209 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7210 | <Original> |
| 7211 | spec.matches( tcB ) == true |
| 7212 | </Original> |
| 7213 | <Expanded> |
| 7214 | true == true |
| 7215 | </Expanded> |
| 7216 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7217 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7218 | <Original> |
| 7219 | spec.matches( tcC ) == false |
| 7220 | </Original> |
| 7221 | <Expanded> |
| 7222 | false == false |
| 7223 | </Expanded> |
| 7224 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7225 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7226 | </Section> |
| 7227 | <Section name="One tag exclusion and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7228 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7229 | <Original> |
| 7230 | spec.hasFilters() == true |
| 7231 | </Original> |
| 7232 | <Expanded> |
| 7233 | true == true |
| 7234 | </Expanded> |
| 7235 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7236 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7237 | <Original> |
| 7238 | spec.matches( tcA ) == false |
| 7239 | </Original> |
| 7240 | <Expanded> |
| 7241 | false == false |
| 7242 | </Expanded> |
| 7243 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7244 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7245 | <Original> |
| 7246 | spec.matches( tcB ) == false |
| 7247 | </Original> |
| 7248 | <Expanded> |
| 7249 | false == false |
| 7250 | </Expanded> |
| 7251 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7252 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7253 | <Original> |
| 7254 | spec.matches( tcC ) == false |
| 7255 | </Original> |
| 7256 | <Expanded> |
| 7257 | false == false |
| 7258 | </Expanded> |
| 7259 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7260 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7261 | <Original> |
| 7262 | spec.matches( tcD ) == true |
| 7263 | </Original> |
| 7264 | <Expanded> |
| 7265 | true == true |
| 7266 | </Expanded> |
| 7267 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7268 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7269 | </Section> |
| 7270 | <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7271 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7272 | <Original> |
| 7273 | spec.hasFilters() == true |
| 7274 | </Original> |
| 7275 | <Expanded> |
| 7276 | true == true |
| 7277 | </Expanded> |
| 7278 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7279 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7280 | <Original> |
| 7281 | spec.matches( tcA ) == false |
| 7282 | </Original> |
| 7283 | <Expanded> |
| 7284 | false == false |
| 7285 | </Expanded> |
| 7286 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7287 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7288 | <Original> |
| 7289 | spec.matches( tcB ) == false |
| 7290 | </Original> |
| 7291 | <Expanded> |
| 7292 | false == false |
| 7293 | </Expanded> |
| 7294 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7295 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7296 | <Original> |
| 7297 | spec.matches( tcC ) == false |
| 7298 | </Original> |
| 7299 | <Expanded> |
| 7300 | false == false |
| 7301 | </Expanded> |
| 7302 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7303 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7304 | <Original> |
| 7305 | spec.matches( tcD ) == true |
| 7306 | </Original> |
| 7307 | <Expanded> |
| 7308 | true == true |
| 7309 | </Expanded> |
| 7310 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7311 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7312 | </Section> |
| 7313 | <Section name="name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7314 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7315 | <Original> |
| 7316 | spec.hasFilters() == true |
| 7317 | </Original> |
| 7318 | <Expanded> |
| 7319 | true == true |
| 7320 | </Expanded> |
| 7321 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7322 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7323 | <Original> |
| 7324 | spec.matches( tcA ) == true |
| 7325 | </Original> |
| 7326 | <Expanded> |
| 7327 | true == true |
| 7328 | </Expanded> |
| 7329 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7330 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7331 | <Original> |
| 7332 | spec.matches( tcB ) == false |
| 7333 | </Original> |
| 7334 | <Expanded> |
| 7335 | false == false |
| 7336 | </Expanded> |
| 7337 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7338 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7339 | <Original> |
| 7340 | spec.matches( tcC ) == true |
| 7341 | </Original> |
| 7342 | <Expanded> |
| 7343 | true == true |
| 7344 | </Expanded> |
| 7345 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7346 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7347 | <Original> |
| 7348 | spec.matches( tcD ) == true |
| 7349 | </Original> |
| 7350 | <Expanded> |
| 7351 | true == true |
| 7352 | </Expanded> |
| 7353 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7354 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7355 | </Section> |
| 7356 | <Section name="wildcarded name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7357 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7358 | <Original> |
| 7359 | spec.hasFilters() == true |
| 7360 | </Original> |
| 7361 | <Expanded> |
| 7362 | true == true |
| 7363 | </Expanded> |
| 7364 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7365 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7366 | <Original> |
| 7367 | spec.matches( tcA ) == true |
| 7368 | </Original> |
| 7369 | <Expanded> |
| 7370 | true == true |
| 7371 | </Expanded> |
| 7372 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7373 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7374 | <Original> |
| 7375 | spec.matches( tcB ) == true |
| 7376 | </Original> |
| 7377 | <Expanded> |
| 7378 | true == true |
| 7379 | </Expanded> |
| 7380 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7381 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7382 | <Original> |
| 7383 | spec.matches( tcC ) == false |
| 7384 | </Original> |
| 7385 | <Expanded> |
| 7386 | false == false |
| 7387 | </Expanded> |
| 7388 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7389 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7390 | <Original> |
| 7391 | spec.matches( tcD ) == false |
| 7392 | </Original> |
| 7393 | <Expanded> |
| 7394 | false == false |
| 7395 | </Expanded> |
| 7396 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7397 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7398 | </Section> |
| 7399 | <Section name="wildcarded name exclusion with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7400 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7401 | <Original> |
| 7402 | spec.hasFilters() == true |
| 7403 | </Original> |
| 7404 | <Expanded> |
| 7405 | true == true |
| 7406 | </Expanded> |
| 7407 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7408 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7409 | <Original> |
| 7410 | spec.matches( tcA ) == true |
| 7411 | </Original> |
| 7412 | <Expanded> |
| 7413 | true == true |
| 7414 | </Expanded> |
| 7415 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7416 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7417 | <Original> |
| 7418 | spec.matches( tcB ) == true |
| 7419 | </Original> |
| 7420 | <Expanded> |
| 7421 | true == true |
| 7422 | </Expanded> |
| 7423 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7424 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7425 | <Original> |
| 7426 | spec.matches( tcC ) == true |
| 7427 | </Original> |
| 7428 | <Expanded> |
| 7429 | true == true |
| 7430 | </Expanded> |
| 7431 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7432 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7433 | <Original> |
| 7434 | spec.matches( tcD ) == false |
| 7435 | </Original> |
| 7436 | <Expanded> |
| 7437 | false == false |
| 7438 | </Expanded> |
| 7439 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7440 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7441 | </Section> |
| 7442 | <Section name="wildcarded name exclusion, using exclude:, with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7443 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7444 | <Original> |
| 7445 | spec.hasFilters() == true |
| 7446 | </Original> |
| 7447 | <Expanded> |
| 7448 | true == true |
| 7449 | </Expanded> |
| 7450 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7451 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7452 | <Original> |
| 7453 | spec.matches( tcA ) == true |
| 7454 | </Original> |
| 7455 | <Expanded> |
| 7456 | true == true |
| 7457 | </Expanded> |
| 7458 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7459 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7460 | <Original> |
| 7461 | spec.matches( tcB ) == true |
| 7462 | </Original> |
| 7463 | <Expanded> |
| 7464 | true == true |
| 7465 | </Expanded> |
| 7466 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7467 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7468 | <Original> |
| 7469 | spec.matches( tcC ) == true |
| 7470 | </Original> |
| 7471 | <Expanded> |
| 7472 | true == true |
| 7473 | </Expanded> |
| 7474 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7475 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7476 | <Original> |
| 7477 | spec.matches( tcD ) == false |
| 7478 | </Original> |
| 7479 | <Expanded> |
| 7480 | false == false |
| 7481 | </Expanded> |
| 7482 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7483 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7484 | </Section> |
| 7485 | <Section name="two wildcarded names"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7486 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7487 | <Original> |
| 7488 | spec.hasFilters() == true |
| 7489 | </Original> |
| 7490 | <Expanded> |
| 7491 | true == true |
| 7492 | </Expanded> |
| 7493 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7494 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7495 | <Original> |
| 7496 | spec.matches( tcA ) == false |
| 7497 | </Original> |
| 7498 | <Expanded> |
| 7499 | false == false |
| 7500 | </Expanded> |
| 7501 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7502 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7503 | <Original> |
| 7504 | spec.matches( tcB ) == false |
| 7505 | </Original> |
| 7506 | <Expanded> |
| 7507 | false == false |
| 7508 | </Expanded> |
| 7509 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7510 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7511 | <Original> |
| 7512 | spec.matches( tcC ) == true |
| 7513 | </Original> |
| 7514 | <Expanded> |
| 7515 | true == true |
| 7516 | </Expanded> |
| 7517 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7518 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7519 | <Original> |
| 7520 | spec.matches( tcD ) == false |
| 7521 | </Original> |
| 7522 | <Expanded> |
| 7523 | false == false |
| 7524 | </Expanded> |
| 7525 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7526 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7527 | </Section> |
| 7528 | <Section name="empty tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7529 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7530 | <Original> |
| 7531 | spec.hasFilters() == false |
| 7532 | </Original> |
| 7533 | <Expanded> |
| 7534 | false == false |
| 7535 | </Expanded> |
| 7536 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7537 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7538 | <Original> |
| 7539 | spec.matches( tcA ) == false |
| 7540 | </Original> |
| 7541 | <Expanded> |
| 7542 | false == false |
| 7543 | </Expanded> |
| 7544 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7545 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7546 | <Original> |
| 7547 | spec.matches( tcB ) == false |
| 7548 | </Original> |
| 7549 | <Expanded> |
| 7550 | false == false |
| 7551 | </Expanded> |
| 7552 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7553 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7554 | <Original> |
| 7555 | spec.matches( tcC ) == false |
| 7556 | </Original> |
| 7557 | <Expanded> |
| 7558 | false == false |
| 7559 | </Expanded> |
| 7560 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7561 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7562 | <Original> |
| 7563 | spec.matches( tcD ) == false |
| 7564 | </Original> |
| 7565 | <Expanded> |
| 7566 | false == false |
| 7567 | </Expanded> |
| 7568 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7569 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7570 | </Section> |
| 7571 | <Section name="empty quoted name"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7572 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7573 | <Original> |
| 7574 | spec.hasFilters() == false |
| 7575 | </Original> |
| 7576 | <Expanded> |
| 7577 | false == false |
| 7578 | </Expanded> |
| 7579 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7580 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7581 | <Original> |
| 7582 | spec.matches( tcA ) == false |
| 7583 | </Original> |
| 7584 | <Expanded> |
| 7585 | false == false |
| 7586 | </Expanded> |
| 7587 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7588 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7589 | <Original> |
| 7590 | spec.matches( tcB ) == false |
| 7591 | </Original> |
| 7592 | <Expanded> |
| 7593 | false == false |
| 7594 | </Expanded> |
| 7595 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7596 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7597 | <Original> |
| 7598 | spec.matches( tcC ) == false |
| 7599 | </Original> |
| 7600 | <Expanded> |
| 7601 | false == false |
| 7602 | </Expanded> |
| 7603 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7604 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7605 | <Original> |
| 7606 | spec.matches( tcD ) == false |
| 7607 | </Original> |
| 7608 | <Expanded> |
| 7609 | false == false |
| 7610 | </Expanded> |
| 7611 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7612 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7613 | </Section> |
| 7614 | <Section name="quoted string followed by tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7615 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7616 | <Original> |
| 7617 | spec.hasFilters() == true |
| 7618 | </Original> |
| 7619 | <Expanded> |
| 7620 | true == true |
| 7621 | </Expanded> |
| 7622 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7623 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7624 | <Original> |
| 7625 | spec.matches( tcA ) == false |
| 7626 | </Original> |
| 7627 | <Expanded> |
| 7628 | false == false |
| 7629 | </Expanded> |
| 7630 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7631 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7632 | <Original> |
| 7633 | spec.matches( tcB ) == false |
| 7634 | </Original> |
| 7635 | <Expanded> |
| 7636 | false == false |
| 7637 | </Expanded> |
| 7638 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7639 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7640 | <Original> |
| 7641 | spec.matches( tcC ) == false |
| 7642 | </Original> |
| 7643 | <Expanded> |
| 7644 | false == false |
| 7645 | </Expanded> |
| 7646 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7647 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7648 | <Original> |
| 7649 | spec.matches( tcD ) == true |
| 7650 | </Original> |
| 7651 | <Expanded> |
| 7652 | true == true |
| 7653 | </Expanded> |
| 7654 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7655 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7656 | </Section> |
| 7657 | <OverallResult success="true"/> |
| 7658 | </TestCase> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame^] | 7659 | <TestCase name="tuple<>"> |
| 7660 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7661 | <Original> |
| 7662 | "{ }" == Catch::toString(type{}) |
| 7663 | </Original> |
| 7664 | <Expanded> |
| 7665 | "{ }" == "{ }" |
| 7666 | </Expanded> |
| 7667 | </Expression> |
| 7668 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7669 | <Original> |
| 7670 | "{ }" == Catch::toString(value) |
| 7671 | </Original> |
| 7672 | <Expanded> |
| 7673 | "{ }" == "{ }" |
| 7674 | </Expanded> |
| 7675 | </Expression> |
| 7676 | <OverallResult success="true"/> |
| 7677 | </TestCase> |
| 7678 | <TestCase name="tuple<int>"> |
| 7679 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7680 | <Original> |
| 7681 | "{ 0 }" == Catch::toString(type{0}) |
| 7682 | </Original> |
| 7683 | <Expanded> |
| 7684 | "{ 0 }" == "{ 0 }" |
| 7685 | </Expanded> |
| 7686 | </Expression> |
| 7687 | <OverallResult success="true"/> |
| 7688 | </TestCase> |
| 7689 | <TestCase name="tuple<float,int>"> |
| 7690 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7691 | <Original> |
| 7692 | "1.2f" == Catch::toString(float(1.2)) |
| 7693 | </Original> |
| 7694 | <Expanded> |
| 7695 | "1.2f" == "1.2f" |
| 7696 | </Expanded> |
| 7697 | </Expression> |
| 7698 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7699 | <Original> |
| 7700 | "{ 1.2f, 0 }" == Catch::toString(type{1.2,0}) |
| 7701 | </Original> |
| 7702 | <Expanded> |
| 7703 | "{ 1.2f, 0 }" == "{ 1.2f, 0 }" |
| 7704 | </Expanded> |
| 7705 | </Expression> |
| 7706 | <OverallResult success="true"/> |
| 7707 | </TestCase> |
| 7708 | <TestCase name="tuple<string,string>"> |
| 7709 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7710 | <Original> |
| 7711 | "{ \"hello\", \"world\" }" == Catch::toString(type{"hello","world"}) |
| 7712 | </Original> |
| 7713 | <Expanded> |
| 7714 | "{ "hello", "world" }" |
| 7715 | == |
| 7716 | "{ "hello", "world" }" |
| 7717 | </Expanded> |
| 7718 | </Expression> |
| 7719 | <OverallResult success="true"/> |
| 7720 | </TestCase> |
| 7721 | <TestCase name="tuple<tuple<int>,tuple<>,float>"> |
| 7722 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7723 | <Original> |
| 7724 | "{ { 42 }, { }, 1.2f }" == Catch::toString(value) |
| 7725 | </Original> |
| 7726 | <Expanded> |
| 7727 | "{ { 42 }, { }, 1.2f }" |
| 7728 | == |
| 7729 | "{ { 42 }, { }, 1.2f }" |
| 7730 | </Expanded> |
| 7731 | </Expression> |
| 7732 | <OverallResult success="true"/> |
| 7733 | </TestCase> |
| 7734 | <TestCase name="tuple<nullptr,int,const char *>"> |
| 7735 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7736 | <Original> |
| 7737 | "{ nullptr, 42, \"Catch me\" }" == Catch::toString(value) |
| 7738 | </Original> |
| 7739 | <Expanded> |
| 7740 | "{ nullptr, 42, "Catch me" }" |
| 7741 | == |
| 7742 | "{ nullptr, 42, "Catch me" }" |
| 7743 | </Expanded> |
| 7744 | </Expression> |
| 7745 | <OverallResult success="true"/> |
| 7746 | </TestCase> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7747 | <TestCase name="Tag alias can be registered against tag patterns"> |
| 7748 | <Section name="The same tag alias can only be registered once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7749 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7750 | <Original> |
| 7751 | what Contains( "[@zzz]" ) |
| 7752 | </Original> |
| 7753 | <Expanded> |
| 7754 | "error: tag alias, "[@zzz]" already registered. |
| 7755 | First seen at file:2 |
| 7756 | Redefined at file:10" contains: "[@zzz]" |
| 7757 | </Expanded> |
| 7758 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7759 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7760 | <Original> |
| 7761 | what Contains( "file" ) |
| 7762 | </Original> |
| 7763 | <Expanded> |
| 7764 | "error: tag alias, "[@zzz]" already registered. |
| 7765 | First seen at file:2 |
| 7766 | Redefined at file:10" contains: "file" |
| 7767 | </Expanded> |
| 7768 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7769 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7770 | <Original> |
| 7771 | what Contains( "2" ) |
| 7772 | </Original> |
| 7773 | <Expanded> |
| 7774 | "error: tag alias, "[@zzz]" already registered. |
| 7775 | First seen at file:2 |
| 7776 | Redefined at file:10" contains: "2" |
| 7777 | </Expanded> |
| 7778 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7779 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7780 | <Original> |
| 7781 | what Contains( "10" ) |
| 7782 | </Original> |
| 7783 | <Expanded> |
| 7784 | "error: tag alias, "[@zzz]" already registered. |
| 7785 | First seen at file:2 |
| 7786 | Redefined at file:10" contains: "10" |
| 7787 | </Expanded> |
| 7788 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7789 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7790 | </Section> |
| 7791 | <Section name="Tag aliases must be of the form [@name]"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7792 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7793 | <Original> |
| 7794 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7795 | </Original> |
| 7796 | <Expanded> |
| 7797 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7798 | </Expanded> |
| 7799 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7800 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7801 | <Original> |
| 7802 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7803 | </Original> |
| 7804 | <Expanded> |
| 7805 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7806 | </Expanded> |
| 7807 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7808 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7809 | <Original> |
| 7810 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7811 | </Original> |
| 7812 | <Expanded> |
| 7813 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7814 | </Expanded> |
| 7815 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7816 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7817 | <Original> |
| 7818 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7819 | </Original> |
| 7820 | <Expanded> |
| 7821 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7822 | </Expanded> |
| 7823 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7824 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7825 | </Section> |
| 7826 | <OverallResult success="true"/> |
| 7827 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7828 | <TestCase name="Anonymous test case 1"> |
| 7829 | <OverallResult success="true"/> |
| 7830 | </TestCase> |
| 7831 | <TestCase name="Test case with one argument"> |
| 7832 | <OverallResult success="true"/> |
| 7833 | </TestCase> |
| 7834 | <TestCase name="Variadic macros"> |
| 7835 | <Section name="Section with one argument"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7836 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7837 | </Section> |
| 7838 | <OverallResult success="true"/> |
| 7839 | </TestCase> |
| 7840 | <TestCase name="Scenario: Do that thing with the thing"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7841 | <Section name="Given: This stuff exists"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7842 | <Section name="When: I do this"> |
| 7843 | <Section name="Then: it should do this"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7844 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7845 | <Original> |
| 7846 | itDoesThis() |
| 7847 | </Original> |
| 7848 | <Expanded> |
| 7849 | true |
| 7850 | </Expanded> |
| 7851 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7852 | <Section name="And: do that"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7853 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7854 | <Original> |
| 7855 | itDoesThat() |
| 7856 | </Original> |
| 7857 | <Expanded> |
| 7858 | true |
| 7859 | </Expanded> |
| 7860 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7861 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7862 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7863 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7864 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7865 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7866 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7867 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7868 | </Section> |
| 7869 | <OverallResult success="true"/> |
| 7870 | </TestCase> |
| 7871 | <TestCase name="Scenario: Vector resizing affects size and capacity"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7872 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7873 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7874 | <Original> |
| 7875 | v.size() == 0 |
| 7876 | </Original> |
| 7877 | <Expanded> |
| 7878 | 0 == 0 |
| 7879 | </Expanded> |
| 7880 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7881 | <Section name="When: it is made larger"> |
| 7882 | <Section name="Then: the size and capacity go up"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7883 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7884 | <Original> |
| 7885 | v.size() == 10 |
| 7886 | </Original> |
| 7887 | <Expanded> |
| 7888 | 10 == 10 |
| 7889 | </Expanded> |
| 7890 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7891 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7892 | <Original> |
| 7893 | v.capacity() >= 10 |
| 7894 | </Original> |
| 7895 | <Expanded> |
| 7896 | 10 >= 10 |
| 7897 | </Expanded> |
| 7898 | </Expression> |
| 7899 | <Section name="And when: it is made smaller again"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7900 | <Section name="Then: the size goes down but the capacity stays the same"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7901 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7902 | <Original> |
| 7903 | v.size() == 5 |
| 7904 | </Original> |
| 7905 | <Expanded> |
| 7906 | 5 == 5 |
| 7907 | </Expanded> |
| 7908 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7909 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7910 | <Original> |
| 7911 | v.capacity() >= 10 |
| 7912 | </Original> |
| 7913 | <Expanded> |
| 7914 | 10 >= 10 |
| 7915 | </Expanded> |
| 7916 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7917 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7918 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7919 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7920 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7921 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7922 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7923 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7924 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7925 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7926 | </Section> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7927 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7928 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7929 | <Original> |
| 7930 | v.size() == 0 |
| 7931 | </Original> |
| 7932 | <Expanded> |
| 7933 | 0 == 0 |
| 7934 | </Expanded> |
| 7935 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7936 | <Section name="When: we reserve more space"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7937 | <Section name="Then: The capacity is increased but the size remains the same"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7938 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7939 | <Original> |
| 7940 | v.capacity() >= 10 |
| 7941 | </Original> |
| 7942 | <Expanded> |
| 7943 | 10 >= 10 |
| 7944 | </Expanded> |
| 7945 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7946 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7947 | <Original> |
| 7948 | v.size() == 0 |
| 7949 | </Original> |
| 7950 | <Expanded> |
| 7951 | 0 == 0 |
| 7952 | </Expanded> |
| 7953 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7954 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7955 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7956 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7957 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7958 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7959 | </Section> |
| 7960 | <OverallResult success="true"/> |
| 7961 | </TestCase> |
| 7962 | <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7963 | <Section name="Given: A section name that is so long that it cannot fit in a single console width"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7964 | <Section name="When: The test headers are printed as part of the normal running of the scenario"> |
| 7965 | <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7966 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7967 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7968 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7969 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7970 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7971 | </Section> |
| 7972 | <OverallResult success="true"/> |
| 7973 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7974 | <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods"> |
| 7975 | <Section name="Given: No operations precede me"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7976 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7977 | <Original> |
| 7978 | before == 0 |
| 7979 | </Original> |
| 7980 | <Expanded> |
| 7981 | 0 == 0 |
| 7982 | </Expanded> |
| 7983 | </Expression> |
| 7984 | <Section name="When: We get the count"> |
| 7985 | <Section name="Then: Subsequently values are higher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7986 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7987 | <Original> |
| 7988 | after > before |
| 7989 | </Original> |
| 7990 | <Expanded> |
| 7991 | 1 > 0 |
| 7992 | </Expanded> |
| 7993 | </Expression> |
| 7994 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 7995 | </Section> |
| 7996 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 7997 | </Section> |
| 7998 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 7999 | </Section> |
| 8000 | <OverallResult success="true"/> |
| 8001 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8002 | <TestCase name="section tracking"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8003 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8004 | <Original> |
| 8005 | !testCaseTracker.isCompleted() |
| 8006 | </Original> |
| 8007 | <Expanded> |
| 8008 | !false |
| 8009 | </Expanded> |
| 8010 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8011 | <Section name="test case with no sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8012 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8013 | <Original> |
| 8014 | !testCaseTracker.isCompleted() |
| 8015 | </Original> |
| 8016 | <Expanded> |
| 8017 | !false |
| 8018 | </Expanded> |
| 8019 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8020 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8021 | <Original> |
| 8022 | testCaseTracker.isCompleted() |
| 8023 | </Original> |
| 8024 | <Expanded> |
| 8025 | true |
| 8026 | </Expanded> |
| 8027 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8028 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8029 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8030 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8031 | <Original> |
| 8032 | !testCaseTracker.isCompleted() |
| 8033 | </Original> |
| 8034 | <Expanded> |
| 8035 | !false |
| 8036 | </Expanded> |
| 8037 | </Expression> |
| 8038 | <Section name="test case with one section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8039 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8040 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8041 | testCaseTracker.enterSection( section1Name ) |
| 8042 | </Original> |
| 8043 | <Expanded> |
| 8044 | true |
| 8045 | </Expanded> |
| 8046 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8047 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8048 | <Original> |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8049 | !testCaseTracker.isCompleted() |
| 8050 | </Original> |
| 8051 | <Expanded> |
| 8052 | !false |
| 8053 | </Expanded> |
| 8054 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8055 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8056 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8057 | testCaseTracker.isCompleted() |
| 8058 | </Original> |
| 8059 | <Expanded> |
| 8060 | true |
| 8061 | </Expanded> |
| 8062 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8063 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8064 | <Original> |
| 8065 | !testCaseTracker.enterSection( section1Name ) |
| 8066 | </Original> |
| 8067 | <Expanded> |
| 8068 | !false |
| 8069 | </Expanded> |
| 8070 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8071 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8072 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8073 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8074 | <Original> |
| 8075 | !testCaseTracker.isCompleted() |
| 8076 | </Original> |
| 8077 | <Expanded> |
| 8078 | !false |
| 8079 | </Expanded> |
| 8080 | </Expression> |
| 8081 | <Section name="test case with two consecutive sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8082 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8083 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8084 | testCaseTracker.enterSection( section1Name ) |
| 8085 | </Original> |
| 8086 | <Expanded> |
| 8087 | true |
| 8088 | </Expanded> |
| 8089 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8090 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8091 | <Original> |
| 8092 | !testCaseTracker.enterSection( section2Name ) |
| 8093 | </Original> |
| 8094 | <Expanded> |
| 8095 | !false |
| 8096 | </Expanded> |
| 8097 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8098 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8099 | <Original> |
| 8100 | !testCaseTracker.isCompleted() |
| 8101 | </Original> |
| 8102 | <Expanded> |
| 8103 | !false |
| 8104 | </Expanded> |
| 8105 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8106 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8107 | <Original> |
| 8108 | !testCaseTracker.enterSection( section1Name ) |
| 8109 | </Original> |
| 8110 | <Expanded> |
| 8111 | !false |
| 8112 | </Expanded> |
| 8113 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8114 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8115 | <Original> |
| 8116 | testCaseTracker.enterSection( section2Name ) |
| 8117 | </Original> |
| 8118 | <Expanded> |
| 8119 | true |
| 8120 | </Expanded> |
| 8121 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8122 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8123 | <Original> |
| 8124 | testCaseTracker.isCompleted() |
| 8125 | </Original> |
| 8126 | <Expanded> |
| 8127 | true |
| 8128 | </Expanded> |
| 8129 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8130 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8131 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8132 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8133 | <Original> |
| 8134 | !testCaseTracker.isCompleted() |
| 8135 | </Original> |
| 8136 | <Expanded> |
| 8137 | !false |
| 8138 | </Expanded> |
| 8139 | </Expression> |
| 8140 | <Section name="test case with one section within another"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8141 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8142 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8143 | testCaseTracker.enterSection( section1Name ) |
| 8144 | </Original> |
| 8145 | <Expanded> |
| 8146 | true |
| 8147 | </Expanded> |
| 8148 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8149 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8150 | <Original> |
| 8151 | testCaseTracker.enterSection( section2Name ) |
| 8152 | </Original> |
| 8153 | <Expanded> |
| 8154 | true |
| 8155 | </Expanded> |
| 8156 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8157 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8158 | <Original> |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8159 | !testCaseTracker.isCompleted() |
| 8160 | </Original> |
| 8161 | <Expanded> |
| 8162 | !false |
| 8163 | </Expanded> |
| 8164 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8165 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8166 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8167 | testCaseTracker.isCompleted() |
| 8168 | </Original> |
| 8169 | <Expanded> |
| 8170 | true |
| 8171 | </Expanded> |
| 8172 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8173 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8174 | </Section> |
| 8175 | <OverallResult success="true"/> |
| 8176 | </TestCase> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame^] | 8177 | <OverallResults successes="669" failures="99" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8178 | </Group> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame^] | 8179 | <OverallResults successes="669" failures="99" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8180 | </Catch> |