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> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 1066 | 18446744073709551615 (0x<hex digits>) |
| 1067 | > |
| 1068 | 4 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1069 | </Expanded> |
| 1070 | </Expression> |
| 1071 | <OverallResult success="true"/> |
| 1072 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1073 | <TestCase name="comparisons between int variables"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1074 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1075 | <Original> |
| 1076 | long_var == unsigned_char_var |
| 1077 | </Original> |
| 1078 | <Expanded> |
| 1079 | 1 == 1 |
| 1080 | </Expanded> |
| 1081 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1082 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1083 | <Original> |
| 1084 | long_var == unsigned_short_var |
| 1085 | </Original> |
| 1086 | <Expanded> |
| 1087 | 1 == 1 |
| 1088 | </Expanded> |
| 1089 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1090 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1091 | <Original> |
| 1092 | long_var == unsigned_int_var |
| 1093 | </Original> |
| 1094 | <Expanded> |
| 1095 | 1 == 1 |
| 1096 | </Expanded> |
| 1097 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1098 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1099 | <Original> |
| 1100 | long_var == unsigned_long_var |
| 1101 | </Original> |
| 1102 | <Expanded> |
| 1103 | 1 == 1 |
| 1104 | </Expanded> |
| 1105 | </Expression> |
| 1106 | <OverallResult success="true"/> |
| 1107 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1108 | <TestCase name="comparisons between const int variables"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1109 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1110 | <Original> |
| 1111 | unsigned_char_var == 1 |
| 1112 | </Original> |
| 1113 | <Expanded> |
| 1114 | 1 == 1 |
| 1115 | </Expanded> |
| 1116 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1117 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1118 | <Original> |
| 1119 | unsigned_short_var == 1 |
| 1120 | </Original> |
| 1121 | <Expanded> |
| 1122 | 1 == 1 |
| 1123 | </Expanded> |
| 1124 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1125 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1126 | <Original> |
| 1127 | unsigned_int_var == 1 |
| 1128 | </Original> |
| 1129 | <Expanded> |
| 1130 | 1 == 1 |
| 1131 | </Expanded> |
| 1132 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1133 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1134 | <Original> |
| 1135 | unsigned_long_var == 1 |
| 1136 | </Original> |
| 1137 | <Expanded> |
| 1138 | 1 == 1 |
| 1139 | </Expanded> |
| 1140 | </Expression> |
| 1141 | <OverallResult success="true"/> |
| 1142 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1143 | <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] | 1144 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1145 | <Original> |
| 1146 | ( -1 > 2u ) |
| 1147 | </Original> |
| 1148 | <Expanded> |
| 1149 | true |
| 1150 | </Expanded> |
| 1151 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1152 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1153 | <Original> |
| 1154 | -1 > 2u |
| 1155 | </Original> |
| 1156 | <Expanded> |
| 1157 | -1 > 2 |
| 1158 | </Expanded> |
| 1159 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1160 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1161 | <Original> |
| 1162 | ( 2u < -1 ) |
| 1163 | </Original> |
| 1164 | <Expanded> |
| 1165 | true |
| 1166 | </Expanded> |
| 1167 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1168 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1169 | <Original> |
| 1170 | 2u < -1 |
| 1171 | </Original> |
| 1172 | <Expanded> |
| 1173 | 2 < -1 |
| 1174 | </Expanded> |
| 1175 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1176 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1177 | <Original> |
| 1178 | ( minInt > 2u ) |
| 1179 | </Original> |
| 1180 | <Expanded> |
| 1181 | true |
| 1182 | </Expanded> |
| 1183 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1184 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1185 | <Original> |
| 1186 | minInt > 2u |
| 1187 | </Original> |
| 1188 | <Expanded> |
| 1189 | -2147483648 > 2 |
| 1190 | </Expanded> |
| 1191 | </Expression> |
| 1192 | <OverallResult success="true"/> |
| 1193 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1194 | <TestCase name="Comparisons between ints where one side is computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1195 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1196 | <Original> |
| 1197 | 54 == 6*9 |
| 1198 | </Original> |
| 1199 | <Expanded> |
| 1200 | 54 == 54 |
| 1201 | </Expanded> |
| 1202 | </Expression> |
| 1203 | <OverallResult success="true"/> |
| 1204 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1205 | <TestCase name="Pointers can be compared to null"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1206 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1207 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1208 | p == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1209 | </Original> |
| 1210 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1211 | NULL == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1212 | </Expanded> |
| 1213 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1214 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1215 | <Original> |
| 1216 | p == pNULL |
| 1217 | </Original> |
| 1218 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1219 | NULL == NULL |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1220 | </Expanded> |
| 1221 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1222 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1223 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1224 | p != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1225 | </Original> |
| 1226 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1227 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1228 | </Expanded> |
| 1229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1230 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1231 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1232 | cp != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1233 | </Original> |
| 1234 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1235 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1236 | </Expanded> |
| 1237 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1238 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1239 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1240 | cpc != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1241 | </Original> |
| 1242 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1243 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1244 | </Expanded> |
| 1245 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1246 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1247 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1248 | returnsNull() == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1249 | </Original> |
| 1250 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1251 | {null string} == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1252 | </Expanded> |
| 1253 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1254 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1255 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1256 | returnsConstNull() == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1257 | </Original> |
| 1258 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1259 | {null string} == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1260 | </Expanded> |
| 1261 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1262 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1263 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1264 | nullptr != p |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1265 | </Original> |
| 1266 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1267 | nullptr != 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1268 | </Expanded> |
| 1269 | </Expression> |
| 1270 | <OverallResult success="true"/> |
| 1271 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1272 | <TestCase name="'Not' checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1273 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1274 | <Original> |
| 1275 | false == false |
| 1276 | </Original> |
| 1277 | <Expanded> |
| 1278 | false == false |
| 1279 | </Expanded> |
| 1280 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1281 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1282 | <Original> |
| 1283 | true == true |
| 1284 | </Original> |
| 1285 | <Expanded> |
| 1286 | true == true |
| 1287 | </Expanded> |
| 1288 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1289 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1290 | <Original> |
| 1291 | !false |
| 1292 | </Original> |
| 1293 | <Expanded> |
| 1294 | true |
| 1295 | </Expanded> |
| 1296 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1297 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1298 | <Original> |
| 1299 | !false |
| 1300 | </Original> |
| 1301 | <Expanded> |
| 1302 | !false |
| 1303 | </Expanded> |
| 1304 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1305 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1306 | <Original> |
| 1307 | !falseValue |
| 1308 | </Original> |
| 1309 | <Expanded> |
| 1310 | true |
| 1311 | </Expanded> |
| 1312 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1313 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1314 | <Original> |
| 1315 | !falseValue |
| 1316 | </Original> |
| 1317 | <Expanded> |
| 1318 | !false |
| 1319 | </Expanded> |
| 1320 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1321 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1322 | <Original> |
| 1323 | !(1 == 2) |
| 1324 | </Original> |
| 1325 | <Expanded> |
| 1326 | true |
| 1327 | </Expanded> |
| 1328 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1329 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1330 | <Original> |
| 1331 | !1 == 2 |
| 1332 | </Original> |
| 1333 | <Expanded> |
| 1334 | !(1 == 2) |
| 1335 | </Expanded> |
| 1336 | </Expression> |
| 1337 | <OverallResult success="true"/> |
| 1338 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1339 | <TestCase name="'Not' checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1340 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1341 | <Original> |
| 1342 | false != false |
| 1343 | </Original> |
| 1344 | <Expanded> |
| 1345 | false != false |
| 1346 | </Expanded> |
| 1347 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1348 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1349 | <Original> |
| 1350 | true != true |
| 1351 | </Original> |
| 1352 | <Expanded> |
| 1353 | true != true |
| 1354 | </Expanded> |
| 1355 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1356 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1357 | <Original> |
| 1358 | !true |
| 1359 | </Original> |
| 1360 | <Expanded> |
| 1361 | false |
| 1362 | </Expanded> |
| 1363 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1364 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1365 | <Original> |
| 1366 | !true |
| 1367 | </Original> |
| 1368 | <Expanded> |
| 1369 | !true |
| 1370 | </Expanded> |
| 1371 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1372 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1373 | <Original> |
| 1374 | !trueValue |
| 1375 | </Original> |
| 1376 | <Expanded> |
| 1377 | false |
| 1378 | </Expanded> |
| 1379 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1380 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1381 | <Original> |
| 1382 | !trueValue |
| 1383 | </Original> |
| 1384 | <Expanded> |
| 1385 | !true |
| 1386 | </Expanded> |
| 1387 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1388 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1389 | <Original> |
| 1390 | !(1 == 1) |
| 1391 | </Original> |
| 1392 | <Expanded> |
| 1393 | false |
| 1394 | </Expanded> |
| 1395 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1396 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1397 | <Original> |
| 1398 | !1 == 1 |
| 1399 | </Original> |
| 1400 | <Expanded> |
| 1401 | !(1 == 1) |
| 1402 | </Expanded> |
| 1403 | </Expression> |
| 1404 | <OverallResult success="false"/> |
| 1405 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1406 | <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] | 1407 | <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1408 | <Original> |
| 1409 | thisThrows() |
| 1410 | </Original> |
| 1411 | <Expanded> |
| 1412 | thisThrows() |
| 1413 | </Expanded> |
| 1414 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1415 | <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1416 | <Original> |
| 1417 | thisDoesntThrow() |
| 1418 | </Original> |
| 1419 | <Expanded> |
| 1420 | thisDoesntThrow() |
| 1421 | </Expanded> |
| 1422 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1423 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1424 | <Original> |
| 1425 | thisThrows() |
| 1426 | </Original> |
| 1427 | <Expanded> |
| 1428 | thisThrows() |
| 1429 | </Expanded> |
| 1430 | </Expression> |
| 1431 | <OverallResult success="true"/> |
| 1432 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1433 | <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] | 1434 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1435 | <Original> |
| 1436 | thisThrows() |
| 1437 | </Original> |
| 1438 | <Expanded> |
| 1439 | thisThrows() |
| 1440 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1441 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1442 | expected exception |
| 1443 | </Exception> |
| 1444 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1445 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1446 | <Original> |
| 1447 | thisDoesntThrow() |
| 1448 | </Original> |
| 1449 | <Expanded> |
| 1450 | thisDoesntThrow() |
| 1451 | </Expanded> |
| 1452 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1453 | <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1454 | <Original> |
| 1455 | thisThrows() |
| 1456 | </Original> |
| 1457 | <Expanded> |
| 1458 | thisThrows() |
| 1459 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1460 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1461 | expected exception |
| 1462 | </Exception> |
| 1463 | </Expression> |
| 1464 | <OverallResult success="false"/> |
| 1465 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1466 | <TestCase name="When unchecked exceptions are thrown directly they are always failures"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1467 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1468 | unexpected exception |
| 1469 | </Exception> |
| 1470 | <OverallResult success="false"/> |
| 1471 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1472 | <TestCase name="An unchecked exception reports the line of the last assertion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1473 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1474 | <Original> |
| 1475 | 1 == 1 |
| 1476 | </Original> |
| 1477 | <Expanded> |
| 1478 | 1 == 1 |
| 1479 | </Expanded> |
| 1480 | </Expression> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1481 | <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1482 | <Original> |
| 1483 | {Unknown expression after the reported line} |
| 1484 | </Original> |
| 1485 | <Expanded> |
| 1486 | {Unknown expression after the reported line} |
| 1487 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1488 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1489 | unexpected exception |
| 1490 | </Exception> |
| 1491 | </Expression> |
| 1492 | <OverallResult success="false"/> |
| 1493 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1494 | <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] | 1495 | <Section name="section name"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1496 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1497 | unexpected exception |
| 1498 | </Exception> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 1499 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1500 | </Section> |
| 1501 | <OverallResult success="false"/> |
| 1502 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1503 | <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] | 1504 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1505 | <Original> |
| 1506 | thisThrows() == 0 |
| 1507 | </Original> |
| 1508 | <Expanded> |
| 1509 | thisThrows() == 0 |
| 1510 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1511 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1512 | expected exception |
| 1513 | </Exception> |
| 1514 | </Expression> |
| 1515 | <OverallResult success="false"/> |
| 1516 | </TestCase> |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1517 | <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] | 1518 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1519 | <Original> |
| 1520 | thisThrows() == 0 |
| 1521 | </Original> |
| 1522 | <Expanded> |
| 1523 | thisThrows() == 0 |
| 1524 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1525 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1526 | expected exception |
| 1527 | </Exception> |
| 1528 | </Expression> |
| 1529 | <OverallResult success="false"/> |
| 1530 | </TestCase> |
| 1531 | <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1532 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | a176b93 | 2014-04-12 19:07:24 +0100 | [diff] [blame] | 1533 | <Original> |
| 1534 | thisThrows() == 0 |
| 1535 | </Original> |
| 1536 | <Expanded> |
| 1537 | thisThrows() == 0 |
| 1538 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1539 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | a176b93 | 2014-04-12 19:07:24 +0100 | [diff] [blame] | 1540 | expected exception |
| 1541 | </Exception> |
| 1542 | </Expression> |
| 1543 | <OverallResult success="false"/> |
| 1544 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1545 | <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] | 1546 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1547 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1548 | <TestCase name="Unexpected custom exceptions can be translated"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1549 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1550 | custom exception |
| 1551 | </Exception> |
| 1552 | <OverallResult success="false"/> |
| 1553 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1554 | <TestCase name="Custom exceptions can be translated when testing for nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1555 | <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1556 | <Original> |
| 1557 | throwCustom() |
| 1558 | </Original> |
| 1559 | <Expanded> |
| 1560 | throwCustom() |
| 1561 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1562 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1563 | custom exception - not std |
| 1564 | </Exception> |
| 1565 | </Expression> |
| 1566 | <OverallResult success="false"/> |
| 1567 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1568 | <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] | 1569 | <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1570 | <Original> |
| 1571 | throwCustom() |
| 1572 | </Original> |
| 1573 | <Expanded> |
| 1574 | throwCustom() |
| 1575 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1576 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1577 | custom exception - not std |
| 1578 | </Exception> |
| 1579 | </Expression> |
| 1580 | <OverallResult success="false"/> |
| 1581 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1582 | <TestCase name="Unexpected exceptions can be translated"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1583 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1584 | 3.14 |
| 1585 | </Exception> |
| 1586 | <OverallResult success="false"/> |
| 1587 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1588 | <TestCase name="NotImplemented exception"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1589 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1590 | <Original> |
| 1591 | thisFunctionNotImplemented( 7 ) |
| 1592 | </Original> |
| 1593 | <Expanded> |
| 1594 | thisFunctionNotImplemented( 7 ) |
| 1595 | </Expanded> |
| 1596 | </Expression> |
| 1597 | <OverallResult success="true"/> |
| 1598 | </TestCase> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1599 | <TestCase name="Exception messages can be tested for"> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame^] | 1600 | <Section name="exact match"> |
| 1601 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1602 | <Original> |
| 1603 | thisThrows(), "expected exception" |
| 1604 | </Original> |
| 1605 | <Expanded> |
| 1606 | thisThrows(), "expected exception" |
| 1607 | </Expanded> |
| 1608 | </Expression> |
| 1609 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 1610 | </Section> |
| 1611 | <Section name="different case"> |
| 1612 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1613 | <Original> |
| 1614 | thisThrows(), "expecteD Exception" |
| 1615 | </Original> |
| 1616 | <Expanded> |
| 1617 | thisThrows(), "expecteD Exception" |
| 1618 | </Expanded> |
| 1619 | </Expression> |
| 1620 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 1621 | </Section> |
| 1622 | <Section name="wildcarded"> |
| 1623 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1624 | <Original> |
| 1625 | thisThrows(), "expected*" |
| 1626 | </Original> |
| 1627 | <Expanded> |
| 1628 | thisThrows(), "expected*" |
| 1629 | </Expanded> |
| 1630 | </Expression> |
| 1631 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1632 | <Original> |
| 1633 | thisThrows(), "*exception" |
| 1634 | </Original> |
| 1635 | <Expanded> |
| 1636 | thisThrows(), "*exception" |
| 1637 | </Expanded> |
| 1638 | </Expression> |
| 1639 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1640 | <Original> |
| 1641 | thisThrows(), "*except*" |
| 1642 | </Original> |
| 1643 | <Expanded> |
| 1644 | thisThrows(), "*except*" |
| 1645 | </Expanded> |
| 1646 | </Expression> |
| 1647 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1648 | <Original> |
| 1649 | thisThrows(), "*exCept*" |
| 1650 | </Original> |
| 1651 | <Expanded> |
| 1652 | thisThrows(), "*exCept*" |
| 1653 | </Expanded> |
| 1654 | </Expression> |
| 1655 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 1656 | </Section> |
| 1657 | <OverallResult success="true"/> |
| 1658 | </TestCase> |
| 1659 | <TestCase name="Mismatching exception messages failing the test"> |
| 1660 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1661 | <Original> |
| 1662 | thisThrows(), "expected exception" |
| 1663 | </Original> |
| 1664 | <Expanded> |
| 1665 | thisThrows(), "expected exception" |
| 1666 | </Expanded> |
| 1667 | </Expression> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1668 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1669 | <Original> |
| 1670 | thisThrows(), "expected exception" |
| 1671 | </Original> |
| 1672 | <Expanded> |
| 1673 | thisThrows(), "expected exception" |
| 1674 | </Expanded> |
| 1675 | </Expression> |
| 1676 | <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1677 | <Original> |
| 1678 | thisThrows(), "should fail" |
| 1679 | </Original> |
| 1680 | <Expanded> |
| 1681 | expected exception |
| 1682 | </Expanded> |
| 1683 | </Expression> |
| 1684 | <OverallResult success="false"/> |
| 1685 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1686 | <TestCase name="Generators over two ranges"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1687 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1688 | <Original> |
| 1689 | multiply( i, 2 ) == i*2 |
| 1690 | </Original> |
| 1691 | <Expanded> |
| 1692 | 2 == 2 |
| 1693 | </Expanded> |
| 1694 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1695 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1696 | <Original> |
| 1697 | multiply( j, 2 ) == j*2 |
| 1698 | </Original> |
| 1699 | <Expanded> |
| 1700 | 200 == 200 |
| 1701 | </Expanded> |
| 1702 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1703 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1704 | <Original> |
| 1705 | multiply( i, 2 ) == i*2 |
| 1706 | </Original> |
| 1707 | <Expanded> |
| 1708 | 4 == 4 |
| 1709 | </Expanded> |
| 1710 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1711 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1712 | <Original> |
| 1713 | multiply( j, 2 ) == j*2 |
| 1714 | </Original> |
| 1715 | <Expanded> |
| 1716 | 200 == 200 |
| 1717 | </Expanded> |
| 1718 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1719 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1720 | <Original> |
| 1721 | multiply( i, 2 ) == i*2 |
| 1722 | </Original> |
| 1723 | <Expanded> |
| 1724 | 6 == 6 |
| 1725 | </Expanded> |
| 1726 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1727 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1728 | <Original> |
| 1729 | multiply( j, 2 ) == j*2 |
| 1730 | </Original> |
| 1731 | <Expanded> |
| 1732 | 200 == 200 |
| 1733 | </Expanded> |
| 1734 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1735 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1736 | <Original> |
| 1737 | multiply( i, 2 ) == i*2 |
| 1738 | </Original> |
| 1739 | <Expanded> |
| 1740 | 8 == 8 |
| 1741 | </Expanded> |
| 1742 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1743 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1744 | <Original> |
| 1745 | multiply( j, 2 ) == j*2 |
| 1746 | </Original> |
| 1747 | <Expanded> |
| 1748 | 200 == 200 |
| 1749 | </Expanded> |
| 1750 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1751 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1752 | <Original> |
| 1753 | multiply( i, 2 ) == i*2 |
| 1754 | </Original> |
| 1755 | <Expanded> |
| 1756 | 10 == 10 |
| 1757 | </Expanded> |
| 1758 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1759 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1760 | <Original> |
| 1761 | multiply( j, 2 ) == j*2 |
| 1762 | </Original> |
| 1763 | <Expanded> |
| 1764 | 200 == 200 |
| 1765 | </Expanded> |
| 1766 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1767 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1768 | <Original> |
| 1769 | multiply( i, 2 ) == i*2 |
| 1770 | </Original> |
| 1771 | <Expanded> |
| 1772 | 30 == 30 |
| 1773 | </Expanded> |
| 1774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1775 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1776 | <Original> |
| 1777 | multiply( j, 2 ) == j*2 |
| 1778 | </Original> |
| 1779 | <Expanded> |
| 1780 | 200 == 200 |
| 1781 | </Expanded> |
| 1782 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1783 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1784 | <Original> |
| 1785 | multiply( i, 2 ) == i*2 |
| 1786 | </Original> |
| 1787 | <Expanded> |
| 1788 | 40 == 40 |
| 1789 | </Expanded> |
| 1790 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1791 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1792 | <Original> |
| 1793 | multiply( j, 2 ) == j*2 |
| 1794 | </Original> |
| 1795 | <Expanded> |
| 1796 | 200 == 200 |
| 1797 | </Expanded> |
| 1798 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1799 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1800 | <Original> |
| 1801 | multiply( i, 2 ) == i*2 |
| 1802 | </Original> |
| 1803 | <Expanded> |
| 1804 | 42 == 42 |
| 1805 | </Expanded> |
| 1806 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1807 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1808 | <Original> |
| 1809 | multiply( j, 2 ) == j*2 |
| 1810 | </Original> |
| 1811 | <Expanded> |
| 1812 | 200 == 200 |
| 1813 | </Expanded> |
| 1814 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1815 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1816 | <Original> |
| 1817 | multiply( i, 2 ) == i*2 |
| 1818 | </Original> |
| 1819 | <Expanded> |
| 1820 | 72 == 72 |
| 1821 | </Expanded> |
| 1822 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1823 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1824 | <Original> |
| 1825 | multiply( j, 2 ) == j*2 |
| 1826 | </Original> |
| 1827 | <Expanded> |
| 1828 | 200 == 200 |
| 1829 | </Expanded> |
| 1830 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1831 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1832 | <Original> |
| 1833 | multiply( i, 2 ) == i*2 |
| 1834 | </Original> |
| 1835 | <Expanded> |
| 1836 | 2 == 2 |
| 1837 | </Expanded> |
| 1838 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1839 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1840 | <Original> |
| 1841 | multiply( j, 2 ) == j*2 |
| 1842 | </Original> |
| 1843 | <Expanded> |
| 1844 | 202 == 202 |
| 1845 | </Expanded> |
| 1846 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1847 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1848 | <Original> |
| 1849 | multiply( i, 2 ) == i*2 |
| 1850 | </Original> |
| 1851 | <Expanded> |
| 1852 | 4 == 4 |
| 1853 | </Expanded> |
| 1854 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1855 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1856 | <Original> |
| 1857 | multiply( j, 2 ) == j*2 |
| 1858 | </Original> |
| 1859 | <Expanded> |
| 1860 | 202 == 202 |
| 1861 | </Expanded> |
| 1862 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1863 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1864 | <Original> |
| 1865 | multiply( i, 2 ) == i*2 |
| 1866 | </Original> |
| 1867 | <Expanded> |
| 1868 | 6 == 6 |
| 1869 | </Expanded> |
| 1870 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1871 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1872 | <Original> |
| 1873 | multiply( j, 2 ) == j*2 |
| 1874 | </Original> |
| 1875 | <Expanded> |
| 1876 | 202 == 202 |
| 1877 | </Expanded> |
| 1878 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1879 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1880 | <Original> |
| 1881 | multiply( i, 2 ) == i*2 |
| 1882 | </Original> |
| 1883 | <Expanded> |
| 1884 | 8 == 8 |
| 1885 | </Expanded> |
| 1886 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1887 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1888 | <Original> |
| 1889 | multiply( j, 2 ) == j*2 |
| 1890 | </Original> |
| 1891 | <Expanded> |
| 1892 | 202 == 202 |
| 1893 | </Expanded> |
| 1894 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1895 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1896 | <Original> |
| 1897 | multiply( i, 2 ) == i*2 |
| 1898 | </Original> |
| 1899 | <Expanded> |
| 1900 | 10 == 10 |
| 1901 | </Expanded> |
| 1902 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1903 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1904 | <Original> |
| 1905 | multiply( j, 2 ) == j*2 |
| 1906 | </Original> |
| 1907 | <Expanded> |
| 1908 | 202 == 202 |
| 1909 | </Expanded> |
| 1910 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1911 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1912 | <Original> |
| 1913 | multiply( i, 2 ) == i*2 |
| 1914 | </Original> |
| 1915 | <Expanded> |
| 1916 | 30 == 30 |
| 1917 | </Expanded> |
| 1918 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1919 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1920 | <Original> |
| 1921 | multiply( j, 2 ) == j*2 |
| 1922 | </Original> |
| 1923 | <Expanded> |
| 1924 | 202 == 202 |
| 1925 | </Expanded> |
| 1926 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1927 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1928 | <Original> |
| 1929 | multiply( i, 2 ) == i*2 |
| 1930 | </Original> |
| 1931 | <Expanded> |
| 1932 | 40 == 40 |
| 1933 | </Expanded> |
| 1934 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1935 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1936 | <Original> |
| 1937 | multiply( j, 2 ) == j*2 |
| 1938 | </Original> |
| 1939 | <Expanded> |
| 1940 | 202 == 202 |
| 1941 | </Expanded> |
| 1942 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1943 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1944 | <Original> |
| 1945 | multiply( i, 2 ) == i*2 |
| 1946 | </Original> |
| 1947 | <Expanded> |
| 1948 | 42 == 42 |
| 1949 | </Expanded> |
| 1950 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1951 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1952 | <Original> |
| 1953 | multiply( j, 2 ) == j*2 |
| 1954 | </Original> |
| 1955 | <Expanded> |
| 1956 | 202 == 202 |
| 1957 | </Expanded> |
| 1958 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1959 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1960 | <Original> |
| 1961 | multiply( i, 2 ) == i*2 |
| 1962 | </Original> |
| 1963 | <Expanded> |
| 1964 | 72 == 72 |
| 1965 | </Expanded> |
| 1966 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1967 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1968 | <Original> |
| 1969 | multiply( j, 2 ) == j*2 |
| 1970 | </Original> |
| 1971 | <Expanded> |
| 1972 | 202 == 202 |
| 1973 | </Expanded> |
| 1974 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1975 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1976 | <Original> |
| 1977 | multiply( i, 2 ) == i*2 |
| 1978 | </Original> |
| 1979 | <Expanded> |
| 1980 | 2 == 2 |
| 1981 | </Expanded> |
| 1982 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1983 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1984 | <Original> |
| 1985 | multiply( j, 2 ) == j*2 |
| 1986 | </Original> |
| 1987 | <Expanded> |
| 1988 | 204 == 204 |
| 1989 | </Expanded> |
| 1990 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1991 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1992 | <Original> |
| 1993 | multiply( i, 2 ) == i*2 |
| 1994 | </Original> |
| 1995 | <Expanded> |
| 1996 | 4 == 4 |
| 1997 | </Expanded> |
| 1998 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1999 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2000 | <Original> |
| 2001 | multiply( j, 2 ) == j*2 |
| 2002 | </Original> |
| 2003 | <Expanded> |
| 2004 | 204 == 204 |
| 2005 | </Expanded> |
| 2006 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2007 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2008 | <Original> |
| 2009 | multiply( i, 2 ) == i*2 |
| 2010 | </Original> |
| 2011 | <Expanded> |
| 2012 | 6 == 6 |
| 2013 | </Expanded> |
| 2014 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2015 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2016 | <Original> |
| 2017 | multiply( j, 2 ) == j*2 |
| 2018 | </Original> |
| 2019 | <Expanded> |
| 2020 | 204 == 204 |
| 2021 | </Expanded> |
| 2022 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2023 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2024 | <Original> |
| 2025 | multiply( i, 2 ) == i*2 |
| 2026 | </Original> |
| 2027 | <Expanded> |
| 2028 | 8 == 8 |
| 2029 | </Expanded> |
| 2030 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2031 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2032 | <Original> |
| 2033 | multiply( j, 2 ) == j*2 |
| 2034 | </Original> |
| 2035 | <Expanded> |
| 2036 | 204 == 204 |
| 2037 | </Expanded> |
| 2038 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2039 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2040 | <Original> |
| 2041 | multiply( i, 2 ) == i*2 |
| 2042 | </Original> |
| 2043 | <Expanded> |
| 2044 | 10 == 10 |
| 2045 | </Expanded> |
| 2046 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2047 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2048 | <Original> |
| 2049 | multiply( j, 2 ) == j*2 |
| 2050 | </Original> |
| 2051 | <Expanded> |
| 2052 | 204 == 204 |
| 2053 | </Expanded> |
| 2054 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2055 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2056 | <Original> |
| 2057 | multiply( i, 2 ) == i*2 |
| 2058 | </Original> |
| 2059 | <Expanded> |
| 2060 | 30 == 30 |
| 2061 | </Expanded> |
| 2062 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2063 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2064 | <Original> |
| 2065 | multiply( j, 2 ) == j*2 |
| 2066 | </Original> |
| 2067 | <Expanded> |
| 2068 | 204 == 204 |
| 2069 | </Expanded> |
| 2070 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2071 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2072 | <Original> |
| 2073 | multiply( i, 2 ) == i*2 |
| 2074 | </Original> |
| 2075 | <Expanded> |
| 2076 | 40 == 40 |
| 2077 | </Expanded> |
| 2078 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2079 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2080 | <Original> |
| 2081 | multiply( j, 2 ) == j*2 |
| 2082 | </Original> |
| 2083 | <Expanded> |
| 2084 | 204 == 204 |
| 2085 | </Expanded> |
| 2086 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2087 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2088 | <Original> |
| 2089 | multiply( i, 2 ) == i*2 |
| 2090 | </Original> |
| 2091 | <Expanded> |
| 2092 | 42 == 42 |
| 2093 | </Expanded> |
| 2094 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2095 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2096 | <Original> |
| 2097 | multiply( j, 2 ) == j*2 |
| 2098 | </Original> |
| 2099 | <Expanded> |
| 2100 | 204 == 204 |
| 2101 | </Expanded> |
| 2102 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2103 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2104 | <Original> |
| 2105 | multiply( i, 2 ) == i*2 |
| 2106 | </Original> |
| 2107 | <Expanded> |
| 2108 | 72 == 72 |
| 2109 | </Expanded> |
| 2110 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2111 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2112 | <Original> |
| 2113 | multiply( j, 2 ) == j*2 |
| 2114 | </Original> |
| 2115 | <Expanded> |
| 2116 | 204 == 204 |
| 2117 | </Expanded> |
| 2118 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2119 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2120 | <Original> |
| 2121 | multiply( i, 2 ) == i*2 |
| 2122 | </Original> |
| 2123 | <Expanded> |
| 2124 | 2 == 2 |
| 2125 | </Expanded> |
| 2126 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2127 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2128 | <Original> |
| 2129 | multiply( j, 2 ) == j*2 |
| 2130 | </Original> |
| 2131 | <Expanded> |
| 2132 | 206 == 206 |
| 2133 | </Expanded> |
| 2134 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2135 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2136 | <Original> |
| 2137 | multiply( i, 2 ) == i*2 |
| 2138 | </Original> |
| 2139 | <Expanded> |
| 2140 | 4 == 4 |
| 2141 | </Expanded> |
| 2142 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2143 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2144 | <Original> |
| 2145 | multiply( j, 2 ) == j*2 |
| 2146 | </Original> |
| 2147 | <Expanded> |
| 2148 | 206 == 206 |
| 2149 | </Expanded> |
| 2150 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2151 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2152 | <Original> |
| 2153 | multiply( i, 2 ) == i*2 |
| 2154 | </Original> |
| 2155 | <Expanded> |
| 2156 | 6 == 6 |
| 2157 | </Expanded> |
| 2158 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2159 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2160 | <Original> |
| 2161 | multiply( j, 2 ) == j*2 |
| 2162 | </Original> |
| 2163 | <Expanded> |
| 2164 | 206 == 206 |
| 2165 | </Expanded> |
| 2166 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2167 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2168 | <Original> |
| 2169 | multiply( i, 2 ) == i*2 |
| 2170 | </Original> |
| 2171 | <Expanded> |
| 2172 | 8 == 8 |
| 2173 | </Expanded> |
| 2174 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2175 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2176 | <Original> |
| 2177 | multiply( j, 2 ) == j*2 |
| 2178 | </Original> |
| 2179 | <Expanded> |
| 2180 | 206 == 206 |
| 2181 | </Expanded> |
| 2182 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2183 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2184 | <Original> |
| 2185 | multiply( i, 2 ) == i*2 |
| 2186 | </Original> |
| 2187 | <Expanded> |
| 2188 | 10 == 10 |
| 2189 | </Expanded> |
| 2190 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2191 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2192 | <Original> |
| 2193 | multiply( j, 2 ) == j*2 |
| 2194 | </Original> |
| 2195 | <Expanded> |
| 2196 | 206 == 206 |
| 2197 | </Expanded> |
| 2198 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2199 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2200 | <Original> |
| 2201 | multiply( i, 2 ) == i*2 |
| 2202 | </Original> |
| 2203 | <Expanded> |
| 2204 | 30 == 30 |
| 2205 | </Expanded> |
| 2206 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2207 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2208 | <Original> |
| 2209 | multiply( j, 2 ) == j*2 |
| 2210 | </Original> |
| 2211 | <Expanded> |
| 2212 | 206 == 206 |
| 2213 | </Expanded> |
| 2214 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2215 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2216 | <Original> |
| 2217 | multiply( i, 2 ) == i*2 |
| 2218 | </Original> |
| 2219 | <Expanded> |
| 2220 | 40 == 40 |
| 2221 | </Expanded> |
| 2222 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2223 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2224 | <Original> |
| 2225 | multiply( j, 2 ) == j*2 |
| 2226 | </Original> |
| 2227 | <Expanded> |
| 2228 | 206 == 206 |
| 2229 | </Expanded> |
| 2230 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2231 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2232 | <Original> |
| 2233 | multiply( i, 2 ) == i*2 |
| 2234 | </Original> |
| 2235 | <Expanded> |
| 2236 | 42 == 42 |
| 2237 | </Expanded> |
| 2238 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2239 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2240 | <Original> |
| 2241 | multiply( j, 2 ) == j*2 |
| 2242 | </Original> |
| 2243 | <Expanded> |
| 2244 | 206 == 206 |
| 2245 | </Expanded> |
| 2246 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2247 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2248 | <Original> |
| 2249 | multiply( i, 2 ) == i*2 |
| 2250 | </Original> |
| 2251 | <Expanded> |
| 2252 | 72 == 72 |
| 2253 | </Expanded> |
| 2254 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2255 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2256 | <Original> |
| 2257 | multiply( j, 2 ) == j*2 |
| 2258 | </Original> |
| 2259 | <Expanded> |
| 2260 | 206 == 206 |
| 2261 | </Expanded> |
| 2262 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2263 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2264 | <Original> |
| 2265 | multiply( i, 2 ) == i*2 |
| 2266 | </Original> |
| 2267 | <Expanded> |
| 2268 | 2 == 2 |
| 2269 | </Expanded> |
| 2270 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2271 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2272 | <Original> |
| 2273 | multiply( j, 2 ) == j*2 |
| 2274 | </Original> |
| 2275 | <Expanded> |
| 2276 | 208 == 208 |
| 2277 | </Expanded> |
| 2278 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2279 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2280 | <Original> |
| 2281 | multiply( i, 2 ) == i*2 |
| 2282 | </Original> |
| 2283 | <Expanded> |
| 2284 | 4 == 4 |
| 2285 | </Expanded> |
| 2286 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2287 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2288 | <Original> |
| 2289 | multiply( j, 2 ) == j*2 |
| 2290 | </Original> |
| 2291 | <Expanded> |
| 2292 | 208 == 208 |
| 2293 | </Expanded> |
| 2294 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2295 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2296 | <Original> |
| 2297 | multiply( i, 2 ) == i*2 |
| 2298 | </Original> |
| 2299 | <Expanded> |
| 2300 | 6 == 6 |
| 2301 | </Expanded> |
| 2302 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2303 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2304 | <Original> |
| 2305 | multiply( j, 2 ) == j*2 |
| 2306 | </Original> |
| 2307 | <Expanded> |
| 2308 | 208 == 208 |
| 2309 | </Expanded> |
| 2310 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2311 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2312 | <Original> |
| 2313 | multiply( i, 2 ) == i*2 |
| 2314 | </Original> |
| 2315 | <Expanded> |
| 2316 | 8 == 8 |
| 2317 | </Expanded> |
| 2318 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2319 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2320 | <Original> |
| 2321 | multiply( j, 2 ) == j*2 |
| 2322 | </Original> |
| 2323 | <Expanded> |
| 2324 | 208 == 208 |
| 2325 | </Expanded> |
| 2326 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2327 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2328 | <Original> |
| 2329 | multiply( i, 2 ) == i*2 |
| 2330 | </Original> |
| 2331 | <Expanded> |
| 2332 | 10 == 10 |
| 2333 | </Expanded> |
| 2334 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2335 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2336 | <Original> |
| 2337 | multiply( j, 2 ) == j*2 |
| 2338 | </Original> |
| 2339 | <Expanded> |
| 2340 | 208 == 208 |
| 2341 | </Expanded> |
| 2342 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2343 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2344 | <Original> |
| 2345 | multiply( i, 2 ) == i*2 |
| 2346 | </Original> |
| 2347 | <Expanded> |
| 2348 | 30 == 30 |
| 2349 | </Expanded> |
| 2350 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2351 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2352 | <Original> |
| 2353 | multiply( j, 2 ) == j*2 |
| 2354 | </Original> |
| 2355 | <Expanded> |
| 2356 | 208 == 208 |
| 2357 | </Expanded> |
| 2358 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2359 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2360 | <Original> |
| 2361 | multiply( i, 2 ) == i*2 |
| 2362 | </Original> |
| 2363 | <Expanded> |
| 2364 | 40 == 40 |
| 2365 | </Expanded> |
| 2366 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2367 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2368 | <Original> |
| 2369 | multiply( j, 2 ) == j*2 |
| 2370 | </Original> |
| 2371 | <Expanded> |
| 2372 | 208 == 208 |
| 2373 | </Expanded> |
| 2374 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2375 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2376 | <Original> |
| 2377 | multiply( i, 2 ) == i*2 |
| 2378 | </Original> |
| 2379 | <Expanded> |
| 2380 | 42 == 42 |
| 2381 | </Expanded> |
| 2382 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2383 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2384 | <Original> |
| 2385 | multiply( j, 2 ) == j*2 |
| 2386 | </Original> |
| 2387 | <Expanded> |
| 2388 | 208 == 208 |
| 2389 | </Expanded> |
| 2390 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2391 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2392 | <Original> |
| 2393 | multiply( i, 2 ) == i*2 |
| 2394 | </Original> |
| 2395 | <Expanded> |
| 2396 | 72 == 72 |
| 2397 | </Expanded> |
| 2398 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2399 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2400 | <Original> |
| 2401 | multiply( j, 2 ) == j*2 |
| 2402 | </Original> |
| 2403 | <Expanded> |
| 2404 | 208 == 208 |
| 2405 | </Expanded> |
| 2406 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2407 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2408 | <Original> |
| 2409 | multiply( i, 2 ) == i*2 |
| 2410 | </Original> |
| 2411 | <Expanded> |
| 2412 | 2 == 2 |
| 2413 | </Expanded> |
| 2414 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2415 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2416 | <Original> |
| 2417 | multiply( j, 2 ) == j*2 |
| 2418 | </Original> |
| 2419 | <Expanded> |
| 2420 | 210 == 210 |
| 2421 | </Expanded> |
| 2422 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2423 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2424 | <Original> |
| 2425 | multiply( i, 2 ) == i*2 |
| 2426 | </Original> |
| 2427 | <Expanded> |
| 2428 | 4 == 4 |
| 2429 | </Expanded> |
| 2430 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2431 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2432 | <Original> |
| 2433 | multiply( j, 2 ) == j*2 |
| 2434 | </Original> |
| 2435 | <Expanded> |
| 2436 | 210 == 210 |
| 2437 | </Expanded> |
| 2438 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2439 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2440 | <Original> |
| 2441 | multiply( i, 2 ) == i*2 |
| 2442 | </Original> |
| 2443 | <Expanded> |
| 2444 | 6 == 6 |
| 2445 | </Expanded> |
| 2446 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2447 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2448 | <Original> |
| 2449 | multiply( j, 2 ) == j*2 |
| 2450 | </Original> |
| 2451 | <Expanded> |
| 2452 | 210 == 210 |
| 2453 | </Expanded> |
| 2454 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2455 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2456 | <Original> |
| 2457 | multiply( i, 2 ) == i*2 |
| 2458 | </Original> |
| 2459 | <Expanded> |
| 2460 | 8 == 8 |
| 2461 | </Expanded> |
| 2462 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2463 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2464 | <Original> |
| 2465 | multiply( j, 2 ) == j*2 |
| 2466 | </Original> |
| 2467 | <Expanded> |
| 2468 | 210 == 210 |
| 2469 | </Expanded> |
| 2470 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2471 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2472 | <Original> |
| 2473 | multiply( i, 2 ) == i*2 |
| 2474 | </Original> |
| 2475 | <Expanded> |
| 2476 | 10 == 10 |
| 2477 | </Expanded> |
| 2478 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2479 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2480 | <Original> |
| 2481 | multiply( j, 2 ) == j*2 |
| 2482 | </Original> |
| 2483 | <Expanded> |
| 2484 | 210 == 210 |
| 2485 | </Expanded> |
| 2486 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2487 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2488 | <Original> |
| 2489 | multiply( i, 2 ) == i*2 |
| 2490 | </Original> |
| 2491 | <Expanded> |
| 2492 | 30 == 30 |
| 2493 | </Expanded> |
| 2494 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2495 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2496 | <Original> |
| 2497 | multiply( j, 2 ) == j*2 |
| 2498 | </Original> |
| 2499 | <Expanded> |
| 2500 | 210 == 210 |
| 2501 | </Expanded> |
| 2502 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2503 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2504 | <Original> |
| 2505 | multiply( i, 2 ) == i*2 |
| 2506 | </Original> |
| 2507 | <Expanded> |
| 2508 | 40 == 40 |
| 2509 | </Expanded> |
| 2510 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2511 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2512 | <Original> |
| 2513 | multiply( j, 2 ) == j*2 |
| 2514 | </Original> |
| 2515 | <Expanded> |
| 2516 | 210 == 210 |
| 2517 | </Expanded> |
| 2518 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2519 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2520 | <Original> |
| 2521 | multiply( i, 2 ) == i*2 |
| 2522 | </Original> |
| 2523 | <Expanded> |
| 2524 | 42 == 42 |
| 2525 | </Expanded> |
| 2526 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2527 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2528 | <Original> |
| 2529 | multiply( j, 2 ) == j*2 |
| 2530 | </Original> |
| 2531 | <Expanded> |
| 2532 | 210 == 210 |
| 2533 | </Expanded> |
| 2534 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2535 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2536 | <Original> |
| 2537 | multiply( i, 2 ) == i*2 |
| 2538 | </Original> |
| 2539 | <Expanded> |
| 2540 | 72 == 72 |
| 2541 | </Expanded> |
| 2542 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2543 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2544 | <Original> |
| 2545 | multiply( j, 2 ) == j*2 |
| 2546 | </Original> |
| 2547 | <Expanded> |
| 2548 | 210 == 210 |
| 2549 | </Expanded> |
| 2550 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2551 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2552 | <Original> |
| 2553 | multiply( i, 2 ) == i*2 |
| 2554 | </Original> |
| 2555 | <Expanded> |
| 2556 | 2 == 2 |
| 2557 | </Expanded> |
| 2558 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2559 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2560 | <Original> |
| 2561 | multiply( j, 2 ) == j*2 |
| 2562 | </Original> |
| 2563 | <Expanded> |
| 2564 | 212 == 212 |
| 2565 | </Expanded> |
| 2566 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2567 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2568 | <Original> |
| 2569 | multiply( i, 2 ) == i*2 |
| 2570 | </Original> |
| 2571 | <Expanded> |
| 2572 | 4 == 4 |
| 2573 | </Expanded> |
| 2574 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2575 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2576 | <Original> |
| 2577 | multiply( j, 2 ) == j*2 |
| 2578 | </Original> |
| 2579 | <Expanded> |
| 2580 | 212 == 212 |
| 2581 | </Expanded> |
| 2582 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2583 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2584 | <Original> |
| 2585 | multiply( i, 2 ) == i*2 |
| 2586 | </Original> |
| 2587 | <Expanded> |
| 2588 | 6 == 6 |
| 2589 | </Expanded> |
| 2590 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2591 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2592 | <Original> |
| 2593 | multiply( j, 2 ) == j*2 |
| 2594 | </Original> |
| 2595 | <Expanded> |
| 2596 | 212 == 212 |
| 2597 | </Expanded> |
| 2598 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2599 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2600 | <Original> |
| 2601 | multiply( i, 2 ) == i*2 |
| 2602 | </Original> |
| 2603 | <Expanded> |
| 2604 | 8 == 8 |
| 2605 | </Expanded> |
| 2606 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2607 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2608 | <Original> |
| 2609 | multiply( j, 2 ) == j*2 |
| 2610 | </Original> |
| 2611 | <Expanded> |
| 2612 | 212 == 212 |
| 2613 | </Expanded> |
| 2614 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2615 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2616 | <Original> |
| 2617 | multiply( i, 2 ) == i*2 |
| 2618 | </Original> |
| 2619 | <Expanded> |
| 2620 | 10 == 10 |
| 2621 | </Expanded> |
| 2622 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2623 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2624 | <Original> |
| 2625 | multiply( j, 2 ) == j*2 |
| 2626 | </Original> |
| 2627 | <Expanded> |
| 2628 | 212 == 212 |
| 2629 | </Expanded> |
| 2630 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2631 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2632 | <Original> |
| 2633 | multiply( i, 2 ) == i*2 |
| 2634 | </Original> |
| 2635 | <Expanded> |
| 2636 | 30 == 30 |
| 2637 | </Expanded> |
| 2638 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2639 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2640 | <Original> |
| 2641 | multiply( j, 2 ) == j*2 |
| 2642 | </Original> |
| 2643 | <Expanded> |
| 2644 | 212 == 212 |
| 2645 | </Expanded> |
| 2646 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2647 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2648 | <Original> |
| 2649 | multiply( i, 2 ) == i*2 |
| 2650 | </Original> |
| 2651 | <Expanded> |
| 2652 | 40 == 40 |
| 2653 | </Expanded> |
| 2654 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2655 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2656 | <Original> |
| 2657 | multiply( j, 2 ) == j*2 |
| 2658 | </Original> |
| 2659 | <Expanded> |
| 2660 | 212 == 212 |
| 2661 | </Expanded> |
| 2662 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2663 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2664 | <Original> |
| 2665 | multiply( i, 2 ) == i*2 |
| 2666 | </Original> |
| 2667 | <Expanded> |
| 2668 | 42 == 42 |
| 2669 | </Expanded> |
| 2670 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2671 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2672 | <Original> |
| 2673 | multiply( j, 2 ) == j*2 |
| 2674 | </Original> |
| 2675 | <Expanded> |
| 2676 | 212 == 212 |
| 2677 | </Expanded> |
| 2678 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2679 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2680 | <Original> |
| 2681 | multiply( i, 2 ) == i*2 |
| 2682 | </Original> |
| 2683 | <Expanded> |
| 2684 | 72 == 72 |
| 2685 | </Expanded> |
| 2686 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2687 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2688 | <Original> |
| 2689 | multiply( j, 2 ) == j*2 |
| 2690 | </Original> |
| 2691 | <Expanded> |
| 2692 | 212 == 212 |
| 2693 | </Expanded> |
| 2694 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2695 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2696 | <Original> |
| 2697 | multiply( i, 2 ) == i*2 |
| 2698 | </Original> |
| 2699 | <Expanded> |
| 2700 | 2 == 2 |
| 2701 | </Expanded> |
| 2702 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2703 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2704 | <Original> |
| 2705 | multiply( j, 2 ) == j*2 |
| 2706 | </Original> |
| 2707 | <Expanded> |
| 2708 | 214 == 214 |
| 2709 | </Expanded> |
| 2710 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2711 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2712 | <Original> |
| 2713 | multiply( i, 2 ) == i*2 |
| 2714 | </Original> |
| 2715 | <Expanded> |
| 2716 | 4 == 4 |
| 2717 | </Expanded> |
| 2718 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2719 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2720 | <Original> |
| 2721 | multiply( j, 2 ) == j*2 |
| 2722 | </Original> |
| 2723 | <Expanded> |
| 2724 | 214 == 214 |
| 2725 | </Expanded> |
| 2726 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2727 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2728 | <Original> |
| 2729 | multiply( i, 2 ) == i*2 |
| 2730 | </Original> |
| 2731 | <Expanded> |
| 2732 | 6 == 6 |
| 2733 | </Expanded> |
| 2734 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2735 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2736 | <Original> |
| 2737 | multiply( j, 2 ) == j*2 |
| 2738 | </Original> |
| 2739 | <Expanded> |
| 2740 | 214 == 214 |
| 2741 | </Expanded> |
| 2742 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2743 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2744 | <Original> |
| 2745 | multiply( i, 2 ) == i*2 |
| 2746 | </Original> |
| 2747 | <Expanded> |
| 2748 | 8 == 8 |
| 2749 | </Expanded> |
| 2750 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2751 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2752 | <Original> |
| 2753 | multiply( j, 2 ) == j*2 |
| 2754 | </Original> |
| 2755 | <Expanded> |
| 2756 | 214 == 214 |
| 2757 | </Expanded> |
| 2758 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2759 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2760 | <Original> |
| 2761 | multiply( i, 2 ) == i*2 |
| 2762 | </Original> |
| 2763 | <Expanded> |
| 2764 | 10 == 10 |
| 2765 | </Expanded> |
| 2766 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2767 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2768 | <Original> |
| 2769 | multiply( j, 2 ) == j*2 |
| 2770 | </Original> |
| 2771 | <Expanded> |
| 2772 | 214 == 214 |
| 2773 | </Expanded> |
| 2774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2775 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2776 | <Original> |
| 2777 | multiply( i, 2 ) == i*2 |
| 2778 | </Original> |
| 2779 | <Expanded> |
| 2780 | 30 == 30 |
| 2781 | </Expanded> |
| 2782 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2783 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2784 | <Original> |
| 2785 | multiply( j, 2 ) == j*2 |
| 2786 | </Original> |
| 2787 | <Expanded> |
| 2788 | 214 == 214 |
| 2789 | </Expanded> |
| 2790 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2791 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2792 | <Original> |
| 2793 | multiply( i, 2 ) == i*2 |
| 2794 | </Original> |
| 2795 | <Expanded> |
| 2796 | 40 == 40 |
| 2797 | </Expanded> |
| 2798 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2799 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2800 | <Original> |
| 2801 | multiply( j, 2 ) == j*2 |
| 2802 | </Original> |
| 2803 | <Expanded> |
| 2804 | 214 == 214 |
| 2805 | </Expanded> |
| 2806 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2807 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2808 | <Original> |
| 2809 | multiply( i, 2 ) == i*2 |
| 2810 | </Original> |
| 2811 | <Expanded> |
| 2812 | 42 == 42 |
| 2813 | </Expanded> |
| 2814 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2815 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2816 | <Original> |
| 2817 | multiply( j, 2 ) == j*2 |
| 2818 | </Original> |
| 2819 | <Expanded> |
| 2820 | 214 == 214 |
| 2821 | </Expanded> |
| 2822 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2823 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2824 | <Original> |
| 2825 | multiply( i, 2 ) == i*2 |
| 2826 | </Original> |
| 2827 | <Expanded> |
| 2828 | 72 == 72 |
| 2829 | </Expanded> |
| 2830 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2831 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2832 | <Original> |
| 2833 | multiply( j, 2 ) == j*2 |
| 2834 | </Original> |
| 2835 | <Expanded> |
| 2836 | 214 == 214 |
| 2837 | </Expanded> |
| 2838 | </Expression> |
| 2839 | <OverallResult success="true"/> |
| 2840 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2841 | <TestCase name="Generator over a range of pairs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2842 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2843 | <Original> |
| 2844 | i->first == i->second-1 |
| 2845 | </Original> |
| 2846 | <Expanded> |
| 2847 | 0 == 0 |
| 2848 | </Expanded> |
| 2849 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2850 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2851 | <Original> |
| 2852 | i->first == i->second-1 |
| 2853 | </Original> |
| 2854 | <Expanded> |
| 2855 | 2 == 2 |
| 2856 | </Expanded> |
| 2857 | </Expression> |
| 2858 | <OverallResult success="true"/> |
| 2859 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2860 | <TestCase name="INFO and WARN do not abort tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2861 | <Info> |
| 2862 | this is a message |
| 2863 | </Info> |
| 2864 | <Warning> |
| 2865 | this is a warning |
| 2866 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2867 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2868 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2869 | <TestCase name="SUCCEED counts as a test pass"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2870 | <OverallResult success="true"/> |
| 2871 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2872 | <TestCase name="INFO gets logged on failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2873 | <Info> |
| 2874 | this message should be logged |
| 2875 | </Info> |
| 2876 | <Info> |
| 2877 | so should this |
| 2878 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2879 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2880 | <Original> |
| 2881 | a == 1 |
| 2882 | </Original> |
| 2883 | <Expanded> |
| 2884 | 2 == 1 |
| 2885 | </Expanded> |
| 2886 | </Expression> |
| 2887 | <OverallResult success="false"/> |
| 2888 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2889 | <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] | 2890 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2891 | <Original> |
| 2892 | a == 2 |
| 2893 | </Original> |
| 2894 | <Expanded> |
| 2895 | 2 == 2 |
| 2896 | </Expanded> |
| 2897 | </Expression> |
| 2898 | <Info> |
| 2899 | this message should be logged |
| 2900 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2901 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2902 | <Original> |
| 2903 | a == 1 |
| 2904 | </Original> |
| 2905 | <Expanded> |
| 2906 | 2 == 1 |
| 2907 | </Expanded> |
| 2908 | </Expression> |
| 2909 | <Info> |
| 2910 | and this, but later |
| 2911 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2912 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2913 | <Original> |
| 2914 | a == 0 |
| 2915 | </Original> |
| 2916 | <Expanded> |
| 2917 | 2 == 0 |
| 2918 | </Expanded> |
| 2919 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2920 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2921 | <Original> |
| 2922 | a == 2 |
| 2923 | </Original> |
| 2924 | <Expanded> |
| 2925 | 2 == 2 |
| 2926 | </Expanded> |
| 2927 | </Expression> |
| 2928 | <OverallResult success="false"/> |
| 2929 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2930 | <TestCase name="FAIL aborts the test"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2931 | <Failure> |
| 2932 | This is a failure |
| 2933 | </Failure> |
| 2934 | <OverallResult success="false"/> |
| 2935 | </TestCase> |
Phil Nash | 859760a | 2013-12-14 14:34:05 +0000 | [diff] [blame] | 2936 | <TestCase name="FAIL does not require an argument"> |
| 2937 | <Failure/> |
| 2938 | <OverallResult success="false"/> |
| 2939 | </TestCase> |
Phil Nash | 557b3bd | 2013-12-14 23:16:03 +0000 | [diff] [blame] | 2940 | <TestCase name="SUCCESS does not require an argument"> |
| 2941 | <OverallResult success="true"/> |
| 2942 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2943 | <TestCase name="Output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2944 | <Section name="one"> |
| 2945 | <Failure> |
| 2946 | Message from section one |
| 2947 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2948 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2949 | </Section> |
| 2950 | <Section name="two"> |
| 2951 | <Failure> |
| 2952 | Message from section two |
| 2953 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2954 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2955 | </Section> |
| 2956 | <OverallResult success="false"/> |
| 2957 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2958 | <TestCase name="Standard output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2959 | <Section name="one"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2960 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2961 | </Section> |
| 2962 | <Section name="two"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2963 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2964 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2965 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2966 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2967 | <TestCase name="SCOPED_INFO is reset for each loop"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2968 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2969 | <Original> |
| 2970 | i < 10 |
| 2971 | </Original> |
| 2972 | <Expanded> |
| 2973 | 0 < 10 |
| 2974 | </Expanded> |
| 2975 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2976 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2977 | <Original> |
| 2978 | i < 10 |
| 2979 | </Original> |
| 2980 | <Expanded> |
| 2981 | 1 < 10 |
| 2982 | </Expanded> |
| 2983 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2984 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2985 | <Original> |
| 2986 | i < 10 |
| 2987 | </Original> |
| 2988 | <Expanded> |
| 2989 | 2 < 10 |
| 2990 | </Expanded> |
| 2991 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2992 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2993 | <Original> |
| 2994 | i < 10 |
| 2995 | </Original> |
| 2996 | <Expanded> |
| 2997 | 3 < 10 |
| 2998 | </Expanded> |
| 2999 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3000 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3001 | <Original> |
| 3002 | i < 10 |
| 3003 | </Original> |
| 3004 | <Expanded> |
| 3005 | 4 < 10 |
| 3006 | </Expanded> |
| 3007 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3008 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3009 | <Original> |
| 3010 | i < 10 |
| 3011 | </Original> |
| 3012 | <Expanded> |
| 3013 | 5 < 10 |
| 3014 | </Expanded> |
| 3015 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3016 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3017 | <Original> |
| 3018 | i < 10 |
| 3019 | </Original> |
| 3020 | <Expanded> |
| 3021 | 6 < 10 |
| 3022 | </Expanded> |
| 3023 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3024 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3025 | <Original> |
| 3026 | i < 10 |
| 3027 | </Original> |
| 3028 | <Expanded> |
| 3029 | 7 < 10 |
| 3030 | </Expanded> |
| 3031 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3032 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3033 | <Original> |
| 3034 | i < 10 |
| 3035 | </Original> |
| 3036 | <Expanded> |
| 3037 | 8 < 10 |
| 3038 | </Expanded> |
| 3039 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3040 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3041 | <Original> |
| 3042 | i < 10 |
| 3043 | </Original> |
| 3044 | <Expanded> |
| 3045 | 9 < 10 |
| 3046 | </Expanded> |
| 3047 | </Expression> |
| 3048 | <Info> |
| 3049 | current counter 10 |
| 3050 | </Info> |
| 3051 | <Info> |
| 3052 | i := 10 |
| 3053 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3054 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3055 | <Original> |
| 3056 | i < 10 |
| 3057 | </Original> |
| 3058 | <Expanded> |
| 3059 | 10 < 10 |
| 3060 | </Expanded> |
| 3061 | </Expression> |
| 3062 | <OverallResult success="false"/> |
| 3063 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3064 | <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] | 3065 | <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3066 | <Original> |
| 3067 | 1 == 2 |
| 3068 | </Original> |
| 3069 | <Expanded> |
| 3070 | 1 == 2 |
| 3071 | </Expanded> |
| 3072 | </Expression> |
| 3073 | <OverallResult success="false"/> |
| 3074 | </TestCase> |
| 3075 | <TestCase name="just info"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3076 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3077 | </TestCase> |
| 3078 | <TestCase name="just failure"> |
| 3079 | <Failure> |
| 3080 | Previous info should not be seen |
| 3081 | </Failure> |
| 3082 | <OverallResult success="false"/> |
| 3083 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3084 | <TestCase name="sends information to INFO"> |
| 3085 | <Info> |
| 3086 | hi |
| 3087 | </Info> |
| 3088 | <Info> |
| 3089 | i := 7 |
| 3090 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3091 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3092 | <Original> |
| 3093 | false |
| 3094 | </Original> |
| 3095 | <Expanded> |
| 3096 | false |
| 3097 | </Expanded> |
| 3098 | </Expression> |
| 3099 | <OverallResult success="false"/> |
| 3100 | </TestCase> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3101 | <TestCase name="Pointers can be converted to strings"> |
| 3102 | <Warning> |
| 3103 | actual address of p: 0x<hex digits> |
| 3104 | </Warning> |
| 3105 | <Warning> |
| 3106 | toString(p): 0x<hex digits> |
| 3107 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3108 | <OverallResult success="false"/> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3109 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3110 | <TestCase name="random SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3111 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3112 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3113 | <Original> |
| 3114 | a != b |
| 3115 | </Original> |
| 3116 | <Expanded> |
| 3117 | 1 != 2 |
| 3118 | </Expanded> |
| 3119 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3120 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3121 | <Original> |
| 3122 | b != a |
| 3123 | </Original> |
| 3124 | <Expanded> |
| 3125 | 2 != 1 |
| 3126 | </Expanded> |
| 3127 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3128 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3129 | </Section> |
| 3130 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3131 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3132 | <Original> |
| 3133 | a != b |
| 3134 | </Original> |
| 3135 | <Expanded> |
| 3136 | 1 != 2 |
| 3137 | </Expanded> |
| 3138 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3139 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3140 | </Section> |
| 3141 | <OverallResult success="true"/> |
| 3142 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3143 | <TestCase name="nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3144 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3145 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3146 | <Original> |
| 3147 | a != b |
| 3148 | </Original> |
| 3149 | <Expanded> |
| 3150 | 1 != 2 |
| 3151 | </Expanded> |
| 3152 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3153 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3154 | <Original> |
| 3155 | b != a |
| 3156 | </Original> |
| 3157 | <Expanded> |
| 3158 | 2 != 1 |
| 3159 | </Expanded> |
| 3160 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3161 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3162 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3163 | <Original> |
| 3164 | a != b |
| 3165 | </Original> |
| 3166 | <Expanded> |
| 3167 | 1 != 2 |
| 3168 | </Expanded> |
| 3169 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3170 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3171 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3172 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3173 | </Section> |
| 3174 | <OverallResult success="true"/> |
| 3175 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3176 | <TestCase name="more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3177 | <Section name="s1" description="doesn't equal"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3178 | <Section name="s2" description="equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3179 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3180 | <Original> |
| 3181 | a == b |
| 3182 | </Original> |
| 3183 | <Expanded> |
| 3184 | 1 == 2 |
| 3185 | </Expanded> |
| 3186 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3187 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3188 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3189 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3190 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3191 | <OverallResult success="false"/> |
| 3192 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3193 | <TestCase name="even more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3194 | <Section name="c"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3195 | <Section name="d (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3196 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3197 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3198 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3199 | </Section> |
| 3200 | <Section name="c"> |
| 3201 | <Section name="e (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3202 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3203 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3204 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3205 | </Section> |
| 3206 | <Section name="f (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3207 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3208 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3209 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3210 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3211 | <TestCase name="looped SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3212 | <Section name="s1" description="b is currently: 0"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3213 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3214 | <Original> |
| 3215 | b > a |
| 3216 | </Original> |
| 3217 | <Expanded> |
| 3218 | 0 > 1 |
| 3219 | </Expanded> |
| 3220 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3221 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3222 | </Section> |
| 3223 | <OverallResult success="false"/> |
| 3224 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3225 | <TestCase name="looped tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3226 | <Info> |
| 3227 | Testing if fib[0] (1) is even |
| 3228 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3229 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3230 | <Original> |
| 3231 | ( fib[i] % 2 ) == 0 |
| 3232 | </Original> |
| 3233 | <Expanded> |
| 3234 | 1 == 0 |
| 3235 | </Expanded> |
| 3236 | </Expression> |
| 3237 | <Info> |
| 3238 | Testing if fib[1] (1) is even |
| 3239 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3240 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3241 | <Original> |
| 3242 | ( fib[i] % 2 ) == 0 |
| 3243 | </Original> |
| 3244 | <Expanded> |
| 3245 | 1 == 0 |
| 3246 | </Expanded> |
| 3247 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3248 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3249 | <Original> |
| 3250 | ( fib[i] % 2 ) == 0 |
| 3251 | </Original> |
| 3252 | <Expanded> |
| 3253 | 0 == 0 |
| 3254 | </Expanded> |
| 3255 | </Expression> |
| 3256 | <Info> |
| 3257 | Testing if fib[3] (3) is even |
| 3258 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3259 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3260 | <Original> |
| 3261 | ( fib[i] % 2 ) == 0 |
| 3262 | </Original> |
| 3263 | <Expanded> |
| 3264 | 1 == 0 |
| 3265 | </Expanded> |
| 3266 | </Expression> |
| 3267 | <Info> |
| 3268 | Testing if fib[4] (5) is even |
| 3269 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3270 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3271 | <Original> |
| 3272 | ( fib[i] % 2 ) == 0 |
| 3273 | </Original> |
| 3274 | <Expanded> |
| 3275 | 1 == 0 |
| 3276 | </Expanded> |
| 3277 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3278 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3279 | <Original> |
| 3280 | ( fib[i] % 2 ) == 0 |
| 3281 | </Original> |
| 3282 | <Expanded> |
| 3283 | 0 == 0 |
| 3284 | </Expanded> |
| 3285 | </Expression> |
| 3286 | <Info> |
| 3287 | Testing if fib[6] (13) is even |
| 3288 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3289 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3290 | <Original> |
| 3291 | ( fib[i] % 2 ) == 0 |
| 3292 | </Original> |
| 3293 | <Expanded> |
| 3294 | 1 == 0 |
| 3295 | </Expanded> |
| 3296 | </Expression> |
| 3297 | <Info> |
| 3298 | Testing if fib[7] (21) is even |
| 3299 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3300 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3301 | <Original> |
| 3302 | ( fib[i] % 2 ) == 0 |
| 3303 | </Original> |
| 3304 | <Expanded> |
| 3305 | 1 == 0 |
| 3306 | </Expanded> |
| 3307 | </Expression> |
| 3308 | <OverallResult success="false"/> |
| 3309 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3310 | <TestCase name="Sends stuff to stdout and stderr"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3311 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3312 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3313 | <TestCase name="null strings"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3314 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3315 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3316 | makeString( false ) != static_cast<char*>(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3317 | </Original> |
| 3318 | <Expanded> |
| 3319 | "valid string" != {null string} |
| 3320 | </Expanded> |
| 3321 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3322 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3323 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3324 | makeString( true ) == static_cast<char*>(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3325 | </Original> |
| 3326 | <Expanded> |
| 3327 | {null string} == {null string} |
| 3328 | </Expanded> |
| 3329 | </Expression> |
| 3330 | <OverallResult success="true"/> |
| 3331 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3332 | <TestCase name="checkedIf"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3333 | <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3334 | <Original> |
| 3335 | flag |
| 3336 | </Original> |
| 3337 | <Expanded> |
| 3338 | true |
| 3339 | </Expanded> |
| 3340 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3341 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3342 | <Original> |
| 3343 | testCheckedIf( true ) |
| 3344 | </Original> |
| 3345 | <Expanded> |
| 3346 | true |
| 3347 | </Expanded> |
| 3348 | </Expression> |
| 3349 | <OverallResult success="true"/> |
| 3350 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3351 | <TestCase name="checkedIf, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3352 | <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3353 | <Original> |
| 3354 | flag |
| 3355 | </Original> |
| 3356 | <Expanded> |
| 3357 | false |
| 3358 | </Expanded> |
| 3359 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3360 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3361 | <Original> |
| 3362 | testCheckedIf( false ) |
| 3363 | </Original> |
| 3364 | <Expanded> |
| 3365 | false |
| 3366 | </Expanded> |
| 3367 | </Expression> |
| 3368 | <OverallResult success="false"/> |
| 3369 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3370 | <TestCase name="checkedElse"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3371 | <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3372 | <Original> |
| 3373 | flag |
| 3374 | </Original> |
| 3375 | <Expanded> |
| 3376 | true |
| 3377 | </Expanded> |
| 3378 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3379 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3380 | <Original> |
| 3381 | testCheckedElse( true ) |
| 3382 | </Original> |
| 3383 | <Expanded> |
| 3384 | true |
| 3385 | </Expanded> |
| 3386 | </Expression> |
| 3387 | <OverallResult success="true"/> |
| 3388 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3389 | <TestCase name="checkedElse, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3390 | <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3391 | <Original> |
| 3392 | flag |
| 3393 | </Original> |
| 3394 | <Expanded> |
| 3395 | false |
| 3396 | </Expanded> |
| 3397 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3398 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3399 | <Original> |
| 3400 | testCheckedElse( false ) |
| 3401 | </Original> |
| 3402 | <Expanded> |
| 3403 | false |
| 3404 | </Expanded> |
| 3405 | </Expression> |
| 3406 | <OverallResult success="false"/> |
| 3407 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3408 | <TestCase name="xmlentitycheck"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3409 | <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] | 3410 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3411 | </Section> |
| 3412 | <Section name="encoded chars" description="these should all be encoded: &&&"""<<<&"<<&""> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3413 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3414 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3415 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3416 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3417 | <TestCase name="send a single char to INFO"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3418 | <Info> |
| 3419 | 3 |
| 3420 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3421 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3422 | <Original> |
| 3423 | false |
| 3424 | </Original> |
| 3425 | <Expanded> |
| 3426 | false |
| 3427 | </Expanded> |
| 3428 | </Expression> |
| 3429 | <OverallResult success="false"/> |
| 3430 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3431 | <TestCase name="atomic if"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3432 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3433 | <Original> |
| 3434 | x == 0 |
| 3435 | </Original> |
| 3436 | <Expanded> |
| 3437 | 0 == 0 |
| 3438 | </Expanded> |
| 3439 | </Expression> |
| 3440 | <OverallResult success="true"/> |
| 3441 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3442 | <TestCase name="String matchers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3443 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3444 | <Original> |
| 3445 | testStringForMatching() Contains( "string" ) |
| 3446 | </Original> |
| 3447 | <Expanded> |
| 3448 | "this string contains 'abc' as a substring" contains: "string" |
| 3449 | </Expanded> |
| 3450 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3451 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3452 | <Original> |
| 3453 | testStringForMatching() Contains( "abc" ) |
| 3454 | </Original> |
| 3455 | <Expanded> |
| 3456 | "this string contains 'abc' as a substring" contains: "abc" |
| 3457 | </Expanded> |
| 3458 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3459 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3460 | <Original> |
| 3461 | testStringForMatching() StartsWith( "this" ) |
| 3462 | </Original> |
| 3463 | <Expanded> |
| 3464 | "this string contains 'abc' as a substring" starts with: "this" |
| 3465 | </Expanded> |
| 3466 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3467 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3468 | <Original> |
| 3469 | testStringForMatching() EndsWith( "substring" ) |
| 3470 | </Original> |
| 3471 | <Expanded> |
| 3472 | "this string contains 'abc' as a substring" ends with: "substring" |
| 3473 | </Expanded> |
| 3474 | </Expression> |
| 3475 | <OverallResult success="true"/> |
| 3476 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3477 | <TestCase name="Contains string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3478 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3479 | <Original> |
| 3480 | testStringForMatching() Contains( "not there" ) |
| 3481 | </Original> |
| 3482 | <Expanded> |
| 3483 | "this string contains 'abc' as a substring" contains: "not there" |
| 3484 | </Expanded> |
| 3485 | </Expression> |
| 3486 | <OverallResult success="false"/> |
| 3487 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3488 | <TestCase name="StartsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3489 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3490 | <Original> |
| 3491 | testStringForMatching() StartsWith( "string" ) |
| 3492 | </Original> |
| 3493 | <Expanded> |
| 3494 | "this string contains 'abc' as a substring" starts with: "string" |
| 3495 | </Expanded> |
| 3496 | </Expression> |
| 3497 | <OverallResult success="false"/> |
| 3498 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3499 | <TestCase name="EndsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3500 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3501 | <Original> |
| 3502 | testStringForMatching() EndsWith( "this" ) |
| 3503 | </Original> |
| 3504 | <Expanded> |
| 3505 | "this string contains 'abc' as a substring" ends with: "this" |
| 3506 | </Expanded> |
| 3507 | </Expression> |
| 3508 | <OverallResult success="false"/> |
| 3509 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3510 | <TestCase name="Equals string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3511 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3512 | <Original> |
| 3513 | testStringForMatching() Equals( "something else" ) |
| 3514 | </Original> |
| 3515 | <Expanded> |
| 3516 | "this string contains 'abc' as a substring" equals: "something else" |
| 3517 | </Expanded> |
| 3518 | </Expression> |
| 3519 | <OverallResult success="false"/> |
| 3520 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3521 | <TestCase name="Equals string matcher, with NULL"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3522 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3523 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3524 | "" Equals(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3525 | </Original> |
| 3526 | <Expanded> |
| 3527 | "" equals: "" |
| 3528 | </Expanded> |
| 3529 | </Expression> |
| 3530 | <OverallResult success="true"/> |
| 3531 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3532 | <TestCase name="AllOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3533 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3534 | <Original> |
| 3535 | testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) |
| 3536 | </Original> |
| 3537 | <Expanded> |
| 3538 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) |
| 3539 | </Expanded> |
| 3540 | </Expression> |
| 3541 | <OverallResult success="true"/> |
| 3542 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3543 | <TestCase name="AnyOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3544 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3545 | <Original> |
| 3546 | testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) |
| 3547 | </Original> |
| 3548 | <Expanded> |
| 3549 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) |
| 3550 | </Expanded> |
| 3551 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3552 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3553 | <Original> |
| 3554 | testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) |
| 3555 | </Original> |
| 3556 | <Expanded> |
| 3557 | "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) |
| 3558 | </Expanded> |
| 3559 | </Expression> |
| 3560 | <OverallResult success="true"/> |
| 3561 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3562 | <TestCase name="Equals"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3563 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3564 | <Original> |
| 3565 | testStringForMatching() Equals( "this string contains 'abc' as a substring" ) |
| 3566 | </Original> |
| 3567 | <Expanded> |
| 3568 | "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" |
| 3569 | </Expanded> |
| 3570 | </Expression> |
| 3571 | <OverallResult success="true"/> |
| 3572 | </TestCase> |
| 3573 | <TestCase name="Factorials are computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3574 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3575 | <Original> |
| 3576 | Factorial(0) == 1 |
| 3577 | </Original> |
| 3578 | <Expanded> |
| 3579 | 1 == 1 |
| 3580 | </Expanded> |
| 3581 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3582 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3583 | <Original> |
| 3584 | Factorial(1) == 1 |
| 3585 | </Original> |
| 3586 | <Expanded> |
| 3587 | 1 == 1 |
| 3588 | </Expanded> |
| 3589 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3590 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3591 | <Original> |
| 3592 | Factorial(2) == 2 |
| 3593 | </Original> |
| 3594 | <Expanded> |
| 3595 | 2 == 2 |
| 3596 | </Expanded> |
| 3597 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3598 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3599 | <Original> |
| 3600 | Factorial(3) == 6 |
| 3601 | </Original> |
| 3602 | <Expanded> |
| 3603 | 6 == 6 |
| 3604 | </Expanded> |
| 3605 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3606 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3607 | <Original> |
| 3608 | Factorial(10) == 3628800 |
| 3609 | </Original> |
| 3610 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 3611 | 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3612 | </Expanded> |
| 3613 | </Expression> |
| 3614 | <OverallResult success="true"/> |
| 3615 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3616 | <TestCase name="An empty test with no assertions"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3617 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3618 | </TestCase> |
| 3619 | <TestCase name="Nice descriptive name"> |
| 3620 | <Warning> |
| 3621 | This one ran |
| 3622 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3623 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3624 | </TestCase> |
| 3625 | <TestCase name="first tag"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3626 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3627 | </TestCase> |
| 3628 | <TestCase name="second tag"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3629 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3630 | </TestCase> |
| 3631 | <TestCase name="vectors can be sized and resized"> |
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.size() == 5 |
| 3635 | </Original> |
| 3636 | <Expanded> |
| 3637 | 5 == 5 |
| 3638 | </Expanded> |
| 3639 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3640 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3641 | <Original> |
| 3642 | v.capacity() >= 5 |
| 3643 | </Original> |
| 3644 | <Expanded> |
| 3645 | 5 >= 5 |
| 3646 | </Expanded> |
| 3647 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3648 | <Section name="resizing bigger changes size and capacity"> |
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.size() == 10 |
| 3652 | </Original> |
| 3653 | <Expanded> |
| 3654 | 10 == 10 |
| 3655 | </Expanded> |
| 3656 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3657 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3658 | <Original> |
| 3659 | v.capacity() >= 10 |
| 3660 | </Original> |
| 3661 | <Expanded> |
| 3662 | 10 >= 10 |
| 3663 | </Expanded> |
| 3664 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3665 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3666 | </Section> |
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.size() == 5 |
| 3670 | </Original> |
| 3671 | <Expanded> |
| 3672 | 5 == 5 |
| 3673 | </Expanded> |
| 3674 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3675 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3676 | <Original> |
| 3677 | v.capacity() >= 5 |
| 3678 | </Original> |
| 3679 | <Expanded> |
| 3680 | 5 >= 5 |
| 3681 | </Expanded> |
| 3682 | </Expression> |
| 3683 | <Section name="resizing smaller changes size but not capacity"> |
Phil 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.size() == 0 |
| 3687 | </Original> |
| 3688 | <Expanded> |
| 3689 | 0 == 0 |
| 3690 | </Expanded> |
| 3691 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3692 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3693 | <Original> |
| 3694 | v.capacity() >= 5 |
| 3695 | </Original> |
| 3696 | <Expanded> |
| 3697 | 5 >= 5 |
| 3698 | </Expanded> |
| 3699 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3700 | <Section name="We can use the 'swap trick' to reset the capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3701 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3702 | <Original> |
| 3703 | v.capacity() == 0 |
| 3704 | </Original> |
| 3705 | <Expanded> |
| 3706 | 0 == 0 |
| 3707 | </Expanded> |
| 3708 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3709 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3710 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3711 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3712 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3713 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3714 | <Original> |
| 3715 | v.size() == 5 |
| 3716 | </Original> |
| 3717 | <Expanded> |
| 3718 | 5 == 5 |
| 3719 | </Expanded> |
| 3720 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3721 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3722 | <Original> |
| 3723 | v.capacity() >= 5 |
| 3724 | </Original> |
| 3725 | <Expanded> |
| 3726 | 5 >= 5 |
| 3727 | </Expanded> |
| 3728 | </Expression> |
| 3729 | <Section name="reserving bigger changes capacity but not size"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3730 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3731 | <Original> |
| 3732 | v.size() == 5 |
| 3733 | </Original> |
| 3734 | <Expanded> |
| 3735 | 5 == 5 |
| 3736 | </Expanded> |
| 3737 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3738 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3739 | <Original> |
| 3740 | v.capacity() >= 10 |
| 3741 | </Original> |
| 3742 | <Expanded> |
| 3743 | 10 >= 10 |
| 3744 | </Expanded> |
| 3745 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3746 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3747 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3748 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3749 | <Original> |
| 3750 | v.size() == 5 |
| 3751 | </Original> |
| 3752 | <Expanded> |
| 3753 | 5 == 5 |
| 3754 | </Expanded> |
| 3755 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3756 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3757 | <Original> |
| 3758 | v.capacity() >= 5 |
| 3759 | </Original> |
| 3760 | <Expanded> |
| 3761 | 5 >= 5 |
| 3762 | </Expanded> |
| 3763 | </Expression> |
| 3764 | <Section name="reserving smaller does not change size or capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3765 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3766 | <Original> |
| 3767 | v.size() == 5 |
| 3768 | </Original> |
| 3769 | <Expanded> |
| 3770 | 5 == 5 |
| 3771 | </Expanded> |
| 3772 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3773 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3774 | <Original> |
| 3775 | v.capacity() >= 5 |
| 3776 | </Original> |
| 3777 | <Expanded> |
| 3778 | 5 >= 5 |
| 3779 | </Expanded> |
| 3780 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3781 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3782 | </Section> |
| 3783 | <OverallResult success="true"/> |
| 3784 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3785 | <TestCase name="A couple of nested sections followed by a failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3786 | <Section name="Outer"> |
| 3787 | <Section name="Inner"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3788 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3789 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3790 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3791 | </Section> |
| 3792 | <Failure> |
| 3793 | to infinity and beyond |
| 3794 | </Failure> |
| 3795 | <OverallResult success="false"/> |
| 3796 | </TestCase> |
Phil Nash | 20cad7c | 2014-04-15 18:44:37 +0100 | [diff] [blame] | 3797 | <TestCase name="not allowed"> |
| 3798 | <OverallResult success="true"/> |
| 3799 | </TestCase> |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3800 | <TestCase name="Tabs and newlines show in output"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3801 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3802 | <Original> |
| 3803 | s1 == s2 |
| 3804 | </Original> |
| 3805 | <Expanded> |
| 3806 | "if ($b == 10) { |
| 3807 | $a = 20; |
| 3808 | }" |
| 3809 | == |
| 3810 | "if ($b == 10) { |
| 3811 | $a = 20; |
| 3812 | } |
| 3813 | " |
| 3814 | </Expanded> |
| 3815 | </Expression> |
| 3816 | <OverallResult success="false"/> |
| 3817 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3818 | <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] | 3819 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3820 | <Original> |
| 3821 | result == "\"wide load\"" |
| 3822 | </Original> |
| 3823 | <Expanded> |
| 3824 | ""wide load"" == ""wide load"" |
| 3825 | </Expanded> |
| 3826 | </Expression> |
| 3827 | <OverallResult success="true"/> |
| 3828 | </TestCase> |
| 3829 | <TestCase name="toString on const wchar_t pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3830 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3831 | <Original> |
| 3832 | result == "\"wide load\"" |
| 3833 | </Original> |
| 3834 | <Expanded> |
| 3835 | ""wide load"" == ""wide load"" |
| 3836 | </Expanded> |
| 3837 | </Expression> |
| 3838 | <OverallResult success="true"/> |
| 3839 | </TestCase> |
| 3840 | <TestCase name="toString on wchar_t const pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3841 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3842 | <Original> |
| 3843 | result == "\"wide load\"" |
| 3844 | </Original> |
| 3845 | <Expanded> |
| 3846 | ""wide load"" == ""wide load"" |
| 3847 | </Expanded> |
| 3848 | </Expression> |
| 3849 | <OverallResult success="true"/> |
| 3850 | </TestCase> |
| 3851 | <TestCase name="toString on wchar_t returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3852 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3853 | <Original> |
| 3854 | result == "\"wide load\"" |
| 3855 | </Original> |
| 3856 | <Expanded> |
| 3857 | ""wide load"" == ""wide load"" |
| 3858 | </Expanded> |
| 3859 | </Expression> |
| 3860 | <OverallResult success="true"/> |
| 3861 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3862 | <TestCase name="Process can be configured on command line"> |
| 3863 | <Section name="default - no arguments"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3864 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3865 | <Original> |
| 3866 | parseIntoConfig( argv, config ) |
| 3867 | </Original> |
| 3868 | <Expanded> |
| 3869 | parseIntoConfig( argv, config ) |
| 3870 | </Expanded> |
| 3871 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3872 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3873 | <Original> |
| 3874 | config.shouldDebugBreak == false |
| 3875 | </Original> |
| 3876 | <Expanded> |
| 3877 | false == false |
| 3878 | </Expanded> |
| 3879 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3880 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3881 | <Original> |
| 3882 | config.abortAfter == -1 |
| 3883 | </Original> |
| 3884 | <Expanded> |
| 3885 | -1 == -1 |
| 3886 | </Expanded> |
| 3887 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3888 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3889 | <Original> |
| 3890 | config.noThrow == false |
| 3891 | </Original> |
| 3892 | <Expanded> |
| 3893 | false == false |
| 3894 | </Expanded> |
| 3895 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3896 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3897 | <Original> |
| 3898 | config.reporterName.empty() |
| 3899 | </Original> |
| 3900 | <Expanded> |
| 3901 | true |
| 3902 | </Expanded> |
| 3903 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3904 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3905 | </Section> |
| 3906 | <Section name="test lists"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3907 | <Section name="1 test" description="Specify one test case using"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3908 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3909 | <Original> |
| 3910 | parseIntoConfig( argv, config ) |
| 3911 | </Original> |
| 3912 | <Expanded> |
| 3913 | parseIntoConfig( argv, config ) |
| 3914 | </Expanded> |
| 3915 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3916 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3917 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3918 | cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3919 | </Original> |
| 3920 | <Expanded> |
| 3921 | false == false |
| 3922 | </Expanded> |
| 3923 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3924 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3925 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3926 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3927 | </Original> |
| 3928 | <Expanded> |
| 3929 | true |
| 3930 | </Expanded> |
| 3931 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3932 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3933 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3934 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3935 | </Section> |
| 3936 | <Section name="test lists"> |
| 3937 | <Section name="Specify one test case exclusion using exclude:"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3938 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3939 | <Original> |
| 3940 | parseIntoConfig( argv, config ) |
| 3941 | </Original> |
| 3942 | <Expanded> |
| 3943 | parseIntoConfig( argv, config ) |
| 3944 | </Expanded> |
| 3945 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3946 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3947 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3948 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3949 | </Original> |
| 3950 | <Expanded> |
| 3951 | false == false |
| 3952 | </Expanded> |
| 3953 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3954 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3955 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3956 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3957 | </Original> |
| 3958 | <Expanded> |
| 3959 | true |
| 3960 | </Expanded> |
| 3961 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3962 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3963 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3964 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3965 | </Section> |
| 3966 | <Section name="test lists"> |
| 3967 | <Section name="Specify one test case exclusion using ~"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3968 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3969 | <Original> |
| 3970 | parseIntoConfig( argv, config ) |
| 3971 | </Original> |
| 3972 | <Expanded> |
| 3973 | parseIntoConfig( argv, config ) |
| 3974 | </Expanded> |
| 3975 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3976 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3977 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3978 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3979 | </Original> |
| 3980 | <Expanded> |
| 3981 | false == false |
| 3982 | </Expanded> |
| 3983 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3984 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3985 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3986 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3987 | </Original> |
| 3988 | <Expanded> |
| 3989 | true |
| 3990 | </Expanded> |
| 3991 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3992 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3993 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3994 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3995 | </Section> |
| 3996 | <Section name="reporter"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3997 | <Section name="-r/console"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3998 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3999 | <Original> |
| 4000 | parseIntoConfig( argv, config ) |
| 4001 | </Original> |
| 4002 | <Expanded> |
| 4003 | parseIntoConfig( argv, config ) |
| 4004 | </Expanded> |
| 4005 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4006 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4007 | <Original> |
| 4008 | config.reporterName == "console" |
| 4009 | </Original> |
| 4010 | <Expanded> |
| 4011 | "console" == "console" |
| 4012 | </Expanded> |
| 4013 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4014 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4015 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4016 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4017 | </Section> |
| 4018 | <Section name="reporter"> |
| 4019 | <Section name="-r/xml"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4020 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4021 | <Original> |
| 4022 | parseIntoConfig( argv, config ) |
| 4023 | </Original> |
| 4024 | <Expanded> |
| 4025 | parseIntoConfig( argv, config ) |
| 4026 | </Expanded> |
| 4027 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4028 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4029 | <Original> |
| 4030 | config.reporterName == "xml" |
| 4031 | </Original> |
| 4032 | <Expanded> |
| 4033 | "xml" == "xml" |
| 4034 | </Expanded> |
| 4035 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4036 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4037 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4038 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4039 | </Section> |
| 4040 | <Section name="reporter"> |
| 4041 | <Section name="--reporter/junit"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4042 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4043 | <Original> |
| 4044 | parseIntoConfig( argv, config ) |
| 4045 | </Original> |
| 4046 | <Expanded> |
| 4047 | parseIntoConfig( argv, config ) |
| 4048 | </Expanded> |
| 4049 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4050 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4051 | <Original> |
| 4052 | config.reporterName == "junit" |
| 4053 | </Original> |
| 4054 | <Expanded> |
| 4055 | "junit" == "junit" |
| 4056 | </Expanded> |
| 4057 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4058 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4059 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4060 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4061 | </Section> |
| 4062 | <Section name="debugger"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4063 | <Section name="-b"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4064 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4065 | <Original> |
| 4066 | parseIntoConfig( argv, config ) |
| 4067 | </Original> |
| 4068 | <Expanded> |
| 4069 | parseIntoConfig( argv, config ) |
| 4070 | </Expanded> |
| 4071 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4072 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4073 | <Original> |
| 4074 | config.shouldDebugBreak == true |
| 4075 | </Original> |
| 4076 | <Expanded> |
| 4077 | true == true |
| 4078 | </Expanded> |
| 4079 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4080 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4081 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4082 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4083 | </Section> |
| 4084 | <Section name="debugger"> |
| 4085 | <Section name="--break"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4086 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4087 | <Original> |
| 4088 | parseIntoConfig( argv, config ) |
| 4089 | </Original> |
| 4090 | <Expanded> |
| 4091 | parseIntoConfig( argv, config ) |
| 4092 | </Expanded> |
| 4093 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4094 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4095 | <Original> |
| 4096 | config.shouldDebugBreak |
| 4097 | </Original> |
| 4098 | <Expanded> |
| 4099 | true |
| 4100 | </Expanded> |
| 4101 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4102 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4103 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4104 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4105 | </Section> |
| 4106 | <Section name="abort"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4107 | <Section name="-a aborts after first failure"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4108 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4109 | <Original> |
| 4110 | parseIntoConfig( argv, config ) |
| 4111 | </Original> |
| 4112 | <Expanded> |
| 4113 | parseIntoConfig( argv, config ) |
| 4114 | </Expanded> |
| 4115 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4116 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4117 | <Original> |
| 4118 | config.abortAfter == 1 |
| 4119 | </Original> |
| 4120 | <Expanded> |
| 4121 | 1 == 1 |
| 4122 | </Expanded> |
| 4123 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4124 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4125 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4126 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4127 | </Section> |
| 4128 | <Section name="abort"> |
| 4129 | <Section name="-x 2 aborts after two failures"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4130 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4131 | <Original> |
| 4132 | parseIntoConfig( argv, config ) |
| 4133 | </Original> |
| 4134 | <Expanded> |
| 4135 | parseIntoConfig( argv, config ) |
| 4136 | </Expanded> |
| 4137 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4138 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4139 | <Original> |
| 4140 | config.abortAfter == 2 |
| 4141 | </Original> |
| 4142 | <Expanded> |
| 4143 | 2 == 2 |
| 4144 | </Expanded> |
| 4145 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4146 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4147 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4148 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4149 | </Section> |
| 4150 | <Section name="abort"> |
| 4151 | <Section name="-x must be greater than zero"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4152 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4153 | <Original> |
| 4154 | parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) |
| 4155 | </Original> |
| 4156 | <Expanded> |
| 4157 | "Value after -x or --abortAfter must be greater than zero |
Phil Nash | e9d3537 | 2014-04-12 19:05:03 +0100 | [diff] [blame] | 4158 | - while parsing: (-x, --abortx <no. failures>)" contains: "greater than zero" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4159 | </Expanded> |
| 4160 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4161 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4162 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4163 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4164 | </Section> |
| 4165 | <Section name="abort"> |
| 4166 | <Section name="-x must be numeric"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4167 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4168 | <Original> |
| 4169 | parseIntoConfigAndReturnError( argv, config ) Contains( "-x" ) |
| 4170 | </Original> |
| 4171 | <Expanded> |
| 4172 | "Unable to convert oops to destination type |
Phil Nash | e9d3537 | 2014-04-12 19:05:03 +0100 | [diff] [blame] | 4173 | - while parsing: (-x, --abortx <no. failures>)" contains: "-x" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4174 | </Expanded> |
| 4175 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4176 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4177 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4178 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4179 | </Section> |
| 4180 | <Section name="nothrow"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4181 | <Section name="-e"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4182 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4183 | <Original> |
| 4184 | parseIntoConfig( argv, config ) |
| 4185 | </Original> |
| 4186 | <Expanded> |
| 4187 | parseIntoConfig( argv, config ) |
| 4188 | </Expanded> |
| 4189 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4190 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4191 | <Original> |
| 4192 | config.noThrow == true |
| 4193 | </Original> |
| 4194 | <Expanded> |
| 4195 | true == true |
| 4196 | </Expanded> |
| 4197 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4198 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4199 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4200 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4201 | </Section> |
| 4202 | <Section name="nothrow"> |
| 4203 | <Section name="--nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4204 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4205 | <Original> |
| 4206 | parseIntoConfig( argv, config ) |
| 4207 | </Original> |
| 4208 | <Expanded> |
| 4209 | parseIntoConfig( argv, config ) |
| 4210 | </Expanded> |
| 4211 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4212 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4213 | <Original> |
| 4214 | config.noThrow == true |
| 4215 | </Original> |
| 4216 | <Expanded> |
| 4217 | true == true |
| 4218 | </Expanded> |
| 4219 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4220 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4221 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4222 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4223 | </Section> |
| 4224 | <Section name="output filename"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4225 | <Section name="-o filename"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4226 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4227 | <Original> |
| 4228 | parseIntoConfig( argv, config ) |
| 4229 | </Original> |
| 4230 | <Expanded> |
| 4231 | parseIntoConfig( argv, config ) |
| 4232 | </Expanded> |
| 4233 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4234 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4235 | <Original> |
| 4236 | config.outputFilename == "filename.ext" |
| 4237 | </Original> |
| 4238 | <Expanded> |
| 4239 | "filename.ext" == "filename.ext" |
| 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="output filename"> |
| 4247 | <Section name="--out"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4248 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4249 | <Original> |
| 4250 | parseIntoConfig( argv, config ) |
| 4251 | </Original> |
| 4252 | <Expanded> |
| 4253 | parseIntoConfig( argv, config ) |
| 4254 | </Expanded> |
| 4255 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4256 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4257 | <Original> |
| 4258 | config.outputFilename == "filename.ext" |
| 4259 | </Original> |
| 4260 | <Expanded> |
| 4261 | "filename.ext" == "filename.ext" |
| 4262 | </Expanded> |
| 4263 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4264 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4265 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4266 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4267 | </Section> |
| 4268 | <Section name="combinations"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4269 | <Section name="Single character flags can be combined"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4270 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4271 | <Original> |
| 4272 | parseIntoConfig( argv, config ) |
| 4273 | </Original> |
| 4274 | <Expanded> |
| 4275 | parseIntoConfig( argv, config ) |
| 4276 | </Expanded> |
| 4277 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4278 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4279 | <Original> |
| 4280 | config.abortAfter == 1 |
| 4281 | </Original> |
| 4282 | <Expanded> |
| 4283 | 1 == 1 |
| 4284 | </Expanded> |
| 4285 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4286 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4287 | <Original> |
| 4288 | config.shouldDebugBreak |
| 4289 | </Original> |
| 4290 | <Expanded> |
| 4291 | true |
| 4292 | </Expanded> |
| 4293 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4294 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4295 | <Original> |
| 4296 | config.noThrow == true |
| 4297 | </Original> |
| 4298 | <Expanded> |
| 4299 | true == true |
| 4300 | </Expanded> |
| 4301 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4302 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4303 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4304 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4305 | </Section> |
Phil Nash | 856468c | 2015-03-04 08:22:32 +0000 | [diff] [blame] | 4306 | <Section name="force-colour"> |
| 4307 | <Section name="--force-colour"> |
| 4308 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4309 | <Original> |
| 4310 | parseIntoConfig( argv, config ) |
| 4311 | </Original> |
| 4312 | <Expanded> |
| 4313 | parseIntoConfig( argv, config ) |
| 4314 | </Expanded> |
| 4315 | </Expression> |
| 4316 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4317 | <Original> |
| 4318 | config.forceColour |
| 4319 | </Original> |
| 4320 | <Expanded> |
| 4321 | true |
| 4322 | </Expanded> |
| 4323 | </Expression> |
| 4324 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4325 | </Section> |
| 4326 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4327 | </Section> |
| 4328 | <Section name="force-colour"> |
| 4329 | <Section name="without --force-colour"> |
| 4330 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4331 | <Original> |
| 4332 | parseIntoConfig( argv, config ) |
| 4333 | </Original> |
| 4334 | <Expanded> |
| 4335 | parseIntoConfig( argv, config ) |
| 4336 | </Expanded> |
| 4337 | </Expression> |
| 4338 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4339 | <Original> |
| 4340 | !config.forceColour |
| 4341 | </Original> |
| 4342 | <Expanded> |
| 4343 | true |
| 4344 | </Expanded> |
| 4345 | </Expression> |
| 4346 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4347 | </Section> |
| 4348 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4349 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4350 | <OverallResult success="true"/> |
| 4351 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4352 | <TestCase name="Long strings can be wrapped"> |
| 4353 | <Section name="plain string"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4354 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4355 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4356 | <Original> |
| 4357 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4358 | </Original> |
| 4359 | <Expanded> |
| 4360 | "one two three four" |
| 4361 | == |
| 4362 | "one two three four" |
| 4363 | </Expanded> |
| 4364 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4365 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4366 | <Original> |
| 4367 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4368 | </Original> |
| 4369 | <Expanded> |
| 4370 | "one two three four" |
| 4371 | == |
| 4372 | "one two three four" |
| 4373 | </Expanded> |
| 4374 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4375 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4376 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4377 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4378 | </Section> |
| 4379 | <Section name="plain string"> |
| 4380 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4381 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4382 | <Original> |
| 4383 | Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" |
| 4384 | </Original> |
| 4385 | <Expanded> |
| 4386 | "one two three |
| 4387 | four" |
| 4388 | == |
| 4389 | "one two three |
| 4390 | four" |
| 4391 | </Expanded> |
| 4392 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4393 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4394 | <Original> |
| 4395 | Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" |
| 4396 | </Original> |
| 4397 | <Expanded> |
| 4398 | "one two three |
| 4399 | four" |
| 4400 | == |
| 4401 | "one two three |
| 4402 | four" |
| 4403 | </Expanded> |
| 4404 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4405 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4406 | <Original> |
| 4407 | Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" |
| 4408 | </Original> |
| 4409 | <Expanded> |
| 4410 | "one two three |
| 4411 | four" |
| 4412 | == |
| 4413 | "one two three |
| 4414 | four" |
| 4415 | </Expanded> |
| 4416 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4417 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4418 | <Original> |
| 4419 | Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" |
| 4420 | </Original> |
| 4421 | <Expanded> |
| 4422 | "one two three |
| 4423 | four" |
| 4424 | == |
| 4425 | "one two three |
| 4426 | four" |
| 4427 | </Expanded> |
| 4428 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4429 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4430 | <Original> |
| 4431 | Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" |
| 4432 | </Original> |
| 4433 | <Expanded> |
| 4434 | "one two |
| 4435 | three four" |
| 4436 | == |
| 4437 | "one two |
| 4438 | three four" |
| 4439 | </Expanded> |
| 4440 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4441 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4442 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4443 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4444 | </Section> |
| 4445 | <Section name="plain string"> |
| 4446 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4447 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4448 | <Original> |
| 4449 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
| 4450 | </Original> |
| 4451 | <Expanded> |
| 4452 | "one two |
| 4453 | three |
| 4454 | four" |
| 4455 | == |
| 4456 | "one two |
| 4457 | three |
| 4458 | four" |
| 4459 | </Expanded> |
| 4460 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4461 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4462 | <Original> |
| 4463 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
| 4464 | </Original> |
| 4465 | <Expanded> |
| 4466 | "one two |
| 4467 | three |
| 4468 | four" |
| 4469 | == |
| 4470 | "one two |
| 4471 | three |
| 4472 | four" |
| 4473 | </Expanded> |
| 4474 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4475 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4476 | <Original> |
| 4477 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
| 4478 | </Original> |
| 4479 | <Expanded> |
| 4480 | "one two |
| 4481 | three |
| 4482 | four" |
| 4483 | == |
| 4484 | "one two |
| 4485 | three |
| 4486 | four" |
| 4487 | </Expanded> |
| 4488 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4489 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4490 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4491 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4492 | </Section> |
| 4493 | <Section name="plain string"> |
| 4494 | <Section name="Wrapped three times"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4495 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4496 | <Original> |
| 4497 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4498 | </Original> |
| 4499 | <Expanded> |
| 4500 | "one |
| 4501 | two |
| 4502 | three |
| 4503 | four" |
| 4504 | == |
| 4505 | "one |
| 4506 | two |
| 4507 | three |
| 4508 | four" |
| 4509 | </Expanded> |
| 4510 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4511 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4512 | <Original> |
| 4513 | Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4514 | </Original> |
| 4515 | <Expanded> |
| 4516 | "one |
| 4517 | two |
| 4518 | three |
| 4519 | four" |
| 4520 | == |
| 4521 | "one |
| 4522 | two |
| 4523 | three |
| 4524 | four" |
| 4525 | </Expanded> |
| 4526 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4527 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4528 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4529 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4530 | </Section> |
| 4531 | <Section name="plain string"> |
| 4532 | <Section name="Short wrap"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4533 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4534 | <Original> |
| 4535 | Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" |
| 4536 | </Original> |
| 4537 | <Expanded> |
| 4538 | "abc- |
| 4539 | def" |
| 4540 | == |
| 4541 | "abc- |
| 4542 | def" |
| 4543 | </Expanded> |
| 4544 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4545 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4546 | <Original> |
| 4547 | Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" |
| 4548 | </Original> |
| 4549 | <Expanded> |
| 4550 | "abc- |
| 4551 | defg" |
| 4552 | == |
| 4553 | "abc- |
| 4554 | defg" |
| 4555 | </Expanded> |
| 4556 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4557 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4558 | <Original> |
| 4559 | Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" |
| 4560 | </Original> |
| 4561 | <Expanded> |
| 4562 | "abc- |
| 4563 | def- |
| 4564 | gh" |
| 4565 | == |
| 4566 | "abc- |
| 4567 | def- |
| 4568 | gh" |
| 4569 | </Expanded> |
| 4570 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4571 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4572 | <Original> |
| 4573 | Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" |
| 4574 | </Original> |
| 4575 | <Expanded> |
| 4576 | "one |
| 4577 | two |
| 4578 | thr- |
| 4579 | ee |
| 4580 | four" |
| 4581 | == |
| 4582 | "one |
| 4583 | two |
| 4584 | thr- |
| 4585 | ee |
| 4586 | four" |
| 4587 | </Expanded> |
| 4588 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4589 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4590 | <Original> |
| 4591 | Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" |
| 4592 | </Original> |
| 4593 | <Expanded> |
| 4594 | "one |
| 4595 | two |
| 4596 | th- |
| 4597 | ree |
| 4598 | fo- |
| 4599 | ur" |
| 4600 | == |
| 4601 | "one |
| 4602 | two |
| 4603 | th- |
| 4604 | ree |
| 4605 | fo- |
| 4606 | ur" |
| 4607 | </Expanded> |
| 4608 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4609 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4610 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4611 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4612 | </Section> |
| 4613 | <Section name="plain string"> |
| 4614 | <Section name="As container"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4615 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4616 | <Original> |
| 4617 | text.size() == 4 |
| 4618 | </Original> |
| 4619 | <Expanded> |
| 4620 | 4 == 4 |
| 4621 | </Expanded> |
| 4622 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4623 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4624 | <Original> |
| 4625 | text[0] == "one" |
| 4626 | </Original> |
| 4627 | <Expanded> |
| 4628 | "one" == "one" |
| 4629 | </Expanded> |
| 4630 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4631 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4632 | <Original> |
| 4633 | text[1] == "two" |
| 4634 | </Original> |
| 4635 | <Expanded> |
| 4636 | "two" == "two" |
| 4637 | </Expanded> |
| 4638 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4639 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4640 | <Original> |
| 4641 | text[2] == "three" |
| 4642 | </Original> |
| 4643 | <Expanded> |
| 4644 | "three" == "three" |
| 4645 | </Expanded> |
| 4646 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4647 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4648 | <Original> |
| 4649 | text[3] == "four" |
| 4650 | </Original> |
| 4651 | <Expanded> |
| 4652 | "four" == "four" |
| 4653 | </Expanded> |
| 4654 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4655 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4656 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4657 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4658 | </Section> |
| 4659 | <Section name="plain string"> |
| 4660 | <Section name="Indent first line differently"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4661 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4662 | <Original> |
| 4663 | text.toString() == " one two\n three\n four" |
| 4664 | </Original> |
| 4665 | <Expanded> |
| 4666 | " one two |
| 4667 | three |
| 4668 | four" |
| 4669 | == |
| 4670 | " one two |
| 4671 | three |
| 4672 | four" |
| 4673 | </Expanded> |
| 4674 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4675 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4676 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4677 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4678 | </Section> |
| 4679 | <Section name="With newlines"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4680 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4681 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4682 | <Original> |
| 4683 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4684 | </Original> |
| 4685 | <Expanded> |
| 4686 | "one two |
| 4687 | three four" |
| 4688 | == |
| 4689 | "one two |
| 4690 | three four" |
| 4691 | </Expanded> |
| 4692 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4693 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4694 | <Original> |
| 4695 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4696 | </Original> |
| 4697 | <Expanded> |
| 4698 | "one two |
| 4699 | three four" |
| 4700 | == |
| 4701 | "one two |
| 4702 | three four" |
| 4703 | </Expanded> |
| 4704 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4705 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4706 | <Original> |
| 4707 | Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString |
| 4708 | </Original> |
| 4709 | <Expanded> |
| 4710 | "one two |
| 4711 | three four" |
| 4712 | == |
| 4713 | "one two |
| 4714 | three four" |
| 4715 | </Expanded> |
| 4716 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4717 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4718 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4719 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4720 | </Section> |
| 4721 | <Section name="With newlines"> |
| 4722 | <Section name="Trailing newline"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4723 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4724 | <Original> |
| 4725 | Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" |
| 4726 | </Original> |
| 4727 | <Expanded> |
| 4728 | "abcdef |
| 4729 | " |
| 4730 | == |
| 4731 | "abcdef |
| 4732 | " |
| 4733 | </Expanded> |
| 4734 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4735 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4736 | <Original> |
| 4737 | Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" |
| 4738 | </Original> |
| 4739 | <Expanded> |
| 4740 | "abcdef" == "abcdef" |
| 4741 | </Expanded> |
| 4742 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4743 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4744 | <Original> |
| 4745 | Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" |
| 4746 | </Original> |
| 4747 | <Expanded> |
| 4748 | "abcdef |
| 4749 | " |
| 4750 | == |
| 4751 | "abcdef |
| 4752 | " |
| 4753 | </Expanded> |
| 4754 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4755 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4756 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4757 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4758 | </Section> |
| 4759 | <Section name="With newlines"> |
| 4760 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4761 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4762 | <Original> |
| 4763 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
| 4764 | </Original> |
| 4765 | <Expanded> |
| 4766 | "one two |
| 4767 | three |
| 4768 | four" |
| 4769 | == |
| 4770 | "one two |
| 4771 | three |
| 4772 | four" |
| 4773 | </Expanded> |
| 4774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4775 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4776 | <Original> |
| 4777 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
| 4778 | </Original> |
| 4779 | <Expanded> |
| 4780 | "one two |
| 4781 | three |
| 4782 | four" |
| 4783 | == |
| 4784 | "one two |
| 4785 | three |
| 4786 | four" |
| 4787 | </Expanded> |
| 4788 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4789 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4790 | <Original> |
| 4791 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
| 4792 | </Original> |
| 4793 | <Expanded> |
| 4794 | "one two |
| 4795 | three |
| 4796 | four" |
| 4797 | == |
| 4798 | "one two |
| 4799 | three |
| 4800 | four" |
| 4801 | </Expanded> |
| 4802 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4803 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4804 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4805 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4806 | </Section> |
| 4807 | <Section name="With newlines"> |
| 4808 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4809 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4810 | <Original> |
| 4811 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4812 | </Original> |
| 4813 | <Expanded> |
| 4814 | "one |
| 4815 | two |
| 4816 | three |
| 4817 | four" |
| 4818 | == |
| 4819 | "one |
| 4820 | two |
| 4821 | three |
| 4822 | four" |
| 4823 | </Expanded> |
| 4824 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4825 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4826 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4827 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4828 | </Section> |
| 4829 | <Section name="With tabs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4830 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4831 | <Original> |
| 4832 | Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" |
| 4833 | </Original> |
| 4834 | <Expanded> |
| 4835 | "one two three |
| 4836 | four |
| 4837 | five |
| 4838 | six" |
| 4839 | == |
| 4840 | "one two three |
| 4841 | four |
| 4842 | five |
| 4843 | six" |
| 4844 | </Expanded> |
| 4845 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4846 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4847 | </Section> |
| 4848 | <OverallResult success="true"/> |
| 4849 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4850 | <TestCase name="replaceInPlace"> |
| 4851 | <Section name="replace single char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4852 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4853 | <Original> |
| 4854 | replaceInPlace( letters, "b", "z" ) |
| 4855 | </Original> |
| 4856 | <Expanded> |
| 4857 | true |
| 4858 | </Expanded> |
| 4859 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4860 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4861 | <Original> |
| 4862 | letters == "azcdefcg" |
| 4863 | </Original> |
| 4864 | <Expanded> |
| 4865 | "azcdefcg" == "azcdefcg" |
| 4866 | </Expanded> |
| 4867 | </Expression> |
| 4868 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4869 | </Section> |
| 4870 | <Section name="replace two chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4871 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4872 | <Original> |
| 4873 | replaceInPlace( letters, "c", "z" ) |
| 4874 | </Original> |
| 4875 | <Expanded> |
| 4876 | true |
| 4877 | </Expanded> |
| 4878 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4879 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4880 | <Original> |
| 4881 | letters == "abzdefzg" |
| 4882 | </Original> |
| 4883 | <Expanded> |
| 4884 | "abzdefzg" == "abzdefzg" |
| 4885 | </Expanded> |
| 4886 | </Expression> |
| 4887 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4888 | </Section> |
| 4889 | <Section name="replace first char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4890 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4891 | <Original> |
| 4892 | replaceInPlace( letters, "a", "z" ) |
| 4893 | </Original> |
| 4894 | <Expanded> |
| 4895 | true |
| 4896 | </Expanded> |
| 4897 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4898 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4899 | <Original> |
| 4900 | letters == "zbcdefcg" |
| 4901 | </Original> |
| 4902 | <Expanded> |
| 4903 | "zbcdefcg" == "zbcdefcg" |
| 4904 | </Expanded> |
| 4905 | </Expression> |
| 4906 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4907 | </Section> |
| 4908 | <Section name="replace last char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4909 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4910 | <Original> |
| 4911 | replaceInPlace( letters, "g", "z" ) |
| 4912 | </Original> |
| 4913 | <Expanded> |
| 4914 | true |
| 4915 | </Expanded> |
| 4916 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4917 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4918 | <Original> |
| 4919 | letters == "abcdefcz" |
| 4920 | </Original> |
| 4921 | <Expanded> |
| 4922 | "abcdefcz" == "abcdefcz" |
| 4923 | </Expanded> |
| 4924 | </Expression> |
| 4925 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4926 | </Section> |
| 4927 | <Section name="replace all chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4928 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4929 | <Original> |
| 4930 | replaceInPlace( letters, letters, "replaced" ) |
| 4931 | </Original> |
| 4932 | <Expanded> |
| 4933 | true |
| 4934 | </Expanded> |
| 4935 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4936 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4937 | <Original> |
| 4938 | letters == "replaced" |
| 4939 | </Original> |
| 4940 | <Expanded> |
| 4941 | "replaced" == "replaced" |
| 4942 | </Expanded> |
| 4943 | </Expression> |
| 4944 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4945 | </Section> |
| 4946 | <Section name="replace no chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4947 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4948 | <Original> |
| 4949 | !replaceInPlace( letters, "x", "z" ) |
| 4950 | </Original> |
| 4951 | <Expanded> |
| 4952 | !false |
| 4953 | </Expanded> |
| 4954 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4955 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4956 | <Original> |
| 4957 | letters == letters |
| 4958 | </Original> |
| 4959 | <Expanded> |
| 4960 | "abcdefcg" == "abcdefcg" |
| 4961 | </Expanded> |
| 4962 | </Expression> |
| 4963 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4964 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4965 | <Section name="escape '"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4966 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4967 | <Original> |
| 4968 | replaceInPlace( s, "'", "|'" ) |
| 4969 | </Original> |
| 4970 | <Expanded> |
| 4971 | true |
| 4972 | </Expanded> |
| 4973 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4974 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4975 | <Original> |
| 4976 | s == "didn|'t" |
| 4977 | </Original> |
| 4978 | <Expanded> |
| 4979 | "didn|'t" == "didn|'t" |
| 4980 | </Expanded> |
| 4981 | </Expression> |
| 4982 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4983 | </Section> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4984 | <OverallResult success="true"/> |
| 4985 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4986 | <TestCase name="Strings can be rendered with colour"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4987 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4988 | </TestCase> |
| 4989 | <TestCase name="Text can be formatted using the Text class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4990 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4991 | <Original> |
| 4992 | Text( "hi there" ).toString() == "hi there" |
| 4993 | </Original> |
| 4994 | <Expanded> |
| 4995 | "hi there" == "hi there" |
| 4996 | </Expanded> |
| 4997 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4998 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4999 | <Original> |
| 5000 | Text( "hi there", narrow ).toString() == "hi\nthere" |
| 5001 | </Original> |
| 5002 | <Expanded> |
| 5003 | "hi |
| 5004 | there" |
| 5005 | == |
| 5006 | "hi |
| 5007 | there" |
| 5008 | </Expanded> |
| 5009 | </Expression> |
| 5010 | <OverallResult success="true"/> |
| 5011 | </TestCase> |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 5012 | <TestCase name="Long text is truncted"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5013 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 5014 | <Original> |
| 5015 | t.toString() EndsWith( "... message truncated due to excessive size" ) |
| 5016 | </Original> |
| 5017 | <Expanded> |
| 5018 | "******************************************************************************- |
| 5019 | ******************************************************************************- |
| 5020 | ************************ |
| 5021 | ******************************************************************************- |
| 5022 | ******************************************************************************- |
| 5023 | ************************ |
| 5024 | ******************************************************************************- |
| 5025 | ******************************************************************************- |
| 5026 | ************************ |
| 5027 | ******************************************************************************- |
| 5028 | ******************************************************************************- |
| 5029 | ************************ |
| 5030 | ******************************************************************************- |
| 5031 | ******************************************************************************- |
| 5032 | ************************ |
| 5033 | ******************************************************************************- |
| 5034 | ******************************************************************************- |
| 5035 | ************************ |
| 5036 | ******************************************************************************- |
| 5037 | ******************************************************************************- |
| 5038 | ************************ |
| 5039 | ******************************************************************************- |
| 5040 | ******************************************************************************- |
| 5041 | ************************ |
| 5042 | ******************************************************************************- |
| 5043 | ******************************************************************************- |
| 5044 | ************************ |
| 5045 | ******************************************************************************- |
| 5046 | ******************************************************************************- |
| 5047 | ************************ |
| 5048 | ******************************************************************************- |
| 5049 | ******************************************************************************- |
| 5050 | ************************ |
| 5051 | ******************************************************************************- |
| 5052 | ******************************************************************************- |
| 5053 | ************************ |
| 5054 | ******************************************************************************- |
| 5055 | ******************************************************************************- |
| 5056 | ************************ |
| 5057 | ******************************************************************************- |
| 5058 | ******************************************************************************- |
| 5059 | ************************ |
| 5060 | ******************************************************************************- |
| 5061 | ******************************************************************************- |
| 5062 | ************************ |
| 5063 | ******************************************************************************- |
| 5064 | ******************************************************************************- |
| 5065 | ************************ |
| 5066 | ******************************************************************************- |
| 5067 | ******************************************************************************- |
| 5068 | ************************ |
| 5069 | ******************************************************************************- |
| 5070 | ******************************************************************************- |
| 5071 | ************************ |
| 5072 | ******************************************************************************- |
| 5073 | ******************************************************************************- |
| 5074 | ************************ |
| 5075 | ******************************************************************************- |
| 5076 | ******************************************************************************- |
| 5077 | ************************ |
| 5078 | ******************************************************************************- |
| 5079 | ******************************************************************************- |
| 5080 | ************************ |
| 5081 | ******************************************************************************- |
| 5082 | ******************************************************************************- |
| 5083 | ************************ |
| 5084 | ******************************************************************************- |
| 5085 | ******************************************************************************- |
| 5086 | ************************ |
| 5087 | ******************************************************************************- |
| 5088 | ******************************************************************************- |
| 5089 | ************************ |
| 5090 | ******************************************************************************- |
| 5091 | ******************************************************************************- |
| 5092 | ************************ |
| 5093 | ******************************************************************************- |
| 5094 | ******************************************************************************- |
| 5095 | ************************ |
| 5096 | ******************************************************************************- |
| 5097 | ******************************************************************************- |
| 5098 | ************************ |
| 5099 | ******************************************************************************- |
| 5100 | ******************************************************************************- |
| 5101 | ************************ |
| 5102 | ******************************************************************************- |
| 5103 | ******************************************************************************- |
| 5104 | ************************ |
| 5105 | ******************************************************************************- |
| 5106 | ******************************************************************************- |
| 5107 | ************************ |
| 5108 | ******************************************************************************- |
| 5109 | ******************************************************************************- |
| 5110 | ************************ |
| 5111 | ******************************************************************************- |
| 5112 | ******************************************************************************- |
| 5113 | ************************ |
| 5114 | ******************************************************************************- |
| 5115 | ******************************************************************************- |
| 5116 | ************************ |
| 5117 | ******************************************************************************- |
| 5118 | ******************************************************************************- |
| 5119 | ************************ |
| 5120 | ******************************************************************************- |
| 5121 | ******************************************************************************- |
| 5122 | ************************ |
| 5123 | ******************************************************************************- |
| 5124 | ******************************************************************************- |
| 5125 | ************************ |
| 5126 | ******************************************************************************- |
| 5127 | ******************************************************************************- |
| 5128 | ************************ |
| 5129 | ******************************************************************************- |
| 5130 | ******************************************************************************- |
| 5131 | ************************ |
| 5132 | ******************************************************************************- |
| 5133 | ******************************************************************************- |
| 5134 | ************************ |
| 5135 | ******************************************************************************- |
| 5136 | ******************************************************************************- |
| 5137 | ************************ |
| 5138 | ******************************************************************************- |
| 5139 | ******************************************************************************- |
| 5140 | ************************ |
| 5141 | ******************************************************************************- |
| 5142 | ******************************************************************************- |
| 5143 | ************************ |
| 5144 | ******************************************************************************- |
| 5145 | ******************************************************************************- |
| 5146 | ************************ |
| 5147 | ******************************************************************************- |
| 5148 | ******************************************************************************- |
| 5149 | ************************ |
| 5150 | ******************************************************************************- |
| 5151 | ******************************************************************************- |
| 5152 | ************************ |
| 5153 | ******************************************************************************- |
| 5154 | ******************************************************************************- |
| 5155 | ************************ |
| 5156 | ******************************************************************************- |
| 5157 | ******************************************************************************- |
| 5158 | ************************ |
| 5159 | ******************************************************************************- |
| 5160 | ******************************************************************************- |
| 5161 | ************************ |
| 5162 | ******************************************************************************- |
| 5163 | ******************************************************************************- |
| 5164 | ************************ |
| 5165 | ******************************************************************************- |
| 5166 | ******************************************************************************- |
| 5167 | ************************ |
| 5168 | ******************************************************************************- |
| 5169 | ******************************************************************************- |
| 5170 | ************************ |
| 5171 | ******************************************************************************- |
| 5172 | ******************************************************************************- |
| 5173 | ************************ |
| 5174 | ******************************************************************************- |
| 5175 | ******************************************************************************- |
| 5176 | ************************ |
| 5177 | ******************************************************************************- |
| 5178 | ******************************************************************************- |
| 5179 | ************************ |
| 5180 | ******************************************************************************- |
| 5181 | ******************************************************************************- |
| 5182 | ************************ |
| 5183 | ******************************************************************************- |
| 5184 | ******************************************************************************- |
| 5185 | ************************ |
| 5186 | ******************************************************************************- |
| 5187 | ******************************************************************************- |
| 5188 | ************************ |
| 5189 | ******************************************************************************- |
| 5190 | ******************************************************************************- |
| 5191 | ************************ |
| 5192 | ******************************************************************************- |
| 5193 | ******************************************************************************- |
| 5194 | ************************ |
| 5195 | ******************************************************************************- |
| 5196 | ******************************************************************************- |
| 5197 | ************************ |
| 5198 | ******************************************************************************- |
| 5199 | ******************************************************************************- |
| 5200 | ************************ |
| 5201 | ******************************************************************************- |
| 5202 | ******************************************************************************- |
| 5203 | ************************ |
| 5204 | ******************************************************************************- |
| 5205 | ******************************************************************************- |
| 5206 | ************************ |
| 5207 | ******************************************************************************- |
| 5208 | ******************************************************************************- |
| 5209 | ************************ |
| 5210 | ******************************************************************************- |
| 5211 | ******************************************************************************- |
| 5212 | ************************ |
| 5213 | ******************************************************************************- |
| 5214 | ******************************************************************************- |
| 5215 | ************************ |
| 5216 | ******************************************************************************- |
| 5217 | ******************************************************************************- |
| 5218 | ************************ |
| 5219 | ******************************************************************************- |
| 5220 | ******************************************************************************- |
| 5221 | ************************ |
| 5222 | ******************************************************************************- |
| 5223 | ******************************************************************************- |
| 5224 | ************************ |
| 5225 | ******************************************************************************- |
| 5226 | ******************************************************************************- |
| 5227 | ************************ |
| 5228 | ******************************************************************************- |
| 5229 | ******************************************************************************- |
| 5230 | ************************ |
| 5231 | ******************************************************************************- |
| 5232 | ******************************************************************************- |
| 5233 | ************************ |
| 5234 | ******************************************************************************- |
| 5235 | ******************************************************************************- |
| 5236 | ************************ |
| 5237 | ******************************************************************************- |
| 5238 | ******************************************************************************- |
| 5239 | ************************ |
| 5240 | ******************************************************************************- |
| 5241 | ******************************************************************************- |
| 5242 | ************************ |
| 5243 | ******************************************************************************- |
| 5244 | ******************************************************************************- |
| 5245 | ************************ |
| 5246 | ******************************************************************************- |
| 5247 | ******************************************************************************- |
| 5248 | ************************ |
| 5249 | ******************************************************************************- |
| 5250 | ******************************************************************************- |
| 5251 | ************************ |
| 5252 | ******************************************************************************- |
| 5253 | ******************************************************************************- |
| 5254 | ************************ |
| 5255 | ******************************************************************************- |
| 5256 | ******************************************************************************- |
| 5257 | ************************ |
| 5258 | ******************************************************************************- |
| 5259 | ******************************************************************************- |
| 5260 | ************************ |
| 5261 | ******************************************************************************- |
| 5262 | ******************************************************************************- |
| 5263 | ************************ |
| 5264 | ******************************************************************************- |
| 5265 | ******************************************************************************- |
| 5266 | ************************ |
| 5267 | ******************************************************************************- |
| 5268 | ******************************************************************************- |
| 5269 | ************************ |
| 5270 | ******************************************************************************- |
| 5271 | ******************************************************************************- |
| 5272 | ************************ |
| 5273 | ******************************************************************************- |
| 5274 | ******************************************************************************- |
| 5275 | ************************ |
| 5276 | ******************************************************************************- |
| 5277 | ******************************************************************************- |
| 5278 | ************************ |
| 5279 | ******************************************************************************- |
| 5280 | ******************************************************************************- |
| 5281 | ************************ |
| 5282 | ******************************************************************************- |
| 5283 | ******************************************************************************- |
| 5284 | ************************ |
| 5285 | ******************************************************************************- |
| 5286 | ******************************************************************************- |
| 5287 | ************************ |
| 5288 | ******************************************************************************- |
| 5289 | ******************************************************************************- |
| 5290 | ************************ |
| 5291 | ******************************************************************************- |
| 5292 | ******************************************************************************- |
| 5293 | ************************ |
| 5294 | ******************************************************************************- |
| 5295 | ******************************************************************************- |
| 5296 | ************************ |
| 5297 | ******************************************************************************- |
| 5298 | ******************************************************************************- |
| 5299 | ************************ |
| 5300 | ******************************************************************************- |
| 5301 | ******************************************************************************- |
| 5302 | ************************ |
| 5303 | ******************************************************************************- |
| 5304 | ******************************************************************************- |
| 5305 | ************************ |
| 5306 | ******************************************************************************- |
| 5307 | ******************************************************************************- |
| 5308 | ************************ |
| 5309 | ******************************************************************************- |
| 5310 | ******************************************************************************- |
| 5311 | ************************ |
| 5312 | ******************************************************************************- |
| 5313 | ******************************************************************************- |
| 5314 | ************************ |
| 5315 | ******************************************************************************- |
| 5316 | ******************************************************************************- |
| 5317 | ************************ |
| 5318 | ******************************************************************************- |
| 5319 | ******************************************************************************- |
| 5320 | ************************ |
| 5321 | ******************************************************************************- |
| 5322 | ******************************************************************************- |
| 5323 | ************************ |
| 5324 | ******************************************************************************- |
| 5325 | ******************************************************************************- |
| 5326 | ************************ |
| 5327 | ******************************************************************************- |
| 5328 | ******************************************************************************- |
| 5329 | ************************ |
| 5330 | ******************************************************************************- |
| 5331 | ******************************************************************************- |
| 5332 | ************************ |
| 5333 | ******************************************************************************- |
| 5334 | ******************************************************************************- |
| 5335 | ************************ |
| 5336 | ******************************************************************************- |
| 5337 | ******************************************************************************- |
| 5338 | ************************ |
| 5339 | ******************************************************************************- |
| 5340 | ******************************************************************************- |
| 5341 | ************************ |
| 5342 | ******************************************************************************- |
| 5343 | ******************************************************************************- |
| 5344 | ************************ |
| 5345 | ******************************************************************************- |
| 5346 | ******************************************************************************- |
| 5347 | ************************ |
| 5348 | ******************************************************************************- |
| 5349 | ******************************************************************************- |
| 5350 | ************************ |
| 5351 | ******************************************************************************- |
| 5352 | ******************************************************************************- |
| 5353 | ************************ |
| 5354 | ******************************************************************************- |
| 5355 | ******************************************************************************- |
| 5356 | ************************ |
| 5357 | ******************************************************************************- |
| 5358 | ******************************************************************************- |
| 5359 | ************************ |
| 5360 | ******************************************************************************- |
| 5361 | ******************************************************************************- |
| 5362 | ************************ |
| 5363 | ******************************************************************************- |
| 5364 | ******************************************************************************- |
| 5365 | ************************ |
| 5366 | ******************************************************************************- |
| 5367 | ******************************************************************************- |
| 5368 | ************************ |
| 5369 | ******************************************************************************- |
| 5370 | ******************************************************************************- |
| 5371 | ************************ |
| 5372 | ******************************************************************************- |
| 5373 | ******************************************************************************- |
| 5374 | ************************ |
| 5375 | ******************************************************************************- |
| 5376 | ******************************************************************************- |
| 5377 | ************************ |
| 5378 | ******************************************************************************- |
| 5379 | ******************************************************************************- |
| 5380 | ************************ |
| 5381 | ******************************************************************************- |
| 5382 | ******************************************************************************- |
| 5383 | ************************ |
| 5384 | ******************************************************************************- |
| 5385 | ******************************************************************************- |
| 5386 | ************************ |
| 5387 | ******************************************************************************- |
| 5388 | ******************************************************************************- |
| 5389 | ************************ |
| 5390 | ******************************************************************************- |
| 5391 | ******************************************************************************- |
| 5392 | ************************ |
| 5393 | ******************************************************************************- |
| 5394 | ******************************************************************************- |
| 5395 | ************************ |
| 5396 | ******************************************************************************- |
| 5397 | ******************************************************************************- |
| 5398 | ************************ |
| 5399 | ******************************************************************************- |
| 5400 | ******************************************************************************- |
| 5401 | ************************ |
| 5402 | ******************************************************************************- |
| 5403 | ******************************************************************************- |
| 5404 | ************************ |
| 5405 | ******************************************************************************- |
| 5406 | ******************************************************************************- |
| 5407 | ************************ |
| 5408 | ******************************************************************************- |
| 5409 | ******************************************************************************- |
| 5410 | ************************ |
| 5411 | ******************************************************************************- |
| 5412 | ******************************************************************************- |
| 5413 | ************************ |
| 5414 | ******************************************************************************- |
| 5415 | ******************************************************************************- |
| 5416 | ************************ |
| 5417 | ******************************************************************************- |
| 5418 | ******************************************************************************- |
| 5419 | ************************ |
| 5420 | ******************************************************************************- |
| 5421 | ******************************************************************************- |
| 5422 | ************************ |
| 5423 | ******************************************************************************- |
| 5424 | ******************************************************************************- |
| 5425 | ************************ |
| 5426 | ******************************************************************************- |
| 5427 | ******************************************************************************- |
| 5428 | ************************ |
| 5429 | ******************************************************************************- |
| 5430 | ******************************************************************************- |
| 5431 | ************************ |
| 5432 | ******************************************************************************- |
| 5433 | ******************************************************************************- |
| 5434 | ************************ |
| 5435 | ******************************************************************************- |
| 5436 | ******************************************************************************- |
| 5437 | ************************ |
| 5438 | ******************************************************************************- |
| 5439 | ******************************************************************************- |
| 5440 | ************************ |
| 5441 | ******************************************************************************- |
| 5442 | ******************************************************************************- |
| 5443 | ************************ |
| 5444 | ******************************************************************************- |
| 5445 | ******************************************************************************- |
| 5446 | ************************ |
| 5447 | ******************************************************************************- |
| 5448 | ******************************************************************************- |
| 5449 | ************************ |
| 5450 | ******************************************************************************- |
| 5451 | ******************************************************************************- |
| 5452 | ************************ |
| 5453 | ******************************************************************************- |
| 5454 | ******************************************************************************- |
| 5455 | ************************ |
| 5456 | ******************************************************************************- |
| 5457 | ******************************************************************************- |
| 5458 | ************************ |
| 5459 | ******************************************************************************- |
| 5460 | ******************************************************************************- |
| 5461 | ************************ |
| 5462 | ******************************************************************************- |
| 5463 | ******************************************************************************- |
| 5464 | ************************ |
| 5465 | ******************************************************************************- |
| 5466 | ******************************************************************************- |
| 5467 | ************************ |
| 5468 | ******************************************************************************- |
| 5469 | ******************************************************************************- |
| 5470 | ************************ |
| 5471 | ******************************************************************************- |
| 5472 | ******************************************************************************- |
| 5473 | ************************ |
| 5474 | ******************************************************************************- |
| 5475 | ******************************************************************************- |
| 5476 | ************************ |
| 5477 | ******************************************************************************- |
| 5478 | ******************************************************************************- |
| 5479 | ************************ |
| 5480 | ******************************************************************************- |
| 5481 | ******************************************************************************- |
| 5482 | ************************ |
| 5483 | ******************************************************************************- |
| 5484 | ******************************************************************************- |
| 5485 | ************************ |
| 5486 | ******************************************************************************- |
| 5487 | ******************************************************************************- |
| 5488 | ************************ |
| 5489 | ******************************************************************************- |
| 5490 | ******************************************************************************- |
| 5491 | ************************ |
| 5492 | ******************************************************************************- |
| 5493 | ******************************************************************************- |
| 5494 | ************************ |
| 5495 | ******************************************************************************- |
| 5496 | ******************************************************************************- |
| 5497 | ************************ |
| 5498 | ******************************************************************************- |
| 5499 | ******************************************************************************- |
| 5500 | ************************ |
| 5501 | ******************************************************************************- |
| 5502 | ******************************************************************************- |
| 5503 | ************************ |
| 5504 | ******************************************************************************- |
| 5505 | ******************************************************************************- |
| 5506 | ************************ |
| 5507 | ******************************************************************************- |
| 5508 | ******************************************************************************- |
| 5509 | ************************ |
| 5510 | ******************************************************************************- |
| 5511 | ******************************************************************************- |
| 5512 | ************************ |
| 5513 | ******************************************************************************- |
| 5514 | ******************************************************************************- |
| 5515 | ************************ |
| 5516 | ******************************************************************************- |
| 5517 | ******************************************************************************- |
| 5518 | ************************ |
| 5519 | ******************************************************************************- |
| 5520 | ******************************************************************************- |
| 5521 | ************************ |
| 5522 | ******************************************************************************- |
| 5523 | ******************************************************************************- |
| 5524 | ************************ |
| 5525 | ******************************************************************************- |
| 5526 | ******************************************************************************- |
| 5527 | ************************ |
| 5528 | ******************************************************************************- |
| 5529 | ******************************************************************************- |
| 5530 | ************************ |
| 5531 | ******************************************************************************- |
| 5532 | ******************************************************************************- |
| 5533 | ************************ |
| 5534 | ******************************************************************************- |
| 5535 | ******************************************************************************- |
| 5536 | ************************ |
| 5537 | ******************************************************************************- |
| 5538 | ******************************************************************************- |
| 5539 | ************************ |
| 5540 | ******************************************************************************- |
| 5541 | ******************************************************************************- |
| 5542 | ************************ |
| 5543 | ******************************************************************************- |
| 5544 | ******************************************************************************- |
| 5545 | ************************ |
| 5546 | ******************************************************************************- |
| 5547 | ******************************************************************************- |
| 5548 | ************************ |
| 5549 | ******************************************************************************- |
| 5550 | ******************************************************************************- |
| 5551 | ************************ |
| 5552 | ******************************************************************************- |
| 5553 | ******************************************************************************- |
| 5554 | ************************ |
| 5555 | ******************************************************************************- |
| 5556 | ******************************************************************************- |
| 5557 | ************************ |
| 5558 | ******************************************************************************- |
| 5559 | ******************************************************************************- |
| 5560 | ************************ |
| 5561 | ******************************************************************************- |
| 5562 | ******************************************************************************- |
| 5563 | ************************ |
| 5564 | ******************************************************************************- |
| 5565 | ******************************************************************************- |
| 5566 | ************************ |
| 5567 | ******************************************************************************- |
| 5568 | ******************************************************************************- |
| 5569 | ************************ |
| 5570 | ******************************************************************************- |
| 5571 | ******************************************************************************- |
| 5572 | ************************ |
| 5573 | ******************************************************************************- |
| 5574 | ******************************************************************************- |
| 5575 | ************************ |
| 5576 | ******************************************************************************- |
| 5577 | ******************************************************************************- |
| 5578 | ************************ |
| 5579 | ******************************************************************************- |
| 5580 | ******************************************************************************- |
| 5581 | ************************ |
| 5582 | ******************************************************************************- |
| 5583 | ******************************************************************************- |
| 5584 | ************************ |
| 5585 | ******************************************************************************- |
| 5586 | ******************************************************************************- |
| 5587 | ************************ |
| 5588 | ******************************************************************************- |
| 5589 | ******************************************************************************- |
| 5590 | ************************ |
| 5591 | ******************************************************************************- |
| 5592 | ******************************************************************************- |
| 5593 | ************************ |
| 5594 | ******************************************************************************- |
| 5595 | ******************************************************************************- |
| 5596 | ************************ |
| 5597 | ******************************************************************************- |
| 5598 | ******************************************************************************- |
| 5599 | ************************ |
| 5600 | ******************************************************************************- |
| 5601 | ******************************************************************************- |
| 5602 | ************************ |
| 5603 | ******************************************************************************- |
| 5604 | ******************************************************************************- |
| 5605 | ************************ |
| 5606 | ******************************************************************************- |
| 5607 | ******************************************************************************- |
| 5608 | ************************ |
| 5609 | ******************************************************************************- |
| 5610 | ******************************************************************************- |
| 5611 | ************************ |
| 5612 | ******************************************************************************- |
| 5613 | ******************************************************************************- |
| 5614 | ************************ |
| 5615 | ******************************************************************************- |
| 5616 | ******************************************************************************- |
| 5617 | ************************ |
| 5618 | ******************************************************************************- |
| 5619 | ******************************************************************************- |
| 5620 | ************************ |
| 5621 | ******************************************************************************- |
| 5622 | ******************************************************************************- |
| 5623 | ************************ |
| 5624 | ******************************************************************************- |
| 5625 | ******************************************************************************- |
| 5626 | ************************ |
| 5627 | ******************************************************************************- |
| 5628 | ******************************************************************************- |
| 5629 | ************************ |
| 5630 | ******************************************************************************- |
| 5631 | ******************************************************************************- |
| 5632 | ************************ |
| 5633 | ******************************************************************************- |
| 5634 | ******************************************************************************- |
| 5635 | ************************ |
| 5636 | ******************************************************************************- |
| 5637 | ******************************************************************************- |
| 5638 | ************************ |
| 5639 | ******************************************************************************- |
| 5640 | ******************************************************************************- |
| 5641 | ************************ |
| 5642 | ******************************************************************************- |
| 5643 | ******************************************************************************- |
| 5644 | ************************ |
| 5645 | ******************************************************************************- |
| 5646 | ******************************************************************************- |
| 5647 | ************************ |
| 5648 | ******************************************************************************- |
| 5649 | ******************************************************************************- |
| 5650 | ************************ |
| 5651 | ******************************************************************************- |
| 5652 | ******************************************************************************- |
| 5653 | ************************ |
| 5654 | ******************************************************************************- |
| 5655 | ******************************************************************************- |
| 5656 | ************************ |
| 5657 | ******************************************************************************- |
| 5658 | ******************************************************************************- |
| 5659 | ************************ |
| 5660 | ******************************************************************************- |
| 5661 | ******************************************************************************- |
| 5662 | ************************ |
| 5663 | ******************************************************************************- |
| 5664 | ******************************************************************************- |
| 5665 | ************************ |
| 5666 | ******************************************************************************- |
| 5667 | ******************************************************************************- |
| 5668 | ************************ |
| 5669 | ******************************************************************************- |
| 5670 | ******************************************************************************- |
| 5671 | ************************ |
| 5672 | ******************************************************************************- |
| 5673 | ******************************************************************************- |
| 5674 | ************************ |
| 5675 | ******************************************************************************- |
| 5676 | ******************************************************************************- |
| 5677 | ************************ |
| 5678 | ******************************************************************************- |
| 5679 | ******************************************************************************- |
| 5680 | ************************ |
| 5681 | ******************************************************************************- |
| 5682 | ******************************************************************************- |
| 5683 | ************************ |
| 5684 | ******************************************************************************- |
| 5685 | ******************************************************************************- |
| 5686 | ************************ |
| 5687 | ******************************************************************************- |
| 5688 | ******************************************************************************- |
| 5689 | ************************ |
| 5690 | ******************************************************************************- |
| 5691 | ******************************************************************************- |
| 5692 | ************************ |
| 5693 | ******************************************************************************- |
| 5694 | ******************************************************************************- |
| 5695 | ************************ |
| 5696 | ******************************************************************************- |
| 5697 | ******************************************************************************- |
| 5698 | ************************ |
| 5699 | ******************************************************************************- |
| 5700 | ******************************************************************************- |
| 5701 | ************************ |
| 5702 | ******************************************************************************- |
| 5703 | ******************************************************************************- |
| 5704 | ************************ |
| 5705 | ******************************************************************************- |
| 5706 | ******************************************************************************- |
| 5707 | ************************ |
| 5708 | ******************************************************************************- |
| 5709 | ******************************************************************************- |
| 5710 | ************************ |
| 5711 | ******************************************************************************- |
| 5712 | ******************************************************************************- |
| 5713 | ************************ |
| 5714 | ******************************************************************************- |
| 5715 | ******************************************************************************- |
| 5716 | ************************ |
| 5717 | ******************************************************************************- |
| 5718 | ******************************************************************************- |
| 5719 | ************************ |
| 5720 | ******************************************************************************- |
| 5721 | ******************************************************************************- |
| 5722 | ************************ |
| 5723 | ******************************************************************************- |
| 5724 | ******************************************************************************- |
| 5725 | ************************ |
| 5726 | ******************************************************************************- |
| 5727 | ******************************************************************************- |
| 5728 | ************************ |
| 5729 | ******************************************************************************- |
| 5730 | ******************************************************************************- |
| 5731 | ************************ |
| 5732 | ******************************************************************************- |
| 5733 | ******************************************************************************- |
| 5734 | ************************ |
| 5735 | ******************************************************************************- |
| 5736 | ******************************************************************************- |
| 5737 | ************************ |
| 5738 | ******************************************************************************- |
| 5739 | ******************************************************************************- |
| 5740 | ************************ |
| 5741 | ******************************************************************************- |
| 5742 | ******************************************************************************- |
| 5743 | ************************ |
| 5744 | ******************************************************************************- |
| 5745 | ******************************************************************************- |
| 5746 | ************************ |
| 5747 | ******************************************************************************- |
| 5748 | ******************************************************************************- |
| 5749 | ************************ |
| 5750 | ******************************************************************************- |
| 5751 | ******************************************************************************- |
| 5752 | ************************ |
| 5753 | ******************************************************************************- |
| 5754 | ******************************************************************************- |
| 5755 | ************************ |
| 5756 | ******************************************************************************- |
| 5757 | ******************************************************************************- |
| 5758 | ************************ |
| 5759 | ******************************************************************************- |
| 5760 | ******************************************************************************- |
| 5761 | ************************ |
| 5762 | ******************************************************************************- |
| 5763 | ******************************************************************************- |
| 5764 | ************************ |
| 5765 | ******************************************************************************- |
| 5766 | ******************************************************************************- |
| 5767 | ************************ |
| 5768 | ******************************************************************************- |
| 5769 | ******************************************************************************- |
| 5770 | ************************ |
| 5771 | ******************************************************************************- |
| 5772 | ******************************************************************************- |
| 5773 | ************************ |
| 5774 | ******************************************************************************- |
| 5775 | ******************************************************************************- |
| 5776 | ************************ |
| 5777 | ******************************************************************************- |
| 5778 | ******************************************************************************- |
| 5779 | ************************ |
| 5780 | ******************************************************************************- |
| 5781 | ******************************************************************************- |
| 5782 | ************************ |
| 5783 | ******************************************************************************- |
| 5784 | ******************************************************************************- |
| 5785 | ************************ |
| 5786 | ******************************************************************************- |
| 5787 | ******************************************************************************- |
| 5788 | ************************ |
| 5789 | ******************************************************************************- |
| 5790 | ******************************************************************************- |
| 5791 | ************************ |
| 5792 | ******************************************************************************- |
| 5793 | ******************************************************************************- |
| 5794 | ************************ |
| 5795 | ******************************************************************************- |
| 5796 | ******************************************************************************- |
| 5797 | ************************ |
| 5798 | ******************************************************************************- |
| 5799 | ******************************************************************************- |
| 5800 | ************************ |
| 5801 | ******************************************************************************- |
| 5802 | ******************************************************************************- |
| 5803 | ************************ |
| 5804 | ******************************************************************************- |
| 5805 | ******************************************************************************- |
| 5806 | ************************ |
| 5807 | ******************************************************************************- |
| 5808 | ******************************************************************************- |
| 5809 | ************************ |
| 5810 | ******************************************************************************- |
| 5811 | ******************************************************************************- |
| 5812 | ************************ |
| 5813 | ******************************************************************************- |
| 5814 | ******************************************************************************- |
| 5815 | ************************ |
| 5816 | ******************************************************************************- |
| 5817 | ******************************************************************************- |
| 5818 | ************************ |
| 5819 | ******************************************************************************- |
| 5820 | ******************************************************************************- |
| 5821 | ************************ |
| 5822 | ******************************************************************************- |
| 5823 | ******************************************************************************- |
| 5824 | ************************ |
| 5825 | ******************************************************************************- |
| 5826 | ******************************************************************************- |
| 5827 | ************************ |
| 5828 | ******************************************************************************- |
| 5829 | ******************************************************************************- |
| 5830 | ************************ |
| 5831 | ******************************************************************************- |
| 5832 | ******************************************************************************- |
| 5833 | ************************ |
| 5834 | ******************************************************************************- |
| 5835 | ******************************************************************************- |
| 5836 | ************************ |
| 5837 | ******************************************************************************- |
| 5838 | ******************************************************************************- |
| 5839 | ************************ |
| 5840 | ******************************************************************************- |
| 5841 | ******************************************************************************- |
| 5842 | ************************ |
| 5843 | ******************************************************************************- |
| 5844 | ******************************************************************************- |
| 5845 | ************************ |
| 5846 | ******************************************************************************- |
| 5847 | ******************************************************************************- |
| 5848 | ************************ |
| 5849 | ******************************************************************************- |
| 5850 | ******************************************************************************- |
| 5851 | ************************ |
| 5852 | ******************************************************************************- |
| 5853 | ******************************************************************************- |
| 5854 | ************************ |
| 5855 | ******************************************************************************- |
| 5856 | ******************************************************************************- |
| 5857 | ************************ |
| 5858 | ******************************************************************************- |
| 5859 | ******************************************************************************- |
| 5860 | ************************ |
| 5861 | ******************************************************************************- |
| 5862 | ******************************************************************************- |
| 5863 | ************************ |
| 5864 | ******************************************************************************- |
| 5865 | ******************************************************************************- |
| 5866 | ************************ |
| 5867 | ******************************************************************************- |
| 5868 | ******************************************************************************- |
| 5869 | ************************ |
| 5870 | ******************************************************************************- |
| 5871 | ******************************************************************************- |
| 5872 | ************************ |
| 5873 | ******************************************************************************- |
| 5874 | ******************************************************************************- |
| 5875 | ************************ |
| 5876 | ******************************************************************************- |
| 5877 | ******************************************************************************- |
| 5878 | ************************ |
| 5879 | ******************************************************************************- |
| 5880 | ******************************************************************************- |
| 5881 | ************************ |
| 5882 | ******************************************************************************- |
| 5883 | ******************************************************************************- |
| 5884 | ************************ |
| 5885 | ******************************************************************************- |
| 5886 | ******************************************************************************- |
| 5887 | ************************ |
| 5888 | ******************************************************************************- |
| 5889 | ******************************************************************************- |
| 5890 | ************************ |
| 5891 | ******************************************************************************- |
| 5892 | ******************************************************************************- |
| 5893 | ************************ |
| 5894 | ******************************************************************************- |
| 5895 | ******************************************************************************- |
| 5896 | ************************ |
| 5897 | ******************************************************************************- |
| 5898 | ******************************************************************************- |
| 5899 | ************************ |
| 5900 | ******************************************************************************- |
| 5901 | ******************************************************************************- |
| 5902 | ************************ |
| 5903 | ******************************************************************************- |
| 5904 | ******************************************************************************- |
| 5905 | ************************ |
| 5906 | ******************************************************************************- |
| 5907 | ******************************************************************************- |
| 5908 | ************************ |
| 5909 | ******************************************************************************- |
| 5910 | ******************************************************************************- |
| 5911 | ************************ |
| 5912 | ******************************************************************************- |
| 5913 | ******************************************************************************- |
| 5914 | ************************ |
| 5915 | ******************************************************************************- |
| 5916 | ******************************************************************************- |
| 5917 | ************************ |
| 5918 | ******************************************************************************- |
| 5919 | ******************************************************************************- |
| 5920 | ************************ |
| 5921 | ******************************************************************************- |
| 5922 | ******************************************************************************- |
| 5923 | ************************ |
| 5924 | ******************************************************************************- |
| 5925 | ******************************************************************************- |
| 5926 | ************************ |
| 5927 | ******************************************************************************- |
| 5928 | ******************************************************************************- |
| 5929 | ************************ |
| 5930 | ******************************************************************************- |
| 5931 | ******************************************************************************- |
| 5932 | ************************ |
| 5933 | ******************************************************************************- |
| 5934 | ******************************************************************************- |
| 5935 | ************************ |
| 5936 | ******************************************************************************- |
| 5937 | ******************************************************************************- |
| 5938 | ************************ |
| 5939 | ******************************************************************************- |
| 5940 | ******************************************************************************- |
| 5941 | ************************ |
| 5942 | ******************************************************************************- |
| 5943 | ******************************************************************************- |
| 5944 | ************************ |
| 5945 | ******************************************************************************- |
| 5946 | ******************************************************************************- |
| 5947 | ************************ |
| 5948 | ******************************************************************************- |
| 5949 | ******************************************************************************- |
| 5950 | ************************ |
| 5951 | ******************************************************************************- |
| 5952 | ******************************************************************************- |
| 5953 | ************************ |
| 5954 | ******************************************************************************- |
| 5955 | ******************************************************************************- |
| 5956 | ************************ |
| 5957 | ******************************************************************************- |
| 5958 | ******************************************************************************- |
| 5959 | ************************ |
| 5960 | ******************************************************************************- |
| 5961 | ******************************************************************************- |
| 5962 | ************************ |
| 5963 | ******************************************************************************- |
| 5964 | ******************************************************************************- |
| 5965 | ************************ |
| 5966 | ******************************************************************************- |
| 5967 | ******************************************************************************- |
| 5968 | ************************ |
| 5969 | ******************************************************************************- |
| 5970 | ******************************************************************************- |
| 5971 | ************************ |
| 5972 | ******************************************************************************- |
| 5973 | ******************************************************************************- |
| 5974 | ************************ |
| 5975 | ******************************************************************************- |
| 5976 | ******************************************************************************- |
| 5977 | ************************ |
| 5978 | ******************************************************************************- |
| 5979 | ******************************************************************************- |
| 5980 | ************************ |
| 5981 | ******************************************************************************- |
| 5982 | ******************************************************************************- |
| 5983 | ************************ |
| 5984 | ******************************************************************************- |
| 5985 | ******************************************************************************- |
| 5986 | ************************ |
| 5987 | ******************************************************************************- |
| 5988 | ******************************************************************************- |
| 5989 | ************************ |
| 5990 | ******************************************************************************- |
| 5991 | ******************************************************************************- |
| 5992 | ************************ |
| 5993 | ******************************************************************************- |
| 5994 | ******************************************************************************- |
| 5995 | ************************ |
| 5996 | ******************************************************************************- |
| 5997 | ******************************************************************************- |
| 5998 | ************************ |
| 5999 | ******************************************************************************- |
| 6000 | ******************************************************************************- |
| 6001 | ************************ |
| 6002 | ******************************************************************************- |
| 6003 | ******************************************************************************- |
| 6004 | ************************ |
| 6005 | ******************************************************************************- |
| 6006 | ******************************************************************************- |
| 6007 | ************************ |
| 6008 | ******************************************************************************- |
| 6009 | ******************************************************************************- |
| 6010 | ************************ |
| 6011 | ******************************************************************************- |
| 6012 | ******************************************************************************- |
| 6013 | ************************ |
| 6014 | ******************************************************************************- |
| 6015 | ******************************************************************************- |
| 6016 | ************************ |
| 6017 | ******************************************************************************- |
| 6018 | ... message truncated due to excessive size" ends with: "... message truncated due to excessive size" |
| 6019 | </Expanded> |
| 6020 | </Expression> |
| 6021 | <OverallResult success="true"/> |
| 6022 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6023 | <TestCase name="Parsing a std::pair"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6024 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6025 | <Original> |
| 6026 | (std::pair<int, int>( 1, 2 )) == aNicePair |
| 6027 | </Original> |
| 6028 | <Expanded> |
| 6029 | std::pair( 1, 2 ) == std::pair( 1, 2 ) |
| 6030 | </Expanded> |
| 6031 | </Expression> |
| 6032 | <OverallResult success="true"/> |
| 6033 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 6034 | <TestCase name="Where there is more to the expression after the RHS"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6035 | <Warning> |
| 6036 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 6037 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 6038 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6039 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 6040 | <TestCase name="Where the LHS is not a simple value"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6041 | <Warning> |
| 6042 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 6043 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 6044 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6045 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 6046 | <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] | 6047 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6048 | <Original> |
| 6049 | &o1 == &o2 |
| 6050 | </Original> |
| 6051 | <Expanded> |
| 6052 | 0x<hex digits> == 0x<hex digits> |
| 6053 | </Expanded> |
| 6054 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6055 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6056 | <Original> |
| 6057 | o1 == o2 |
| 6058 | </Original> |
| 6059 | <Expanded> |
| 6060 | {?} == {?} |
| 6061 | </Expanded> |
| 6062 | </Expression> |
| 6063 | <OverallResult success="false"/> |
| 6064 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 6065 | <TestCase name="string literals of different sizes can be compared"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6066 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6067 | <Original> |
| 6068 | std::string( "first" ) == "second" |
| 6069 | </Original> |
| 6070 | <Expanded> |
| 6071 | "first" == "second" |
| 6072 | </Expanded> |
| 6073 | </Expression> |
| 6074 | <OverallResult success="false"/> |
| 6075 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6076 | <TestCase name="An expression with side-effects should only be evaluated once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6077 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6078 | <Original> |
| 6079 | i++ == 7 |
| 6080 | </Original> |
| 6081 | <Expanded> |
| 6082 | 7 == 7 |
| 6083 | </Expanded> |
| 6084 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6085 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6086 | <Original> |
| 6087 | i++ == 8 |
| 6088 | </Original> |
| 6089 | <Expanded> |
| 6090 | 8 == 8 |
| 6091 | </Expanded> |
| 6092 | </Expression> |
| 6093 | <OverallResult success="true"/> |
| 6094 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6095 | <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6096 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6097 | <Original> |
| 6098 | 0x<hex digits> == o |
| 6099 | </Original> |
| 6100 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6101 | 3221225472 (0x<hex digits>) == {?} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6102 | </Expanded> |
| 6103 | </Expression> |
| 6104 | <OverallResult success="true"/> |
| 6105 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6106 | <TestCase name="Demonstrate that a non-const == is not used"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6107 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6108 | <Original> |
| 6109 | t == 1u |
| 6110 | </Original> |
| 6111 | <Expanded> |
| 6112 | {?} == 1 |
| 6113 | </Expanded> |
| 6114 | </Expression> |
| 6115 | <OverallResult success="true"/> |
| 6116 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6117 | <TestCase name="Test enum bit values"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6118 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6119 | <Original> |
| 6120 | 0x<hex digits> == bit30and31 |
| 6121 | </Original> |
| 6122 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6123 | 3221225472 (0x<hex digits>) == 3221225472 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6124 | </Expanded> |
| 6125 | </Expression> |
| 6126 | <OverallResult success="true"/> |
| 6127 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6128 | <TestCase name="boolean member"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6129 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6130 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6131 | obj.prop != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6132 | </Original> |
| 6133 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6134 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6135 | </Expanded> |
| 6136 | </Expression> |
| 6137 | <OverallResult success="true"/> |
| 6138 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6139 | <TestCase name="(unimplemented) static bools can be evaluated"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6140 | <Section name="compare to true"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6141 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6142 | <Original> |
| 6143 | is_true<true>::value == true |
| 6144 | </Original> |
| 6145 | <Expanded> |
| 6146 | true == true |
| 6147 | </Expanded> |
| 6148 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6149 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6150 | <Original> |
| 6151 | true == is_true<true>::value |
| 6152 | </Original> |
| 6153 | <Expanded> |
| 6154 | true == true |
| 6155 | </Expanded> |
| 6156 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6157 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6158 | </Section> |
| 6159 | <Section name="compare to false"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6160 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6161 | <Original> |
| 6162 | is_true<false>::value == false |
| 6163 | </Original> |
| 6164 | <Expanded> |
| 6165 | false == false |
| 6166 | </Expanded> |
| 6167 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6168 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6169 | <Original> |
| 6170 | false == is_true<false>::value |
| 6171 | </Original> |
| 6172 | <Expanded> |
| 6173 | false == false |
| 6174 | </Expanded> |
| 6175 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6176 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6177 | </Section> |
| 6178 | <Section name="negation"> |
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 | !is_true<false>::value |
| 6182 | </Original> |
| 6183 | <Expanded> |
| 6184 | true |
| 6185 | </Expanded> |
| 6186 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6187 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6188 | </Section> |
| 6189 | <Section name="double negation"> |
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 | !!is_true<true>::value |
| 6193 | </Original> |
| 6194 | <Expanded> |
| 6195 | true |
| 6196 | </Expanded> |
| 6197 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6198 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6199 | </Section> |
| 6200 | <Section name="direct"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6201 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6202 | <Original> |
| 6203 | is_true<true>::value |
| 6204 | </Original> |
| 6205 | <Expanded> |
| 6206 | true |
| 6207 | </Expanded> |
| 6208 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6209 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6210 | <Original> |
| 6211 | !is_true<false>::value |
| 6212 | </Original> |
| 6213 | <Expanded> |
| 6214 | !false |
| 6215 | </Expanded> |
| 6216 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6217 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6218 | </Section> |
| 6219 | <OverallResult success="true"/> |
| 6220 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6221 | <TestCase name="Objects that evaluated in boolean contexts can be checked"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6222 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6223 | <Original> |
| 6224 | True |
| 6225 | </Original> |
| 6226 | <Expanded> |
| 6227 | true |
| 6228 | </Expanded> |
| 6229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6230 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6231 | <Original> |
| 6232 | !False |
| 6233 | </Original> |
| 6234 | <Expanded> |
| 6235 | true |
| 6236 | </Expanded> |
| 6237 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6238 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6239 | <Original> |
| 6240 | !False |
| 6241 | </Original> |
| 6242 | <Expanded> |
| 6243 | !false |
| 6244 | </Expanded> |
| 6245 | </Expression> |
| 6246 | <OverallResult success="true"/> |
| 6247 | </TestCase> |
| 6248 | <TestCase name="Assertions then sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6249 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6250 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6251 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6252 | </Original> |
| 6253 | <Expanded> |
| 6254 | true |
| 6255 | </Expanded> |
| 6256 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6257 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6258 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6259 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6260 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6261 | </Original> |
| 6262 | <Expanded> |
| 6263 | true |
| 6264 | </Expanded> |
| 6265 | </Expression> |
| 6266 | <Section name="Another section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6267 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6268 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6269 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6270 | </Original> |
| 6271 | <Expanded> |
| 6272 | true |
| 6273 | </Expanded> |
| 6274 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6275 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6276 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6277 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6278 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6279 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6280 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6281 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6282 | </Original> |
| 6283 | <Expanded> |
| 6284 | true |
| 6285 | </Expanded> |
| 6286 | </Expression> |
| 6287 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6288 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6289 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6290 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6291 | </Original> |
| 6292 | <Expanded> |
| 6293 | true |
| 6294 | </Expanded> |
| 6295 | </Expression> |
| 6296 | <Section name="Another other section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6297 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6298 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6299 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6300 | </Original> |
| 6301 | <Expanded> |
| 6302 | true |
| 6303 | </Expanded> |
| 6304 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6305 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6306 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6307 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6308 | </Section> |
| 6309 | <OverallResult success="true"/> |
| 6310 | </TestCase> |
| 6311 | <TestCase name="non streamable - with conv. op"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6312 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6313 | <Original> |
| 6314 | s == "7" |
| 6315 | </Original> |
| 6316 | <Expanded> |
| 6317 | "7" == "7" |
| 6318 | </Expanded> |
| 6319 | </Expression> |
| 6320 | <OverallResult success="true"/> |
| 6321 | </TestCase> |
| 6322 | <TestCase name="Comparing function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6323 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6324 | <Original> |
| 6325 | a |
| 6326 | </Original> |
| 6327 | <Expanded> |
| 6328 | true |
| 6329 | </Expanded> |
| 6330 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6331 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6332 | <Original> |
| 6333 | a == &foo |
| 6334 | </Original> |
| 6335 | <Expanded> |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6336 | 0x<hex digits> == 0x<hex digits> |
| 6337 | </Expanded> |
| 6338 | </Expression> |
| 6339 | <OverallResult success="true"/> |
| 6340 | </TestCase> |
| 6341 | <TestCase name="Comparing member function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6342 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6343 | <Original> |
| 6344 | m == &S::f |
| 6345 | </Original> |
| 6346 | <Expanded> |
| 6347 | 0x<hex digits> |
| 6348 | == |
| 6349 | 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6350 | </Expanded> |
| 6351 | </Expression> |
| 6352 | <OverallResult success="true"/> |
| 6353 | </TestCase> |
| 6354 | <TestCase name="pointer to class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6355 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6356 | <Original> |
| 6357 | p == 0 |
| 6358 | </Original> |
| 6359 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6360 | NULL == 0 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6361 | </Expanded> |
| 6362 | </Expression> |
| 6363 | <OverallResult success="true"/> |
| 6364 | </TestCase> |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6365 | <TestCase name="null_ptr"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6366 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6367 | <Original> |
| 6368 | ptr.get() == nullptr |
| 6369 | </Original> |
| 6370 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6371 | NULL == nullptr |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6372 | </Expanded> |
| 6373 | </Expression> |
| 6374 | <OverallResult success="true"/> |
| 6375 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6376 | <TestCase name="X/level/0/a"> |
| 6377 | <OverallResult success="true"/> |
| 6378 | </TestCase> |
| 6379 | <TestCase name="X/level/0/b"> |
| 6380 | <OverallResult success="true"/> |
| 6381 | </TestCase> |
| 6382 | <TestCase name="X/level/1/a"> |
| 6383 | <OverallResult success="true"/> |
| 6384 | </TestCase> |
| 6385 | <TestCase name="X/level/1/b"> |
| 6386 | <OverallResult success="true"/> |
| 6387 | </TestCase> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6388 | <TestCase name="toString( has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6389 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6390 | <Original> |
| 6391 | Catch::toString( item ) == "toString( has_toString )" |
| 6392 | </Original> |
| 6393 | <Expanded> |
| 6394 | "toString( has_toString )" |
| 6395 | == |
| 6396 | "toString( has_toString )" |
| 6397 | </Expanded> |
| 6398 | </Expression> |
| 6399 | <OverallResult success="true"/> |
| 6400 | </TestCase> |
| 6401 | <TestCase name="toString( has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6402 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6403 | <Original> |
| 6404 | Catch::toString( item ) == "StringMaker<has_maker>" |
| 6405 | </Original> |
| 6406 | <Expanded> |
| 6407 | "StringMaker<has_maker>" |
| 6408 | == |
| 6409 | "StringMaker<has_maker>" |
| 6410 | </Expanded> |
| 6411 | </Expression> |
| 6412 | <OverallResult success="true"/> |
| 6413 | </TestCase> |
| 6414 | <TestCase name="toString( has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6415 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6416 | <Original> |
| 6417 | Catch::toString( item ) == "toString( has_maker_and_toString )" |
| 6418 | </Original> |
| 6419 | <Expanded> |
| 6420 | "toString( has_maker_and_toString )" |
| 6421 | == |
| 6422 | "toString( has_maker_and_toString )" |
| 6423 | </Expanded> |
| 6424 | </Expression> |
| 6425 | <OverallResult success="true"/> |
| 6426 | </TestCase> |
| 6427 | <TestCase name="toString( vectors<has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6428 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6429 | <Original> |
| 6430 | Catch::toString( v ) == "{ {?} }" |
| 6431 | </Original> |
| 6432 | <Expanded> |
| 6433 | "{ {?} }" == "{ {?} }" |
| 6434 | </Expanded> |
| 6435 | </Expression> |
| 6436 | <OverallResult success="true"/> |
| 6437 | </TestCase> |
| 6438 | <TestCase name="toString( vectors<has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6439 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6440 | <Original> |
| 6441 | Catch::toString( v ) == "{ StringMaker<has_maker> }" |
| 6442 | </Original> |
| 6443 | <Expanded> |
| 6444 | "{ StringMaker<has_maker> }" |
| 6445 | == |
| 6446 | "{ StringMaker<has_maker> }" |
| 6447 | </Expanded> |
| 6448 | </Expression> |
| 6449 | <OverallResult success="true"/> |
| 6450 | </TestCase> |
| 6451 | <TestCase name="toString( vectors<has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6452 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6453 | <Original> |
| 6454 | Catch::toString( v ) == "{ StringMaker<has_maker_and_toString> }" |
| 6455 | </Original> |
| 6456 | <Expanded> |
| 6457 | "{ StringMaker<has_maker_and_toString> }" |
| 6458 | == |
| 6459 | "{ StringMaker<has_maker_and_toString> }" |
| 6460 | </Expanded> |
| 6461 | </Expression> |
| 6462 | <OverallResult success="true"/> |
| 6463 | </TestCase> |
| 6464 | <TestCase name="std::pair<int,std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6465 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6466 | <Original> |
| 6467 | Catch::toString( value ) == "{ 34, \"xyzzy\" }" |
| 6468 | </Original> |
| 6469 | <Expanded> |
| 6470 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 6471 | </Expanded> |
| 6472 | </Expression> |
| 6473 | <OverallResult success="true"/> |
| 6474 | </TestCase> |
| 6475 | <TestCase name="std::pair<int,const std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6476 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6477 | <Original> |
| 6478 | Catch::toString(value) == "{ 34, \"xyzzy\" }" |
| 6479 | </Original> |
| 6480 | <Expanded> |
| 6481 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 6482 | </Expanded> |
| 6483 | </Expression> |
| 6484 | <OverallResult success="true"/> |
| 6485 | </TestCase> |
| 6486 | <TestCase name="std::vector<std::pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6487 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6488 | <Original> |
| 6489 | Catch::toString( pr ) == "{ { \"green\", 55 } }" |
| 6490 | </Original> |
| 6491 | <Expanded> |
| 6492 | "{ { "green", 55 } }" |
| 6493 | == |
| 6494 | "{ { "green", 55 } }" |
| 6495 | </Expanded> |
| 6496 | </Expression> |
| 6497 | <OverallResult success="true"/> |
| 6498 | </TestCase> |
| 6499 | <TestCase name="pair<pair<int,const char *,pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6500 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6501 | <Original> |
| 6502 | Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" |
| 6503 | </Original> |
| 6504 | <Expanded> |
| 6505 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 6506 | == |
| 6507 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 6508 | </Expanded> |
| 6509 | </Expression> |
| 6510 | <OverallResult success="true"/> |
| 6511 | </TestCase> |
| 6512 | <TestCase name="vector<int> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6513 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6514 | <Original> |
| 6515 | Catch::toString(vv) == "{ }" |
| 6516 | </Original> |
| 6517 | <Expanded> |
| 6518 | "{ }" == "{ }" |
| 6519 | </Expanded> |
| 6520 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6521 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6522 | <Original> |
| 6523 | Catch::toString(vv) == "{ 42 }" |
| 6524 | </Original> |
| 6525 | <Expanded> |
| 6526 | "{ 42 }" == "{ 42 }" |
| 6527 | </Expanded> |
| 6528 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6529 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6530 | <Original> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6531 | Catch::toString(vv) == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6532 | </Original> |
| 6533 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6534 | "{ 42, 250 }" == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6535 | </Expanded> |
| 6536 | </Expression> |
| 6537 | <OverallResult success="true"/> |
| 6538 | </TestCase> |
| 6539 | <TestCase name="vector<string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6540 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6541 | <Original> |
| 6542 | Catch::toString(vv) == "{ }" |
| 6543 | </Original> |
| 6544 | <Expanded> |
| 6545 | "{ }" == "{ }" |
| 6546 | </Expanded> |
| 6547 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6548 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6549 | <Original> |
| 6550 | Catch::toString(vv) == "{ \"hello\" }" |
| 6551 | </Original> |
| 6552 | <Expanded> |
| 6553 | "{ "hello" }" == "{ "hello" }" |
| 6554 | </Expanded> |
| 6555 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6556 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6557 | <Original> |
| 6558 | Catch::toString(vv) == "{ \"hello\", \"world\" }" |
| 6559 | </Original> |
| 6560 | <Expanded> |
| 6561 | "{ "hello", "world" }" |
| 6562 | == |
| 6563 | "{ "hello", "world" }" |
| 6564 | </Expanded> |
| 6565 | </Expression> |
| 6566 | <OverallResult success="true"/> |
| 6567 | </TestCase> |
| 6568 | <TestCase name="vector<int,allocator> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6569 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6570 | <Original> |
| 6571 | Catch::toString(vv) == "{ }" |
| 6572 | </Original> |
| 6573 | <Expanded> |
| 6574 | "{ }" == "{ }" |
| 6575 | </Expanded> |
| 6576 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6577 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6578 | <Original> |
| 6579 | Catch::toString(vv) == "{ 42 }" |
| 6580 | </Original> |
| 6581 | <Expanded> |
| 6582 | "{ 42 }" == "{ 42 }" |
| 6583 | </Expanded> |
| 6584 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6585 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6586 | <Original> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6587 | Catch::toString(vv) == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6588 | </Original> |
| 6589 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6590 | "{ 42, 250 }" == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6591 | </Expanded> |
| 6592 | </Expression> |
| 6593 | <OverallResult success="true"/> |
| 6594 | </TestCase> |
| 6595 | <TestCase name="vec<vec<string,alloc>> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6596 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6597 | <Original> |
| 6598 | Catch::toString(v) == "{ }" |
| 6599 | </Original> |
| 6600 | <Expanded> |
| 6601 | "{ }" == "{ }" |
| 6602 | </Expanded> |
| 6603 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6604 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6605 | <Original> |
| 6606 | Catch::toString(v) == "{ { \"hello\" }, { \"world\" } }" |
| 6607 | </Original> |
| 6608 | <Expanded> |
| 6609 | "{ { "hello" }, { "world" } }" |
| 6610 | == |
| 6611 | "{ { "hello" }, { "world" } }" |
| 6612 | </Expanded> |
| 6613 | </Expression> |
| 6614 | <OverallResult success="true"/> |
| 6615 | </TestCase> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6616 | <TestCase name="Parse test names and tags"> |
| 6617 | <Section name="Empty test spec should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6618 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6619 | <Original> |
| 6620 | spec.hasFilters() == false |
| 6621 | </Original> |
| 6622 | <Expanded> |
| 6623 | false == false |
| 6624 | </Expanded> |
| 6625 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6626 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6627 | <Original> |
| 6628 | spec.matches( tcA ) == false |
| 6629 | </Original> |
| 6630 | <Expanded> |
| 6631 | false == false |
| 6632 | </Expanded> |
| 6633 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6634 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6635 | <Original> |
| 6636 | spec.matches( tcB ) == false |
| 6637 | </Original> |
| 6638 | <Expanded> |
| 6639 | false == false |
| 6640 | </Expanded> |
| 6641 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6642 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6643 | </Section> |
| 6644 | <Section name="Test spec from empty string should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6645 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6646 | <Original> |
| 6647 | spec.hasFilters() == false |
| 6648 | </Original> |
| 6649 | <Expanded> |
| 6650 | false == false |
| 6651 | </Expanded> |
| 6652 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6653 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6654 | <Original> |
| 6655 | spec.matches(tcA ) == false |
| 6656 | </Original> |
| 6657 | <Expanded> |
| 6658 | false == false |
| 6659 | </Expanded> |
| 6660 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6661 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6662 | <Original> |
| 6663 | spec.matches( tcB ) == false |
| 6664 | </Original> |
| 6665 | <Expanded> |
| 6666 | false == false |
| 6667 | </Expanded> |
| 6668 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6669 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6670 | </Section> |
| 6671 | <Section name="Test spec from just a comma should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6672 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6673 | <Original> |
| 6674 | spec.hasFilters() == false |
| 6675 | </Original> |
| 6676 | <Expanded> |
| 6677 | false == false |
| 6678 | </Expanded> |
| 6679 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6680 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6681 | <Original> |
| 6682 | spec.matches( tcA ) == false |
| 6683 | </Original> |
| 6684 | <Expanded> |
| 6685 | false == false |
| 6686 | </Expanded> |
| 6687 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6688 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6689 | <Original> |
| 6690 | spec.matches( tcB ) == false |
| 6691 | </Original> |
| 6692 | <Expanded> |
| 6693 | false == false |
| 6694 | </Expanded> |
| 6695 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6696 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6697 | </Section> |
| 6698 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6699 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6700 | <Original> |
| 6701 | spec.hasFilters() == true |
| 6702 | </Original> |
| 6703 | <Expanded> |
| 6704 | true == true |
| 6705 | </Expanded> |
| 6706 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6707 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6708 | <Original> |
| 6709 | spec.matches( tcA ) == false |
| 6710 | </Original> |
| 6711 | <Expanded> |
| 6712 | false == false |
| 6713 | </Expanded> |
| 6714 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6715 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6716 | <Original> |
| 6717 | spec.matches( tcB ) == true |
| 6718 | </Original> |
| 6719 | <Expanded> |
| 6720 | true == true |
| 6721 | </Expanded> |
| 6722 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6723 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6724 | </Section> |
| 6725 | <Section name="Test spec from quoted name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6726 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6727 | <Original> |
| 6728 | spec.hasFilters() == true |
| 6729 | </Original> |
| 6730 | <Expanded> |
| 6731 | true == true |
| 6732 | </Expanded> |
| 6733 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6734 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6735 | <Original> |
| 6736 | spec.matches( tcA ) == false |
| 6737 | </Original> |
| 6738 | <Expanded> |
| 6739 | false == false |
| 6740 | </Expanded> |
| 6741 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6742 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6743 | <Original> |
| 6744 | spec.matches( tcB ) == true |
| 6745 | </Original> |
| 6746 | <Expanded> |
| 6747 | true == true |
| 6748 | </Expanded> |
| 6749 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6750 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6751 | </Section> |
| 6752 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6753 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6754 | <Original> |
| 6755 | spec.hasFilters() == true |
| 6756 | </Original> |
| 6757 | <Expanded> |
| 6758 | true == true |
| 6759 | </Expanded> |
| 6760 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6761 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6762 | <Original> |
| 6763 | spec.matches( tcA ) == false |
| 6764 | </Original> |
| 6765 | <Expanded> |
| 6766 | false == false |
| 6767 | </Expanded> |
| 6768 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6769 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6770 | <Original> |
| 6771 | spec.matches( tcB ) == true |
| 6772 | </Original> |
| 6773 | <Expanded> |
| 6774 | true == true |
| 6775 | </Expanded> |
| 6776 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6777 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6778 | <Original> |
| 6779 | spec.matches( tcC ) == false |
| 6780 | </Original> |
| 6781 | <Expanded> |
| 6782 | false == false |
| 6783 | </Expanded> |
| 6784 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6785 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6786 | </Section> |
| 6787 | <Section name="Wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6788 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6789 | <Original> |
| 6790 | spec.hasFilters() == true |
| 6791 | </Original> |
| 6792 | <Expanded> |
| 6793 | true == true |
| 6794 | </Expanded> |
| 6795 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6796 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6797 | <Original> |
| 6798 | spec.matches( tcA ) == false |
| 6799 | </Original> |
| 6800 | <Expanded> |
| 6801 | false == false |
| 6802 | </Expanded> |
| 6803 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6804 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6805 | <Original> |
| 6806 | spec.matches( tcB ) == false |
| 6807 | </Original> |
| 6808 | <Expanded> |
| 6809 | false == false |
| 6810 | </Expanded> |
| 6811 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6812 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6813 | <Original> |
| 6814 | spec.matches( tcC ) == true |
| 6815 | </Original> |
| 6816 | <Expanded> |
| 6817 | true == true |
| 6818 | </Expanded> |
| 6819 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6820 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6821 | <Original> |
| 6822 | spec.matches( tcD ) == false |
| 6823 | </Original> |
| 6824 | <Expanded> |
| 6825 | false == false |
| 6826 | </Expanded> |
| 6827 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6828 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6829 | <Original> |
| 6830 | parseTestSpec( "*a" ).matches( tcA ) == true |
| 6831 | </Original> |
| 6832 | <Expanded> |
| 6833 | true == true |
| 6834 | </Expanded> |
| 6835 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6836 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6837 | </Section> |
| 6838 | <Section name="Wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6839 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6840 | <Original> |
| 6841 | spec.hasFilters() == true |
| 6842 | </Original> |
| 6843 | <Expanded> |
| 6844 | true == true |
| 6845 | </Expanded> |
| 6846 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6847 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6848 | <Original> |
| 6849 | spec.matches( tcA ) == false |
| 6850 | </Original> |
| 6851 | <Expanded> |
| 6852 | false == false |
| 6853 | </Expanded> |
| 6854 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6855 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6856 | <Original> |
| 6857 | spec.matches( tcB ) == false |
| 6858 | </Original> |
| 6859 | <Expanded> |
| 6860 | false == false |
| 6861 | </Expanded> |
| 6862 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6863 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6864 | <Original> |
| 6865 | spec.matches( tcC ) == true |
| 6866 | </Original> |
| 6867 | <Expanded> |
| 6868 | true == true |
| 6869 | </Expanded> |
| 6870 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6871 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6872 | <Original> |
| 6873 | spec.matches( tcD ) == false |
| 6874 | </Original> |
| 6875 | <Expanded> |
| 6876 | false == false |
| 6877 | </Expanded> |
| 6878 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6879 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6880 | <Original> |
| 6881 | parseTestSpec( "a*" ).matches( tcA ) == true |
| 6882 | </Original> |
| 6883 | <Expanded> |
| 6884 | true == true |
| 6885 | </Expanded> |
| 6886 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6887 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6888 | </Section> |
| 6889 | <Section name="Wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6890 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6891 | <Original> |
| 6892 | spec.hasFilters() == true |
| 6893 | </Original> |
| 6894 | <Expanded> |
| 6895 | true == true |
| 6896 | </Expanded> |
| 6897 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6898 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6899 | <Original> |
| 6900 | spec.matches( tcA ) == false |
| 6901 | </Original> |
| 6902 | <Expanded> |
| 6903 | false == false |
| 6904 | </Expanded> |
| 6905 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6906 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6907 | <Original> |
| 6908 | spec.matches( tcB ) == false |
| 6909 | </Original> |
| 6910 | <Expanded> |
| 6911 | false == false |
| 6912 | </Expanded> |
| 6913 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6914 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6915 | <Original> |
| 6916 | spec.matches( tcC ) == true |
| 6917 | </Original> |
| 6918 | <Expanded> |
| 6919 | true == true |
| 6920 | </Expanded> |
| 6921 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6922 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6923 | <Original> |
| 6924 | spec.matches( tcD ) == true |
| 6925 | </Original> |
| 6926 | <Expanded> |
| 6927 | true == true |
| 6928 | </Expanded> |
| 6929 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6930 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6931 | <Original> |
| 6932 | parseTestSpec( "*a*" ).matches( tcA ) == true |
| 6933 | </Original> |
| 6934 | <Expanded> |
| 6935 | true == true |
| 6936 | </Expanded> |
| 6937 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6938 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6939 | </Section> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6940 | <Section name="Redundant wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6941 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6942 | <Original> |
| 6943 | spec.hasFilters() == true |
| 6944 | </Original> |
| 6945 | <Expanded> |
| 6946 | true == true |
| 6947 | </Expanded> |
| 6948 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6949 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6950 | <Original> |
| 6951 | spec.matches( tcA ) == true |
| 6952 | </Original> |
| 6953 | <Expanded> |
| 6954 | true == true |
| 6955 | </Expanded> |
| 6956 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6957 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6958 | <Original> |
| 6959 | spec.matches( tcB ) == false |
| 6960 | </Original> |
| 6961 | <Expanded> |
| 6962 | false == false |
| 6963 | </Expanded> |
| 6964 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6965 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6966 | </Section> |
| 6967 | <Section name="Redundant wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6968 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6969 | <Original> |
| 6970 | spec.hasFilters() == true |
| 6971 | </Original> |
| 6972 | <Expanded> |
| 6973 | true == true |
| 6974 | </Expanded> |
| 6975 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6976 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6977 | <Original> |
| 6978 | spec.matches( tcA ) == true |
| 6979 | </Original> |
| 6980 | <Expanded> |
| 6981 | true == true |
| 6982 | </Expanded> |
| 6983 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6984 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6985 | <Original> |
| 6986 | spec.matches( tcB ) == false |
| 6987 | </Original> |
| 6988 | <Expanded> |
| 6989 | false == false |
| 6990 | </Expanded> |
| 6991 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6992 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6993 | </Section> |
| 6994 | <Section name="Redundant wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6995 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6996 | <Original> |
| 6997 | spec.hasFilters() == true |
| 6998 | </Original> |
| 6999 | <Expanded> |
| 7000 | true == true |
| 7001 | </Expanded> |
| 7002 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7003 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7004 | <Original> |
| 7005 | spec.matches( tcA ) == true |
| 7006 | </Original> |
| 7007 | <Expanded> |
| 7008 | true == true |
| 7009 | </Expanded> |
| 7010 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7011 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7012 | <Original> |
| 7013 | spec.matches( tcB ) == false |
| 7014 | </Original> |
| 7015 | <Expanded> |
| 7016 | false == false |
| 7017 | </Expanded> |
| 7018 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7019 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7020 | </Section> |
| 7021 | <Section name="Wildcard at both ends, redundant at start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7022 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7023 | <Original> |
| 7024 | spec.hasFilters() == true |
| 7025 | </Original> |
| 7026 | <Expanded> |
| 7027 | true == true |
| 7028 | </Expanded> |
| 7029 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7030 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7031 | <Original> |
| 7032 | spec.matches( tcA ) == false |
| 7033 | </Original> |
| 7034 | <Expanded> |
| 7035 | false == false |
| 7036 | </Expanded> |
| 7037 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7038 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7039 | <Original> |
| 7040 | spec.matches( tcB ) == false |
| 7041 | </Original> |
| 7042 | <Expanded> |
| 7043 | false == false |
| 7044 | </Expanded> |
| 7045 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7046 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7047 | <Original> |
| 7048 | spec.matches( tcC ) == true |
| 7049 | </Original> |
| 7050 | <Expanded> |
| 7051 | true == true |
| 7052 | </Expanded> |
| 7053 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7054 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7055 | <Original> |
| 7056 | spec.matches( tcD ) == true |
| 7057 | </Original> |
| 7058 | <Expanded> |
| 7059 | true == true |
| 7060 | </Expanded> |
| 7061 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7062 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 7063 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7064 | <Section name="Just wildcard"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7065 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7066 | <Original> |
| 7067 | spec.hasFilters() == true |
| 7068 | </Original> |
| 7069 | <Expanded> |
| 7070 | true == true |
| 7071 | </Expanded> |
| 7072 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7073 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7074 | <Original> |
| 7075 | spec.matches( tcA ) == true |
| 7076 | </Original> |
| 7077 | <Expanded> |
| 7078 | true == true |
| 7079 | </Expanded> |
| 7080 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7081 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7082 | <Original> |
| 7083 | spec.matches( tcB ) == true |
| 7084 | </Original> |
| 7085 | <Expanded> |
| 7086 | true == true |
| 7087 | </Expanded> |
| 7088 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7089 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7090 | <Original> |
| 7091 | spec.matches( tcC ) == true |
| 7092 | </Original> |
| 7093 | <Expanded> |
| 7094 | true == true |
| 7095 | </Expanded> |
| 7096 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7097 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7098 | <Original> |
| 7099 | spec.matches( tcD ) == true |
| 7100 | </Original> |
| 7101 | <Expanded> |
| 7102 | true == true |
| 7103 | </Expanded> |
| 7104 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7105 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7106 | </Section> |
| 7107 | <Section name="Single tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7108 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7109 | <Original> |
| 7110 | spec.hasFilters() == true |
| 7111 | </Original> |
| 7112 | <Expanded> |
| 7113 | true == true |
| 7114 | </Expanded> |
| 7115 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7116 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7117 | <Original> |
| 7118 | spec.matches( tcA ) == false |
| 7119 | </Original> |
| 7120 | <Expanded> |
| 7121 | false == false |
| 7122 | </Expanded> |
| 7123 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7124 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7125 | <Original> |
| 7126 | spec.matches( tcB ) == true |
| 7127 | </Original> |
| 7128 | <Expanded> |
| 7129 | true == true |
| 7130 | </Expanded> |
| 7131 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7132 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7133 | <Original> |
| 7134 | spec.matches( tcC ) == false |
| 7135 | </Original> |
| 7136 | <Expanded> |
| 7137 | false == false |
| 7138 | </Expanded> |
| 7139 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7140 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7141 | </Section> |
| 7142 | <Section name="Single tag, two matches"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7143 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7144 | <Original> |
| 7145 | spec.hasFilters() == true |
| 7146 | </Original> |
| 7147 | <Expanded> |
| 7148 | true == true |
| 7149 | </Expanded> |
| 7150 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7151 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7152 | <Original> |
| 7153 | spec.matches( tcA ) == false |
| 7154 | </Original> |
| 7155 | <Expanded> |
| 7156 | false == false |
| 7157 | </Expanded> |
| 7158 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7159 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7160 | <Original> |
| 7161 | spec.matches( tcB ) == true |
| 7162 | </Original> |
| 7163 | <Expanded> |
| 7164 | true == true |
| 7165 | </Expanded> |
| 7166 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7167 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7168 | <Original> |
| 7169 | spec.matches( tcC ) == true |
| 7170 | </Original> |
| 7171 | <Expanded> |
| 7172 | true == true |
| 7173 | </Expanded> |
| 7174 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7175 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7176 | </Section> |
| 7177 | <Section name="Two tags"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7178 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7179 | <Original> |
| 7180 | spec.hasFilters() == true |
| 7181 | </Original> |
| 7182 | <Expanded> |
| 7183 | true == true |
| 7184 | </Expanded> |
| 7185 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7186 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7187 | <Original> |
| 7188 | spec.matches( tcA ) == false |
| 7189 | </Original> |
| 7190 | <Expanded> |
| 7191 | false == false |
| 7192 | </Expanded> |
| 7193 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7194 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7195 | <Original> |
| 7196 | spec.matches( tcB ) == false |
| 7197 | </Original> |
| 7198 | <Expanded> |
| 7199 | false == false |
| 7200 | </Expanded> |
| 7201 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7202 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7203 | <Original> |
| 7204 | spec.matches( tcC ) == true |
| 7205 | </Original> |
| 7206 | <Expanded> |
| 7207 | true == true |
| 7208 | </Expanded> |
| 7209 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7210 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7211 | </Section> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7212 | <Section name="Two tags, spare separated"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7213 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7214 | <Original> |
| 7215 | spec.hasFilters() == true |
| 7216 | </Original> |
| 7217 | <Expanded> |
| 7218 | true == true |
| 7219 | </Expanded> |
| 7220 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7221 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7222 | <Original> |
| 7223 | spec.matches( tcA ) == false |
| 7224 | </Original> |
| 7225 | <Expanded> |
| 7226 | false == false |
| 7227 | </Expanded> |
| 7228 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7229 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7230 | <Original> |
| 7231 | spec.matches( tcB ) == false |
| 7232 | </Original> |
| 7233 | <Expanded> |
| 7234 | false == false |
| 7235 | </Expanded> |
| 7236 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7237 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7238 | <Original> |
| 7239 | spec.matches( tcC ) == true |
| 7240 | </Original> |
| 7241 | <Expanded> |
| 7242 | true == true |
| 7243 | </Expanded> |
| 7244 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7245 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7246 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7247 | <Section name="Wildcarded name and tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7248 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7249 | <Original> |
| 7250 | spec.hasFilters() == true |
| 7251 | </Original> |
| 7252 | <Expanded> |
| 7253 | true == true |
| 7254 | </Expanded> |
| 7255 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7256 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7257 | <Original> |
| 7258 | spec.matches( tcA ) == false |
| 7259 | </Original> |
| 7260 | <Expanded> |
| 7261 | false == false |
| 7262 | </Expanded> |
| 7263 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7264 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7265 | <Original> |
| 7266 | spec.matches( tcB ) == false |
| 7267 | </Original> |
| 7268 | <Expanded> |
| 7269 | false == false |
| 7270 | </Expanded> |
| 7271 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7272 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7273 | <Original> |
| 7274 | spec.matches( tcC ) == true |
| 7275 | </Original> |
| 7276 | <Expanded> |
| 7277 | true == true |
| 7278 | </Expanded> |
| 7279 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7280 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7281 | <Original> |
| 7282 | spec.matches( tcD ) == false |
| 7283 | </Original> |
| 7284 | <Expanded> |
| 7285 | false == false |
| 7286 | </Expanded> |
| 7287 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7288 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7289 | </Section> |
| 7290 | <Section name="Single tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7291 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7292 | <Original> |
| 7293 | spec.hasFilters() == true |
| 7294 | </Original> |
| 7295 | <Expanded> |
| 7296 | true == true |
| 7297 | </Expanded> |
| 7298 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7299 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7300 | <Original> |
| 7301 | spec.matches( tcA ) == true |
| 7302 | </Original> |
| 7303 | <Expanded> |
| 7304 | true == true |
| 7305 | </Expanded> |
| 7306 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7307 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7308 | <Original> |
| 7309 | spec.matches( tcB ) == false |
| 7310 | </Original> |
| 7311 | <Expanded> |
| 7312 | false == false |
| 7313 | </Expanded> |
| 7314 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7315 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7316 | <Original> |
| 7317 | spec.matches( tcC ) == true |
| 7318 | </Original> |
| 7319 | <Expanded> |
| 7320 | true == true |
| 7321 | </Expanded> |
| 7322 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7323 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7324 | </Section> |
| 7325 | <Section name="One tag exclusion and one tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7326 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7327 | <Original> |
| 7328 | spec.hasFilters() == true |
| 7329 | </Original> |
| 7330 | <Expanded> |
| 7331 | true == true |
| 7332 | </Expanded> |
| 7333 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7334 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7335 | <Original> |
| 7336 | spec.matches( tcA ) == false |
| 7337 | </Original> |
| 7338 | <Expanded> |
| 7339 | false == false |
| 7340 | </Expanded> |
| 7341 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7342 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7343 | <Original> |
| 7344 | spec.matches( tcB ) == true |
| 7345 | </Original> |
| 7346 | <Expanded> |
| 7347 | true == true |
| 7348 | </Expanded> |
| 7349 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7350 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7351 | <Original> |
| 7352 | spec.matches( tcC ) == false |
| 7353 | </Original> |
| 7354 | <Expanded> |
| 7355 | false == false |
| 7356 | </Expanded> |
| 7357 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7358 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7359 | </Section> |
| 7360 | <Section name="One tag exclusion and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7361 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7362 | <Original> |
| 7363 | spec.hasFilters() == true |
| 7364 | </Original> |
| 7365 | <Expanded> |
| 7366 | true == true |
| 7367 | </Expanded> |
| 7368 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7369 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7370 | <Original> |
| 7371 | spec.matches( tcA ) == false |
| 7372 | </Original> |
| 7373 | <Expanded> |
| 7374 | false == false |
| 7375 | </Expanded> |
| 7376 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7377 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7378 | <Original> |
| 7379 | spec.matches( tcB ) == false |
| 7380 | </Original> |
| 7381 | <Expanded> |
| 7382 | false == false |
| 7383 | </Expanded> |
| 7384 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7385 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7386 | <Original> |
| 7387 | spec.matches( tcC ) == false |
| 7388 | </Original> |
| 7389 | <Expanded> |
| 7390 | false == false |
| 7391 | </Expanded> |
| 7392 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7393 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7394 | <Original> |
| 7395 | spec.matches( tcD ) == true |
| 7396 | </Original> |
| 7397 | <Expanded> |
| 7398 | true == true |
| 7399 | </Expanded> |
| 7400 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7401 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7402 | </Section> |
| 7403 | <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7404 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7405 | <Original> |
| 7406 | spec.hasFilters() == true |
| 7407 | </Original> |
| 7408 | <Expanded> |
| 7409 | true == true |
| 7410 | </Expanded> |
| 7411 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7412 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7413 | <Original> |
| 7414 | spec.matches( tcA ) == false |
| 7415 | </Original> |
| 7416 | <Expanded> |
| 7417 | false == false |
| 7418 | </Expanded> |
| 7419 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7420 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7421 | <Original> |
| 7422 | spec.matches( tcB ) == false |
| 7423 | </Original> |
| 7424 | <Expanded> |
| 7425 | false == false |
| 7426 | </Expanded> |
| 7427 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7428 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7429 | <Original> |
| 7430 | spec.matches( tcC ) == false |
| 7431 | </Original> |
| 7432 | <Expanded> |
| 7433 | false == false |
| 7434 | </Expanded> |
| 7435 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7436 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7437 | <Original> |
| 7438 | spec.matches( tcD ) == true |
| 7439 | </Original> |
| 7440 | <Expanded> |
| 7441 | true == true |
| 7442 | </Expanded> |
| 7443 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7444 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7445 | </Section> |
| 7446 | <Section name="name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7447 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7448 | <Original> |
| 7449 | spec.hasFilters() == true |
| 7450 | </Original> |
| 7451 | <Expanded> |
| 7452 | true == true |
| 7453 | </Expanded> |
| 7454 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7455 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7456 | <Original> |
| 7457 | spec.matches( tcA ) == true |
| 7458 | </Original> |
| 7459 | <Expanded> |
| 7460 | true == true |
| 7461 | </Expanded> |
| 7462 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7463 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7464 | <Original> |
| 7465 | spec.matches( tcB ) == false |
| 7466 | </Original> |
| 7467 | <Expanded> |
| 7468 | false == false |
| 7469 | </Expanded> |
| 7470 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7471 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7472 | <Original> |
| 7473 | spec.matches( tcC ) == true |
| 7474 | </Original> |
| 7475 | <Expanded> |
| 7476 | true == true |
| 7477 | </Expanded> |
| 7478 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7479 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7480 | <Original> |
| 7481 | spec.matches( tcD ) == true |
| 7482 | </Original> |
| 7483 | <Expanded> |
| 7484 | true == true |
| 7485 | </Expanded> |
| 7486 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7487 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7488 | </Section> |
| 7489 | <Section name="wildcarded name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7490 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7491 | <Original> |
| 7492 | spec.hasFilters() == true |
| 7493 | </Original> |
| 7494 | <Expanded> |
| 7495 | true == true |
| 7496 | </Expanded> |
| 7497 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7498 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7499 | <Original> |
| 7500 | spec.matches( tcA ) == true |
| 7501 | </Original> |
| 7502 | <Expanded> |
| 7503 | true == true |
| 7504 | </Expanded> |
| 7505 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7506 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7507 | <Original> |
| 7508 | spec.matches( tcB ) == true |
| 7509 | </Original> |
| 7510 | <Expanded> |
| 7511 | true == true |
| 7512 | </Expanded> |
| 7513 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7514 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7515 | <Original> |
| 7516 | spec.matches( tcC ) == false |
| 7517 | </Original> |
| 7518 | <Expanded> |
| 7519 | false == false |
| 7520 | </Expanded> |
| 7521 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7522 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7523 | <Original> |
| 7524 | spec.matches( tcD ) == false |
| 7525 | </Original> |
| 7526 | <Expanded> |
| 7527 | false == false |
| 7528 | </Expanded> |
| 7529 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7530 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7531 | </Section> |
| 7532 | <Section name="wildcarded name exclusion with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7533 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7534 | <Original> |
| 7535 | spec.hasFilters() == true |
| 7536 | </Original> |
| 7537 | <Expanded> |
| 7538 | true == true |
| 7539 | </Expanded> |
| 7540 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7541 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7542 | <Original> |
| 7543 | spec.matches( tcA ) == true |
| 7544 | </Original> |
| 7545 | <Expanded> |
| 7546 | true == true |
| 7547 | </Expanded> |
| 7548 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7549 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7550 | <Original> |
| 7551 | spec.matches( tcB ) == true |
| 7552 | </Original> |
| 7553 | <Expanded> |
| 7554 | true == true |
| 7555 | </Expanded> |
| 7556 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7557 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7558 | <Original> |
| 7559 | spec.matches( tcC ) == true |
| 7560 | </Original> |
| 7561 | <Expanded> |
| 7562 | true == true |
| 7563 | </Expanded> |
| 7564 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7565 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7566 | <Original> |
| 7567 | spec.matches( tcD ) == false |
| 7568 | </Original> |
| 7569 | <Expanded> |
| 7570 | false == false |
| 7571 | </Expanded> |
| 7572 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7573 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7574 | </Section> |
| 7575 | <Section name="wildcarded name exclusion, using exclude:, with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7576 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7577 | <Original> |
| 7578 | spec.hasFilters() == true |
| 7579 | </Original> |
| 7580 | <Expanded> |
| 7581 | true == true |
| 7582 | </Expanded> |
| 7583 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7584 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7585 | <Original> |
| 7586 | spec.matches( tcA ) == true |
| 7587 | </Original> |
| 7588 | <Expanded> |
| 7589 | true == true |
| 7590 | </Expanded> |
| 7591 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7592 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7593 | <Original> |
| 7594 | spec.matches( tcB ) == true |
| 7595 | </Original> |
| 7596 | <Expanded> |
| 7597 | true == true |
| 7598 | </Expanded> |
| 7599 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7600 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7601 | <Original> |
| 7602 | spec.matches( tcC ) == true |
| 7603 | </Original> |
| 7604 | <Expanded> |
| 7605 | true == true |
| 7606 | </Expanded> |
| 7607 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7608 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7609 | <Original> |
| 7610 | spec.matches( tcD ) == false |
| 7611 | </Original> |
| 7612 | <Expanded> |
| 7613 | false == false |
| 7614 | </Expanded> |
| 7615 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7616 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7617 | </Section> |
| 7618 | <Section name="two wildcarded names"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7619 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7620 | <Original> |
| 7621 | spec.hasFilters() == true |
| 7622 | </Original> |
| 7623 | <Expanded> |
| 7624 | true == true |
| 7625 | </Expanded> |
| 7626 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7627 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7628 | <Original> |
| 7629 | spec.matches( tcA ) == false |
| 7630 | </Original> |
| 7631 | <Expanded> |
| 7632 | false == false |
| 7633 | </Expanded> |
| 7634 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7635 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7636 | <Original> |
| 7637 | spec.matches( tcB ) == false |
| 7638 | </Original> |
| 7639 | <Expanded> |
| 7640 | false == false |
| 7641 | </Expanded> |
| 7642 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7643 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7644 | <Original> |
| 7645 | spec.matches( tcC ) == true |
| 7646 | </Original> |
| 7647 | <Expanded> |
| 7648 | true == true |
| 7649 | </Expanded> |
| 7650 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7651 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7652 | <Original> |
| 7653 | spec.matches( tcD ) == false |
| 7654 | </Original> |
| 7655 | <Expanded> |
| 7656 | false == false |
| 7657 | </Expanded> |
| 7658 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7659 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7660 | </Section> |
| 7661 | <Section name="empty tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7662 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7663 | <Original> |
| 7664 | spec.hasFilters() == false |
| 7665 | </Original> |
| 7666 | <Expanded> |
| 7667 | false == false |
| 7668 | </Expanded> |
| 7669 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7670 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7671 | <Original> |
| 7672 | spec.matches( tcA ) == false |
| 7673 | </Original> |
| 7674 | <Expanded> |
| 7675 | false == false |
| 7676 | </Expanded> |
| 7677 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7678 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7679 | <Original> |
| 7680 | spec.matches( tcB ) == false |
| 7681 | </Original> |
| 7682 | <Expanded> |
| 7683 | false == false |
| 7684 | </Expanded> |
| 7685 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7686 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7687 | <Original> |
| 7688 | spec.matches( tcC ) == false |
| 7689 | </Original> |
| 7690 | <Expanded> |
| 7691 | false == false |
| 7692 | </Expanded> |
| 7693 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7694 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7695 | <Original> |
| 7696 | spec.matches( tcD ) == false |
| 7697 | </Original> |
| 7698 | <Expanded> |
| 7699 | false == false |
| 7700 | </Expanded> |
| 7701 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7702 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7703 | </Section> |
| 7704 | <Section name="empty quoted name"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7705 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7706 | <Original> |
| 7707 | spec.hasFilters() == false |
| 7708 | </Original> |
| 7709 | <Expanded> |
| 7710 | false == false |
| 7711 | </Expanded> |
| 7712 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7713 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7714 | <Original> |
| 7715 | spec.matches( tcA ) == false |
| 7716 | </Original> |
| 7717 | <Expanded> |
| 7718 | false == false |
| 7719 | </Expanded> |
| 7720 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7721 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7722 | <Original> |
| 7723 | spec.matches( tcB ) == false |
| 7724 | </Original> |
| 7725 | <Expanded> |
| 7726 | false == false |
| 7727 | </Expanded> |
| 7728 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7729 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7730 | <Original> |
| 7731 | spec.matches( tcC ) == false |
| 7732 | </Original> |
| 7733 | <Expanded> |
| 7734 | false == false |
| 7735 | </Expanded> |
| 7736 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7737 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7738 | <Original> |
| 7739 | spec.matches( tcD ) == false |
| 7740 | </Original> |
| 7741 | <Expanded> |
| 7742 | false == false |
| 7743 | </Expanded> |
| 7744 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7745 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7746 | </Section> |
| 7747 | <Section name="quoted string followed by tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7748 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7749 | <Original> |
| 7750 | spec.hasFilters() == true |
| 7751 | </Original> |
| 7752 | <Expanded> |
| 7753 | true == true |
| 7754 | </Expanded> |
| 7755 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7756 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7757 | <Original> |
| 7758 | spec.matches( tcA ) == false |
| 7759 | </Original> |
| 7760 | <Expanded> |
| 7761 | false == false |
| 7762 | </Expanded> |
| 7763 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7764 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7765 | <Original> |
| 7766 | spec.matches( tcB ) == false |
| 7767 | </Original> |
| 7768 | <Expanded> |
| 7769 | false == false |
| 7770 | </Expanded> |
| 7771 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7772 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7773 | <Original> |
| 7774 | spec.matches( tcC ) == false |
| 7775 | </Original> |
| 7776 | <Expanded> |
| 7777 | false == false |
| 7778 | </Expanded> |
| 7779 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7780 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7781 | <Original> |
| 7782 | spec.matches( tcD ) == true |
| 7783 | </Original> |
| 7784 | <Expanded> |
| 7785 | true == true |
| 7786 | </Expanded> |
| 7787 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7788 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7789 | </Section> |
| 7790 | <OverallResult success="true"/> |
| 7791 | </TestCase> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 7792 | <TestCase name="tuple<>"> |
| 7793 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7794 | <Original> |
| 7795 | "{ }" == Catch::toString(type{}) |
| 7796 | </Original> |
| 7797 | <Expanded> |
| 7798 | "{ }" == "{ }" |
| 7799 | </Expanded> |
| 7800 | </Expression> |
| 7801 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7802 | <Original> |
| 7803 | "{ }" == Catch::toString(value) |
| 7804 | </Original> |
| 7805 | <Expanded> |
| 7806 | "{ }" == "{ }" |
| 7807 | </Expanded> |
| 7808 | </Expression> |
| 7809 | <OverallResult success="true"/> |
| 7810 | </TestCase> |
| 7811 | <TestCase name="tuple<int>"> |
| 7812 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7813 | <Original> |
| 7814 | "{ 0 }" == Catch::toString(type{0}) |
| 7815 | </Original> |
| 7816 | <Expanded> |
| 7817 | "{ 0 }" == "{ 0 }" |
| 7818 | </Expanded> |
| 7819 | </Expression> |
| 7820 | <OverallResult success="true"/> |
| 7821 | </TestCase> |
| 7822 | <TestCase name="tuple<float,int>"> |
| 7823 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7824 | <Original> |
| 7825 | "1.2f" == Catch::toString(float(1.2)) |
| 7826 | </Original> |
| 7827 | <Expanded> |
| 7828 | "1.2f" == "1.2f" |
| 7829 | </Expanded> |
| 7830 | </Expression> |
| 7831 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7832 | <Original> |
| 7833 | "{ 1.2f, 0 }" == Catch::toString(type{1.2,0}) |
| 7834 | </Original> |
| 7835 | <Expanded> |
| 7836 | "{ 1.2f, 0 }" == "{ 1.2f, 0 }" |
| 7837 | </Expanded> |
| 7838 | </Expression> |
| 7839 | <OverallResult success="true"/> |
| 7840 | </TestCase> |
| 7841 | <TestCase name="tuple<string,string>"> |
| 7842 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7843 | <Original> |
| 7844 | "{ \"hello\", \"world\" }" == Catch::toString(type{"hello","world"}) |
| 7845 | </Original> |
| 7846 | <Expanded> |
| 7847 | "{ "hello", "world" }" |
| 7848 | == |
| 7849 | "{ "hello", "world" }" |
| 7850 | </Expanded> |
| 7851 | </Expression> |
| 7852 | <OverallResult success="true"/> |
| 7853 | </TestCase> |
| 7854 | <TestCase name="tuple<tuple<int>,tuple<>,float>"> |
| 7855 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7856 | <Original> |
| 7857 | "{ { 42 }, { }, 1.2f }" == Catch::toString(value) |
| 7858 | </Original> |
| 7859 | <Expanded> |
| 7860 | "{ { 42 }, { }, 1.2f }" |
| 7861 | == |
| 7862 | "{ { 42 }, { }, 1.2f }" |
| 7863 | </Expanded> |
| 7864 | </Expression> |
| 7865 | <OverallResult success="true"/> |
| 7866 | </TestCase> |
| 7867 | <TestCase name="tuple<nullptr,int,const char *>"> |
| 7868 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7869 | <Original> |
| 7870 | "{ nullptr, 42, \"Catch me\" }" == Catch::toString(value) |
| 7871 | </Original> |
| 7872 | <Expanded> |
| 7873 | "{ nullptr, 42, "Catch me" }" |
| 7874 | == |
| 7875 | "{ nullptr, 42, "Catch me" }" |
| 7876 | </Expanded> |
| 7877 | </Expression> |
| 7878 | <OverallResult success="true"/> |
| 7879 | </TestCase> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7880 | <TestCase name="Tag alias can be registered against tag patterns"> |
| 7881 | <Section name="The same tag alias can only be registered once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7882 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7883 | <Original> |
| 7884 | what Contains( "[@zzz]" ) |
| 7885 | </Original> |
| 7886 | <Expanded> |
| 7887 | "error: tag alias, "[@zzz]" already registered. |
| 7888 | First seen at file:2 |
| 7889 | Redefined at file:10" contains: "[@zzz]" |
| 7890 | </Expanded> |
| 7891 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7892 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7893 | <Original> |
| 7894 | what Contains( "file" ) |
| 7895 | </Original> |
| 7896 | <Expanded> |
| 7897 | "error: tag alias, "[@zzz]" already registered. |
| 7898 | First seen at file:2 |
| 7899 | Redefined at file:10" contains: "file" |
| 7900 | </Expanded> |
| 7901 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7902 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7903 | <Original> |
| 7904 | what Contains( "2" ) |
| 7905 | </Original> |
| 7906 | <Expanded> |
| 7907 | "error: tag alias, "[@zzz]" already registered. |
| 7908 | First seen at file:2 |
| 7909 | Redefined at file:10" contains: "2" |
| 7910 | </Expanded> |
| 7911 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7912 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7913 | <Original> |
| 7914 | what Contains( "10" ) |
| 7915 | </Original> |
| 7916 | <Expanded> |
| 7917 | "error: tag alias, "[@zzz]" already registered. |
| 7918 | First seen at file:2 |
| 7919 | Redefined at file:10" contains: "10" |
| 7920 | </Expanded> |
| 7921 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7922 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7923 | </Section> |
| 7924 | <Section name="Tag aliases must be of the form [@name]"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7925 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7926 | <Original> |
| 7927 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7928 | </Original> |
| 7929 | <Expanded> |
| 7930 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7931 | </Expanded> |
| 7932 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7933 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7934 | <Original> |
| 7935 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7936 | </Original> |
| 7937 | <Expanded> |
| 7938 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7939 | </Expanded> |
| 7940 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7941 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7942 | <Original> |
| 7943 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7944 | </Original> |
| 7945 | <Expanded> |
| 7946 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7947 | </Expanded> |
| 7948 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7949 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7950 | <Original> |
| 7951 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7952 | </Original> |
| 7953 | <Expanded> |
| 7954 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7955 | </Expanded> |
| 7956 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7957 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7958 | </Section> |
| 7959 | <OverallResult success="true"/> |
| 7960 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7961 | <TestCase name="Anonymous test case 1"> |
| 7962 | <OverallResult success="true"/> |
| 7963 | </TestCase> |
| 7964 | <TestCase name="Test case with one argument"> |
| 7965 | <OverallResult success="true"/> |
| 7966 | </TestCase> |
| 7967 | <TestCase name="Variadic macros"> |
| 7968 | <Section name="Section with one argument"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7969 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7970 | </Section> |
| 7971 | <OverallResult success="true"/> |
| 7972 | </TestCase> |
| 7973 | <TestCase name="Scenario: Do that thing with the thing"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7974 | <Section name="Given: This stuff exists"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7975 | <Section name="When: I do this"> |
| 7976 | <Section name="Then: it should do this"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7977 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7978 | <Original> |
| 7979 | itDoesThis() |
| 7980 | </Original> |
| 7981 | <Expanded> |
| 7982 | true |
| 7983 | </Expanded> |
| 7984 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7985 | <Section name="And: do that"> |
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 | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7987 | <Original> |
| 7988 | itDoesThat() |
| 7989 | </Original> |
| 7990 | <Expanded> |
| 7991 | true |
| 7992 | </Expanded> |
| 7993 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7994 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7995 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7996 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7997 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7998 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7999 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8000 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8001 | </Section> |
| 8002 | <OverallResult success="true"/> |
| 8003 | </TestCase> |
| 8004 | <TestCase name="Scenario: Vector resizing affects size and capacity"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8005 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8006 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8007 | <Original> |
| 8008 | v.size() == 0 |
| 8009 | </Original> |
| 8010 | <Expanded> |
| 8011 | 0 == 0 |
| 8012 | </Expanded> |
| 8013 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8014 | <Section name="When: it is made larger"> |
| 8015 | <Section name="Then: the size and capacity go up"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8016 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8017 | <Original> |
| 8018 | v.size() == 10 |
| 8019 | </Original> |
| 8020 | <Expanded> |
| 8021 | 10 == 10 |
| 8022 | </Expanded> |
| 8023 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8024 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8025 | <Original> |
| 8026 | v.capacity() >= 10 |
| 8027 | </Original> |
| 8028 | <Expanded> |
| 8029 | 10 >= 10 |
| 8030 | </Expanded> |
| 8031 | </Expression> |
| 8032 | <Section name="And when: it is made smaller again"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8033 | <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] | 8034 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8035 | <Original> |
| 8036 | v.size() == 5 |
| 8037 | </Original> |
| 8038 | <Expanded> |
| 8039 | 5 == 5 |
| 8040 | </Expanded> |
| 8041 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8042 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8043 | <Original> |
| 8044 | v.capacity() >= 10 |
| 8045 | </Original> |
| 8046 | <Expanded> |
| 8047 | 10 >= 10 |
| 8048 | </Expanded> |
| 8049 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8050 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8051 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8052 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8053 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8054 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8055 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8056 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8057 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8058 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8059 | </Section> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8060 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8061 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8062 | <Original> |
| 8063 | v.size() == 0 |
| 8064 | </Original> |
| 8065 | <Expanded> |
| 8066 | 0 == 0 |
| 8067 | </Expanded> |
| 8068 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8069 | <Section name="When: we reserve more space"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8070 | <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] | 8071 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8072 | <Original> |
| 8073 | v.capacity() >= 10 |
| 8074 | </Original> |
| 8075 | <Expanded> |
| 8076 | 10 >= 10 |
| 8077 | </Expanded> |
| 8078 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8079 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8080 | <Original> |
| 8081 | v.size() == 0 |
| 8082 | </Original> |
| 8083 | <Expanded> |
| 8084 | 0 == 0 |
| 8085 | </Expanded> |
| 8086 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8087 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8088 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8089 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8090 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8091 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8092 | </Section> |
| 8093 | <OverallResult success="true"/> |
| 8094 | </TestCase> |
| 8095 | <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8096 | <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] | 8097 | <Section name="When: The test headers are printed as part of the normal running of the scenario"> |
| 8098 | <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8099 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8100 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8101 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8102 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8103 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8104 | </Section> |
| 8105 | <OverallResult success="true"/> |
| 8106 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8107 | <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods"> |
| 8108 | <Section name="Given: No operations precede me"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8109 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8110 | <Original> |
| 8111 | before == 0 |
| 8112 | </Original> |
| 8113 | <Expanded> |
| 8114 | 0 == 0 |
| 8115 | </Expanded> |
| 8116 | </Expression> |
| 8117 | <Section name="When: We get the count"> |
| 8118 | <Section name="Then: Subsequently values are higher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8119 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8120 | <Original> |
| 8121 | after > before |
| 8122 | </Original> |
| 8123 | <Expanded> |
| 8124 | 1 > 0 |
| 8125 | </Expanded> |
| 8126 | </Expression> |
| 8127 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8128 | </Section> |
| 8129 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8130 | </Section> |
| 8131 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 8132 | </Section> |
| 8133 | <OverallResult success="true"/> |
| 8134 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8135 | <TestCase name="section tracking"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8136 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8137 | <Original> |
| 8138 | !testCaseTracker.isCompleted() |
| 8139 | </Original> |
| 8140 | <Expanded> |
| 8141 | !false |
| 8142 | </Expanded> |
| 8143 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8144 | <Section name="test case with no sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8145 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8146 | <Original> |
| 8147 | !testCaseTracker.isCompleted() |
| 8148 | </Original> |
| 8149 | <Expanded> |
| 8150 | !false |
| 8151 | </Expanded> |
| 8152 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8153 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8154 | <Original> |
| 8155 | testCaseTracker.isCompleted() |
| 8156 | </Original> |
| 8157 | <Expanded> |
| 8158 | true |
| 8159 | </Expanded> |
| 8160 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8161 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8162 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8163 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8164 | <Original> |
| 8165 | !testCaseTracker.isCompleted() |
| 8166 | </Original> |
| 8167 | <Expanded> |
| 8168 | !false |
| 8169 | </Expanded> |
| 8170 | </Expression> |
| 8171 | <Section name="test case with one section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8172 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8173 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8174 | testCaseTracker.enterSection( section1Name ) |
| 8175 | </Original> |
| 8176 | <Expanded> |
| 8177 | true |
| 8178 | </Expanded> |
| 8179 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8180 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8181 | <Original> |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8182 | !testCaseTracker.isCompleted() |
| 8183 | </Original> |
| 8184 | <Expanded> |
| 8185 | !false |
| 8186 | </Expanded> |
| 8187 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8188 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8189 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8190 | testCaseTracker.isCompleted() |
| 8191 | </Original> |
| 8192 | <Expanded> |
| 8193 | true |
| 8194 | </Expanded> |
| 8195 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8196 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8197 | <Original> |
| 8198 | !testCaseTracker.enterSection( section1Name ) |
| 8199 | </Original> |
| 8200 | <Expanded> |
| 8201 | !false |
| 8202 | </Expanded> |
| 8203 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8204 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8205 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8206 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8207 | <Original> |
| 8208 | !testCaseTracker.isCompleted() |
| 8209 | </Original> |
| 8210 | <Expanded> |
| 8211 | !false |
| 8212 | </Expanded> |
| 8213 | </Expression> |
| 8214 | <Section name="test case with two consecutive sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8215 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8216 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8217 | testCaseTracker.enterSection( section1Name ) |
| 8218 | </Original> |
| 8219 | <Expanded> |
| 8220 | true |
| 8221 | </Expanded> |
| 8222 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8223 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8224 | <Original> |
| 8225 | !testCaseTracker.enterSection( section2Name ) |
| 8226 | </Original> |
| 8227 | <Expanded> |
| 8228 | !false |
| 8229 | </Expanded> |
| 8230 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8231 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8232 | <Original> |
| 8233 | !testCaseTracker.isCompleted() |
| 8234 | </Original> |
| 8235 | <Expanded> |
| 8236 | !false |
| 8237 | </Expanded> |
| 8238 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8239 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8240 | <Original> |
| 8241 | !testCaseTracker.enterSection( section1Name ) |
| 8242 | </Original> |
| 8243 | <Expanded> |
| 8244 | !false |
| 8245 | </Expanded> |
| 8246 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8247 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8248 | <Original> |
| 8249 | testCaseTracker.enterSection( section2Name ) |
| 8250 | </Original> |
| 8251 | <Expanded> |
| 8252 | true |
| 8253 | </Expanded> |
| 8254 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8255 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8256 | <Original> |
| 8257 | testCaseTracker.isCompleted() |
| 8258 | </Original> |
| 8259 | <Expanded> |
| 8260 | true |
| 8261 | </Expanded> |
| 8262 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8263 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8264 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8265 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8266 | <Original> |
| 8267 | !testCaseTracker.isCompleted() |
| 8268 | </Original> |
| 8269 | <Expanded> |
| 8270 | !false |
| 8271 | </Expanded> |
| 8272 | </Expression> |
| 8273 | <Section name="test case with one section within another"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8274 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8275 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8276 | testCaseTracker.enterSection( section1Name ) |
| 8277 | </Original> |
| 8278 | <Expanded> |
| 8279 | true |
| 8280 | </Expanded> |
| 8281 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8282 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8283 | <Original> |
| 8284 | testCaseTracker.enterSection( section2Name ) |
| 8285 | </Original> |
| 8286 | <Expanded> |
| 8287 | true |
| 8288 | </Expanded> |
| 8289 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8290 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8291 | <Original> |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8292 | !testCaseTracker.isCompleted() |
| 8293 | </Original> |
| 8294 | <Expanded> |
| 8295 | !false |
| 8296 | </Expanded> |
| 8297 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8298 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8299 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8300 | testCaseTracker.isCompleted() |
| 8301 | </Original> |
| 8302 | <Expanded> |
| 8303 | true |
| 8304 | </Expanded> |
| 8305 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8306 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8307 | </Section> |
| 8308 | <OverallResult success="true"/> |
| 8309 | </TestCase> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame^] | 8310 | <OverallResults successes="681" failures="100" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8311 | </Group> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame^] | 8312 | <OverallResults successes="681" failures="100" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8313 | </Catch> |