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"> |
| 1600 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1601 | <Original> |
| 1602 | thisThrows(), "expected exception" |
| 1603 | </Original> |
| 1604 | <Expanded> |
| 1605 | thisThrows(), "expected exception" |
| 1606 | </Expanded> |
| 1607 | </Expression> |
| 1608 | <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1609 | <Original> |
| 1610 | thisThrows(), "should fail" |
| 1611 | </Original> |
| 1612 | <Expanded> |
| 1613 | expected exception |
| 1614 | </Expanded> |
| 1615 | </Expression> |
| 1616 | <OverallResult success="false"/> |
| 1617 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1618 | <TestCase name="Generators over two ranges"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1619 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1620 | <Original> |
| 1621 | multiply( i, 2 ) == i*2 |
| 1622 | </Original> |
| 1623 | <Expanded> |
| 1624 | 2 == 2 |
| 1625 | </Expanded> |
| 1626 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1627 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1628 | <Original> |
| 1629 | multiply( j, 2 ) == j*2 |
| 1630 | </Original> |
| 1631 | <Expanded> |
| 1632 | 200 == 200 |
| 1633 | </Expanded> |
| 1634 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1635 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1636 | <Original> |
| 1637 | multiply( i, 2 ) == i*2 |
| 1638 | </Original> |
| 1639 | <Expanded> |
| 1640 | 4 == 4 |
| 1641 | </Expanded> |
| 1642 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1643 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1644 | <Original> |
| 1645 | multiply( j, 2 ) == j*2 |
| 1646 | </Original> |
| 1647 | <Expanded> |
| 1648 | 200 == 200 |
| 1649 | </Expanded> |
| 1650 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1651 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1652 | <Original> |
| 1653 | multiply( i, 2 ) == i*2 |
| 1654 | </Original> |
| 1655 | <Expanded> |
| 1656 | 6 == 6 |
| 1657 | </Expanded> |
| 1658 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1659 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1660 | <Original> |
| 1661 | multiply( j, 2 ) == j*2 |
| 1662 | </Original> |
| 1663 | <Expanded> |
| 1664 | 200 == 200 |
| 1665 | </Expanded> |
| 1666 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1667 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1668 | <Original> |
| 1669 | multiply( i, 2 ) == i*2 |
| 1670 | </Original> |
| 1671 | <Expanded> |
| 1672 | 8 == 8 |
| 1673 | </Expanded> |
| 1674 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1675 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1676 | <Original> |
| 1677 | multiply( j, 2 ) == j*2 |
| 1678 | </Original> |
| 1679 | <Expanded> |
| 1680 | 200 == 200 |
| 1681 | </Expanded> |
| 1682 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1683 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1684 | <Original> |
| 1685 | multiply( i, 2 ) == i*2 |
| 1686 | </Original> |
| 1687 | <Expanded> |
| 1688 | 10 == 10 |
| 1689 | </Expanded> |
| 1690 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1691 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1692 | <Original> |
| 1693 | multiply( j, 2 ) == j*2 |
| 1694 | </Original> |
| 1695 | <Expanded> |
| 1696 | 200 == 200 |
| 1697 | </Expanded> |
| 1698 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1699 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1700 | <Original> |
| 1701 | multiply( i, 2 ) == i*2 |
| 1702 | </Original> |
| 1703 | <Expanded> |
| 1704 | 30 == 30 |
| 1705 | </Expanded> |
| 1706 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1707 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1708 | <Original> |
| 1709 | multiply( j, 2 ) == j*2 |
| 1710 | </Original> |
| 1711 | <Expanded> |
| 1712 | 200 == 200 |
| 1713 | </Expanded> |
| 1714 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1715 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1716 | <Original> |
| 1717 | multiply( i, 2 ) == i*2 |
| 1718 | </Original> |
| 1719 | <Expanded> |
| 1720 | 40 == 40 |
| 1721 | </Expanded> |
| 1722 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1723 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1724 | <Original> |
| 1725 | multiply( j, 2 ) == j*2 |
| 1726 | </Original> |
| 1727 | <Expanded> |
| 1728 | 200 == 200 |
| 1729 | </Expanded> |
| 1730 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1731 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1732 | <Original> |
| 1733 | multiply( i, 2 ) == i*2 |
| 1734 | </Original> |
| 1735 | <Expanded> |
| 1736 | 42 == 42 |
| 1737 | </Expanded> |
| 1738 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1739 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1740 | <Original> |
| 1741 | multiply( j, 2 ) == j*2 |
| 1742 | </Original> |
| 1743 | <Expanded> |
| 1744 | 200 == 200 |
| 1745 | </Expanded> |
| 1746 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1747 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1748 | <Original> |
| 1749 | multiply( i, 2 ) == i*2 |
| 1750 | </Original> |
| 1751 | <Expanded> |
| 1752 | 72 == 72 |
| 1753 | </Expanded> |
| 1754 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1755 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1756 | <Original> |
| 1757 | multiply( j, 2 ) == j*2 |
| 1758 | </Original> |
| 1759 | <Expanded> |
| 1760 | 200 == 200 |
| 1761 | </Expanded> |
| 1762 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1763 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1764 | <Original> |
| 1765 | multiply( i, 2 ) == i*2 |
| 1766 | </Original> |
| 1767 | <Expanded> |
| 1768 | 2 == 2 |
| 1769 | </Expanded> |
| 1770 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1771 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1772 | <Original> |
| 1773 | multiply( j, 2 ) == j*2 |
| 1774 | </Original> |
| 1775 | <Expanded> |
| 1776 | 202 == 202 |
| 1777 | </Expanded> |
| 1778 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1779 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1780 | <Original> |
| 1781 | multiply( i, 2 ) == i*2 |
| 1782 | </Original> |
| 1783 | <Expanded> |
| 1784 | 4 == 4 |
| 1785 | </Expanded> |
| 1786 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1787 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1788 | <Original> |
| 1789 | multiply( j, 2 ) == j*2 |
| 1790 | </Original> |
| 1791 | <Expanded> |
| 1792 | 202 == 202 |
| 1793 | </Expanded> |
| 1794 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1795 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1796 | <Original> |
| 1797 | multiply( i, 2 ) == i*2 |
| 1798 | </Original> |
| 1799 | <Expanded> |
| 1800 | 6 == 6 |
| 1801 | </Expanded> |
| 1802 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1803 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1804 | <Original> |
| 1805 | multiply( j, 2 ) == j*2 |
| 1806 | </Original> |
| 1807 | <Expanded> |
| 1808 | 202 == 202 |
| 1809 | </Expanded> |
| 1810 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1811 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1812 | <Original> |
| 1813 | multiply( i, 2 ) == i*2 |
| 1814 | </Original> |
| 1815 | <Expanded> |
| 1816 | 8 == 8 |
| 1817 | </Expanded> |
| 1818 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1819 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1820 | <Original> |
| 1821 | multiply( j, 2 ) == j*2 |
| 1822 | </Original> |
| 1823 | <Expanded> |
| 1824 | 202 == 202 |
| 1825 | </Expanded> |
| 1826 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1827 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1828 | <Original> |
| 1829 | multiply( i, 2 ) == i*2 |
| 1830 | </Original> |
| 1831 | <Expanded> |
| 1832 | 10 == 10 |
| 1833 | </Expanded> |
| 1834 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1835 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1836 | <Original> |
| 1837 | multiply( j, 2 ) == j*2 |
| 1838 | </Original> |
| 1839 | <Expanded> |
| 1840 | 202 == 202 |
| 1841 | </Expanded> |
| 1842 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1843 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1844 | <Original> |
| 1845 | multiply( i, 2 ) == i*2 |
| 1846 | </Original> |
| 1847 | <Expanded> |
| 1848 | 30 == 30 |
| 1849 | </Expanded> |
| 1850 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1851 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1852 | <Original> |
| 1853 | multiply( j, 2 ) == j*2 |
| 1854 | </Original> |
| 1855 | <Expanded> |
| 1856 | 202 == 202 |
| 1857 | </Expanded> |
| 1858 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1859 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1860 | <Original> |
| 1861 | multiply( i, 2 ) == i*2 |
| 1862 | </Original> |
| 1863 | <Expanded> |
| 1864 | 40 == 40 |
| 1865 | </Expanded> |
| 1866 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1867 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1868 | <Original> |
| 1869 | multiply( j, 2 ) == j*2 |
| 1870 | </Original> |
| 1871 | <Expanded> |
| 1872 | 202 == 202 |
| 1873 | </Expanded> |
| 1874 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1875 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1876 | <Original> |
| 1877 | multiply( i, 2 ) == i*2 |
| 1878 | </Original> |
| 1879 | <Expanded> |
| 1880 | 42 == 42 |
| 1881 | </Expanded> |
| 1882 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1883 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1884 | <Original> |
| 1885 | multiply( j, 2 ) == j*2 |
| 1886 | </Original> |
| 1887 | <Expanded> |
| 1888 | 202 == 202 |
| 1889 | </Expanded> |
| 1890 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1891 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1892 | <Original> |
| 1893 | multiply( i, 2 ) == i*2 |
| 1894 | </Original> |
| 1895 | <Expanded> |
| 1896 | 72 == 72 |
| 1897 | </Expanded> |
| 1898 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1899 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1900 | <Original> |
| 1901 | multiply( j, 2 ) == j*2 |
| 1902 | </Original> |
| 1903 | <Expanded> |
| 1904 | 202 == 202 |
| 1905 | </Expanded> |
| 1906 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1907 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1908 | <Original> |
| 1909 | multiply( i, 2 ) == i*2 |
| 1910 | </Original> |
| 1911 | <Expanded> |
| 1912 | 2 == 2 |
| 1913 | </Expanded> |
| 1914 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1915 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1916 | <Original> |
| 1917 | multiply( j, 2 ) == j*2 |
| 1918 | </Original> |
| 1919 | <Expanded> |
| 1920 | 204 == 204 |
| 1921 | </Expanded> |
| 1922 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1923 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1924 | <Original> |
| 1925 | multiply( i, 2 ) == i*2 |
| 1926 | </Original> |
| 1927 | <Expanded> |
| 1928 | 4 == 4 |
| 1929 | </Expanded> |
| 1930 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1931 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1932 | <Original> |
| 1933 | multiply( j, 2 ) == j*2 |
| 1934 | </Original> |
| 1935 | <Expanded> |
| 1936 | 204 == 204 |
| 1937 | </Expanded> |
| 1938 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1939 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1940 | <Original> |
| 1941 | multiply( i, 2 ) == i*2 |
| 1942 | </Original> |
| 1943 | <Expanded> |
| 1944 | 6 == 6 |
| 1945 | </Expanded> |
| 1946 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1947 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1948 | <Original> |
| 1949 | multiply( j, 2 ) == j*2 |
| 1950 | </Original> |
| 1951 | <Expanded> |
| 1952 | 204 == 204 |
| 1953 | </Expanded> |
| 1954 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1955 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1956 | <Original> |
| 1957 | multiply( i, 2 ) == i*2 |
| 1958 | </Original> |
| 1959 | <Expanded> |
| 1960 | 8 == 8 |
| 1961 | </Expanded> |
| 1962 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1963 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1964 | <Original> |
| 1965 | multiply( j, 2 ) == j*2 |
| 1966 | </Original> |
| 1967 | <Expanded> |
| 1968 | 204 == 204 |
| 1969 | </Expanded> |
| 1970 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1971 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1972 | <Original> |
| 1973 | multiply( i, 2 ) == i*2 |
| 1974 | </Original> |
| 1975 | <Expanded> |
| 1976 | 10 == 10 |
| 1977 | </Expanded> |
| 1978 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1979 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1980 | <Original> |
| 1981 | multiply( j, 2 ) == j*2 |
| 1982 | </Original> |
| 1983 | <Expanded> |
| 1984 | 204 == 204 |
| 1985 | </Expanded> |
| 1986 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1987 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1988 | <Original> |
| 1989 | multiply( i, 2 ) == i*2 |
| 1990 | </Original> |
| 1991 | <Expanded> |
| 1992 | 30 == 30 |
| 1993 | </Expanded> |
| 1994 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1995 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1996 | <Original> |
| 1997 | multiply( j, 2 ) == j*2 |
| 1998 | </Original> |
| 1999 | <Expanded> |
| 2000 | 204 == 204 |
| 2001 | </Expanded> |
| 2002 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2003 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2004 | <Original> |
| 2005 | multiply( i, 2 ) == i*2 |
| 2006 | </Original> |
| 2007 | <Expanded> |
| 2008 | 40 == 40 |
| 2009 | </Expanded> |
| 2010 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2011 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2012 | <Original> |
| 2013 | multiply( j, 2 ) == j*2 |
| 2014 | </Original> |
| 2015 | <Expanded> |
| 2016 | 204 == 204 |
| 2017 | </Expanded> |
| 2018 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2019 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2020 | <Original> |
| 2021 | multiply( i, 2 ) == i*2 |
| 2022 | </Original> |
| 2023 | <Expanded> |
| 2024 | 42 == 42 |
| 2025 | </Expanded> |
| 2026 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2027 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2028 | <Original> |
| 2029 | multiply( j, 2 ) == j*2 |
| 2030 | </Original> |
| 2031 | <Expanded> |
| 2032 | 204 == 204 |
| 2033 | </Expanded> |
| 2034 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2035 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2036 | <Original> |
| 2037 | multiply( i, 2 ) == i*2 |
| 2038 | </Original> |
| 2039 | <Expanded> |
| 2040 | 72 == 72 |
| 2041 | </Expanded> |
| 2042 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2043 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2044 | <Original> |
| 2045 | multiply( j, 2 ) == j*2 |
| 2046 | </Original> |
| 2047 | <Expanded> |
| 2048 | 204 == 204 |
| 2049 | </Expanded> |
| 2050 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2051 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2052 | <Original> |
| 2053 | multiply( i, 2 ) == i*2 |
| 2054 | </Original> |
| 2055 | <Expanded> |
| 2056 | 2 == 2 |
| 2057 | </Expanded> |
| 2058 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2059 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2060 | <Original> |
| 2061 | multiply( j, 2 ) == j*2 |
| 2062 | </Original> |
| 2063 | <Expanded> |
| 2064 | 206 == 206 |
| 2065 | </Expanded> |
| 2066 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2067 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2068 | <Original> |
| 2069 | multiply( i, 2 ) == i*2 |
| 2070 | </Original> |
| 2071 | <Expanded> |
| 2072 | 4 == 4 |
| 2073 | </Expanded> |
| 2074 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2075 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2076 | <Original> |
| 2077 | multiply( j, 2 ) == j*2 |
| 2078 | </Original> |
| 2079 | <Expanded> |
| 2080 | 206 == 206 |
| 2081 | </Expanded> |
| 2082 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2083 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2084 | <Original> |
| 2085 | multiply( i, 2 ) == i*2 |
| 2086 | </Original> |
| 2087 | <Expanded> |
| 2088 | 6 == 6 |
| 2089 | </Expanded> |
| 2090 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2091 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2092 | <Original> |
| 2093 | multiply( j, 2 ) == j*2 |
| 2094 | </Original> |
| 2095 | <Expanded> |
| 2096 | 206 == 206 |
| 2097 | </Expanded> |
| 2098 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2099 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2100 | <Original> |
| 2101 | multiply( i, 2 ) == i*2 |
| 2102 | </Original> |
| 2103 | <Expanded> |
| 2104 | 8 == 8 |
| 2105 | </Expanded> |
| 2106 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2107 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2108 | <Original> |
| 2109 | multiply( j, 2 ) == j*2 |
| 2110 | </Original> |
| 2111 | <Expanded> |
| 2112 | 206 == 206 |
| 2113 | </Expanded> |
| 2114 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2115 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2116 | <Original> |
| 2117 | multiply( i, 2 ) == i*2 |
| 2118 | </Original> |
| 2119 | <Expanded> |
| 2120 | 10 == 10 |
| 2121 | </Expanded> |
| 2122 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2123 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2124 | <Original> |
| 2125 | multiply( j, 2 ) == j*2 |
| 2126 | </Original> |
| 2127 | <Expanded> |
| 2128 | 206 == 206 |
| 2129 | </Expanded> |
| 2130 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2131 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2132 | <Original> |
| 2133 | multiply( i, 2 ) == i*2 |
| 2134 | </Original> |
| 2135 | <Expanded> |
| 2136 | 30 == 30 |
| 2137 | </Expanded> |
| 2138 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2139 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2140 | <Original> |
| 2141 | multiply( j, 2 ) == j*2 |
| 2142 | </Original> |
| 2143 | <Expanded> |
| 2144 | 206 == 206 |
| 2145 | </Expanded> |
| 2146 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2147 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2148 | <Original> |
| 2149 | multiply( i, 2 ) == i*2 |
| 2150 | </Original> |
| 2151 | <Expanded> |
| 2152 | 40 == 40 |
| 2153 | </Expanded> |
| 2154 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2155 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2156 | <Original> |
| 2157 | multiply( j, 2 ) == j*2 |
| 2158 | </Original> |
| 2159 | <Expanded> |
| 2160 | 206 == 206 |
| 2161 | </Expanded> |
| 2162 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2163 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2164 | <Original> |
| 2165 | multiply( i, 2 ) == i*2 |
| 2166 | </Original> |
| 2167 | <Expanded> |
| 2168 | 42 == 42 |
| 2169 | </Expanded> |
| 2170 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2171 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2172 | <Original> |
| 2173 | multiply( j, 2 ) == j*2 |
| 2174 | </Original> |
| 2175 | <Expanded> |
| 2176 | 206 == 206 |
| 2177 | </Expanded> |
| 2178 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2179 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2180 | <Original> |
| 2181 | multiply( i, 2 ) == i*2 |
| 2182 | </Original> |
| 2183 | <Expanded> |
| 2184 | 72 == 72 |
| 2185 | </Expanded> |
| 2186 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2187 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2188 | <Original> |
| 2189 | multiply( j, 2 ) == j*2 |
| 2190 | </Original> |
| 2191 | <Expanded> |
| 2192 | 206 == 206 |
| 2193 | </Expanded> |
| 2194 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2195 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2196 | <Original> |
| 2197 | multiply( i, 2 ) == i*2 |
| 2198 | </Original> |
| 2199 | <Expanded> |
| 2200 | 2 == 2 |
| 2201 | </Expanded> |
| 2202 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2203 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2204 | <Original> |
| 2205 | multiply( j, 2 ) == j*2 |
| 2206 | </Original> |
| 2207 | <Expanded> |
| 2208 | 208 == 208 |
| 2209 | </Expanded> |
| 2210 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2211 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2212 | <Original> |
| 2213 | multiply( i, 2 ) == i*2 |
| 2214 | </Original> |
| 2215 | <Expanded> |
| 2216 | 4 == 4 |
| 2217 | </Expanded> |
| 2218 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2219 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2220 | <Original> |
| 2221 | multiply( j, 2 ) == j*2 |
| 2222 | </Original> |
| 2223 | <Expanded> |
| 2224 | 208 == 208 |
| 2225 | </Expanded> |
| 2226 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2227 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2228 | <Original> |
| 2229 | multiply( i, 2 ) == i*2 |
| 2230 | </Original> |
| 2231 | <Expanded> |
| 2232 | 6 == 6 |
| 2233 | </Expanded> |
| 2234 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2235 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2236 | <Original> |
| 2237 | multiply( j, 2 ) == j*2 |
| 2238 | </Original> |
| 2239 | <Expanded> |
| 2240 | 208 == 208 |
| 2241 | </Expanded> |
| 2242 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2243 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2244 | <Original> |
| 2245 | multiply( i, 2 ) == i*2 |
| 2246 | </Original> |
| 2247 | <Expanded> |
| 2248 | 8 == 8 |
| 2249 | </Expanded> |
| 2250 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2251 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2252 | <Original> |
| 2253 | multiply( j, 2 ) == j*2 |
| 2254 | </Original> |
| 2255 | <Expanded> |
| 2256 | 208 == 208 |
| 2257 | </Expanded> |
| 2258 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2259 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2260 | <Original> |
| 2261 | multiply( i, 2 ) == i*2 |
| 2262 | </Original> |
| 2263 | <Expanded> |
| 2264 | 10 == 10 |
| 2265 | </Expanded> |
| 2266 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2267 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2268 | <Original> |
| 2269 | multiply( j, 2 ) == j*2 |
| 2270 | </Original> |
| 2271 | <Expanded> |
| 2272 | 208 == 208 |
| 2273 | </Expanded> |
| 2274 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2275 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2276 | <Original> |
| 2277 | multiply( i, 2 ) == i*2 |
| 2278 | </Original> |
| 2279 | <Expanded> |
| 2280 | 30 == 30 |
| 2281 | </Expanded> |
| 2282 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2283 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2284 | <Original> |
| 2285 | multiply( j, 2 ) == j*2 |
| 2286 | </Original> |
| 2287 | <Expanded> |
| 2288 | 208 == 208 |
| 2289 | </Expanded> |
| 2290 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2291 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2292 | <Original> |
| 2293 | multiply( i, 2 ) == i*2 |
| 2294 | </Original> |
| 2295 | <Expanded> |
| 2296 | 40 == 40 |
| 2297 | </Expanded> |
| 2298 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2299 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2300 | <Original> |
| 2301 | multiply( j, 2 ) == j*2 |
| 2302 | </Original> |
| 2303 | <Expanded> |
| 2304 | 208 == 208 |
| 2305 | </Expanded> |
| 2306 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2307 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2308 | <Original> |
| 2309 | multiply( i, 2 ) == i*2 |
| 2310 | </Original> |
| 2311 | <Expanded> |
| 2312 | 42 == 42 |
| 2313 | </Expanded> |
| 2314 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2315 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2316 | <Original> |
| 2317 | multiply( j, 2 ) == j*2 |
| 2318 | </Original> |
| 2319 | <Expanded> |
| 2320 | 208 == 208 |
| 2321 | </Expanded> |
| 2322 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2323 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2324 | <Original> |
| 2325 | multiply( i, 2 ) == i*2 |
| 2326 | </Original> |
| 2327 | <Expanded> |
| 2328 | 72 == 72 |
| 2329 | </Expanded> |
| 2330 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2331 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2332 | <Original> |
| 2333 | multiply( j, 2 ) == j*2 |
| 2334 | </Original> |
| 2335 | <Expanded> |
| 2336 | 208 == 208 |
| 2337 | </Expanded> |
| 2338 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2339 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2340 | <Original> |
| 2341 | multiply( i, 2 ) == i*2 |
| 2342 | </Original> |
| 2343 | <Expanded> |
| 2344 | 2 == 2 |
| 2345 | </Expanded> |
| 2346 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2347 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2348 | <Original> |
| 2349 | multiply( j, 2 ) == j*2 |
| 2350 | </Original> |
| 2351 | <Expanded> |
| 2352 | 210 == 210 |
| 2353 | </Expanded> |
| 2354 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2355 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2356 | <Original> |
| 2357 | multiply( i, 2 ) == i*2 |
| 2358 | </Original> |
| 2359 | <Expanded> |
| 2360 | 4 == 4 |
| 2361 | </Expanded> |
| 2362 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2363 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2364 | <Original> |
| 2365 | multiply( j, 2 ) == j*2 |
| 2366 | </Original> |
| 2367 | <Expanded> |
| 2368 | 210 == 210 |
| 2369 | </Expanded> |
| 2370 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2371 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2372 | <Original> |
| 2373 | multiply( i, 2 ) == i*2 |
| 2374 | </Original> |
| 2375 | <Expanded> |
| 2376 | 6 == 6 |
| 2377 | </Expanded> |
| 2378 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2379 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2380 | <Original> |
| 2381 | multiply( j, 2 ) == j*2 |
| 2382 | </Original> |
| 2383 | <Expanded> |
| 2384 | 210 == 210 |
| 2385 | </Expanded> |
| 2386 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2387 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2388 | <Original> |
| 2389 | multiply( i, 2 ) == i*2 |
| 2390 | </Original> |
| 2391 | <Expanded> |
| 2392 | 8 == 8 |
| 2393 | </Expanded> |
| 2394 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2395 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2396 | <Original> |
| 2397 | multiply( j, 2 ) == j*2 |
| 2398 | </Original> |
| 2399 | <Expanded> |
| 2400 | 210 == 210 |
| 2401 | </Expanded> |
| 2402 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2403 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2404 | <Original> |
| 2405 | multiply( i, 2 ) == i*2 |
| 2406 | </Original> |
| 2407 | <Expanded> |
| 2408 | 10 == 10 |
| 2409 | </Expanded> |
| 2410 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2411 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2412 | <Original> |
| 2413 | multiply( j, 2 ) == j*2 |
| 2414 | </Original> |
| 2415 | <Expanded> |
| 2416 | 210 == 210 |
| 2417 | </Expanded> |
| 2418 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2419 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2420 | <Original> |
| 2421 | multiply( i, 2 ) == i*2 |
| 2422 | </Original> |
| 2423 | <Expanded> |
| 2424 | 30 == 30 |
| 2425 | </Expanded> |
| 2426 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2427 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2428 | <Original> |
| 2429 | multiply( j, 2 ) == j*2 |
| 2430 | </Original> |
| 2431 | <Expanded> |
| 2432 | 210 == 210 |
| 2433 | </Expanded> |
| 2434 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2435 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2436 | <Original> |
| 2437 | multiply( i, 2 ) == i*2 |
| 2438 | </Original> |
| 2439 | <Expanded> |
| 2440 | 40 == 40 |
| 2441 | </Expanded> |
| 2442 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2443 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2444 | <Original> |
| 2445 | multiply( j, 2 ) == j*2 |
| 2446 | </Original> |
| 2447 | <Expanded> |
| 2448 | 210 == 210 |
| 2449 | </Expanded> |
| 2450 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2451 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2452 | <Original> |
| 2453 | multiply( i, 2 ) == i*2 |
| 2454 | </Original> |
| 2455 | <Expanded> |
| 2456 | 42 == 42 |
| 2457 | </Expanded> |
| 2458 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2459 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2460 | <Original> |
| 2461 | multiply( j, 2 ) == j*2 |
| 2462 | </Original> |
| 2463 | <Expanded> |
| 2464 | 210 == 210 |
| 2465 | </Expanded> |
| 2466 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2467 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2468 | <Original> |
| 2469 | multiply( i, 2 ) == i*2 |
| 2470 | </Original> |
| 2471 | <Expanded> |
| 2472 | 72 == 72 |
| 2473 | </Expanded> |
| 2474 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2475 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2476 | <Original> |
| 2477 | multiply( j, 2 ) == j*2 |
| 2478 | </Original> |
| 2479 | <Expanded> |
| 2480 | 210 == 210 |
| 2481 | </Expanded> |
| 2482 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2483 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2484 | <Original> |
| 2485 | multiply( i, 2 ) == i*2 |
| 2486 | </Original> |
| 2487 | <Expanded> |
| 2488 | 2 == 2 |
| 2489 | </Expanded> |
| 2490 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2491 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2492 | <Original> |
| 2493 | multiply( j, 2 ) == j*2 |
| 2494 | </Original> |
| 2495 | <Expanded> |
| 2496 | 212 == 212 |
| 2497 | </Expanded> |
| 2498 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2499 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2500 | <Original> |
| 2501 | multiply( i, 2 ) == i*2 |
| 2502 | </Original> |
| 2503 | <Expanded> |
| 2504 | 4 == 4 |
| 2505 | </Expanded> |
| 2506 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2507 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2508 | <Original> |
| 2509 | multiply( j, 2 ) == j*2 |
| 2510 | </Original> |
| 2511 | <Expanded> |
| 2512 | 212 == 212 |
| 2513 | </Expanded> |
| 2514 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2515 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2516 | <Original> |
| 2517 | multiply( i, 2 ) == i*2 |
| 2518 | </Original> |
| 2519 | <Expanded> |
| 2520 | 6 == 6 |
| 2521 | </Expanded> |
| 2522 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2523 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2524 | <Original> |
| 2525 | multiply( j, 2 ) == j*2 |
| 2526 | </Original> |
| 2527 | <Expanded> |
| 2528 | 212 == 212 |
| 2529 | </Expanded> |
| 2530 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2531 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2532 | <Original> |
| 2533 | multiply( i, 2 ) == i*2 |
| 2534 | </Original> |
| 2535 | <Expanded> |
| 2536 | 8 == 8 |
| 2537 | </Expanded> |
| 2538 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2539 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2540 | <Original> |
| 2541 | multiply( j, 2 ) == j*2 |
| 2542 | </Original> |
| 2543 | <Expanded> |
| 2544 | 212 == 212 |
| 2545 | </Expanded> |
| 2546 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2547 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2548 | <Original> |
| 2549 | multiply( i, 2 ) == i*2 |
| 2550 | </Original> |
| 2551 | <Expanded> |
| 2552 | 10 == 10 |
| 2553 | </Expanded> |
| 2554 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2555 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2556 | <Original> |
| 2557 | multiply( j, 2 ) == j*2 |
| 2558 | </Original> |
| 2559 | <Expanded> |
| 2560 | 212 == 212 |
| 2561 | </Expanded> |
| 2562 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2563 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2564 | <Original> |
| 2565 | multiply( i, 2 ) == i*2 |
| 2566 | </Original> |
| 2567 | <Expanded> |
| 2568 | 30 == 30 |
| 2569 | </Expanded> |
| 2570 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2571 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2572 | <Original> |
| 2573 | multiply( j, 2 ) == j*2 |
| 2574 | </Original> |
| 2575 | <Expanded> |
| 2576 | 212 == 212 |
| 2577 | </Expanded> |
| 2578 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2579 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2580 | <Original> |
| 2581 | multiply( i, 2 ) == i*2 |
| 2582 | </Original> |
| 2583 | <Expanded> |
| 2584 | 40 == 40 |
| 2585 | </Expanded> |
| 2586 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2587 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2588 | <Original> |
| 2589 | multiply( j, 2 ) == j*2 |
| 2590 | </Original> |
| 2591 | <Expanded> |
| 2592 | 212 == 212 |
| 2593 | </Expanded> |
| 2594 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2595 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2596 | <Original> |
| 2597 | multiply( i, 2 ) == i*2 |
| 2598 | </Original> |
| 2599 | <Expanded> |
| 2600 | 42 == 42 |
| 2601 | </Expanded> |
| 2602 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2603 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2604 | <Original> |
| 2605 | multiply( j, 2 ) == j*2 |
| 2606 | </Original> |
| 2607 | <Expanded> |
| 2608 | 212 == 212 |
| 2609 | </Expanded> |
| 2610 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2611 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2612 | <Original> |
| 2613 | multiply( i, 2 ) == i*2 |
| 2614 | </Original> |
| 2615 | <Expanded> |
| 2616 | 72 == 72 |
| 2617 | </Expanded> |
| 2618 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2619 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2620 | <Original> |
| 2621 | multiply( j, 2 ) == j*2 |
| 2622 | </Original> |
| 2623 | <Expanded> |
| 2624 | 212 == 212 |
| 2625 | </Expanded> |
| 2626 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2627 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2628 | <Original> |
| 2629 | multiply( i, 2 ) == i*2 |
| 2630 | </Original> |
| 2631 | <Expanded> |
| 2632 | 2 == 2 |
| 2633 | </Expanded> |
| 2634 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2635 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2636 | <Original> |
| 2637 | multiply( j, 2 ) == j*2 |
| 2638 | </Original> |
| 2639 | <Expanded> |
| 2640 | 214 == 214 |
| 2641 | </Expanded> |
| 2642 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2643 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2644 | <Original> |
| 2645 | multiply( i, 2 ) == i*2 |
| 2646 | </Original> |
| 2647 | <Expanded> |
| 2648 | 4 == 4 |
| 2649 | </Expanded> |
| 2650 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2651 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2652 | <Original> |
| 2653 | multiply( j, 2 ) == j*2 |
| 2654 | </Original> |
| 2655 | <Expanded> |
| 2656 | 214 == 214 |
| 2657 | </Expanded> |
| 2658 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2659 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2660 | <Original> |
| 2661 | multiply( i, 2 ) == i*2 |
| 2662 | </Original> |
| 2663 | <Expanded> |
| 2664 | 6 == 6 |
| 2665 | </Expanded> |
| 2666 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2667 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2668 | <Original> |
| 2669 | multiply( j, 2 ) == j*2 |
| 2670 | </Original> |
| 2671 | <Expanded> |
| 2672 | 214 == 214 |
| 2673 | </Expanded> |
| 2674 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2675 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2676 | <Original> |
| 2677 | multiply( i, 2 ) == i*2 |
| 2678 | </Original> |
| 2679 | <Expanded> |
| 2680 | 8 == 8 |
| 2681 | </Expanded> |
| 2682 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2683 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2684 | <Original> |
| 2685 | multiply( j, 2 ) == j*2 |
| 2686 | </Original> |
| 2687 | <Expanded> |
| 2688 | 214 == 214 |
| 2689 | </Expanded> |
| 2690 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2691 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2692 | <Original> |
| 2693 | multiply( i, 2 ) == i*2 |
| 2694 | </Original> |
| 2695 | <Expanded> |
| 2696 | 10 == 10 |
| 2697 | </Expanded> |
| 2698 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2699 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2700 | <Original> |
| 2701 | multiply( j, 2 ) == j*2 |
| 2702 | </Original> |
| 2703 | <Expanded> |
| 2704 | 214 == 214 |
| 2705 | </Expanded> |
| 2706 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2707 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2708 | <Original> |
| 2709 | multiply( i, 2 ) == i*2 |
| 2710 | </Original> |
| 2711 | <Expanded> |
| 2712 | 30 == 30 |
| 2713 | </Expanded> |
| 2714 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2715 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2716 | <Original> |
| 2717 | multiply( j, 2 ) == j*2 |
| 2718 | </Original> |
| 2719 | <Expanded> |
| 2720 | 214 == 214 |
| 2721 | </Expanded> |
| 2722 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2723 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2724 | <Original> |
| 2725 | multiply( i, 2 ) == i*2 |
| 2726 | </Original> |
| 2727 | <Expanded> |
| 2728 | 40 == 40 |
| 2729 | </Expanded> |
| 2730 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2731 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2732 | <Original> |
| 2733 | multiply( j, 2 ) == j*2 |
| 2734 | </Original> |
| 2735 | <Expanded> |
| 2736 | 214 == 214 |
| 2737 | </Expanded> |
| 2738 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2739 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2740 | <Original> |
| 2741 | multiply( i, 2 ) == i*2 |
| 2742 | </Original> |
| 2743 | <Expanded> |
| 2744 | 42 == 42 |
| 2745 | </Expanded> |
| 2746 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2747 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2748 | <Original> |
| 2749 | multiply( j, 2 ) == j*2 |
| 2750 | </Original> |
| 2751 | <Expanded> |
| 2752 | 214 == 214 |
| 2753 | </Expanded> |
| 2754 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2755 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2756 | <Original> |
| 2757 | multiply( i, 2 ) == i*2 |
| 2758 | </Original> |
| 2759 | <Expanded> |
| 2760 | 72 == 72 |
| 2761 | </Expanded> |
| 2762 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2763 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2764 | <Original> |
| 2765 | multiply( j, 2 ) == j*2 |
| 2766 | </Original> |
| 2767 | <Expanded> |
| 2768 | 214 == 214 |
| 2769 | </Expanded> |
| 2770 | </Expression> |
| 2771 | <OverallResult success="true"/> |
| 2772 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2773 | <TestCase name="Generator over a range of pairs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2774 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2775 | <Original> |
| 2776 | i->first == i->second-1 |
| 2777 | </Original> |
| 2778 | <Expanded> |
| 2779 | 0 == 0 |
| 2780 | </Expanded> |
| 2781 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2782 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2783 | <Original> |
| 2784 | i->first == i->second-1 |
| 2785 | </Original> |
| 2786 | <Expanded> |
| 2787 | 2 == 2 |
| 2788 | </Expanded> |
| 2789 | </Expression> |
| 2790 | <OverallResult success="true"/> |
| 2791 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2792 | <TestCase name="INFO and WARN do not abort tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2793 | <Info> |
| 2794 | this is a message |
| 2795 | </Info> |
| 2796 | <Warning> |
| 2797 | this is a warning |
| 2798 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2799 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2800 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2801 | <TestCase name="SUCCEED counts as a test pass"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2802 | <OverallResult success="true"/> |
| 2803 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2804 | <TestCase name="INFO gets logged on failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2805 | <Info> |
| 2806 | this message should be logged |
| 2807 | </Info> |
| 2808 | <Info> |
| 2809 | so should this |
| 2810 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2811 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2812 | <Original> |
| 2813 | a == 1 |
| 2814 | </Original> |
| 2815 | <Expanded> |
| 2816 | 2 == 1 |
| 2817 | </Expanded> |
| 2818 | </Expression> |
| 2819 | <OverallResult success="false"/> |
| 2820 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2821 | <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] | 2822 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2823 | <Original> |
| 2824 | a == 2 |
| 2825 | </Original> |
| 2826 | <Expanded> |
| 2827 | 2 == 2 |
| 2828 | </Expanded> |
| 2829 | </Expression> |
| 2830 | <Info> |
| 2831 | this message should be logged |
| 2832 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2833 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2834 | <Original> |
| 2835 | a == 1 |
| 2836 | </Original> |
| 2837 | <Expanded> |
| 2838 | 2 == 1 |
| 2839 | </Expanded> |
| 2840 | </Expression> |
| 2841 | <Info> |
| 2842 | and this, but later |
| 2843 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2844 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2845 | <Original> |
| 2846 | a == 0 |
| 2847 | </Original> |
| 2848 | <Expanded> |
| 2849 | 2 == 0 |
| 2850 | </Expanded> |
| 2851 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2852 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2853 | <Original> |
| 2854 | a == 2 |
| 2855 | </Original> |
| 2856 | <Expanded> |
| 2857 | 2 == 2 |
| 2858 | </Expanded> |
| 2859 | </Expression> |
| 2860 | <OverallResult success="false"/> |
| 2861 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2862 | <TestCase name="FAIL aborts the test"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2863 | <Failure> |
| 2864 | This is a failure |
| 2865 | </Failure> |
| 2866 | <OverallResult success="false"/> |
| 2867 | </TestCase> |
Phil Nash | 859760a | 2013-12-14 14:34:05 +0000 | [diff] [blame] | 2868 | <TestCase name="FAIL does not require an argument"> |
| 2869 | <Failure/> |
| 2870 | <OverallResult success="false"/> |
| 2871 | </TestCase> |
Phil Nash | 557b3bd | 2013-12-14 23:16:03 +0000 | [diff] [blame] | 2872 | <TestCase name="SUCCESS does not require an argument"> |
| 2873 | <OverallResult success="true"/> |
| 2874 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2875 | <TestCase name="Output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2876 | <Section name="one"> |
| 2877 | <Failure> |
| 2878 | Message from section one |
| 2879 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2880 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2881 | </Section> |
| 2882 | <Section name="two"> |
| 2883 | <Failure> |
| 2884 | Message from section two |
| 2885 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2886 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2887 | </Section> |
| 2888 | <OverallResult success="false"/> |
| 2889 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2890 | <TestCase name="Standard output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2891 | <Section name="one"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2892 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2893 | </Section> |
| 2894 | <Section name="two"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2895 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2896 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 2897 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2898 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2899 | <TestCase name="SCOPED_INFO is reset for each loop"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2900 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2901 | <Original> |
| 2902 | i < 10 |
| 2903 | </Original> |
| 2904 | <Expanded> |
| 2905 | 0 < 10 |
| 2906 | </Expanded> |
| 2907 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2908 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2909 | <Original> |
| 2910 | i < 10 |
| 2911 | </Original> |
| 2912 | <Expanded> |
| 2913 | 1 < 10 |
| 2914 | </Expanded> |
| 2915 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2916 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2917 | <Original> |
| 2918 | i < 10 |
| 2919 | </Original> |
| 2920 | <Expanded> |
| 2921 | 2 < 10 |
| 2922 | </Expanded> |
| 2923 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2924 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2925 | <Original> |
| 2926 | i < 10 |
| 2927 | </Original> |
| 2928 | <Expanded> |
| 2929 | 3 < 10 |
| 2930 | </Expanded> |
| 2931 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2932 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2933 | <Original> |
| 2934 | i < 10 |
| 2935 | </Original> |
| 2936 | <Expanded> |
| 2937 | 4 < 10 |
| 2938 | </Expanded> |
| 2939 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2940 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2941 | <Original> |
| 2942 | i < 10 |
| 2943 | </Original> |
| 2944 | <Expanded> |
| 2945 | 5 < 10 |
| 2946 | </Expanded> |
| 2947 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2948 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2949 | <Original> |
| 2950 | i < 10 |
| 2951 | </Original> |
| 2952 | <Expanded> |
| 2953 | 6 < 10 |
| 2954 | </Expanded> |
| 2955 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2956 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2957 | <Original> |
| 2958 | i < 10 |
| 2959 | </Original> |
| 2960 | <Expanded> |
| 2961 | 7 < 10 |
| 2962 | </Expanded> |
| 2963 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2964 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2965 | <Original> |
| 2966 | i < 10 |
| 2967 | </Original> |
| 2968 | <Expanded> |
| 2969 | 8 < 10 |
| 2970 | </Expanded> |
| 2971 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2972 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2973 | <Original> |
| 2974 | i < 10 |
| 2975 | </Original> |
| 2976 | <Expanded> |
| 2977 | 9 < 10 |
| 2978 | </Expanded> |
| 2979 | </Expression> |
| 2980 | <Info> |
| 2981 | current counter 10 |
| 2982 | </Info> |
| 2983 | <Info> |
| 2984 | i := 10 |
| 2985 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2986 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2987 | <Original> |
| 2988 | i < 10 |
| 2989 | </Original> |
| 2990 | <Expanded> |
| 2991 | 10 < 10 |
| 2992 | </Expanded> |
| 2993 | </Expression> |
| 2994 | <OverallResult success="false"/> |
| 2995 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2996 | <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] | 2997 | <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2998 | <Original> |
| 2999 | 1 == 2 |
| 3000 | </Original> |
| 3001 | <Expanded> |
| 3002 | 1 == 2 |
| 3003 | </Expanded> |
| 3004 | </Expression> |
| 3005 | <OverallResult success="false"/> |
| 3006 | </TestCase> |
| 3007 | <TestCase name="just info"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3008 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3009 | </TestCase> |
| 3010 | <TestCase name="just failure"> |
| 3011 | <Failure> |
| 3012 | Previous info should not be seen |
| 3013 | </Failure> |
| 3014 | <OverallResult success="false"/> |
| 3015 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3016 | <TestCase name="sends information to INFO"> |
| 3017 | <Info> |
| 3018 | hi |
| 3019 | </Info> |
| 3020 | <Info> |
| 3021 | i := 7 |
| 3022 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3023 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3024 | <Original> |
| 3025 | false |
| 3026 | </Original> |
| 3027 | <Expanded> |
| 3028 | false |
| 3029 | </Expanded> |
| 3030 | </Expression> |
| 3031 | <OverallResult success="false"/> |
| 3032 | </TestCase> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3033 | <TestCase name="Pointers can be converted to strings"> |
| 3034 | <Warning> |
| 3035 | actual address of p: 0x<hex digits> |
| 3036 | </Warning> |
| 3037 | <Warning> |
| 3038 | toString(p): 0x<hex digits> |
| 3039 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3040 | <OverallResult success="false"/> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3041 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3042 | <TestCase name="random SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3043 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3044 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3045 | <Original> |
| 3046 | a != b |
| 3047 | </Original> |
| 3048 | <Expanded> |
| 3049 | 1 != 2 |
| 3050 | </Expanded> |
| 3051 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3052 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3053 | <Original> |
| 3054 | b != a |
| 3055 | </Original> |
| 3056 | <Expanded> |
| 3057 | 2 != 1 |
| 3058 | </Expanded> |
| 3059 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3060 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3061 | </Section> |
| 3062 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3063 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3064 | <Original> |
| 3065 | a != b |
| 3066 | </Original> |
| 3067 | <Expanded> |
| 3068 | 1 != 2 |
| 3069 | </Expanded> |
| 3070 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3071 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3072 | </Section> |
| 3073 | <OverallResult success="true"/> |
| 3074 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3075 | <TestCase name="nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3076 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3077 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3078 | <Original> |
| 3079 | a != b |
| 3080 | </Original> |
| 3081 | <Expanded> |
| 3082 | 1 != 2 |
| 3083 | </Expanded> |
| 3084 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3085 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3086 | <Original> |
| 3087 | b != a |
| 3088 | </Original> |
| 3089 | <Expanded> |
| 3090 | 2 != 1 |
| 3091 | </Expanded> |
| 3092 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3093 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3094 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3095 | <Original> |
| 3096 | a != b |
| 3097 | </Original> |
| 3098 | <Expanded> |
| 3099 | 1 != 2 |
| 3100 | </Expanded> |
| 3101 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3102 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3103 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3104 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3105 | </Section> |
| 3106 | <OverallResult success="true"/> |
| 3107 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3108 | <TestCase name="more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3109 | <Section name="s1" description="doesn't equal"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3110 | <Section name="s2" description="equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3111 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3112 | <Original> |
| 3113 | a == b |
| 3114 | </Original> |
| 3115 | <Expanded> |
| 3116 | 1 == 2 |
| 3117 | </Expanded> |
| 3118 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3119 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3120 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3121 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3122 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3123 | <OverallResult success="false"/> |
| 3124 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3125 | <TestCase name="even more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3126 | <Section name="c"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3127 | <Section name="d (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3128 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3129 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3130 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3131 | </Section> |
| 3132 | <Section name="c"> |
| 3133 | <Section name="e (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3134 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3135 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3136 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3137 | </Section> |
| 3138 | <Section name="f (leaf)"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3139 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3140 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3141 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3142 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3143 | <TestCase name="looped SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3144 | <Section name="s1" description="b is currently: 0"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3145 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3146 | <Original> |
| 3147 | b > a |
| 3148 | </Original> |
| 3149 | <Expanded> |
| 3150 | 0 > 1 |
| 3151 | </Expanded> |
| 3152 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3153 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3154 | </Section> |
| 3155 | <OverallResult success="false"/> |
| 3156 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3157 | <TestCase name="looped tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3158 | <Info> |
| 3159 | Testing if fib[0] (1) is even |
| 3160 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3161 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3162 | <Original> |
| 3163 | ( fib[i] % 2 ) == 0 |
| 3164 | </Original> |
| 3165 | <Expanded> |
| 3166 | 1 == 0 |
| 3167 | </Expanded> |
| 3168 | </Expression> |
| 3169 | <Info> |
| 3170 | Testing if fib[1] (1) is even |
| 3171 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3172 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3173 | <Original> |
| 3174 | ( fib[i] % 2 ) == 0 |
| 3175 | </Original> |
| 3176 | <Expanded> |
| 3177 | 1 == 0 |
| 3178 | </Expanded> |
| 3179 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3180 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3181 | <Original> |
| 3182 | ( fib[i] % 2 ) == 0 |
| 3183 | </Original> |
| 3184 | <Expanded> |
| 3185 | 0 == 0 |
| 3186 | </Expanded> |
| 3187 | </Expression> |
| 3188 | <Info> |
| 3189 | Testing if fib[3] (3) is even |
| 3190 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3191 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3192 | <Original> |
| 3193 | ( fib[i] % 2 ) == 0 |
| 3194 | </Original> |
| 3195 | <Expanded> |
| 3196 | 1 == 0 |
| 3197 | </Expanded> |
| 3198 | </Expression> |
| 3199 | <Info> |
| 3200 | Testing if fib[4] (5) is even |
| 3201 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3202 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3203 | <Original> |
| 3204 | ( fib[i] % 2 ) == 0 |
| 3205 | </Original> |
| 3206 | <Expanded> |
| 3207 | 1 == 0 |
| 3208 | </Expanded> |
| 3209 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3210 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3211 | <Original> |
| 3212 | ( fib[i] % 2 ) == 0 |
| 3213 | </Original> |
| 3214 | <Expanded> |
| 3215 | 0 == 0 |
| 3216 | </Expanded> |
| 3217 | </Expression> |
| 3218 | <Info> |
| 3219 | Testing if fib[6] (13) is even |
| 3220 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3221 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3222 | <Original> |
| 3223 | ( fib[i] % 2 ) == 0 |
| 3224 | </Original> |
| 3225 | <Expanded> |
| 3226 | 1 == 0 |
| 3227 | </Expanded> |
| 3228 | </Expression> |
| 3229 | <Info> |
| 3230 | Testing if fib[7] (21) is even |
| 3231 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3232 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3233 | <Original> |
| 3234 | ( fib[i] % 2 ) == 0 |
| 3235 | </Original> |
| 3236 | <Expanded> |
| 3237 | 1 == 0 |
| 3238 | </Expanded> |
| 3239 | </Expression> |
| 3240 | <OverallResult success="false"/> |
| 3241 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3242 | <TestCase name="Sends stuff to stdout and stderr"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3243 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3244 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3245 | <TestCase name="null strings"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3246 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3247 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3248 | makeString( false ) != static_cast<char*>(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3249 | </Original> |
| 3250 | <Expanded> |
| 3251 | "valid string" != {null string} |
| 3252 | </Expanded> |
| 3253 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3254 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3255 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3256 | makeString( true ) == static_cast<char*>(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3257 | </Original> |
| 3258 | <Expanded> |
| 3259 | {null string} == {null string} |
| 3260 | </Expanded> |
| 3261 | </Expression> |
| 3262 | <OverallResult success="true"/> |
| 3263 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3264 | <TestCase name="checkedIf"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3265 | <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3266 | <Original> |
| 3267 | flag |
| 3268 | </Original> |
| 3269 | <Expanded> |
| 3270 | true |
| 3271 | </Expanded> |
| 3272 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3273 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3274 | <Original> |
| 3275 | testCheckedIf( true ) |
| 3276 | </Original> |
| 3277 | <Expanded> |
| 3278 | true |
| 3279 | </Expanded> |
| 3280 | </Expression> |
| 3281 | <OverallResult success="true"/> |
| 3282 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3283 | <TestCase name="checkedIf, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3284 | <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3285 | <Original> |
| 3286 | flag |
| 3287 | </Original> |
| 3288 | <Expanded> |
| 3289 | false |
| 3290 | </Expanded> |
| 3291 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3292 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3293 | <Original> |
| 3294 | testCheckedIf( false ) |
| 3295 | </Original> |
| 3296 | <Expanded> |
| 3297 | false |
| 3298 | </Expanded> |
| 3299 | </Expression> |
| 3300 | <OverallResult success="false"/> |
| 3301 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3302 | <TestCase name="checkedElse"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3303 | <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3304 | <Original> |
| 3305 | flag |
| 3306 | </Original> |
| 3307 | <Expanded> |
| 3308 | true |
| 3309 | </Expanded> |
| 3310 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3311 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3312 | <Original> |
| 3313 | testCheckedElse( true ) |
| 3314 | </Original> |
| 3315 | <Expanded> |
| 3316 | true |
| 3317 | </Expanded> |
| 3318 | </Expression> |
| 3319 | <OverallResult success="true"/> |
| 3320 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3321 | <TestCase name="checkedElse, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3322 | <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3323 | <Original> |
| 3324 | flag |
| 3325 | </Original> |
| 3326 | <Expanded> |
| 3327 | false |
| 3328 | </Expanded> |
| 3329 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3330 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3331 | <Original> |
| 3332 | testCheckedElse( false ) |
| 3333 | </Original> |
| 3334 | <Expanded> |
| 3335 | false |
| 3336 | </Expanded> |
| 3337 | </Expression> |
| 3338 | <OverallResult success="false"/> |
| 3339 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3340 | <TestCase name="xmlentitycheck"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3341 | <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] | 3342 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3343 | </Section> |
| 3344 | <Section name="encoded chars" description="these should all be encoded: &&&"""<<<&"<<&""> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3345 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3346 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3347 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3348 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3349 | <TestCase name="send a single char to INFO"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3350 | <Info> |
| 3351 | 3 |
| 3352 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3353 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3354 | <Original> |
| 3355 | false |
| 3356 | </Original> |
| 3357 | <Expanded> |
| 3358 | false |
| 3359 | </Expanded> |
| 3360 | </Expression> |
| 3361 | <OverallResult success="false"/> |
| 3362 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3363 | <TestCase name="atomic if"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3364 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3365 | <Original> |
| 3366 | x == 0 |
| 3367 | </Original> |
| 3368 | <Expanded> |
| 3369 | 0 == 0 |
| 3370 | </Expanded> |
| 3371 | </Expression> |
| 3372 | <OverallResult success="true"/> |
| 3373 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3374 | <TestCase name="String matchers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3375 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3376 | <Original> |
| 3377 | testStringForMatching() Contains( "string" ) |
| 3378 | </Original> |
| 3379 | <Expanded> |
| 3380 | "this string contains 'abc' as a substring" contains: "string" |
| 3381 | </Expanded> |
| 3382 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3383 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3384 | <Original> |
| 3385 | testStringForMatching() Contains( "abc" ) |
| 3386 | </Original> |
| 3387 | <Expanded> |
| 3388 | "this string contains 'abc' as a substring" contains: "abc" |
| 3389 | </Expanded> |
| 3390 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3391 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3392 | <Original> |
| 3393 | testStringForMatching() StartsWith( "this" ) |
| 3394 | </Original> |
| 3395 | <Expanded> |
| 3396 | "this string contains 'abc' as a substring" starts with: "this" |
| 3397 | </Expanded> |
| 3398 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3399 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3400 | <Original> |
| 3401 | testStringForMatching() EndsWith( "substring" ) |
| 3402 | </Original> |
| 3403 | <Expanded> |
| 3404 | "this string contains 'abc' as a substring" ends with: "substring" |
| 3405 | </Expanded> |
| 3406 | </Expression> |
| 3407 | <OverallResult success="true"/> |
| 3408 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3409 | <TestCase name="Contains string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3410 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3411 | <Original> |
| 3412 | testStringForMatching() Contains( "not there" ) |
| 3413 | </Original> |
| 3414 | <Expanded> |
| 3415 | "this string contains 'abc' as a substring" contains: "not there" |
| 3416 | </Expanded> |
| 3417 | </Expression> |
| 3418 | <OverallResult success="false"/> |
| 3419 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3420 | <TestCase name="StartsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3421 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3422 | <Original> |
| 3423 | testStringForMatching() StartsWith( "string" ) |
| 3424 | </Original> |
| 3425 | <Expanded> |
| 3426 | "this string contains 'abc' as a substring" starts with: "string" |
| 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="EndsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3432 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3433 | <Original> |
| 3434 | testStringForMatching() EndsWith( "this" ) |
| 3435 | </Original> |
| 3436 | <Expanded> |
| 3437 | "this string contains 'abc' as a substring" ends with: "this" |
| 3438 | </Expanded> |
| 3439 | </Expression> |
| 3440 | <OverallResult success="false"/> |
| 3441 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3442 | <TestCase name="Equals string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3443 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3444 | <Original> |
| 3445 | testStringForMatching() Equals( "something else" ) |
| 3446 | </Original> |
| 3447 | <Expanded> |
| 3448 | "this string contains 'abc' as a substring" equals: "something else" |
| 3449 | </Expanded> |
| 3450 | </Expression> |
| 3451 | <OverallResult success="false"/> |
| 3452 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3453 | <TestCase name="Equals string matcher, with NULL"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3454 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3455 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3456 | "" Equals(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3457 | </Original> |
| 3458 | <Expanded> |
| 3459 | "" equals: "" |
| 3460 | </Expanded> |
| 3461 | </Expression> |
| 3462 | <OverallResult success="true"/> |
| 3463 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3464 | <TestCase name="AllOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3465 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3466 | <Original> |
| 3467 | testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) |
| 3468 | </Original> |
| 3469 | <Expanded> |
| 3470 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) |
| 3471 | </Expanded> |
| 3472 | </Expression> |
| 3473 | <OverallResult success="true"/> |
| 3474 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3475 | <TestCase name="AnyOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3476 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3477 | <Original> |
| 3478 | testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) |
| 3479 | </Original> |
| 3480 | <Expanded> |
| 3481 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) |
| 3482 | </Expanded> |
| 3483 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3484 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3485 | <Original> |
| 3486 | testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) |
| 3487 | </Original> |
| 3488 | <Expanded> |
| 3489 | "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) |
| 3490 | </Expanded> |
| 3491 | </Expression> |
| 3492 | <OverallResult success="true"/> |
| 3493 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3494 | <TestCase name="Equals"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3495 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3496 | <Original> |
| 3497 | testStringForMatching() Equals( "this string contains 'abc' as a substring" ) |
| 3498 | </Original> |
| 3499 | <Expanded> |
| 3500 | "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" |
| 3501 | </Expanded> |
| 3502 | </Expression> |
| 3503 | <OverallResult success="true"/> |
| 3504 | </TestCase> |
| 3505 | <TestCase name="Factorials are computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3506 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3507 | <Original> |
| 3508 | Factorial(0) == 1 |
| 3509 | </Original> |
| 3510 | <Expanded> |
| 3511 | 1 == 1 |
| 3512 | </Expanded> |
| 3513 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3514 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3515 | <Original> |
| 3516 | Factorial(1) == 1 |
| 3517 | </Original> |
| 3518 | <Expanded> |
| 3519 | 1 == 1 |
| 3520 | </Expanded> |
| 3521 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3522 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3523 | <Original> |
| 3524 | Factorial(2) == 2 |
| 3525 | </Original> |
| 3526 | <Expanded> |
| 3527 | 2 == 2 |
| 3528 | </Expanded> |
| 3529 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3530 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3531 | <Original> |
| 3532 | Factorial(3) == 6 |
| 3533 | </Original> |
| 3534 | <Expanded> |
| 3535 | 6 == 6 |
| 3536 | </Expanded> |
| 3537 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3538 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3539 | <Original> |
| 3540 | Factorial(10) == 3628800 |
| 3541 | </Original> |
| 3542 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 3543 | 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3544 | </Expanded> |
| 3545 | </Expression> |
| 3546 | <OverallResult success="true"/> |
| 3547 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3548 | <TestCase name="An empty test with no assertions"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3549 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3550 | </TestCase> |
| 3551 | <TestCase name="Nice descriptive name"> |
| 3552 | <Warning> |
| 3553 | This one ran |
| 3554 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3555 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3556 | </TestCase> |
| 3557 | <TestCase name="first tag"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3558 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3559 | </TestCase> |
| 3560 | <TestCase name="second tag"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 3561 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3562 | </TestCase> |
| 3563 | <TestCase name="vectors can be sized and resized"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3564 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3565 | <Original> |
| 3566 | v.size() == 5 |
| 3567 | </Original> |
| 3568 | <Expanded> |
| 3569 | 5 == 5 |
| 3570 | </Expanded> |
| 3571 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3572 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3573 | <Original> |
| 3574 | v.capacity() >= 5 |
| 3575 | </Original> |
| 3576 | <Expanded> |
| 3577 | 5 >= 5 |
| 3578 | </Expanded> |
| 3579 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3580 | <Section name="resizing bigger changes size and capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3581 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3582 | <Original> |
| 3583 | v.size() == 10 |
| 3584 | </Original> |
| 3585 | <Expanded> |
| 3586 | 10 == 10 |
| 3587 | </Expanded> |
| 3588 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3589 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3590 | <Original> |
| 3591 | v.capacity() >= 10 |
| 3592 | </Original> |
| 3593 | <Expanded> |
| 3594 | 10 >= 10 |
| 3595 | </Expanded> |
| 3596 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3597 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3598 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3599 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3600 | <Original> |
| 3601 | v.size() == 5 |
| 3602 | </Original> |
| 3603 | <Expanded> |
| 3604 | 5 == 5 |
| 3605 | </Expanded> |
| 3606 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3607 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3608 | <Original> |
| 3609 | v.capacity() >= 5 |
| 3610 | </Original> |
| 3611 | <Expanded> |
| 3612 | 5 >= 5 |
| 3613 | </Expanded> |
| 3614 | </Expression> |
| 3615 | <Section name="resizing smaller changes size but not capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3616 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3617 | <Original> |
| 3618 | v.size() == 0 |
| 3619 | </Original> |
| 3620 | <Expanded> |
| 3621 | 0 == 0 |
| 3622 | </Expanded> |
| 3623 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3624 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3625 | <Original> |
| 3626 | v.capacity() >= 5 |
| 3627 | </Original> |
| 3628 | <Expanded> |
| 3629 | 5 >= 5 |
| 3630 | </Expanded> |
| 3631 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3632 | <Section name="We can use the 'swap trick' to reset the capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3633 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3634 | <Original> |
| 3635 | v.capacity() == 0 |
| 3636 | </Original> |
| 3637 | <Expanded> |
| 3638 | 0 == 0 |
| 3639 | </Expanded> |
| 3640 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3641 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3642 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3643 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3644 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3645 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3646 | <Original> |
| 3647 | v.size() == 5 |
| 3648 | </Original> |
| 3649 | <Expanded> |
| 3650 | 5 == 5 |
| 3651 | </Expanded> |
| 3652 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3653 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3654 | <Original> |
| 3655 | v.capacity() >= 5 |
| 3656 | </Original> |
| 3657 | <Expanded> |
| 3658 | 5 >= 5 |
| 3659 | </Expanded> |
| 3660 | </Expression> |
| 3661 | <Section name="reserving bigger changes capacity but not size"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3662 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3663 | <Original> |
| 3664 | v.size() == 5 |
| 3665 | </Original> |
| 3666 | <Expanded> |
| 3667 | 5 == 5 |
| 3668 | </Expanded> |
| 3669 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3670 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3671 | <Original> |
| 3672 | v.capacity() >= 10 |
| 3673 | </Original> |
| 3674 | <Expanded> |
| 3675 | 10 >= 10 |
| 3676 | </Expanded> |
| 3677 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3678 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3679 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3680 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3681 | <Original> |
| 3682 | v.size() == 5 |
| 3683 | </Original> |
| 3684 | <Expanded> |
| 3685 | 5 == 5 |
| 3686 | </Expanded> |
| 3687 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3688 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3689 | <Original> |
| 3690 | v.capacity() >= 5 |
| 3691 | </Original> |
| 3692 | <Expanded> |
| 3693 | 5 >= 5 |
| 3694 | </Expanded> |
| 3695 | </Expression> |
| 3696 | <Section name="reserving smaller does not change size or capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3697 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3698 | <Original> |
| 3699 | v.size() == 5 |
| 3700 | </Original> |
| 3701 | <Expanded> |
| 3702 | 5 == 5 |
| 3703 | </Expanded> |
| 3704 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3705 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3706 | <Original> |
| 3707 | v.capacity() >= 5 |
| 3708 | </Original> |
| 3709 | <Expanded> |
| 3710 | 5 >= 5 |
| 3711 | </Expanded> |
| 3712 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3713 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3714 | </Section> |
| 3715 | <OverallResult success="true"/> |
| 3716 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3717 | <TestCase name="A couple of nested sections followed by a failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3718 | <Section name="Outer"> |
| 3719 | <Section name="Inner"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3720 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3721 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3722 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3723 | </Section> |
| 3724 | <Failure> |
| 3725 | to infinity and beyond |
| 3726 | </Failure> |
| 3727 | <OverallResult success="false"/> |
| 3728 | </TestCase> |
Phil Nash | 20cad7c | 2014-04-15 18:44:37 +0100 | [diff] [blame] | 3729 | <TestCase name="not allowed"> |
| 3730 | <OverallResult success="true"/> |
| 3731 | </TestCase> |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3732 | <TestCase name="Tabs and newlines show in output"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3733 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3734 | <Original> |
| 3735 | s1 == s2 |
| 3736 | </Original> |
| 3737 | <Expanded> |
| 3738 | "if ($b == 10) { |
| 3739 | $a = 20; |
| 3740 | }" |
| 3741 | == |
| 3742 | "if ($b == 10) { |
| 3743 | $a = 20; |
| 3744 | } |
| 3745 | " |
| 3746 | </Expanded> |
| 3747 | </Expression> |
| 3748 | <OverallResult success="false"/> |
| 3749 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3750 | <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] | 3751 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3752 | <Original> |
| 3753 | result == "\"wide load\"" |
| 3754 | </Original> |
| 3755 | <Expanded> |
| 3756 | ""wide load"" == ""wide load"" |
| 3757 | </Expanded> |
| 3758 | </Expression> |
| 3759 | <OverallResult success="true"/> |
| 3760 | </TestCase> |
| 3761 | <TestCase name="toString on const wchar_t pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3762 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3763 | <Original> |
| 3764 | result == "\"wide load\"" |
| 3765 | </Original> |
| 3766 | <Expanded> |
| 3767 | ""wide load"" == ""wide load"" |
| 3768 | </Expanded> |
| 3769 | </Expression> |
| 3770 | <OverallResult success="true"/> |
| 3771 | </TestCase> |
| 3772 | <TestCase name="toString on wchar_t const pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3773 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3774 | <Original> |
| 3775 | result == "\"wide load\"" |
| 3776 | </Original> |
| 3777 | <Expanded> |
| 3778 | ""wide load"" == ""wide load"" |
| 3779 | </Expanded> |
| 3780 | </Expression> |
| 3781 | <OverallResult success="true"/> |
| 3782 | </TestCase> |
| 3783 | <TestCase name="toString on wchar_t returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3784 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3785 | <Original> |
| 3786 | result == "\"wide load\"" |
| 3787 | </Original> |
| 3788 | <Expanded> |
| 3789 | ""wide load"" == ""wide load"" |
| 3790 | </Expanded> |
| 3791 | </Expression> |
| 3792 | <OverallResult success="true"/> |
| 3793 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3794 | <TestCase name="Process can be configured on command line"> |
| 3795 | <Section name="default - no arguments"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3796 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3797 | <Original> |
| 3798 | parseIntoConfig( argv, config ) |
| 3799 | </Original> |
| 3800 | <Expanded> |
| 3801 | parseIntoConfig( argv, config ) |
| 3802 | </Expanded> |
| 3803 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3804 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3805 | <Original> |
| 3806 | config.shouldDebugBreak == false |
| 3807 | </Original> |
| 3808 | <Expanded> |
| 3809 | false == false |
| 3810 | </Expanded> |
| 3811 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3812 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3813 | <Original> |
| 3814 | config.abortAfter == -1 |
| 3815 | </Original> |
| 3816 | <Expanded> |
| 3817 | -1 == -1 |
| 3818 | </Expanded> |
| 3819 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3820 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3821 | <Original> |
| 3822 | config.noThrow == false |
| 3823 | </Original> |
| 3824 | <Expanded> |
| 3825 | false == false |
| 3826 | </Expanded> |
| 3827 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3828 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3829 | <Original> |
| 3830 | config.reporterName.empty() |
| 3831 | </Original> |
| 3832 | <Expanded> |
| 3833 | true |
| 3834 | </Expanded> |
| 3835 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3836 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3837 | </Section> |
| 3838 | <Section name="test lists"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3839 | <Section name="1 test" description="Specify one test case using"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3840 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3841 | <Original> |
| 3842 | parseIntoConfig( argv, config ) |
| 3843 | </Original> |
| 3844 | <Expanded> |
| 3845 | parseIntoConfig( argv, config ) |
| 3846 | </Expanded> |
| 3847 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3848 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3849 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3850 | cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3851 | </Original> |
| 3852 | <Expanded> |
| 3853 | false == false |
| 3854 | </Expanded> |
| 3855 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3856 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3857 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3858 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3859 | </Original> |
| 3860 | <Expanded> |
| 3861 | true |
| 3862 | </Expanded> |
| 3863 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3864 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3865 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3866 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3867 | </Section> |
| 3868 | <Section name="test lists"> |
| 3869 | <Section name="Specify one test case exclusion using exclude:"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3870 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3871 | <Original> |
| 3872 | parseIntoConfig( argv, config ) |
| 3873 | </Original> |
| 3874 | <Expanded> |
| 3875 | parseIntoConfig( argv, config ) |
| 3876 | </Expanded> |
| 3877 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3878 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3879 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3880 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3881 | </Original> |
| 3882 | <Expanded> |
| 3883 | false == false |
| 3884 | </Expanded> |
| 3885 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3886 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3887 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3888 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3889 | </Original> |
| 3890 | <Expanded> |
| 3891 | true |
| 3892 | </Expanded> |
| 3893 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3894 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3895 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3896 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3897 | </Section> |
| 3898 | <Section name="test lists"> |
| 3899 | <Section name="Specify one test case exclusion using ~"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3900 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3901 | <Original> |
| 3902 | parseIntoConfig( argv, config ) |
| 3903 | </Original> |
| 3904 | <Expanded> |
| 3905 | parseIntoConfig( argv, config ) |
| 3906 | </Expanded> |
| 3907 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3908 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3909 | <Original> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 3910 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3911 | </Original> |
| 3912 | <Expanded> |
| 3913 | false == false |
| 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( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3919 | </Original> |
| 3920 | <Expanded> |
| 3921 | true |
| 3922 | </Expanded> |
| 3923 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3924 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3925 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3926 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3927 | </Section> |
| 3928 | <Section name="reporter"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3929 | <Section name="-r/console"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3930 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3931 | <Original> |
| 3932 | parseIntoConfig( argv, config ) |
| 3933 | </Original> |
| 3934 | <Expanded> |
| 3935 | parseIntoConfig( argv, config ) |
| 3936 | </Expanded> |
| 3937 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3938 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3939 | <Original> |
| 3940 | config.reporterName == "console" |
| 3941 | </Original> |
| 3942 | <Expanded> |
| 3943 | "console" == "console" |
| 3944 | </Expanded> |
| 3945 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3946 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3947 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3948 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3949 | </Section> |
| 3950 | <Section name="reporter"> |
| 3951 | <Section name="-r/xml"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3952 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3953 | <Original> |
| 3954 | parseIntoConfig( argv, config ) |
| 3955 | </Original> |
| 3956 | <Expanded> |
| 3957 | parseIntoConfig( argv, config ) |
| 3958 | </Expanded> |
| 3959 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3960 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3961 | <Original> |
| 3962 | config.reporterName == "xml" |
| 3963 | </Original> |
| 3964 | <Expanded> |
| 3965 | "xml" == "xml" |
| 3966 | </Expanded> |
| 3967 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3968 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3969 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3970 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3971 | </Section> |
| 3972 | <Section name="reporter"> |
| 3973 | <Section name="--reporter/junit"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3974 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3975 | <Original> |
| 3976 | parseIntoConfig( argv, config ) |
| 3977 | </Original> |
| 3978 | <Expanded> |
| 3979 | parseIntoConfig( argv, config ) |
| 3980 | </Expanded> |
| 3981 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3982 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3983 | <Original> |
| 3984 | config.reporterName == "junit" |
| 3985 | </Original> |
| 3986 | <Expanded> |
| 3987 | "junit" == "junit" |
| 3988 | </Expanded> |
| 3989 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3990 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3991 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3992 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3993 | </Section> |
| 3994 | <Section name="debugger"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3995 | <Section name="-b"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3996 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3997 | <Original> |
| 3998 | parseIntoConfig( argv, config ) |
| 3999 | </Original> |
| 4000 | <Expanded> |
| 4001 | parseIntoConfig( argv, config ) |
| 4002 | </Expanded> |
| 4003 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4004 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4005 | <Original> |
| 4006 | config.shouldDebugBreak == true |
| 4007 | </Original> |
| 4008 | <Expanded> |
| 4009 | true == true |
| 4010 | </Expanded> |
| 4011 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4012 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4013 | </Section> |
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> |
| 4016 | <Section name="debugger"> |
| 4017 | <Section name="--break"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4018 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4019 | <Original> |
| 4020 | parseIntoConfig( argv, config ) |
| 4021 | </Original> |
| 4022 | <Expanded> |
| 4023 | parseIntoConfig( argv, config ) |
| 4024 | </Expanded> |
| 4025 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4026 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4027 | <Original> |
| 4028 | config.shouldDebugBreak |
| 4029 | </Original> |
| 4030 | <Expanded> |
| 4031 | true |
| 4032 | </Expanded> |
| 4033 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4034 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4035 | </Section> |
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> |
| 4038 | <Section name="abort"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4039 | <Section name="-a aborts after first failure"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4040 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4041 | <Original> |
| 4042 | parseIntoConfig( argv, config ) |
| 4043 | </Original> |
| 4044 | <Expanded> |
| 4045 | parseIntoConfig( argv, config ) |
| 4046 | </Expanded> |
| 4047 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4048 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4049 | <Original> |
| 4050 | config.abortAfter == 1 |
| 4051 | </Original> |
| 4052 | <Expanded> |
| 4053 | 1 == 1 |
| 4054 | </Expanded> |
| 4055 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4056 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4057 | </Section> |
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> |
| 4060 | <Section name="abort"> |
| 4061 | <Section name="-x 2 aborts after two failures"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4062 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4063 | <Original> |
| 4064 | parseIntoConfig( argv, config ) |
| 4065 | </Original> |
| 4066 | <Expanded> |
| 4067 | parseIntoConfig( argv, config ) |
| 4068 | </Expanded> |
| 4069 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4070 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4071 | <Original> |
| 4072 | config.abortAfter == 2 |
| 4073 | </Original> |
| 4074 | <Expanded> |
| 4075 | 2 == 2 |
| 4076 | </Expanded> |
| 4077 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4078 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4079 | </Section> |
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> |
| 4082 | <Section name="abort"> |
| 4083 | <Section name="-x must be greater than zero"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4084 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4085 | <Original> |
| 4086 | parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) |
| 4087 | </Original> |
| 4088 | <Expanded> |
| 4089 | "Value after -x or --abortAfter must be greater than zero |
Phil Nash | e9d3537 | 2014-04-12 19:05:03 +0100 | [diff] [blame] | 4090 | - while parsing: (-x, --abortx <no. failures>)" contains: "greater than zero" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4091 | </Expanded> |
| 4092 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4093 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4094 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4095 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4096 | </Section> |
| 4097 | <Section name="abort"> |
| 4098 | <Section name="-x must be numeric"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4099 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4100 | <Original> |
| 4101 | parseIntoConfigAndReturnError( argv, config ) Contains( "-x" ) |
| 4102 | </Original> |
| 4103 | <Expanded> |
| 4104 | "Unable to convert oops to destination type |
Phil Nash | e9d3537 | 2014-04-12 19:05:03 +0100 | [diff] [blame] | 4105 | - while parsing: (-x, --abortx <no. failures>)" contains: "-x" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4106 | </Expanded> |
| 4107 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4108 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4109 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4110 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4111 | </Section> |
| 4112 | <Section name="nothrow"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4113 | <Section name="-e"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4114 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4115 | <Original> |
| 4116 | parseIntoConfig( argv, config ) |
| 4117 | </Original> |
| 4118 | <Expanded> |
| 4119 | parseIntoConfig( argv, config ) |
| 4120 | </Expanded> |
| 4121 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4122 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4123 | <Original> |
| 4124 | config.noThrow == true |
| 4125 | </Original> |
| 4126 | <Expanded> |
| 4127 | true == true |
| 4128 | </Expanded> |
| 4129 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4130 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4131 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4132 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4133 | </Section> |
| 4134 | <Section name="nothrow"> |
| 4135 | <Section name="--nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4136 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4137 | <Original> |
| 4138 | parseIntoConfig( argv, config ) |
| 4139 | </Original> |
| 4140 | <Expanded> |
| 4141 | parseIntoConfig( argv, config ) |
| 4142 | </Expanded> |
| 4143 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4144 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4145 | <Original> |
| 4146 | config.noThrow == true |
| 4147 | </Original> |
| 4148 | <Expanded> |
| 4149 | true == true |
| 4150 | </Expanded> |
| 4151 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4152 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4153 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4154 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4155 | </Section> |
| 4156 | <Section name="output filename"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4157 | <Section name="-o filename"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4158 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4159 | <Original> |
| 4160 | parseIntoConfig( argv, config ) |
| 4161 | </Original> |
| 4162 | <Expanded> |
| 4163 | parseIntoConfig( argv, config ) |
| 4164 | </Expanded> |
| 4165 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4166 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4167 | <Original> |
| 4168 | config.outputFilename == "filename.ext" |
| 4169 | </Original> |
| 4170 | <Expanded> |
| 4171 | "filename.ext" == "filename.ext" |
| 4172 | </Expanded> |
| 4173 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4174 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4175 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4176 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4177 | </Section> |
| 4178 | <Section name="output filename"> |
| 4179 | <Section name="--out"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4180 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4181 | <Original> |
| 4182 | parseIntoConfig( argv, config ) |
| 4183 | </Original> |
| 4184 | <Expanded> |
| 4185 | parseIntoConfig( argv, config ) |
| 4186 | </Expanded> |
| 4187 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4188 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4189 | <Original> |
| 4190 | config.outputFilename == "filename.ext" |
| 4191 | </Original> |
| 4192 | <Expanded> |
| 4193 | "filename.ext" == "filename.ext" |
| 4194 | </Expanded> |
| 4195 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4196 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4197 | </Section> |
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> |
| 4200 | <Section name="combinations"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4201 | <Section name="Single character flags can be combined"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4202 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4203 | <Original> |
| 4204 | parseIntoConfig( argv, config ) |
| 4205 | </Original> |
| 4206 | <Expanded> |
| 4207 | parseIntoConfig( argv, config ) |
| 4208 | </Expanded> |
| 4209 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4210 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4211 | <Original> |
| 4212 | config.abortAfter == 1 |
| 4213 | </Original> |
| 4214 | <Expanded> |
| 4215 | 1 == 1 |
| 4216 | </Expanded> |
| 4217 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4218 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4219 | <Original> |
| 4220 | config.shouldDebugBreak |
| 4221 | </Original> |
| 4222 | <Expanded> |
| 4223 | true |
| 4224 | </Expanded> |
| 4225 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4226 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4227 | <Original> |
| 4228 | config.noThrow == true |
| 4229 | </Original> |
| 4230 | <Expanded> |
| 4231 | true == true |
| 4232 | </Expanded> |
| 4233 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4234 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4235 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4236 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4237 | </Section> |
Phil Nash | 856468c | 2015-03-04 08:22:32 +0000 | [diff] [blame] | 4238 | <Section name="force-colour"> |
| 4239 | <Section name="--force-colour"> |
| 4240 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4241 | <Original> |
| 4242 | parseIntoConfig( argv, config ) |
| 4243 | </Original> |
| 4244 | <Expanded> |
| 4245 | parseIntoConfig( argv, config ) |
| 4246 | </Expanded> |
| 4247 | </Expression> |
| 4248 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4249 | <Original> |
| 4250 | config.forceColour |
| 4251 | </Original> |
| 4252 | <Expanded> |
| 4253 | true |
| 4254 | </Expanded> |
| 4255 | </Expression> |
| 4256 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4257 | </Section> |
| 4258 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4259 | </Section> |
| 4260 | <Section name="force-colour"> |
| 4261 | <Section name="without --force-colour"> |
| 4262 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4263 | <Original> |
| 4264 | parseIntoConfig( argv, config ) |
| 4265 | </Original> |
| 4266 | <Expanded> |
| 4267 | parseIntoConfig( argv, config ) |
| 4268 | </Expanded> |
| 4269 | </Expression> |
| 4270 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4271 | <Original> |
| 4272 | !config.forceColour |
| 4273 | </Original> |
| 4274 | <Expanded> |
| 4275 | true |
| 4276 | </Expanded> |
| 4277 | </Expression> |
| 4278 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4279 | </Section> |
| 4280 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4281 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4282 | <OverallResult success="true"/> |
| 4283 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4284 | <TestCase name="Long strings can be wrapped"> |
| 4285 | <Section name="plain string"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4286 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4287 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4288 | <Original> |
| 4289 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4290 | </Original> |
| 4291 | <Expanded> |
| 4292 | "one two three four" |
| 4293 | == |
| 4294 | "one two three four" |
| 4295 | </Expanded> |
| 4296 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4297 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4298 | <Original> |
| 4299 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4300 | </Original> |
| 4301 | <Expanded> |
| 4302 | "one two three four" |
| 4303 | == |
| 4304 | "one two three four" |
| 4305 | </Expanded> |
| 4306 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4307 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4308 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4309 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4310 | </Section> |
| 4311 | <Section name="plain string"> |
| 4312 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4313 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4314 | <Original> |
| 4315 | Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" |
| 4316 | </Original> |
| 4317 | <Expanded> |
| 4318 | "one two three |
| 4319 | four" |
| 4320 | == |
| 4321 | "one two three |
| 4322 | four" |
| 4323 | </Expanded> |
| 4324 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4325 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4326 | <Original> |
| 4327 | Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" |
| 4328 | </Original> |
| 4329 | <Expanded> |
| 4330 | "one two three |
| 4331 | four" |
| 4332 | == |
| 4333 | "one two three |
| 4334 | four" |
| 4335 | </Expanded> |
| 4336 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4337 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4338 | <Original> |
| 4339 | Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" |
| 4340 | </Original> |
| 4341 | <Expanded> |
| 4342 | "one two three |
| 4343 | four" |
| 4344 | == |
| 4345 | "one two three |
| 4346 | four" |
| 4347 | </Expanded> |
| 4348 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4349 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4350 | <Original> |
| 4351 | Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" |
| 4352 | </Original> |
| 4353 | <Expanded> |
| 4354 | "one two three |
| 4355 | four" |
| 4356 | == |
| 4357 | "one two three |
| 4358 | four" |
| 4359 | </Expanded> |
| 4360 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4361 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4362 | <Original> |
| 4363 | Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" |
| 4364 | </Original> |
| 4365 | <Expanded> |
| 4366 | "one two |
| 4367 | three four" |
| 4368 | == |
| 4369 | "one two |
| 4370 | three four" |
| 4371 | </Expanded> |
| 4372 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4373 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4374 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4375 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4376 | </Section> |
| 4377 | <Section name="plain string"> |
| 4378 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4379 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4380 | <Original> |
| 4381 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
| 4382 | </Original> |
| 4383 | <Expanded> |
| 4384 | "one two |
| 4385 | three |
| 4386 | four" |
| 4387 | == |
| 4388 | "one two |
| 4389 | 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( 8 ) ).toString() == "one two\nthree\nfour" |
| 4396 | </Original> |
| 4397 | <Expanded> |
| 4398 | "one two |
| 4399 | three |
| 4400 | four" |
| 4401 | == |
| 4402 | "one two |
| 4403 | three |
| 4404 | four" |
| 4405 | </Expanded> |
| 4406 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4407 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4408 | <Original> |
| 4409 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
| 4410 | </Original> |
| 4411 | <Expanded> |
| 4412 | "one two |
| 4413 | three |
| 4414 | four" |
| 4415 | == |
| 4416 | "one two |
| 4417 | three |
| 4418 | four" |
| 4419 | </Expanded> |
| 4420 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4421 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4422 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4423 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4424 | </Section> |
| 4425 | <Section name="plain string"> |
| 4426 | <Section name="Wrapped three times"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4427 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4428 | <Original> |
| 4429 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4430 | </Original> |
| 4431 | <Expanded> |
| 4432 | "one |
| 4433 | two |
| 4434 | three |
| 4435 | four" |
| 4436 | == |
| 4437 | "one |
| 4438 | two |
| 4439 | three |
| 4440 | four" |
| 4441 | </Expanded> |
| 4442 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4443 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4444 | <Original> |
| 4445 | Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4446 | </Original> |
| 4447 | <Expanded> |
| 4448 | "one |
| 4449 | two |
| 4450 | three |
| 4451 | four" |
| 4452 | == |
| 4453 | "one |
| 4454 | two |
| 4455 | three |
| 4456 | four" |
| 4457 | </Expanded> |
| 4458 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4459 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4460 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4461 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4462 | </Section> |
| 4463 | <Section name="plain string"> |
| 4464 | <Section name="Short wrap"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4465 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4466 | <Original> |
| 4467 | Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" |
| 4468 | </Original> |
| 4469 | <Expanded> |
| 4470 | "abc- |
| 4471 | def" |
| 4472 | == |
| 4473 | "abc- |
| 4474 | def" |
| 4475 | </Expanded> |
| 4476 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4477 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4478 | <Original> |
| 4479 | Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" |
| 4480 | </Original> |
| 4481 | <Expanded> |
| 4482 | "abc- |
| 4483 | defg" |
| 4484 | == |
| 4485 | "abc- |
| 4486 | defg" |
| 4487 | </Expanded> |
| 4488 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4489 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4490 | <Original> |
| 4491 | Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" |
| 4492 | </Original> |
| 4493 | <Expanded> |
| 4494 | "abc- |
| 4495 | def- |
| 4496 | gh" |
| 4497 | == |
| 4498 | "abc- |
| 4499 | def- |
| 4500 | gh" |
| 4501 | </Expanded> |
| 4502 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4503 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4504 | <Original> |
| 4505 | Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" |
| 4506 | </Original> |
| 4507 | <Expanded> |
| 4508 | "one |
| 4509 | two |
| 4510 | thr- |
| 4511 | ee |
| 4512 | four" |
| 4513 | == |
| 4514 | "one |
| 4515 | two |
| 4516 | thr- |
| 4517 | ee |
| 4518 | four" |
| 4519 | </Expanded> |
| 4520 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4521 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4522 | <Original> |
| 4523 | Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" |
| 4524 | </Original> |
| 4525 | <Expanded> |
| 4526 | "one |
| 4527 | two |
| 4528 | th- |
| 4529 | ree |
| 4530 | fo- |
| 4531 | ur" |
| 4532 | == |
| 4533 | "one |
| 4534 | two |
| 4535 | th- |
| 4536 | ree |
| 4537 | fo- |
| 4538 | ur" |
| 4539 | </Expanded> |
| 4540 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4541 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4542 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4543 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4544 | </Section> |
| 4545 | <Section name="plain string"> |
| 4546 | <Section name="As container"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4547 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4548 | <Original> |
| 4549 | text.size() == 4 |
| 4550 | </Original> |
| 4551 | <Expanded> |
| 4552 | 4 == 4 |
| 4553 | </Expanded> |
| 4554 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4555 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4556 | <Original> |
| 4557 | text[0] == "one" |
| 4558 | </Original> |
| 4559 | <Expanded> |
| 4560 | "one" == "one" |
| 4561 | </Expanded> |
| 4562 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4563 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4564 | <Original> |
| 4565 | text[1] == "two" |
| 4566 | </Original> |
| 4567 | <Expanded> |
| 4568 | "two" == "two" |
| 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[2] == "three" |
| 4574 | </Original> |
| 4575 | <Expanded> |
| 4576 | "three" == "three" |
| 4577 | </Expanded> |
| 4578 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4579 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4580 | <Original> |
| 4581 | text[3] == "four" |
| 4582 | </Original> |
| 4583 | <Expanded> |
| 4584 | "four" == "four" |
| 4585 | </Expanded> |
| 4586 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4587 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4588 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4589 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4590 | </Section> |
| 4591 | <Section name="plain string"> |
| 4592 | <Section name="Indent first line differently"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4593 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4594 | <Original> |
| 4595 | text.toString() == " one two\n three\n four" |
| 4596 | </Original> |
| 4597 | <Expanded> |
| 4598 | " one two |
| 4599 | three |
| 4600 | four" |
| 4601 | == |
| 4602 | " one two |
| 4603 | three |
| 4604 | four" |
| 4605 | </Expanded> |
| 4606 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4607 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4608 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4609 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4610 | </Section> |
| 4611 | <Section name="With newlines"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4612 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4613 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4614 | <Original> |
| 4615 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4616 | </Original> |
| 4617 | <Expanded> |
| 4618 | "one two |
| 4619 | three four" |
| 4620 | == |
| 4621 | "one two |
| 4622 | three four" |
| 4623 | </Expanded> |
| 4624 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4625 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4626 | <Original> |
| 4627 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4628 | </Original> |
| 4629 | <Expanded> |
| 4630 | "one two |
| 4631 | three four" |
| 4632 | == |
| 4633 | "one two |
| 4634 | three four" |
| 4635 | </Expanded> |
| 4636 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4637 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4638 | <Original> |
| 4639 | Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString |
| 4640 | </Original> |
| 4641 | <Expanded> |
| 4642 | "one two |
| 4643 | three four" |
| 4644 | == |
| 4645 | "one two |
| 4646 | three four" |
| 4647 | </Expanded> |
| 4648 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4649 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4650 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4651 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4652 | </Section> |
| 4653 | <Section name="With newlines"> |
| 4654 | <Section name="Trailing newline"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4655 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4656 | <Original> |
| 4657 | Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" |
| 4658 | </Original> |
| 4659 | <Expanded> |
| 4660 | "abcdef |
| 4661 | " |
| 4662 | == |
| 4663 | "abcdef |
| 4664 | " |
| 4665 | </Expanded> |
| 4666 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4667 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4668 | <Original> |
| 4669 | Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" |
| 4670 | </Original> |
| 4671 | <Expanded> |
| 4672 | "abcdef" == "abcdef" |
| 4673 | </Expanded> |
| 4674 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4675 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4676 | <Original> |
| 4677 | Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" |
| 4678 | </Original> |
| 4679 | <Expanded> |
| 4680 | "abcdef |
| 4681 | " |
| 4682 | == |
| 4683 | "abcdef |
| 4684 | " |
| 4685 | </Expanded> |
| 4686 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4687 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4688 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4689 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4690 | </Section> |
| 4691 | <Section name="With newlines"> |
| 4692 | <Section name="Wrapped once"> |
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( 9 ) ).toString() == "one two\nthree\nfour" |
| 4696 | </Original> |
| 4697 | <Expanded> |
| 4698 | "one two |
| 4699 | three |
| 4700 | four" |
| 4701 | == |
| 4702 | "one two |
| 4703 | three |
| 4704 | four" |
| 4705 | </Expanded> |
| 4706 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4707 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4708 | <Original> |
| 4709 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
| 4710 | </Original> |
| 4711 | <Expanded> |
| 4712 | "one two |
| 4713 | three |
| 4714 | four" |
| 4715 | == |
| 4716 | "one two |
| 4717 | three |
| 4718 | four" |
| 4719 | </Expanded> |
| 4720 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4721 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4722 | <Original> |
| 4723 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
| 4724 | </Original> |
| 4725 | <Expanded> |
| 4726 | "one two |
| 4727 | three |
| 4728 | four" |
| 4729 | == |
| 4730 | "one two |
| 4731 | three |
| 4732 | four" |
| 4733 | </Expanded> |
| 4734 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4735 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4736 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4737 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4738 | </Section> |
| 4739 | <Section name="With newlines"> |
| 4740 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4741 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4742 | <Original> |
| 4743 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
| 4744 | </Original> |
| 4745 | <Expanded> |
| 4746 | "one |
| 4747 | two |
| 4748 | three |
| 4749 | four" |
| 4750 | == |
| 4751 | "one |
| 4752 | two |
| 4753 | three |
| 4754 | four" |
| 4755 | </Expanded> |
| 4756 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4757 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4758 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4759 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4760 | </Section> |
| 4761 | <Section name="With tabs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4762 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4763 | <Original> |
| 4764 | Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" |
| 4765 | </Original> |
| 4766 | <Expanded> |
| 4767 | "one two three |
| 4768 | four |
| 4769 | five |
| 4770 | six" |
| 4771 | == |
| 4772 | "one two three |
| 4773 | four |
| 4774 | five |
| 4775 | six" |
| 4776 | </Expanded> |
| 4777 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4778 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4779 | </Section> |
| 4780 | <OverallResult success="true"/> |
| 4781 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4782 | <TestCase name="replaceInPlace"> |
| 4783 | <Section name="replace single char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4784 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4785 | <Original> |
| 4786 | replaceInPlace( letters, "b", "z" ) |
| 4787 | </Original> |
| 4788 | <Expanded> |
| 4789 | true |
| 4790 | </Expanded> |
| 4791 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4792 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4793 | <Original> |
| 4794 | letters == "azcdefcg" |
| 4795 | </Original> |
| 4796 | <Expanded> |
| 4797 | "azcdefcg" == "azcdefcg" |
| 4798 | </Expanded> |
| 4799 | </Expression> |
| 4800 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4801 | </Section> |
| 4802 | <Section name="replace two chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4803 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4804 | <Original> |
| 4805 | replaceInPlace( letters, "c", "z" ) |
| 4806 | </Original> |
| 4807 | <Expanded> |
| 4808 | true |
| 4809 | </Expanded> |
| 4810 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4811 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4812 | <Original> |
| 4813 | letters == "abzdefzg" |
| 4814 | </Original> |
| 4815 | <Expanded> |
| 4816 | "abzdefzg" == "abzdefzg" |
| 4817 | </Expanded> |
| 4818 | </Expression> |
| 4819 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4820 | </Section> |
| 4821 | <Section name="replace first char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4822 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4823 | <Original> |
| 4824 | replaceInPlace( letters, "a", "z" ) |
| 4825 | </Original> |
| 4826 | <Expanded> |
| 4827 | true |
| 4828 | </Expanded> |
| 4829 | </Expression> |
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 | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4831 | <Original> |
| 4832 | letters == "zbcdefcg" |
| 4833 | </Original> |
| 4834 | <Expanded> |
| 4835 | "zbcdefcg" == "zbcdefcg" |
| 4836 | </Expanded> |
| 4837 | </Expression> |
| 4838 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4839 | </Section> |
| 4840 | <Section name="replace last char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4841 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4842 | <Original> |
| 4843 | replaceInPlace( letters, "g", "z" ) |
| 4844 | </Original> |
| 4845 | <Expanded> |
| 4846 | true |
| 4847 | </Expanded> |
| 4848 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4849 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4850 | <Original> |
| 4851 | letters == "abcdefcz" |
| 4852 | </Original> |
| 4853 | <Expanded> |
| 4854 | "abcdefcz" == "abcdefcz" |
| 4855 | </Expanded> |
| 4856 | </Expression> |
| 4857 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4858 | </Section> |
| 4859 | <Section name="replace all chars"> |
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 | replaceInPlace( letters, letters, "replaced" ) |
| 4863 | </Original> |
| 4864 | <Expanded> |
| 4865 | true |
| 4866 | </Expanded> |
| 4867 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4868 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4869 | <Original> |
| 4870 | letters == "replaced" |
| 4871 | </Original> |
| 4872 | <Expanded> |
| 4873 | "replaced" == "replaced" |
| 4874 | </Expanded> |
| 4875 | </Expression> |
| 4876 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4877 | </Section> |
| 4878 | <Section name="replace no chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4879 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4880 | <Original> |
| 4881 | !replaceInPlace( letters, "x", "z" ) |
| 4882 | </Original> |
| 4883 | <Expanded> |
| 4884 | !false |
| 4885 | </Expanded> |
| 4886 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4887 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4888 | <Original> |
| 4889 | letters == letters |
| 4890 | </Original> |
| 4891 | <Expanded> |
| 4892 | "abcdefcg" == "abcdefcg" |
| 4893 | </Expanded> |
| 4894 | </Expression> |
| 4895 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4896 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4897 | <Section name="escape '"> |
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 | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4899 | <Original> |
| 4900 | replaceInPlace( s, "'", "|'" ) |
| 4901 | </Original> |
| 4902 | <Expanded> |
| 4903 | true |
| 4904 | </Expanded> |
| 4905 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4906 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4907 | <Original> |
| 4908 | s == "didn|'t" |
| 4909 | </Original> |
| 4910 | <Expanded> |
| 4911 | "didn|'t" == "didn|'t" |
| 4912 | </Expanded> |
| 4913 | </Expression> |
| 4914 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4915 | </Section> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 4916 | <OverallResult success="true"/> |
| 4917 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4918 | <TestCase name="Strings can be rendered with colour"> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 4919 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4920 | </TestCase> |
| 4921 | <TestCase name="Text can be formatted using the Text class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4922 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4923 | <Original> |
| 4924 | Text( "hi there" ).toString() == "hi there" |
| 4925 | </Original> |
| 4926 | <Expanded> |
| 4927 | "hi there" == "hi there" |
| 4928 | </Expanded> |
| 4929 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4930 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4931 | <Original> |
| 4932 | Text( "hi there", narrow ).toString() == "hi\nthere" |
| 4933 | </Original> |
| 4934 | <Expanded> |
| 4935 | "hi |
| 4936 | there" |
| 4937 | == |
| 4938 | "hi |
| 4939 | there" |
| 4940 | </Expanded> |
| 4941 | </Expression> |
| 4942 | <OverallResult success="true"/> |
| 4943 | </TestCase> |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 4944 | <TestCase name="Long text is truncted"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4945 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 4946 | <Original> |
| 4947 | t.toString() EndsWith( "... message truncated due to excessive size" ) |
| 4948 | </Original> |
| 4949 | <Expanded> |
| 4950 | "******************************************************************************- |
| 4951 | ******************************************************************************- |
| 4952 | ************************ |
| 4953 | ******************************************************************************- |
| 4954 | ******************************************************************************- |
| 4955 | ************************ |
| 4956 | ******************************************************************************- |
| 4957 | ******************************************************************************- |
| 4958 | ************************ |
| 4959 | ******************************************************************************- |
| 4960 | ******************************************************************************- |
| 4961 | ************************ |
| 4962 | ******************************************************************************- |
| 4963 | ******************************************************************************- |
| 4964 | ************************ |
| 4965 | ******************************************************************************- |
| 4966 | ******************************************************************************- |
| 4967 | ************************ |
| 4968 | ******************************************************************************- |
| 4969 | ******************************************************************************- |
| 4970 | ************************ |
| 4971 | ******************************************************************************- |
| 4972 | ******************************************************************************- |
| 4973 | ************************ |
| 4974 | ******************************************************************************- |
| 4975 | ******************************************************************************- |
| 4976 | ************************ |
| 4977 | ******************************************************************************- |
| 4978 | ******************************************************************************- |
| 4979 | ************************ |
| 4980 | ******************************************************************************- |
| 4981 | ******************************************************************************- |
| 4982 | ************************ |
| 4983 | ******************************************************************************- |
| 4984 | ******************************************************************************- |
| 4985 | ************************ |
| 4986 | ******************************************************************************- |
| 4987 | ******************************************************************************- |
| 4988 | ************************ |
| 4989 | ******************************************************************************- |
| 4990 | ******************************************************************************- |
| 4991 | ************************ |
| 4992 | ******************************************************************************- |
| 4993 | ******************************************************************************- |
| 4994 | ************************ |
| 4995 | ******************************************************************************- |
| 4996 | ******************************************************************************- |
| 4997 | ************************ |
| 4998 | ******************************************************************************- |
| 4999 | ******************************************************************************- |
| 5000 | ************************ |
| 5001 | ******************************************************************************- |
| 5002 | ******************************************************************************- |
| 5003 | ************************ |
| 5004 | ******************************************************************************- |
| 5005 | ******************************************************************************- |
| 5006 | ************************ |
| 5007 | ******************************************************************************- |
| 5008 | ******************************************************************************- |
| 5009 | ************************ |
| 5010 | ******************************************************************************- |
| 5011 | ******************************************************************************- |
| 5012 | ************************ |
| 5013 | ******************************************************************************- |
| 5014 | ******************************************************************************- |
| 5015 | ************************ |
| 5016 | ******************************************************************************- |
| 5017 | ******************************************************************************- |
| 5018 | ************************ |
| 5019 | ******************************************************************************- |
| 5020 | ******************************************************************************- |
| 5021 | ************************ |
| 5022 | ******************************************************************************- |
| 5023 | ******************************************************************************- |
| 5024 | ************************ |
| 5025 | ******************************************************************************- |
| 5026 | ******************************************************************************- |
| 5027 | ************************ |
| 5028 | ******************************************************************************- |
| 5029 | ******************************************************************************- |
| 5030 | ************************ |
| 5031 | ******************************************************************************- |
| 5032 | ******************************************************************************- |
| 5033 | ************************ |
| 5034 | ******************************************************************************- |
| 5035 | ******************************************************************************- |
| 5036 | ************************ |
| 5037 | ******************************************************************************- |
| 5038 | ******************************************************************************- |
| 5039 | ************************ |
| 5040 | ******************************************************************************- |
| 5041 | ******************************************************************************- |
| 5042 | ************************ |
| 5043 | ******************************************************************************- |
| 5044 | ******************************************************************************- |
| 5045 | ************************ |
| 5046 | ******************************************************************************- |
| 5047 | ******************************************************************************- |
| 5048 | ************************ |
| 5049 | ******************************************************************************- |
| 5050 | ******************************************************************************- |
| 5051 | ************************ |
| 5052 | ******************************************************************************- |
| 5053 | ******************************************************************************- |
| 5054 | ************************ |
| 5055 | ******************************************************************************- |
| 5056 | ******************************************************************************- |
| 5057 | ************************ |
| 5058 | ******************************************************************************- |
| 5059 | ******************************************************************************- |
| 5060 | ************************ |
| 5061 | ******************************************************************************- |
| 5062 | ******************************************************************************- |
| 5063 | ************************ |
| 5064 | ******************************************************************************- |
| 5065 | ******************************************************************************- |
| 5066 | ************************ |
| 5067 | ******************************************************************************- |
| 5068 | ******************************************************************************- |
| 5069 | ************************ |
| 5070 | ******************************************************************************- |
| 5071 | ******************************************************************************- |
| 5072 | ************************ |
| 5073 | ******************************************************************************- |
| 5074 | ******************************************************************************- |
| 5075 | ************************ |
| 5076 | ******************************************************************************- |
| 5077 | ******************************************************************************- |
| 5078 | ************************ |
| 5079 | ******************************************************************************- |
| 5080 | ******************************************************************************- |
| 5081 | ************************ |
| 5082 | ******************************************************************************- |
| 5083 | ******************************************************************************- |
| 5084 | ************************ |
| 5085 | ******************************************************************************- |
| 5086 | ******************************************************************************- |
| 5087 | ************************ |
| 5088 | ******************************************************************************- |
| 5089 | ******************************************************************************- |
| 5090 | ************************ |
| 5091 | ******************************************************************************- |
| 5092 | ******************************************************************************- |
| 5093 | ************************ |
| 5094 | ******************************************************************************- |
| 5095 | ******************************************************************************- |
| 5096 | ************************ |
| 5097 | ******************************************************************************- |
| 5098 | ******************************************************************************- |
| 5099 | ************************ |
| 5100 | ******************************************************************************- |
| 5101 | ******************************************************************************- |
| 5102 | ************************ |
| 5103 | ******************************************************************************- |
| 5104 | ******************************************************************************- |
| 5105 | ************************ |
| 5106 | ******************************************************************************- |
| 5107 | ******************************************************************************- |
| 5108 | ************************ |
| 5109 | ******************************************************************************- |
| 5110 | ******************************************************************************- |
| 5111 | ************************ |
| 5112 | ******************************************************************************- |
| 5113 | ******************************************************************************- |
| 5114 | ************************ |
| 5115 | ******************************************************************************- |
| 5116 | ******************************************************************************- |
| 5117 | ************************ |
| 5118 | ******************************************************************************- |
| 5119 | ******************************************************************************- |
| 5120 | ************************ |
| 5121 | ******************************************************************************- |
| 5122 | ******************************************************************************- |
| 5123 | ************************ |
| 5124 | ******************************************************************************- |
| 5125 | ******************************************************************************- |
| 5126 | ************************ |
| 5127 | ******************************************************************************- |
| 5128 | ******************************************************************************- |
| 5129 | ************************ |
| 5130 | ******************************************************************************- |
| 5131 | ******************************************************************************- |
| 5132 | ************************ |
| 5133 | ******************************************************************************- |
| 5134 | ******************************************************************************- |
| 5135 | ************************ |
| 5136 | ******************************************************************************- |
| 5137 | ******************************************************************************- |
| 5138 | ************************ |
| 5139 | ******************************************************************************- |
| 5140 | ******************************************************************************- |
| 5141 | ************************ |
| 5142 | ******************************************************************************- |
| 5143 | ******************************************************************************- |
| 5144 | ************************ |
| 5145 | ******************************************************************************- |
| 5146 | ******************************************************************************- |
| 5147 | ************************ |
| 5148 | ******************************************************************************- |
| 5149 | ******************************************************************************- |
| 5150 | ************************ |
| 5151 | ******************************************************************************- |
| 5152 | ******************************************************************************- |
| 5153 | ************************ |
| 5154 | ******************************************************************************- |
| 5155 | ******************************************************************************- |
| 5156 | ************************ |
| 5157 | ******************************************************************************- |
| 5158 | ******************************************************************************- |
| 5159 | ************************ |
| 5160 | ******************************************************************************- |
| 5161 | ******************************************************************************- |
| 5162 | ************************ |
| 5163 | ******************************************************************************- |
| 5164 | ******************************************************************************- |
| 5165 | ************************ |
| 5166 | ******************************************************************************- |
| 5167 | ******************************************************************************- |
| 5168 | ************************ |
| 5169 | ******************************************************************************- |
| 5170 | ******************************************************************************- |
| 5171 | ************************ |
| 5172 | ******************************************************************************- |
| 5173 | ******************************************************************************- |
| 5174 | ************************ |
| 5175 | ******************************************************************************- |
| 5176 | ******************************************************************************- |
| 5177 | ************************ |
| 5178 | ******************************************************************************- |
| 5179 | ******************************************************************************- |
| 5180 | ************************ |
| 5181 | ******************************************************************************- |
| 5182 | ******************************************************************************- |
| 5183 | ************************ |
| 5184 | ******************************************************************************- |
| 5185 | ******************************************************************************- |
| 5186 | ************************ |
| 5187 | ******************************************************************************- |
| 5188 | ******************************************************************************- |
| 5189 | ************************ |
| 5190 | ******************************************************************************- |
| 5191 | ******************************************************************************- |
| 5192 | ************************ |
| 5193 | ******************************************************************************- |
| 5194 | ******************************************************************************- |
| 5195 | ************************ |
| 5196 | ******************************************************************************- |
| 5197 | ******************************************************************************- |
| 5198 | ************************ |
| 5199 | ******************************************************************************- |
| 5200 | ******************************************************************************- |
| 5201 | ************************ |
| 5202 | ******************************************************************************- |
| 5203 | ******************************************************************************- |
| 5204 | ************************ |
| 5205 | ******************************************************************************- |
| 5206 | ******************************************************************************- |
| 5207 | ************************ |
| 5208 | ******************************************************************************- |
| 5209 | ******************************************************************************- |
| 5210 | ************************ |
| 5211 | ******************************************************************************- |
| 5212 | ******************************************************************************- |
| 5213 | ************************ |
| 5214 | ******************************************************************************- |
| 5215 | ******************************************************************************- |
| 5216 | ************************ |
| 5217 | ******************************************************************************- |
| 5218 | ******************************************************************************- |
| 5219 | ************************ |
| 5220 | ******************************************************************************- |
| 5221 | ******************************************************************************- |
| 5222 | ************************ |
| 5223 | ******************************************************************************- |
| 5224 | ******************************************************************************- |
| 5225 | ************************ |
| 5226 | ******************************************************************************- |
| 5227 | ******************************************************************************- |
| 5228 | ************************ |
| 5229 | ******************************************************************************- |
| 5230 | ******************************************************************************- |
| 5231 | ************************ |
| 5232 | ******************************************************************************- |
| 5233 | ******************************************************************************- |
| 5234 | ************************ |
| 5235 | ******************************************************************************- |
| 5236 | ******************************************************************************- |
| 5237 | ************************ |
| 5238 | ******************************************************************************- |
| 5239 | ******************************************************************************- |
| 5240 | ************************ |
| 5241 | ******************************************************************************- |
| 5242 | ******************************************************************************- |
| 5243 | ************************ |
| 5244 | ******************************************************************************- |
| 5245 | ******************************************************************************- |
| 5246 | ************************ |
| 5247 | ******************************************************************************- |
| 5248 | ******************************************************************************- |
| 5249 | ************************ |
| 5250 | ******************************************************************************- |
| 5251 | ******************************************************************************- |
| 5252 | ************************ |
| 5253 | ******************************************************************************- |
| 5254 | ******************************************************************************- |
| 5255 | ************************ |
| 5256 | ******************************************************************************- |
| 5257 | ******************************************************************************- |
| 5258 | ************************ |
| 5259 | ******************************************************************************- |
| 5260 | ******************************************************************************- |
| 5261 | ************************ |
| 5262 | ******************************************************************************- |
| 5263 | ******************************************************************************- |
| 5264 | ************************ |
| 5265 | ******************************************************************************- |
| 5266 | ******************************************************************************- |
| 5267 | ************************ |
| 5268 | ******************************************************************************- |
| 5269 | ******************************************************************************- |
| 5270 | ************************ |
| 5271 | ******************************************************************************- |
| 5272 | ******************************************************************************- |
| 5273 | ************************ |
| 5274 | ******************************************************************************- |
| 5275 | ******************************************************************************- |
| 5276 | ************************ |
| 5277 | ******************************************************************************- |
| 5278 | ******************************************************************************- |
| 5279 | ************************ |
| 5280 | ******************************************************************************- |
| 5281 | ******************************************************************************- |
| 5282 | ************************ |
| 5283 | ******************************************************************************- |
| 5284 | ******************************************************************************- |
| 5285 | ************************ |
| 5286 | ******************************************************************************- |
| 5287 | ******************************************************************************- |
| 5288 | ************************ |
| 5289 | ******************************************************************************- |
| 5290 | ******************************************************************************- |
| 5291 | ************************ |
| 5292 | ******************************************************************************- |
| 5293 | ******************************************************************************- |
| 5294 | ************************ |
| 5295 | ******************************************************************************- |
| 5296 | ******************************************************************************- |
| 5297 | ************************ |
| 5298 | ******************************************************************************- |
| 5299 | ******************************************************************************- |
| 5300 | ************************ |
| 5301 | ******************************************************************************- |
| 5302 | ******************************************************************************- |
| 5303 | ************************ |
| 5304 | ******************************************************************************- |
| 5305 | ******************************************************************************- |
| 5306 | ************************ |
| 5307 | ******************************************************************************- |
| 5308 | ******************************************************************************- |
| 5309 | ************************ |
| 5310 | ******************************************************************************- |
| 5311 | ******************************************************************************- |
| 5312 | ************************ |
| 5313 | ******************************************************************************- |
| 5314 | ******************************************************************************- |
| 5315 | ************************ |
| 5316 | ******************************************************************************- |
| 5317 | ******************************************************************************- |
| 5318 | ************************ |
| 5319 | ******************************************************************************- |
| 5320 | ******************************************************************************- |
| 5321 | ************************ |
| 5322 | ******************************************************************************- |
| 5323 | ******************************************************************************- |
| 5324 | ************************ |
| 5325 | ******************************************************************************- |
| 5326 | ******************************************************************************- |
| 5327 | ************************ |
| 5328 | ******************************************************************************- |
| 5329 | ******************************************************************************- |
| 5330 | ************************ |
| 5331 | ******************************************************************************- |
| 5332 | ******************************************************************************- |
| 5333 | ************************ |
| 5334 | ******************************************************************************- |
| 5335 | ******************************************************************************- |
| 5336 | ************************ |
| 5337 | ******************************************************************************- |
| 5338 | ******************************************************************************- |
| 5339 | ************************ |
| 5340 | ******************************************************************************- |
| 5341 | ******************************************************************************- |
| 5342 | ************************ |
| 5343 | ******************************************************************************- |
| 5344 | ******************************************************************************- |
| 5345 | ************************ |
| 5346 | ******************************************************************************- |
| 5347 | ******************************************************************************- |
| 5348 | ************************ |
| 5349 | ******************************************************************************- |
| 5350 | ******************************************************************************- |
| 5351 | ************************ |
| 5352 | ******************************************************************************- |
| 5353 | ******************************************************************************- |
| 5354 | ************************ |
| 5355 | ******************************************************************************- |
| 5356 | ******************************************************************************- |
| 5357 | ************************ |
| 5358 | ******************************************************************************- |
| 5359 | ******************************************************************************- |
| 5360 | ************************ |
| 5361 | ******************************************************************************- |
| 5362 | ******************************************************************************- |
| 5363 | ************************ |
| 5364 | ******************************************************************************- |
| 5365 | ******************************************************************************- |
| 5366 | ************************ |
| 5367 | ******************************************************************************- |
| 5368 | ******************************************************************************- |
| 5369 | ************************ |
| 5370 | ******************************************************************************- |
| 5371 | ******************************************************************************- |
| 5372 | ************************ |
| 5373 | ******************************************************************************- |
| 5374 | ******************************************************************************- |
| 5375 | ************************ |
| 5376 | ******************************************************************************- |
| 5377 | ******************************************************************************- |
| 5378 | ************************ |
| 5379 | ******************************************************************************- |
| 5380 | ******************************************************************************- |
| 5381 | ************************ |
| 5382 | ******************************************************************************- |
| 5383 | ******************************************************************************- |
| 5384 | ************************ |
| 5385 | ******************************************************************************- |
| 5386 | ******************************************************************************- |
| 5387 | ************************ |
| 5388 | ******************************************************************************- |
| 5389 | ******************************************************************************- |
| 5390 | ************************ |
| 5391 | ******************************************************************************- |
| 5392 | ******************************************************************************- |
| 5393 | ************************ |
| 5394 | ******************************************************************************- |
| 5395 | ******************************************************************************- |
| 5396 | ************************ |
| 5397 | ******************************************************************************- |
| 5398 | ******************************************************************************- |
| 5399 | ************************ |
| 5400 | ******************************************************************************- |
| 5401 | ******************************************************************************- |
| 5402 | ************************ |
| 5403 | ******************************************************************************- |
| 5404 | ******************************************************************************- |
| 5405 | ************************ |
| 5406 | ******************************************************************************- |
| 5407 | ******************************************************************************- |
| 5408 | ************************ |
| 5409 | ******************************************************************************- |
| 5410 | ******************************************************************************- |
| 5411 | ************************ |
| 5412 | ******************************************************************************- |
| 5413 | ******************************************************************************- |
| 5414 | ************************ |
| 5415 | ******************************************************************************- |
| 5416 | ******************************************************************************- |
| 5417 | ************************ |
| 5418 | ******************************************************************************- |
| 5419 | ******************************************************************************- |
| 5420 | ************************ |
| 5421 | ******************************************************************************- |
| 5422 | ******************************************************************************- |
| 5423 | ************************ |
| 5424 | ******************************************************************************- |
| 5425 | ******************************************************************************- |
| 5426 | ************************ |
| 5427 | ******************************************************************************- |
| 5428 | ******************************************************************************- |
| 5429 | ************************ |
| 5430 | ******************************************************************************- |
| 5431 | ******************************************************************************- |
| 5432 | ************************ |
| 5433 | ******************************************************************************- |
| 5434 | ******************************************************************************- |
| 5435 | ************************ |
| 5436 | ******************************************************************************- |
| 5437 | ******************************************************************************- |
| 5438 | ************************ |
| 5439 | ******************************************************************************- |
| 5440 | ******************************************************************************- |
| 5441 | ************************ |
| 5442 | ******************************************************************************- |
| 5443 | ******************************************************************************- |
| 5444 | ************************ |
| 5445 | ******************************************************************************- |
| 5446 | ******************************************************************************- |
| 5447 | ************************ |
| 5448 | ******************************************************************************- |
| 5449 | ******************************************************************************- |
| 5450 | ************************ |
| 5451 | ******************************************************************************- |
| 5452 | ******************************************************************************- |
| 5453 | ************************ |
| 5454 | ******************************************************************************- |
| 5455 | ******************************************************************************- |
| 5456 | ************************ |
| 5457 | ******************************************************************************- |
| 5458 | ******************************************************************************- |
| 5459 | ************************ |
| 5460 | ******************************************************************************- |
| 5461 | ******************************************************************************- |
| 5462 | ************************ |
| 5463 | ******************************************************************************- |
| 5464 | ******************************************************************************- |
| 5465 | ************************ |
| 5466 | ******************************************************************************- |
| 5467 | ******************************************************************************- |
| 5468 | ************************ |
| 5469 | ******************************************************************************- |
| 5470 | ******************************************************************************- |
| 5471 | ************************ |
| 5472 | ******************************************************************************- |
| 5473 | ******************************************************************************- |
| 5474 | ************************ |
| 5475 | ******************************************************************************- |
| 5476 | ******************************************************************************- |
| 5477 | ************************ |
| 5478 | ******************************************************************************- |
| 5479 | ******************************************************************************- |
| 5480 | ************************ |
| 5481 | ******************************************************************************- |
| 5482 | ******************************************************************************- |
| 5483 | ************************ |
| 5484 | ******************************************************************************- |
| 5485 | ******************************************************************************- |
| 5486 | ************************ |
| 5487 | ******************************************************************************- |
| 5488 | ******************************************************************************- |
| 5489 | ************************ |
| 5490 | ******************************************************************************- |
| 5491 | ******************************************************************************- |
| 5492 | ************************ |
| 5493 | ******************************************************************************- |
| 5494 | ******************************************************************************- |
| 5495 | ************************ |
| 5496 | ******************************************************************************- |
| 5497 | ******************************************************************************- |
| 5498 | ************************ |
| 5499 | ******************************************************************************- |
| 5500 | ******************************************************************************- |
| 5501 | ************************ |
| 5502 | ******************************************************************************- |
| 5503 | ******************************************************************************- |
| 5504 | ************************ |
| 5505 | ******************************************************************************- |
| 5506 | ******************************************************************************- |
| 5507 | ************************ |
| 5508 | ******************************************************************************- |
| 5509 | ******************************************************************************- |
| 5510 | ************************ |
| 5511 | ******************************************************************************- |
| 5512 | ******************************************************************************- |
| 5513 | ************************ |
| 5514 | ******************************************************************************- |
| 5515 | ******************************************************************************- |
| 5516 | ************************ |
| 5517 | ******************************************************************************- |
| 5518 | ******************************************************************************- |
| 5519 | ************************ |
| 5520 | ******************************************************************************- |
| 5521 | ******************************************************************************- |
| 5522 | ************************ |
| 5523 | ******************************************************************************- |
| 5524 | ******************************************************************************- |
| 5525 | ************************ |
| 5526 | ******************************************************************************- |
| 5527 | ******************************************************************************- |
| 5528 | ************************ |
| 5529 | ******************************************************************************- |
| 5530 | ******************************************************************************- |
| 5531 | ************************ |
| 5532 | ******************************************************************************- |
| 5533 | ******************************************************************************- |
| 5534 | ************************ |
| 5535 | ******************************************************************************- |
| 5536 | ******************************************************************************- |
| 5537 | ************************ |
| 5538 | ******************************************************************************- |
| 5539 | ******************************************************************************- |
| 5540 | ************************ |
| 5541 | ******************************************************************************- |
| 5542 | ******************************************************************************- |
| 5543 | ************************ |
| 5544 | ******************************************************************************- |
| 5545 | ******************************************************************************- |
| 5546 | ************************ |
| 5547 | ******************************************************************************- |
| 5548 | ******************************************************************************- |
| 5549 | ************************ |
| 5550 | ******************************************************************************- |
| 5551 | ******************************************************************************- |
| 5552 | ************************ |
| 5553 | ******************************************************************************- |
| 5554 | ******************************************************************************- |
| 5555 | ************************ |
| 5556 | ******************************************************************************- |
| 5557 | ******************************************************************************- |
| 5558 | ************************ |
| 5559 | ******************************************************************************- |
| 5560 | ******************************************************************************- |
| 5561 | ************************ |
| 5562 | ******************************************************************************- |
| 5563 | ******************************************************************************- |
| 5564 | ************************ |
| 5565 | ******************************************************************************- |
| 5566 | ******************************************************************************- |
| 5567 | ************************ |
| 5568 | ******************************************************************************- |
| 5569 | ******************************************************************************- |
| 5570 | ************************ |
| 5571 | ******************************************************************************- |
| 5572 | ******************************************************************************- |
| 5573 | ************************ |
| 5574 | ******************************************************************************- |
| 5575 | ******************************************************************************- |
| 5576 | ************************ |
| 5577 | ******************************************************************************- |
| 5578 | ******************************************************************************- |
| 5579 | ************************ |
| 5580 | ******************************************************************************- |
| 5581 | ******************************************************************************- |
| 5582 | ************************ |
| 5583 | ******************************************************************************- |
| 5584 | ******************************************************************************- |
| 5585 | ************************ |
| 5586 | ******************************************************************************- |
| 5587 | ******************************************************************************- |
| 5588 | ************************ |
| 5589 | ******************************************************************************- |
| 5590 | ******************************************************************************- |
| 5591 | ************************ |
| 5592 | ******************************************************************************- |
| 5593 | ******************************************************************************- |
| 5594 | ************************ |
| 5595 | ******************************************************************************- |
| 5596 | ******************************************************************************- |
| 5597 | ************************ |
| 5598 | ******************************************************************************- |
| 5599 | ******************************************************************************- |
| 5600 | ************************ |
| 5601 | ******************************************************************************- |
| 5602 | ******************************************************************************- |
| 5603 | ************************ |
| 5604 | ******************************************************************************- |
| 5605 | ******************************************************************************- |
| 5606 | ************************ |
| 5607 | ******************************************************************************- |
| 5608 | ******************************************************************************- |
| 5609 | ************************ |
| 5610 | ******************************************************************************- |
| 5611 | ******************************************************************************- |
| 5612 | ************************ |
| 5613 | ******************************************************************************- |
| 5614 | ******************************************************************************- |
| 5615 | ************************ |
| 5616 | ******************************************************************************- |
| 5617 | ******************************************************************************- |
| 5618 | ************************ |
| 5619 | ******************************************************************************- |
| 5620 | ******************************************************************************- |
| 5621 | ************************ |
| 5622 | ******************************************************************************- |
| 5623 | ******************************************************************************- |
| 5624 | ************************ |
| 5625 | ******************************************************************************- |
| 5626 | ******************************************************************************- |
| 5627 | ************************ |
| 5628 | ******************************************************************************- |
| 5629 | ******************************************************************************- |
| 5630 | ************************ |
| 5631 | ******************************************************************************- |
| 5632 | ******************************************************************************- |
| 5633 | ************************ |
| 5634 | ******************************************************************************- |
| 5635 | ******************************************************************************- |
| 5636 | ************************ |
| 5637 | ******************************************************************************- |
| 5638 | ******************************************************************************- |
| 5639 | ************************ |
| 5640 | ******************************************************************************- |
| 5641 | ******************************************************************************- |
| 5642 | ************************ |
| 5643 | ******************************************************************************- |
| 5644 | ******************************************************************************- |
| 5645 | ************************ |
| 5646 | ******************************************************************************- |
| 5647 | ******************************************************************************- |
| 5648 | ************************ |
| 5649 | ******************************************************************************- |
| 5650 | ******************************************************************************- |
| 5651 | ************************ |
| 5652 | ******************************************************************************- |
| 5653 | ******************************************************************************- |
| 5654 | ************************ |
| 5655 | ******************************************************************************- |
| 5656 | ******************************************************************************- |
| 5657 | ************************ |
| 5658 | ******************************************************************************- |
| 5659 | ******************************************************************************- |
| 5660 | ************************ |
| 5661 | ******************************************************************************- |
| 5662 | ******************************************************************************- |
| 5663 | ************************ |
| 5664 | ******************************************************************************- |
| 5665 | ******************************************************************************- |
| 5666 | ************************ |
| 5667 | ******************************************************************************- |
| 5668 | ******************************************************************************- |
| 5669 | ************************ |
| 5670 | ******************************************************************************- |
| 5671 | ******************************************************************************- |
| 5672 | ************************ |
| 5673 | ******************************************************************************- |
| 5674 | ******************************************************************************- |
| 5675 | ************************ |
| 5676 | ******************************************************************************- |
| 5677 | ******************************************************************************- |
| 5678 | ************************ |
| 5679 | ******************************************************************************- |
| 5680 | ******************************************************************************- |
| 5681 | ************************ |
| 5682 | ******************************************************************************- |
| 5683 | ******************************************************************************- |
| 5684 | ************************ |
| 5685 | ******************************************************************************- |
| 5686 | ******************************************************************************- |
| 5687 | ************************ |
| 5688 | ******************************************************************************- |
| 5689 | ******************************************************************************- |
| 5690 | ************************ |
| 5691 | ******************************************************************************- |
| 5692 | ******************************************************************************- |
| 5693 | ************************ |
| 5694 | ******************************************************************************- |
| 5695 | ******************************************************************************- |
| 5696 | ************************ |
| 5697 | ******************************************************************************- |
| 5698 | ******************************************************************************- |
| 5699 | ************************ |
| 5700 | ******************************************************************************- |
| 5701 | ******************************************************************************- |
| 5702 | ************************ |
| 5703 | ******************************************************************************- |
| 5704 | ******************************************************************************- |
| 5705 | ************************ |
| 5706 | ******************************************************************************- |
| 5707 | ******************************************************************************- |
| 5708 | ************************ |
| 5709 | ******************************************************************************- |
| 5710 | ******************************************************************************- |
| 5711 | ************************ |
| 5712 | ******************************************************************************- |
| 5713 | ******************************************************************************- |
| 5714 | ************************ |
| 5715 | ******************************************************************************- |
| 5716 | ******************************************************************************- |
| 5717 | ************************ |
| 5718 | ******************************************************************************- |
| 5719 | ******************************************************************************- |
| 5720 | ************************ |
| 5721 | ******************************************************************************- |
| 5722 | ******************************************************************************- |
| 5723 | ************************ |
| 5724 | ******************************************************************************- |
| 5725 | ******************************************************************************- |
| 5726 | ************************ |
| 5727 | ******************************************************************************- |
| 5728 | ******************************************************************************- |
| 5729 | ************************ |
| 5730 | ******************************************************************************- |
| 5731 | ******************************************************************************- |
| 5732 | ************************ |
| 5733 | ******************************************************************************- |
| 5734 | ******************************************************************************- |
| 5735 | ************************ |
| 5736 | ******************************************************************************- |
| 5737 | ******************************************************************************- |
| 5738 | ************************ |
| 5739 | ******************************************************************************- |
| 5740 | ******************************************************************************- |
| 5741 | ************************ |
| 5742 | ******************************************************************************- |
| 5743 | ******************************************************************************- |
| 5744 | ************************ |
| 5745 | ******************************************************************************- |
| 5746 | ******************************************************************************- |
| 5747 | ************************ |
| 5748 | ******************************************************************************- |
| 5749 | ******************************************************************************- |
| 5750 | ************************ |
| 5751 | ******************************************************************************- |
| 5752 | ******************************************************************************- |
| 5753 | ************************ |
| 5754 | ******************************************************************************- |
| 5755 | ******************************************************************************- |
| 5756 | ************************ |
| 5757 | ******************************************************************************- |
| 5758 | ******************************************************************************- |
| 5759 | ************************ |
| 5760 | ******************************************************************************- |
| 5761 | ******************************************************************************- |
| 5762 | ************************ |
| 5763 | ******************************************************************************- |
| 5764 | ******************************************************************************- |
| 5765 | ************************ |
| 5766 | ******************************************************************************- |
| 5767 | ******************************************************************************- |
| 5768 | ************************ |
| 5769 | ******************************************************************************- |
| 5770 | ******************************************************************************- |
| 5771 | ************************ |
| 5772 | ******************************************************************************- |
| 5773 | ******************************************************************************- |
| 5774 | ************************ |
| 5775 | ******************************************************************************- |
| 5776 | ******************************************************************************- |
| 5777 | ************************ |
| 5778 | ******************************************************************************- |
| 5779 | ******************************************************************************- |
| 5780 | ************************ |
| 5781 | ******************************************************************************- |
| 5782 | ******************************************************************************- |
| 5783 | ************************ |
| 5784 | ******************************************************************************- |
| 5785 | ******************************************************************************- |
| 5786 | ************************ |
| 5787 | ******************************************************************************- |
| 5788 | ******************************************************************************- |
| 5789 | ************************ |
| 5790 | ******************************************************************************- |
| 5791 | ******************************************************************************- |
| 5792 | ************************ |
| 5793 | ******************************************************************************- |
| 5794 | ******************************************************************************- |
| 5795 | ************************ |
| 5796 | ******************************************************************************- |
| 5797 | ******************************************************************************- |
| 5798 | ************************ |
| 5799 | ******************************************************************************- |
| 5800 | ******************************************************************************- |
| 5801 | ************************ |
| 5802 | ******************************************************************************- |
| 5803 | ******************************************************************************- |
| 5804 | ************************ |
| 5805 | ******************************************************************************- |
| 5806 | ******************************************************************************- |
| 5807 | ************************ |
| 5808 | ******************************************************************************- |
| 5809 | ******************************************************************************- |
| 5810 | ************************ |
| 5811 | ******************************************************************************- |
| 5812 | ******************************************************************************- |
| 5813 | ************************ |
| 5814 | ******************************************************************************- |
| 5815 | ******************************************************************************- |
| 5816 | ************************ |
| 5817 | ******************************************************************************- |
| 5818 | ******************************************************************************- |
| 5819 | ************************ |
| 5820 | ******************************************************************************- |
| 5821 | ******************************************************************************- |
| 5822 | ************************ |
| 5823 | ******************************************************************************- |
| 5824 | ******************************************************************************- |
| 5825 | ************************ |
| 5826 | ******************************************************************************- |
| 5827 | ******************************************************************************- |
| 5828 | ************************ |
| 5829 | ******************************************************************************- |
| 5830 | ******************************************************************************- |
| 5831 | ************************ |
| 5832 | ******************************************************************************- |
| 5833 | ******************************************************************************- |
| 5834 | ************************ |
| 5835 | ******************************************************************************- |
| 5836 | ******************************************************************************- |
| 5837 | ************************ |
| 5838 | ******************************************************************************- |
| 5839 | ******************************************************************************- |
| 5840 | ************************ |
| 5841 | ******************************************************************************- |
| 5842 | ******************************************************************************- |
| 5843 | ************************ |
| 5844 | ******************************************************************************- |
| 5845 | ******************************************************************************- |
| 5846 | ************************ |
| 5847 | ******************************************************************************- |
| 5848 | ******************************************************************************- |
| 5849 | ************************ |
| 5850 | ******************************************************************************- |
| 5851 | ******************************************************************************- |
| 5852 | ************************ |
| 5853 | ******************************************************************************- |
| 5854 | ******************************************************************************- |
| 5855 | ************************ |
| 5856 | ******************************************************************************- |
| 5857 | ******************************************************************************- |
| 5858 | ************************ |
| 5859 | ******************************************************************************- |
| 5860 | ******************************************************************************- |
| 5861 | ************************ |
| 5862 | ******************************************************************************- |
| 5863 | ******************************************************************************- |
| 5864 | ************************ |
| 5865 | ******************************************************************************- |
| 5866 | ******************************************************************************- |
| 5867 | ************************ |
| 5868 | ******************************************************************************- |
| 5869 | ******************************************************************************- |
| 5870 | ************************ |
| 5871 | ******************************************************************************- |
| 5872 | ******************************************************************************- |
| 5873 | ************************ |
| 5874 | ******************************************************************************- |
| 5875 | ******************************************************************************- |
| 5876 | ************************ |
| 5877 | ******************************************************************************- |
| 5878 | ******************************************************************************- |
| 5879 | ************************ |
| 5880 | ******************************************************************************- |
| 5881 | ******************************************************************************- |
| 5882 | ************************ |
| 5883 | ******************************************************************************- |
| 5884 | ******************************************************************************- |
| 5885 | ************************ |
| 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 | ... message truncated due to excessive size" ends with: "... message truncated due to excessive size" |
| 5951 | </Expanded> |
| 5952 | </Expression> |
| 5953 | <OverallResult success="true"/> |
| 5954 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 5955 | <TestCase name="Parsing a std::pair"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5956 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5957 | <Original> |
| 5958 | (std::pair<int, int>( 1, 2 )) == aNicePair |
| 5959 | </Original> |
| 5960 | <Expanded> |
| 5961 | std::pair( 1, 2 ) == std::pair( 1, 2 ) |
| 5962 | </Expanded> |
| 5963 | </Expression> |
| 5964 | <OverallResult success="true"/> |
| 5965 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 5966 | <TestCase name="Where there is more to the expression after the RHS"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5967 | <Warning> |
| 5968 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 5969 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5970 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5971 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 5972 | <TestCase name="Where the LHS is not a simple value"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5973 | <Warning> |
| 5974 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 5975 | </Warning> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5976 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5977 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5978 | <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] | 5979 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5980 | <Original> |
| 5981 | &o1 == &o2 |
| 5982 | </Original> |
| 5983 | <Expanded> |
| 5984 | 0x<hex digits> == 0x<hex digits> |
| 5985 | </Expanded> |
| 5986 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5987 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5988 | <Original> |
| 5989 | o1 == o2 |
| 5990 | </Original> |
| 5991 | <Expanded> |
| 5992 | {?} == {?} |
| 5993 | </Expanded> |
| 5994 | </Expression> |
| 5995 | <OverallResult success="false"/> |
| 5996 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5997 | <TestCase name="string literals of different sizes can be compared"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5998 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5999 | <Original> |
| 6000 | std::string( "first" ) == "second" |
| 6001 | </Original> |
| 6002 | <Expanded> |
| 6003 | "first" == "second" |
| 6004 | </Expanded> |
| 6005 | </Expression> |
| 6006 | <OverallResult success="false"/> |
| 6007 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6008 | <TestCase name="An expression with side-effects should only be evaluated once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6009 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6010 | <Original> |
| 6011 | i++ == 7 |
| 6012 | </Original> |
| 6013 | <Expanded> |
| 6014 | 7 == 7 |
| 6015 | </Expanded> |
| 6016 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6017 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6018 | <Original> |
| 6019 | i++ == 8 |
| 6020 | </Original> |
| 6021 | <Expanded> |
| 6022 | 8 == 8 |
| 6023 | </Expanded> |
| 6024 | </Expression> |
| 6025 | <OverallResult success="true"/> |
| 6026 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6027 | <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6028 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6029 | <Original> |
| 6030 | 0x<hex digits> == o |
| 6031 | </Original> |
| 6032 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6033 | 3221225472 (0x<hex digits>) == {?} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6034 | </Expanded> |
| 6035 | </Expression> |
| 6036 | <OverallResult success="true"/> |
| 6037 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6038 | <TestCase name="Demonstrate that a non-const == is not used"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6039 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6040 | <Original> |
| 6041 | t == 1u |
| 6042 | </Original> |
| 6043 | <Expanded> |
| 6044 | {?} == 1 |
| 6045 | </Expanded> |
| 6046 | </Expression> |
| 6047 | <OverallResult success="true"/> |
| 6048 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6049 | <TestCase name="Test enum bit values"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6050 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6051 | <Original> |
| 6052 | 0x<hex digits> == bit30and31 |
| 6053 | </Original> |
| 6054 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6055 | 3221225472 (0x<hex digits>) == 3221225472 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6056 | </Expanded> |
| 6057 | </Expression> |
| 6058 | <OverallResult success="true"/> |
| 6059 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6060 | <TestCase name="boolean member"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6061 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6062 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6063 | obj.prop != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6064 | </Original> |
| 6065 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6066 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6067 | </Expanded> |
| 6068 | </Expression> |
| 6069 | <OverallResult success="true"/> |
| 6070 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6071 | <TestCase name="(unimplemented) static bools can be evaluated"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6072 | <Section name="compare to true"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6073 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6074 | <Original> |
| 6075 | is_true<true>::value == true |
| 6076 | </Original> |
| 6077 | <Expanded> |
| 6078 | true == true |
| 6079 | </Expanded> |
| 6080 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6081 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6082 | <Original> |
| 6083 | true == is_true<true>::value |
| 6084 | </Original> |
| 6085 | <Expanded> |
| 6086 | true == true |
| 6087 | </Expanded> |
| 6088 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6089 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6090 | </Section> |
| 6091 | <Section name="compare to false"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6092 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6093 | <Original> |
| 6094 | is_true<false>::value == false |
| 6095 | </Original> |
| 6096 | <Expanded> |
| 6097 | false == false |
| 6098 | </Expanded> |
| 6099 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6100 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6101 | <Original> |
| 6102 | false == is_true<false>::value |
| 6103 | </Original> |
| 6104 | <Expanded> |
| 6105 | false == false |
| 6106 | </Expanded> |
| 6107 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6108 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6109 | </Section> |
| 6110 | <Section name="negation"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6111 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6112 | <Original> |
| 6113 | !is_true<false>::value |
| 6114 | </Original> |
| 6115 | <Expanded> |
| 6116 | true |
| 6117 | </Expanded> |
| 6118 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6119 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6120 | </Section> |
| 6121 | <Section name="double negation"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6122 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6123 | <Original> |
| 6124 | !!is_true<true>::value |
| 6125 | </Original> |
| 6126 | <Expanded> |
| 6127 | true |
| 6128 | </Expanded> |
| 6129 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6130 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6131 | </Section> |
| 6132 | <Section name="direct"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6133 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6134 | <Original> |
| 6135 | is_true<true>::value |
| 6136 | </Original> |
| 6137 | <Expanded> |
| 6138 | true |
| 6139 | </Expanded> |
| 6140 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6141 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6142 | <Original> |
| 6143 | !is_true<false>::value |
| 6144 | </Original> |
| 6145 | <Expanded> |
| 6146 | !false |
| 6147 | </Expanded> |
| 6148 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6149 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6150 | </Section> |
| 6151 | <OverallResult success="true"/> |
| 6152 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6153 | <TestCase name="Objects that evaluated in boolean contexts can be checked"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6154 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6155 | <Original> |
| 6156 | True |
| 6157 | </Original> |
| 6158 | <Expanded> |
| 6159 | true |
| 6160 | </Expanded> |
| 6161 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6162 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6163 | <Original> |
| 6164 | !False |
| 6165 | </Original> |
| 6166 | <Expanded> |
| 6167 | true |
| 6168 | </Expanded> |
| 6169 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6170 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6171 | <Original> |
| 6172 | !False |
| 6173 | </Original> |
| 6174 | <Expanded> |
| 6175 | !false |
| 6176 | </Expanded> |
| 6177 | </Expression> |
| 6178 | <OverallResult success="true"/> |
| 6179 | </TestCase> |
| 6180 | <TestCase name="Assertions then sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6181 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6182 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6183 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6184 | </Original> |
| 6185 | <Expanded> |
| 6186 | true |
| 6187 | </Expanded> |
| 6188 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6189 | <Section name="A section"> |
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> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6192 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6193 | </Original> |
| 6194 | <Expanded> |
| 6195 | true |
| 6196 | </Expanded> |
| 6197 | </Expression> |
| 6198 | <Section name="Another section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6199 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6200 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6201 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6202 | </Original> |
| 6203 | <Expanded> |
| 6204 | true |
| 6205 | </Expanded> |
| 6206 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6207 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6208 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6209 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6210 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6211 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6212 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6213 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6214 | </Original> |
| 6215 | <Expanded> |
| 6216 | true |
| 6217 | </Expanded> |
| 6218 | </Expression> |
| 6219 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6220 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6221 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6222 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6223 | </Original> |
| 6224 | <Expanded> |
| 6225 | true |
| 6226 | </Expanded> |
| 6227 | </Expression> |
| 6228 | <Section name="Another other section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6229 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6230 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6231 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6232 | </Original> |
| 6233 | <Expanded> |
| 6234 | true |
| 6235 | </Expanded> |
| 6236 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6237 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6238 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6239 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6240 | </Section> |
| 6241 | <OverallResult success="true"/> |
| 6242 | </TestCase> |
| 6243 | <TestCase name="non streamable - with conv. op"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6244 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6245 | <Original> |
| 6246 | s == "7" |
| 6247 | </Original> |
| 6248 | <Expanded> |
| 6249 | "7" == "7" |
| 6250 | </Expanded> |
| 6251 | </Expression> |
| 6252 | <OverallResult success="true"/> |
| 6253 | </TestCase> |
| 6254 | <TestCase name="Comparing function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6255 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6256 | <Original> |
| 6257 | a |
| 6258 | </Original> |
| 6259 | <Expanded> |
| 6260 | true |
| 6261 | </Expanded> |
| 6262 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6263 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6264 | <Original> |
| 6265 | a == &foo |
| 6266 | </Original> |
| 6267 | <Expanded> |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6268 | 0x<hex digits> == 0x<hex digits> |
| 6269 | </Expanded> |
| 6270 | </Expression> |
| 6271 | <OverallResult success="true"/> |
| 6272 | </TestCase> |
| 6273 | <TestCase name="Comparing member function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6274 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6275 | <Original> |
| 6276 | m == &S::f |
| 6277 | </Original> |
| 6278 | <Expanded> |
| 6279 | 0x<hex digits> |
| 6280 | == |
| 6281 | 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6282 | </Expanded> |
| 6283 | </Expression> |
| 6284 | <OverallResult success="true"/> |
| 6285 | </TestCase> |
| 6286 | <TestCase name="pointer to class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6287 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6288 | <Original> |
| 6289 | p == 0 |
| 6290 | </Original> |
| 6291 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6292 | NULL == 0 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6293 | </Expanded> |
| 6294 | </Expression> |
| 6295 | <OverallResult success="true"/> |
| 6296 | </TestCase> |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6297 | <TestCase name="null_ptr"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6298 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6299 | <Original> |
| 6300 | ptr.get() == nullptr |
| 6301 | </Original> |
| 6302 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6303 | NULL == nullptr |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6304 | </Expanded> |
| 6305 | </Expression> |
| 6306 | <OverallResult success="true"/> |
| 6307 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6308 | <TestCase name="X/level/0/a"> |
| 6309 | <OverallResult success="true"/> |
| 6310 | </TestCase> |
| 6311 | <TestCase name="X/level/0/b"> |
| 6312 | <OverallResult success="true"/> |
| 6313 | </TestCase> |
| 6314 | <TestCase name="X/level/1/a"> |
| 6315 | <OverallResult success="true"/> |
| 6316 | </TestCase> |
| 6317 | <TestCase name="X/level/1/b"> |
| 6318 | <OverallResult success="true"/> |
| 6319 | </TestCase> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6320 | <TestCase name="toString( has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6321 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6322 | <Original> |
| 6323 | Catch::toString( item ) == "toString( has_toString )" |
| 6324 | </Original> |
| 6325 | <Expanded> |
| 6326 | "toString( has_toString )" |
| 6327 | == |
| 6328 | "toString( has_toString )" |
| 6329 | </Expanded> |
| 6330 | </Expression> |
| 6331 | <OverallResult success="true"/> |
| 6332 | </TestCase> |
| 6333 | <TestCase name="toString( has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6334 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6335 | <Original> |
| 6336 | Catch::toString( item ) == "StringMaker<has_maker>" |
| 6337 | </Original> |
| 6338 | <Expanded> |
| 6339 | "StringMaker<has_maker>" |
| 6340 | == |
| 6341 | "StringMaker<has_maker>" |
| 6342 | </Expanded> |
| 6343 | </Expression> |
| 6344 | <OverallResult success="true"/> |
| 6345 | </TestCase> |
| 6346 | <TestCase name="toString( has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6347 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6348 | <Original> |
| 6349 | Catch::toString( item ) == "toString( has_maker_and_toString )" |
| 6350 | </Original> |
| 6351 | <Expanded> |
| 6352 | "toString( has_maker_and_toString )" |
| 6353 | == |
| 6354 | "toString( has_maker_and_toString )" |
| 6355 | </Expanded> |
| 6356 | </Expression> |
| 6357 | <OverallResult success="true"/> |
| 6358 | </TestCase> |
| 6359 | <TestCase name="toString( vectors<has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6360 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6361 | <Original> |
| 6362 | Catch::toString( v ) == "{ {?} }" |
| 6363 | </Original> |
| 6364 | <Expanded> |
| 6365 | "{ {?} }" == "{ {?} }" |
| 6366 | </Expanded> |
| 6367 | </Expression> |
| 6368 | <OverallResult success="true"/> |
| 6369 | </TestCase> |
| 6370 | <TestCase name="toString( vectors<has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6371 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6372 | <Original> |
| 6373 | Catch::toString( v ) == "{ StringMaker<has_maker> }" |
| 6374 | </Original> |
| 6375 | <Expanded> |
| 6376 | "{ StringMaker<has_maker> }" |
| 6377 | == |
| 6378 | "{ StringMaker<has_maker> }" |
| 6379 | </Expanded> |
| 6380 | </Expression> |
| 6381 | <OverallResult success="true"/> |
| 6382 | </TestCase> |
| 6383 | <TestCase name="toString( vectors<has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6384 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6385 | <Original> |
| 6386 | Catch::toString( v ) == "{ StringMaker<has_maker_and_toString> }" |
| 6387 | </Original> |
| 6388 | <Expanded> |
| 6389 | "{ StringMaker<has_maker_and_toString> }" |
| 6390 | == |
| 6391 | "{ StringMaker<has_maker_and_toString> }" |
| 6392 | </Expanded> |
| 6393 | </Expression> |
| 6394 | <OverallResult success="true"/> |
| 6395 | </TestCase> |
| 6396 | <TestCase name="std::pair<int,std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6397 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6398 | <Original> |
| 6399 | Catch::toString( value ) == "{ 34, \"xyzzy\" }" |
| 6400 | </Original> |
| 6401 | <Expanded> |
| 6402 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 6403 | </Expanded> |
| 6404 | </Expression> |
| 6405 | <OverallResult success="true"/> |
| 6406 | </TestCase> |
| 6407 | <TestCase name="std::pair<int,const std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6408 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6409 | <Original> |
| 6410 | Catch::toString(value) == "{ 34, \"xyzzy\" }" |
| 6411 | </Original> |
| 6412 | <Expanded> |
| 6413 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 6414 | </Expanded> |
| 6415 | </Expression> |
| 6416 | <OverallResult success="true"/> |
| 6417 | </TestCase> |
| 6418 | <TestCase name="std::vector<std::pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6419 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6420 | <Original> |
| 6421 | Catch::toString( pr ) == "{ { \"green\", 55 } }" |
| 6422 | </Original> |
| 6423 | <Expanded> |
| 6424 | "{ { "green", 55 } }" |
| 6425 | == |
| 6426 | "{ { "green", 55 } }" |
| 6427 | </Expanded> |
| 6428 | </Expression> |
| 6429 | <OverallResult success="true"/> |
| 6430 | </TestCase> |
| 6431 | <TestCase name="pair<pair<int,const char *,pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6432 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6433 | <Original> |
| 6434 | Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" |
| 6435 | </Original> |
| 6436 | <Expanded> |
| 6437 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 6438 | == |
| 6439 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 6440 | </Expanded> |
| 6441 | </Expression> |
| 6442 | <OverallResult success="true"/> |
| 6443 | </TestCase> |
| 6444 | <TestCase name="vector<int> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6445 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6446 | <Original> |
| 6447 | Catch::toString(vv) == "{ }" |
| 6448 | </Original> |
| 6449 | <Expanded> |
| 6450 | "{ }" == "{ }" |
| 6451 | </Expanded> |
| 6452 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6453 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6454 | <Original> |
| 6455 | Catch::toString(vv) == "{ 42 }" |
| 6456 | </Original> |
| 6457 | <Expanded> |
| 6458 | "{ 42 }" == "{ 42 }" |
| 6459 | </Expanded> |
| 6460 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6461 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6462 | <Original> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6463 | Catch::toString(vv) == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6464 | </Original> |
| 6465 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6466 | "{ 42, 250 }" == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6467 | </Expanded> |
| 6468 | </Expression> |
| 6469 | <OverallResult success="true"/> |
| 6470 | </TestCase> |
| 6471 | <TestCase name="vector<string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6472 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6473 | <Original> |
| 6474 | Catch::toString(vv) == "{ }" |
| 6475 | </Original> |
| 6476 | <Expanded> |
| 6477 | "{ }" == "{ }" |
| 6478 | </Expanded> |
| 6479 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6480 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6481 | <Original> |
| 6482 | Catch::toString(vv) == "{ \"hello\" }" |
| 6483 | </Original> |
| 6484 | <Expanded> |
| 6485 | "{ "hello" }" == "{ "hello" }" |
| 6486 | </Expanded> |
| 6487 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6488 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6489 | <Original> |
| 6490 | Catch::toString(vv) == "{ \"hello\", \"world\" }" |
| 6491 | </Original> |
| 6492 | <Expanded> |
| 6493 | "{ "hello", "world" }" |
| 6494 | == |
| 6495 | "{ "hello", "world" }" |
| 6496 | </Expanded> |
| 6497 | </Expression> |
| 6498 | <OverallResult success="true"/> |
| 6499 | </TestCase> |
| 6500 | <TestCase name="vector<int,allocator> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6501 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6502 | <Original> |
| 6503 | Catch::toString(vv) == "{ }" |
| 6504 | </Original> |
| 6505 | <Expanded> |
| 6506 | "{ }" == "{ }" |
| 6507 | </Expanded> |
| 6508 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6509 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6510 | <Original> |
| 6511 | Catch::toString(vv) == "{ 42 }" |
| 6512 | </Original> |
| 6513 | <Expanded> |
| 6514 | "{ 42 }" == "{ 42 }" |
| 6515 | </Expanded> |
| 6516 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6517 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6518 | <Original> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6519 | Catch::toString(vv) == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6520 | </Original> |
| 6521 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6522 | "{ 42, 250 }" == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6523 | </Expanded> |
| 6524 | </Expression> |
| 6525 | <OverallResult success="true"/> |
| 6526 | </TestCase> |
| 6527 | <TestCase name="vec<vec<string,alloc>> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6528 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6529 | <Original> |
| 6530 | Catch::toString(v) == "{ }" |
| 6531 | </Original> |
| 6532 | <Expanded> |
| 6533 | "{ }" == "{ }" |
| 6534 | </Expanded> |
| 6535 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6536 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6537 | <Original> |
| 6538 | Catch::toString(v) == "{ { \"hello\" }, { \"world\" } }" |
| 6539 | </Original> |
| 6540 | <Expanded> |
| 6541 | "{ { "hello" }, { "world" } }" |
| 6542 | == |
| 6543 | "{ { "hello" }, { "world" } }" |
| 6544 | </Expanded> |
| 6545 | </Expression> |
| 6546 | <OverallResult success="true"/> |
| 6547 | </TestCase> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6548 | <TestCase name="Parse test names and tags"> |
| 6549 | <Section name="Empty test spec should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6550 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6551 | <Original> |
| 6552 | spec.hasFilters() == false |
| 6553 | </Original> |
| 6554 | <Expanded> |
| 6555 | false == false |
| 6556 | </Expanded> |
| 6557 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6558 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6559 | <Original> |
| 6560 | spec.matches( tcA ) == false |
| 6561 | </Original> |
| 6562 | <Expanded> |
| 6563 | false == false |
| 6564 | </Expanded> |
| 6565 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6566 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6567 | <Original> |
| 6568 | spec.matches( tcB ) == false |
| 6569 | </Original> |
| 6570 | <Expanded> |
| 6571 | false == false |
| 6572 | </Expanded> |
| 6573 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6574 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6575 | </Section> |
| 6576 | <Section name="Test spec from empty string should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6577 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6578 | <Original> |
| 6579 | spec.hasFilters() == false |
| 6580 | </Original> |
| 6581 | <Expanded> |
| 6582 | false == false |
| 6583 | </Expanded> |
| 6584 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6585 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6586 | <Original> |
| 6587 | spec.matches(tcA ) == false |
| 6588 | </Original> |
| 6589 | <Expanded> |
| 6590 | false == false |
| 6591 | </Expanded> |
| 6592 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6593 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6594 | <Original> |
| 6595 | spec.matches( tcB ) == false |
| 6596 | </Original> |
| 6597 | <Expanded> |
| 6598 | false == false |
| 6599 | </Expanded> |
| 6600 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6601 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6602 | </Section> |
| 6603 | <Section name="Test spec from just a comma should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6604 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6605 | <Original> |
| 6606 | spec.hasFilters() == false |
| 6607 | </Original> |
| 6608 | <Expanded> |
| 6609 | false == false |
| 6610 | </Expanded> |
| 6611 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6612 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6613 | <Original> |
| 6614 | spec.matches( tcA ) == false |
| 6615 | </Original> |
| 6616 | <Expanded> |
| 6617 | false == false |
| 6618 | </Expanded> |
| 6619 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6620 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6621 | <Original> |
| 6622 | spec.matches( tcB ) == false |
| 6623 | </Original> |
| 6624 | <Expanded> |
| 6625 | false == false |
| 6626 | </Expanded> |
| 6627 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6628 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6629 | </Section> |
| 6630 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6631 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6632 | <Original> |
| 6633 | spec.hasFilters() == true |
| 6634 | </Original> |
| 6635 | <Expanded> |
| 6636 | true == true |
| 6637 | </Expanded> |
| 6638 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6639 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6640 | <Original> |
| 6641 | spec.matches( tcA ) == false |
| 6642 | </Original> |
| 6643 | <Expanded> |
| 6644 | false == false |
| 6645 | </Expanded> |
| 6646 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6647 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6648 | <Original> |
| 6649 | spec.matches( tcB ) == true |
| 6650 | </Original> |
| 6651 | <Expanded> |
| 6652 | true == true |
| 6653 | </Expanded> |
| 6654 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6655 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6656 | </Section> |
| 6657 | <Section name="Test spec from quoted name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6658 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6659 | <Original> |
| 6660 | spec.hasFilters() == true |
| 6661 | </Original> |
| 6662 | <Expanded> |
| 6663 | true == true |
| 6664 | </Expanded> |
| 6665 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6666 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6667 | <Original> |
| 6668 | spec.matches( tcA ) == false |
| 6669 | </Original> |
| 6670 | <Expanded> |
| 6671 | false == false |
| 6672 | </Expanded> |
| 6673 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6674 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6675 | <Original> |
| 6676 | spec.matches( tcB ) == true |
| 6677 | </Original> |
| 6678 | <Expanded> |
| 6679 | true == true |
| 6680 | </Expanded> |
| 6681 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6682 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6683 | </Section> |
| 6684 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6685 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6686 | <Original> |
| 6687 | spec.hasFilters() == true |
| 6688 | </Original> |
| 6689 | <Expanded> |
| 6690 | true == true |
| 6691 | </Expanded> |
| 6692 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6693 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6694 | <Original> |
| 6695 | spec.matches( tcA ) == false |
| 6696 | </Original> |
| 6697 | <Expanded> |
| 6698 | false == false |
| 6699 | </Expanded> |
| 6700 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6701 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6702 | <Original> |
| 6703 | spec.matches( tcB ) == true |
| 6704 | </Original> |
| 6705 | <Expanded> |
| 6706 | true == true |
| 6707 | </Expanded> |
| 6708 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6709 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6710 | <Original> |
| 6711 | spec.matches( tcC ) == false |
| 6712 | </Original> |
| 6713 | <Expanded> |
| 6714 | false == false |
| 6715 | </Expanded> |
| 6716 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6717 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6718 | </Section> |
| 6719 | <Section name="Wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6720 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6721 | <Original> |
| 6722 | spec.hasFilters() == true |
| 6723 | </Original> |
| 6724 | <Expanded> |
| 6725 | true == true |
| 6726 | </Expanded> |
| 6727 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6728 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6729 | <Original> |
| 6730 | spec.matches( tcA ) == false |
| 6731 | </Original> |
| 6732 | <Expanded> |
| 6733 | false == false |
| 6734 | </Expanded> |
| 6735 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6736 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6737 | <Original> |
| 6738 | spec.matches( tcB ) == false |
| 6739 | </Original> |
| 6740 | <Expanded> |
| 6741 | false == false |
| 6742 | </Expanded> |
| 6743 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6744 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6745 | <Original> |
| 6746 | spec.matches( tcC ) == true |
| 6747 | </Original> |
| 6748 | <Expanded> |
| 6749 | true == true |
| 6750 | </Expanded> |
| 6751 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6752 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6753 | <Original> |
| 6754 | spec.matches( tcD ) == false |
| 6755 | </Original> |
| 6756 | <Expanded> |
| 6757 | false == false |
| 6758 | </Expanded> |
| 6759 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6760 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6761 | <Original> |
| 6762 | parseTestSpec( "*a" ).matches( tcA ) == true |
| 6763 | </Original> |
| 6764 | <Expanded> |
| 6765 | true == true |
| 6766 | </Expanded> |
| 6767 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6768 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6769 | </Section> |
| 6770 | <Section name="Wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6771 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6772 | <Original> |
| 6773 | spec.hasFilters() == true |
| 6774 | </Original> |
| 6775 | <Expanded> |
| 6776 | true == true |
| 6777 | </Expanded> |
| 6778 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6779 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6780 | <Original> |
| 6781 | spec.matches( tcA ) == false |
| 6782 | </Original> |
| 6783 | <Expanded> |
| 6784 | false == false |
| 6785 | </Expanded> |
| 6786 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6787 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6788 | <Original> |
| 6789 | spec.matches( tcB ) == false |
| 6790 | </Original> |
| 6791 | <Expanded> |
| 6792 | false == false |
| 6793 | </Expanded> |
| 6794 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6795 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6796 | <Original> |
| 6797 | spec.matches( tcC ) == true |
| 6798 | </Original> |
| 6799 | <Expanded> |
| 6800 | true == true |
| 6801 | </Expanded> |
| 6802 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6803 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6804 | <Original> |
| 6805 | spec.matches( tcD ) == false |
| 6806 | </Original> |
| 6807 | <Expanded> |
| 6808 | false == false |
| 6809 | </Expanded> |
| 6810 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6811 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6812 | <Original> |
| 6813 | parseTestSpec( "a*" ).matches( tcA ) == true |
| 6814 | </Original> |
| 6815 | <Expanded> |
| 6816 | true == true |
| 6817 | </Expanded> |
| 6818 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6819 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6820 | </Section> |
| 6821 | <Section name="Wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6822 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6823 | <Original> |
| 6824 | spec.hasFilters() == true |
| 6825 | </Original> |
| 6826 | <Expanded> |
| 6827 | true == true |
| 6828 | </Expanded> |
| 6829 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6830 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6831 | <Original> |
| 6832 | spec.matches( tcA ) == false |
| 6833 | </Original> |
| 6834 | <Expanded> |
| 6835 | false == false |
| 6836 | </Expanded> |
| 6837 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6838 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6839 | <Original> |
| 6840 | spec.matches( tcB ) == false |
| 6841 | </Original> |
| 6842 | <Expanded> |
| 6843 | false == false |
| 6844 | </Expanded> |
| 6845 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6846 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6847 | <Original> |
| 6848 | spec.matches( tcC ) == true |
| 6849 | </Original> |
| 6850 | <Expanded> |
| 6851 | true == true |
| 6852 | </Expanded> |
| 6853 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6854 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6855 | <Original> |
| 6856 | spec.matches( tcD ) == true |
| 6857 | </Original> |
| 6858 | <Expanded> |
| 6859 | true == true |
| 6860 | </Expanded> |
| 6861 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6862 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6863 | <Original> |
| 6864 | parseTestSpec( "*a*" ).matches( tcA ) == true |
| 6865 | </Original> |
| 6866 | <Expanded> |
| 6867 | true == true |
| 6868 | </Expanded> |
| 6869 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6870 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6871 | </Section> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6872 | <Section name="Redundant wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6873 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6874 | <Original> |
| 6875 | spec.hasFilters() == true |
| 6876 | </Original> |
| 6877 | <Expanded> |
| 6878 | true == true |
| 6879 | </Expanded> |
| 6880 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6881 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6882 | <Original> |
| 6883 | spec.matches( tcA ) == true |
| 6884 | </Original> |
| 6885 | <Expanded> |
| 6886 | true == true |
| 6887 | </Expanded> |
| 6888 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6889 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6890 | <Original> |
| 6891 | spec.matches( tcB ) == false |
| 6892 | </Original> |
| 6893 | <Expanded> |
| 6894 | false == false |
| 6895 | </Expanded> |
| 6896 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6897 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6898 | </Section> |
| 6899 | <Section name="Redundant wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6900 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6901 | <Original> |
| 6902 | spec.hasFilters() == true |
| 6903 | </Original> |
| 6904 | <Expanded> |
| 6905 | true == true |
| 6906 | </Expanded> |
| 6907 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6908 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6909 | <Original> |
| 6910 | spec.matches( tcA ) == true |
| 6911 | </Original> |
| 6912 | <Expanded> |
| 6913 | true == true |
| 6914 | </Expanded> |
| 6915 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6916 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6917 | <Original> |
| 6918 | spec.matches( tcB ) == false |
| 6919 | </Original> |
| 6920 | <Expanded> |
| 6921 | false == false |
| 6922 | </Expanded> |
| 6923 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6924 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6925 | </Section> |
| 6926 | <Section name="Redundant wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6927 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6928 | <Original> |
| 6929 | spec.hasFilters() == true |
| 6930 | </Original> |
| 6931 | <Expanded> |
| 6932 | true == true |
| 6933 | </Expanded> |
| 6934 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6935 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6936 | <Original> |
| 6937 | spec.matches( tcA ) == true |
| 6938 | </Original> |
| 6939 | <Expanded> |
| 6940 | true == true |
| 6941 | </Expanded> |
| 6942 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6943 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6944 | <Original> |
| 6945 | spec.matches( tcB ) == false |
| 6946 | </Original> |
| 6947 | <Expanded> |
| 6948 | false == false |
| 6949 | </Expanded> |
| 6950 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6951 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6952 | </Section> |
| 6953 | <Section name="Wildcard at both ends, redundant at start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6954 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6955 | <Original> |
| 6956 | spec.hasFilters() == true |
| 6957 | </Original> |
| 6958 | <Expanded> |
| 6959 | true == true |
| 6960 | </Expanded> |
| 6961 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6962 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6963 | <Original> |
| 6964 | spec.matches( tcA ) == false |
| 6965 | </Original> |
| 6966 | <Expanded> |
| 6967 | false == false |
| 6968 | </Expanded> |
| 6969 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6970 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6971 | <Original> |
| 6972 | spec.matches( tcB ) == false |
| 6973 | </Original> |
| 6974 | <Expanded> |
| 6975 | false == false |
| 6976 | </Expanded> |
| 6977 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6978 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6979 | <Original> |
| 6980 | spec.matches( tcC ) == true |
| 6981 | </Original> |
| 6982 | <Expanded> |
| 6983 | true == true |
| 6984 | </Expanded> |
| 6985 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6986 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6987 | <Original> |
| 6988 | spec.matches( tcD ) == true |
| 6989 | </Original> |
| 6990 | <Expanded> |
| 6991 | true == true |
| 6992 | </Expanded> |
| 6993 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6994 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 6995 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6996 | <Section name="Just wildcard"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6997 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 6998 | <Original> |
| 6999 | spec.hasFilters() == true |
| 7000 | </Original> |
| 7001 | <Expanded> |
| 7002 | true == true |
| 7003 | </Expanded> |
| 7004 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7005 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7006 | <Original> |
| 7007 | spec.matches( tcA ) == true |
| 7008 | </Original> |
| 7009 | <Expanded> |
| 7010 | true == true |
| 7011 | </Expanded> |
| 7012 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7013 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7014 | <Original> |
| 7015 | spec.matches( tcB ) == true |
| 7016 | </Original> |
| 7017 | <Expanded> |
| 7018 | true == true |
| 7019 | </Expanded> |
| 7020 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7021 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7022 | <Original> |
| 7023 | spec.matches( tcC ) == true |
| 7024 | </Original> |
| 7025 | <Expanded> |
| 7026 | true == true |
| 7027 | </Expanded> |
| 7028 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7029 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7030 | <Original> |
| 7031 | spec.matches( tcD ) == true |
| 7032 | </Original> |
| 7033 | <Expanded> |
| 7034 | true == true |
| 7035 | </Expanded> |
| 7036 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7037 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7038 | </Section> |
| 7039 | <Section name="Single tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7040 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7041 | <Original> |
| 7042 | spec.hasFilters() == true |
| 7043 | </Original> |
| 7044 | <Expanded> |
| 7045 | true == true |
| 7046 | </Expanded> |
| 7047 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7048 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7049 | <Original> |
| 7050 | spec.matches( tcA ) == false |
| 7051 | </Original> |
| 7052 | <Expanded> |
| 7053 | false == false |
| 7054 | </Expanded> |
| 7055 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7056 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7057 | <Original> |
| 7058 | spec.matches( tcB ) == true |
| 7059 | </Original> |
| 7060 | <Expanded> |
| 7061 | true == true |
| 7062 | </Expanded> |
| 7063 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7064 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7065 | <Original> |
| 7066 | spec.matches( tcC ) == false |
| 7067 | </Original> |
| 7068 | <Expanded> |
| 7069 | false == false |
| 7070 | </Expanded> |
| 7071 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7072 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7073 | </Section> |
| 7074 | <Section name="Single tag, two matches"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7075 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7076 | <Original> |
| 7077 | spec.hasFilters() == true |
| 7078 | </Original> |
| 7079 | <Expanded> |
| 7080 | true == true |
| 7081 | </Expanded> |
| 7082 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7083 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7084 | <Original> |
| 7085 | spec.matches( tcA ) == false |
| 7086 | </Original> |
| 7087 | <Expanded> |
| 7088 | false == false |
| 7089 | </Expanded> |
| 7090 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7091 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7092 | <Original> |
| 7093 | spec.matches( tcB ) == true |
| 7094 | </Original> |
| 7095 | <Expanded> |
| 7096 | true == true |
| 7097 | </Expanded> |
| 7098 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7099 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7100 | <Original> |
| 7101 | spec.matches( tcC ) == true |
| 7102 | </Original> |
| 7103 | <Expanded> |
| 7104 | true == true |
| 7105 | </Expanded> |
| 7106 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7107 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7108 | </Section> |
| 7109 | <Section name="Two tags"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7110 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7111 | <Original> |
| 7112 | spec.hasFilters() == true |
| 7113 | </Original> |
| 7114 | <Expanded> |
| 7115 | true == true |
| 7116 | </Expanded> |
| 7117 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7118 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7119 | <Original> |
| 7120 | spec.matches( tcA ) == false |
| 7121 | </Original> |
| 7122 | <Expanded> |
| 7123 | false == false |
| 7124 | </Expanded> |
| 7125 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7126 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7127 | <Original> |
| 7128 | spec.matches( tcB ) == false |
| 7129 | </Original> |
| 7130 | <Expanded> |
| 7131 | false == false |
| 7132 | </Expanded> |
| 7133 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7134 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7135 | <Original> |
| 7136 | spec.matches( tcC ) == true |
| 7137 | </Original> |
| 7138 | <Expanded> |
| 7139 | true == true |
| 7140 | </Expanded> |
| 7141 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7142 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7143 | </Section> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7144 | <Section name="Two tags, spare separated"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7145 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7146 | <Original> |
| 7147 | spec.hasFilters() == true |
| 7148 | </Original> |
| 7149 | <Expanded> |
| 7150 | true == true |
| 7151 | </Expanded> |
| 7152 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7153 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7154 | <Original> |
| 7155 | spec.matches( tcA ) == false |
| 7156 | </Original> |
| 7157 | <Expanded> |
| 7158 | false == false |
| 7159 | </Expanded> |
| 7160 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7161 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7162 | <Original> |
| 7163 | spec.matches( tcB ) == false |
| 7164 | </Original> |
| 7165 | <Expanded> |
| 7166 | false == false |
| 7167 | </Expanded> |
| 7168 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7169 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7170 | <Original> |
| 7171 | spec.matches( tcC ) == true |
| 7172 | </Original> |
| 7173 | <Expanded> |
| 7174 | true == true |
| 7175 | </Expanded> |
| 7176 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7177 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 7178 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7179 | <Section name="Wildcarded name and tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7180 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7181 | <Original> |
| 7182 | spec.hasFilters() == true |
| 7183 | </Original> |
| 7184 | <Expanded> |
| 7185 | true == true |
| 7186 | </Expanded> |
| 7187 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7188 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7189 | <Original> |
| 7190 | spec.matches( tcA ) == false |
| 7191 | </Original> |
| 7192 | <Expanded> |
| 7193 | false == false |
| 7194 | </Expanded> |
| 7195 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7196 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7197 | <Original> |
| 7198 | spec.matches( tcB ) == false |
| 7199 | </Original> |
| 7200 | <Expanded> |
| 7201 | false == false |
| 7202 | </Expanded> |
| 7203 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7204 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7205 | <Original> |
| 7206 | spec.matches( tcC ) == true |
| 7207 | </Original> |
| 7208 | <Expanded> |
| 7209 | true == true |
| 7210 | </Expanded> |
| 7211 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7212 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7213 | <Original> |
| 7214 | spec.matches( tcD ) == false |
| 7215 | </Original> |
| 7216 | <Expanded> |
| 7217 | false == false |
| 7218 | </Expanded> |
| 7219 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7220 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7221 | </Section> |
| 7222 | <Section name="Single tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7223 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7224 | <Original> |
| 7225 | spec.hasFilters() == true |
| 7226 | </Original> |
| 7227 | <Expanded> |
| 7228 | true == true |
| 7229 | </Expanded> |
| 7230 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7231 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7232 | <Original> |
| 7233 | spec.matches( tcA ) == true |
| 7234 | </Original> |
| 7235 | <Expanded> |
| 7236 | true == true |
| 7237 | </Expanded> |
| 7238 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7239 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7240 | <Original> |
| 7241 | spec.matches( tcB ) == false |
| 7242 | </Original> |
| 7243 | <Expanded> |
| 7244 | false == false |
| 7245 | </Expanded> |
| 7246 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7247 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7248 | <Original> |
| 7249 | spec.matches( tcC ) == true |
| 7250 | </Original> |
| 7251 | <Expanded> |
| 7252 | true == true |
| 7253 | </Expanded> |
| 7254 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7255 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7256 | </Section> |
| 7257 | <Section name="One tag exclusion and one tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7258 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7259 | <Original> |
| 7260 | spec.hasFilters() == true |
| 7261 | </Original> |
| 7262 | <Expanded> |
| 7263 | true == true |
| 7264 | </Expanded> |
| 7265 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7266 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7267 | <Original> |
| 7268 | spec.matches( tcA ) == false |
| 7269 | </Original> |
| 7270 | <Expanded> |
| 7271 | false == false |
| 7272 | </Expanded> |
| 7273 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7274 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7275 | <Original> |
| 7276 | spec.matches( tcB ) == true |
| 7277 | </Original> |
| 7278 | <Expanded> |
| 7279 | true == true |
| 7280 | </Expanded> |
| 7281 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7282 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7283 | <Original> |
| 7284 | spec.matches( tcC ) == false |
| 7285 | </Original> |
| 7286 | <Expanded> |
| 7287 | false == false |
| 7288 | </Expanded> |
| 7289 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7290 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7291 | </Section> |
| 7292 | <Section name="One tag exclusion and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7293 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7294 | <Original> |
| 7295 | spec.hasFilters() == true |
| 7296 | </Original> |
| 7297 | <Expanded> |
| 7298 | true == true |
| 7299 | </Expanded> |
| 7300 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7301 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7302 | <Original> |
| 7303 | spec.matches( tcA ) == false |
| 7304 | </Original> |
| 7305 | <Expanded> |
| 7306 | false == false |
| 7307 | </Expanded> |
| 7308 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7309 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7310 | <Original> |
| 7311 | spec.matches( tcB ) == false |
| 7312 | </Original> |
| 7313 | <Expanded> |
| 7314 | false == false |
| 7315 | </Expanded> |
| 7316 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7317 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7318 | <Original> |
| 7319 | spec.matches( tcC ) == false |
| 7320 | </Original> |
| 7321 | <Expanded> |
| 7322 | false == false |
| 7323 | </Expanded> |
| 7324 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7325 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7326 | <Original> |
| 7327 | spec.matches( tcD ) == true |
| 7328 | </Original> |
| 7329 | <Expanded> |
| 7330 | true == true |
| 7331 | </Expanded> |
| 7332 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7333 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7334 | </Section> |
| 7335 | <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7336 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7337 | <Original> |
| 7338 | spec.hasFilters() == true |
| 7339 | </Original> |
| 7340 | <Expanded> |
| 7341 | true == true |
| 7342 | </Expanded> |
| 7343 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7344 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7345 | <Original> |
| 7346 | spec.matches( tcA ) == false |
| 7347 | </Original> |
| 7348 | <Expanded> |
| 7349 | false == false |
| 7350 | </Expanded> |
| 7351 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7352 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7353 | <Original> |
| 7354 | spec.matches( tcB ) == false |
| 7355 | </Original> |
| 7356 | <Expanded> |
| 7357 | false == false |
| 7358 | </Expanded> |
| 7359 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7360 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7361 | <Original> |
| 7362 | spec.matches( tcC ) == false |
| 7363 | </Original> |
| 7364 | <Expanded> |
| 7365 | false == false |
| 7366 | </Expanded> |
| 7367 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7368 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7369 | <Original> |
| 7370 | spec.matches( tcD ) == true |
| 7371 | </Original> |
| 7372 | <Expanded> |
| 7373 | true == true |
| 7374 | </Expanded> |
| 7375 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7376 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7377 | </Section> |
| 7378 | <Section name="name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7379 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7380 | <Original> |
| 7381 | spec.hasFilters() == true |
| 7382 | </Original> |
| 7383 | <Expanded> |
| 7384 | true == true |
| 7385 | </Expanded> |
| 7386 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7387 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7388 | <Original> |
| 7389 | spec.matches( tcA ) == true |
| 7390 | </Original> |
| 7391 | <Expanded> |
| 7392 | true == true |
| 7393 | </Expanded> |
| 7394 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7395 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7396 | <Original> |
| 7397 | spec.matches( tcB ) == false |
| 7398 | </Original> |
| 7399 | <Expanded> |
| 7400 | false == false |
| 7401 | </Expanded> |
| 7402 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7403 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7404 | <Original> |
| 7405 | spec.matches( tcC ) == true |
| 7406 | </Original> |
| 7407 | <Expanded> |
| 7408 | true == true |
| 7409 | </Expanded> |
| 7410 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7411 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7412 | <Original> |
| 7413 | spec.matches( tcD ) == true |
| 7414 | </Original> |
| 7415 | <Expanded> |
| 7416 | true == true |
| 7417 | </Expanded> |
| 7418 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7419 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7420 | </Section> |
| 7421 | <Section name="wildcarded name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7422 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7423 | <Original> |
| 7424 | spec.hasFilters() == true |
| 7425 | </Original> |
| 7426 | <Expanded> |
| 7427 | true == true |
| 7428 | </Expanded> |
| 7429 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7430 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7431 | <Original> |
| 7432 | spec.matches( tcA ) == true |
| 7433 | </Original> |
| 7434 | <Expanded> |
| 7435 | true == true |
| 7436 | </Expanded> |
| 7437 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7438 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7439 | <Original> |
| 7440 | spec.matches( tcB ) == true |
| 7441 | </Original> |
| 7442 | <Expanded> |
| 7443 | true == true |
| 7444 | </Expanded> |
| 7445 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7446 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7447 | <Original> |
| 7448 | spec.matches( tcC ) == false |
| 7449 | </Original> |
| 7450 | <Expanded> |
| 7451 | false == false |
| 7452 | </Expanded> |
| 7453 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7454 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7455 | <Original> |
| 7456 | spec.matches( tcD ) == false |
| 7457 | </Original> |
| 7458 | <Expanded> |
| 7459 | false == false |
| 7460 | </Expanded> |
| 7461 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7462 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7463 | </Section> |
| 7464 | <Section name="wildcarded name exclusion with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7465 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7466 | <Original> |
| 7467 | spec.hasFilters() == true |
| 7468 | </Original> |
| 7469 | <Expanded> |
| 7470 | true == true |
| 7471 | </Expanded> |
| 7472 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7473 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7474 | <Original> |
| 7475 | spec.matches( tcA ) == true |
| 7476 | </Original> |
| 7477 | <Expanded> |
| 7478 | true == true |
| 7479 | </Expanded> |
| 7480 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7481 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7482 | <Original> |
| 7483 | spec.matches( tcB ) == true |
| 7484 | </Original> |
| 7485 | <Expanded> |
| 7486 | true == true |
| 7487 | </Expanded> |
| 7488 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7489 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7490 | <Original> |
| 7491 | spec.matches( tcC ) == true |
| 7492 | </Original> |
| 7493 | <Expanded> |
| 7494 | true == true |
| 7495 | </Expanded> |
| 7496 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7497 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7498 | <Original> |
| 7499 | spec.matches( tcD ) == false |
| 7500 | </Original> |
| 7501 | <Expanded> |
| 7502 | false == false |
| 7503 | </Expanded> |
| 7504 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7505 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7506 | </Section> |
| 7507 | <Section name="wildcarded name exclusion, using exclude:, with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7508 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7509 | <Original> |
| 7510 | spec.hasFilters() == true |
| 7511 | </Original> |
| 7512 | <Expanded> |
| 7513 | true == true |
| 7514 | </Expanded> |
| 7515 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7516 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7517 | <Original> |
| 7518 | spec.matches( tcA ) == true |
| 7519 | </Original> |
| 7520 | <Expanded> |
| 7521 | true == true |
| 7522 | </Expanded> |
| 7523 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7524 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7525 | <Original> |
| 7526 | spec.matches( tcB ) == true |
| 7527 | </Original> |
| 7528 | <Expanded> |
| 7529 | true == true |
| 7530 | </Expanded> |
| 7531 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7532 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7533 | <Original> |
| 7534 | spec.matches( tcC ) == true |
| 7535 | </Original> |
| 7536 | <Expanded> |
| 7537 | true == true |
| 7538 | </Expanded> |
| 7539 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7540 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7541 | <Original> |
| 7542 | spec.matches( tcD ) == false |
| 7543 | </Original> |
| 7544 | <Expanded> |
| 7545 | false == false |
| 7546 | </Expanded> |
| 7547 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7548 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7549 | </Section> |
| 7550 | <Section name="two wildcarded names"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7551 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7552 | <Original> |
| 7553 | spec.hasFilters() == true |
| 7554 | </Original> |
| 7555 | <Expanded> |
| 7556 | true == true |
| 7557 | </Expanded> |
| 7558 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7559 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7560 | <Original> |
| 7561 | spec.matches( tcA ) == false |
| 7562 | </Original> |
| 7563 | <Expanded> |
| 7564 | false == false |
| 7565 | </Expanded> |
| 7566 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7567 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7568 | <Original> |
| 7569 | spec.matches( tcB ) == false |
| 7570 | </Original> |
| 7571 | <Expanded> |
| 7572 | false == false |
| 7573 | </Expanded> |
| 7574 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7575 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7576 | <Original> |
| 7577 | spec.matches( tcC ) == true |
| 7578 | </Original> |
| 7579 | <Expanded> |
| 7580 | true == true |
| 7581 | </Expanded> |
| 7582 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7583 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7584 | <Original> |
| 7585 | spec.matches( tcD ) == false |
| 7586 | </Original> |
| 7587 | <Expanded> |
| 7588 | false == false |
| 7589 | </Expanded> |
| 7590 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7591 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7592 | </Section> |
| 7593 | <Section name="empty tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7594 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7595 | <Original> |
| 7596 | spec.hasFilters() == false |
| 7597 | </Original> |
| 7598 | <Expanded> |
| 7599 | false == false |
| 7600 | </Expanded> |
| 7601 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7602 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7603 | <Original> |
| 7604 | spec.matches( tcA ) == false |
| 7605 | </Original> |
| 7606 | <Expanded> |
| 7607 | false == false |
| 7608 | </Expanded> |
| 7609 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7610 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7611 | <Original> |
| 7612 | spec.matches( tcB ) == false |
| 7613 | </Original> |
| 7614 | <Expanded> |
| 7615 | false == false |
| 7616 | </Expanded> |
| 7617 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7618 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7619 | <Original> |
| 7620 | spec.matches( tcC ) == false |
| 7621 | </Original> |
| 7622 | <Expanded> |
| 7623 | false == false |
| 7624 | </Expanded> |
| 7625 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7626 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7627 | <Original> |
| 7628 | spec.matches( tcD ) == false |
| 7629 | </Original> |
| 7630 | <Expanded> |
| 7631 | false == false |
| 7632 | </Expanded> |
| 7633 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7634 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7635 | </Section> |
| 7636 | <Section name="empty quoted name"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7637 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7638 | <Original> |
| 7639 | spec.hasFilters() == false |
| 7640 | </Original> |
| 7641 | <Expanded> |
| 7642 | false == false |
| 7643 | </Expanded> |
| 7644 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7645 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7646 | <Original> |
| 7647 | spec.matches( tcA ) == false |
| 7648 | </Original> |
| 7649 | <Expanded> |
| 7650 | false == false |
| 7651 | </Expanded> |
| 7652 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7653 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7654 | <Original> |
| 7655 | spec.matches( tcB ) == false |
| 7656 | </Original> |
| 7657 | <Expanded> |
| 7658 | false == false |
| 7659 | </Expanded> |
| 7660 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7661 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7662 | <Original> |
| 7663 | spec.matches( tcC ) == false |
| 7664 | </Original> |
| 7665 | <Expanded> |
| 7666 | false == false |
| 7667 | </Expanded> |
| 7668 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7669 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7670 | <Original> |
| 7671 | spec.matches( tcD ) == false |
| 7672 | </Original> |
| 7673 | <Expanded> |
| 7674 | false == false |
| 7675 | </Expanded> |
| 7676 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7677 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7678 | </Section> |
| 7679 | <Section name="quoted string followed by tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7680 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7681 | <Original> |
| 7682 | spec.hasFilters() == true |
| 7683 | </Original> |
| 7684 | <Expanded> |
| 7685 | true == true |
| 7686 | </Expanded> |
| 7687 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7688 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7689 | <Original> |
| 7690 | spec.matches( tcA ) == false |
| 7691 | </Original> |
| 7692 | <Expanded> |
| 7693 | false == false |
| 7694 | </Expanded> |
| 7695 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7696 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7697 | <Original> |
| 7698 | spec.matches( tcB ) == false |
| 7699 | </Original> |
| 7700 | <Expanded> |
| 7701 | false == false |
| 7702 | </Expanded> |
| 7703 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7704 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7705 | <Original> |
| 7706 | spec.matches( tcC ) == false |
| 7707 | </Original> |
| 7708 | <Expanded> |
| 7709 | false == false |
| 7710 | </Expanded> |
| 7711 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7712 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7713 | <Original> |
| 7714 | spec.matches( tcD ) == true |
| 7715 | </Original> |
| 7716 | <Expanded> |
| 7717 | true == true |
| 7718 | </Expanded> |
| 7719 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7720 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7721 | </Section> |
| 7722 | <OverallResult success="true"/> |
| 7723 | </TestCase> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 7724 | <TestCase name="tuple<>"> |
| 7725 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7726 | <Original> |
| 7727 | "{ }" == Catch::toString(type{}) |
| 7728 | </Original> |
| 7729 | <Expanded> |
| 7730 | "{ }" == "{ }" |
| 7731 | </Expanded> |
| 7732 | </Expression> |
| 7733 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7734 | <Original> |
| 7735 | "{ }" == Catch::toString(value) |
| 7736 | </Original> |
| 7737 | <Expanded> |
| 7738 | "{ }" == "{ }" |
| 7739 | </Expanded> |
| 7740 | </Expression> |
| 7741 | <OverallResult success="true"/> |
| 7742 | </TestCase> |
| 7743 | <TestCase name="tuple<int>"> |
| 7744 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7745 | <Original> |
| 7746 | "{ 0 }" == Catch::toString(type{0}) |
| 7747 | </Original> |
| 7748 | <Expanded> |
| 7749 | "{ 0 }" == "{ 0 }" |
| 7750 | </Expanded> |
| 7751 | </Expression> |
| 7752 | <OverallResult success="true"/> |
| 7753 | </TestCase> |
| 7754 | <TestCase name="tuple<float,int>"> |
| 7755 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7756 | <Original> |
| 7757 | "1.2f" == Catch::toString(float(1.2)) |
| 7758 | </Original> |
| 7759 | <Expanded> |
| 7760 | "1.2f" == "1.2f" |
| 7761 | </Expanded> |
| 7762 | </Expression> |
| 7763 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7764 | <Original> |
| 7765 | "{ 1.2f, 0 }" == Catch::toString(type{1.2,0}) |
| 7766 | </Original> |
| 7767 | <Expanded> |
| 7768 | "{ 1.2f, 0 }" == "{ 1.2f, 0 }" |
| 7769 | </Expanded> |
| 7770 | </Expression> |
| 7771 | <OverallResult success="true"/> |
| 7772 | </TestCase> |
| 7773 | <TestCase name="tuple<string,string>"> |
| 7774 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7775 | <Original> |
| 7776 | "{ \"hello\", \"world\" }" == Catch::toString(type{"hello","world"}) |
| 7777 | </Original> |
| 7778 | <Expanded> |
| 7779 | "{ "hello", "world" }" |
| 7780 | == |
| 7781 | "{ "hello", "world" }" |
| 7782 | </Expanded> |
| 7783 | </Expression> |
| 7784 | <OverallResult success="true"/> |
| 7785 | </TestCase> |
| 7786 | <TestCase name="tuple<tuple<int>,tuple<>,float>"> |
| 7787 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7788 | <Original> |
| 7789 | "{ { 42 }, { }, 1.2f }" == Catch::toString(value) |
| 7790 | </Original> |
| 7791 | <Expanded> |
| 7792 | "{ { 42 }, { }, 1.2f }" |
| 7793 | == |
| 7794 | "{ { 42 }, { }, 1.2f }" |
| 7795 | </Expanded> |
| 7796 | </Expression> |
| 7797 | <OverallResult success="true"/> |
| 7798 | </TestCase> |
| 7799 | <TestCase name="tuple<nullptr,int,const char *>"> |
| 7800 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 7801 | <Original> |
| 7802 | "{ nullptr, 42, \"Catch me\" }" == Catch::toString(value) |
| 7803 | </Original> |
| 7804 | <Expanded> |
| 7805 | "{ nullptr, 42, "Catch me" }" |
| 7806 | == |
| 7807 | "{ nullptr, 42, "Catch me" }" |
| 7808 | </Expanded> |
| 7809 | </Expression> |
| 7810 | <OverallResult success="true"/> |
| 7811 | </TestCase> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7812 | <TestCase name="Tag alias can be registered against tag patterns"> |
| 7813 | <Section name="The same tag alias can only be registered once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7814 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7815 | <Original> |
| 7816 | what Contains( "[@zzz]" ) |
| 7817 | </Original> |
| 7818 | <Expanded> |
| 7819 | "error: tag alias, "[@zzz]" already registered. |
| 7820 | First seen at file:2 |
| 7821 | Redefined at file:10" contains: "[@zzz]" |
| 7822 | </Expanded> |
| 7823 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7824 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7825 | <Original> |
| 7826 | what Contains( "file" ) |
| 7827 | </Original> |
| 7828 | <Expanded> |
| 7829 | "error: tag alias, "[@zzz]" already registered. |
| 7830 | First seen at file:2 |
| 7831 | Redefined at file:10" contains: "file" |
| 7832 | </Expanded> |
| 7833 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7834 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7835 | <Original> |
| 7836 | what Contains( "2" ) |
| 7837 | </Original> |
| 7838 | <Expanded> |
| 7839 | "error: tag alias, "[@zzz]" already registered. |
| 7840 | First seen at file:2 |
| 7841 | Redefined at file:10" contains: "2" |
| 7842 | </Expanded> |
| 7843 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7844 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7845 | <Original> |
| 7846 | what Contains( "10" ) |
| 7847 | </Original> |
| 7848 | <Expanded> |
| 7849 | "error: tag alias, "[@zzz]" already registered. |
| 7850 | First seen at file:2 |
| 7851 | Redefined at file:10" contains: "10" |
| 7852 | </Expanded> |
| 7853 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7854 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7855 | </Section> |
| 7856 | <Section name="Tag aliases must be of the form [@name]"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7857 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7858 | <Original> |
| 7859 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7860 | </Original> |
| 7861 | <Expanded> |
| 7862 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7863 | </Expanded> |
| 7864 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7865 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7866 | <Original> |
| 7867 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7868 | </Original> |
| 7869 | <Expanded> |
| 7870 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7871 | </Expanded> |
| 7872 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7873 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7874 | <Original> |
| 7875 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7876 | </Original> |
| 7877 | <Expanded> |
| 7878 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7879 | </Expanded> |
| 7880 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7881 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7882 | <Original> |
| 7883 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7884 | </Original> |
| 7885 | <Expanded> |
| 7886 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7887 | </Expanded> |
| 7888 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7889 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 7890 | </Section> |
| 7891 | <OverallResult success="true"/> |
| 7892 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7893 | <TestCase name="Anonymous test case 1"> |
| 7894 | <OverallResult success="true"/> |
| 7895 | </TestCase> |
| 7896 | <TestCase name="Test case with one argument"> |
| 7897 | <OverallResult success="true"/> |
| 7898 | </TestCase> |
| 7899 | <TestCase name="Variadic macros"> |
| 7900 | <Section name="Section with one argument"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7901 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7902 | </Section> |
| 7903 | <OverallResult success="true"/> |
| 7904 | </TestCase> |
| 7905 | <TestCase name="Scenario: Do that thing with the thing"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7906 | <Section name="Given: This stuff exists"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7907 | <Section name="When: I do this"> |
| 7908 | <Section name="Then: it should do this"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7909 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7910 | <Original> |
| 7911 | itDoesThis() |
| 7912 | </Original> |
| 7913 | <Expanded> |
| 7914 | true |
| 7915 | </Expanded> |
| 7916 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7917 | <Section name="And: do that"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7918 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7919 | <Original> |
| 7920 | itDoesThat() |
| 7921 | </Original> |
| 7922 | <Expanded> |
| 7923 | true |
| 7924 | </Expanded> |
| 7925 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7926 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7927 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7928 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7929 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7930 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7931 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7932 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7933 | </Section> |
| 7934 | <OverallResult success="true"/> |
| 7935 | </TestCase> |
| 7936 | <TestCase name="Scenario: Vector resizing affects size and capacity"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7937 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7938 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7939 | <Original> |
| 7940 | v.size() == 0 |
| 7941 | </Original> |
| 7942 | <Expanded> |
| 7943 | 0 == 0 |
| 7944 | </Expanded> |
| 7945 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7946 | <Section name="When: it is made larger"> |
| 7947 | <Section name="Then: the size and capacity go up"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7948 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7949 | <Original> |
| 7950 | v.size() == 10 |
| 7951 | </Original> |
| 7952 | <Expanded> |
| 7953 | 10 == 10 |
| 7954 | </Expanded> |
| 7955 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7956 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7957 | <Original> |
| 7958 | v.capacity() >= 10 |
| 7959 | </Original> |
| 7960 | <Expanded> |
| 7961 | 10 >= 10 |
| 7962 | </Expanded> |
| 7963 | </Expression> |
| 7964 | <Section name="And when: it is made smaller again"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7965 | <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] | 7966 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7967 | <Original> |
| 7968 | v.size() == 5 |
| 7969 | </Original> |
| 7970 | <Expanded> |
| 7971 | 5 == 5 |
| 7972 | </Expanded> |
| 7973 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7974 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7975 | <Original> |
| 7976 | v.capacity() >= 10 |
| 7977 | </Original> |
| 7978 | <Expanded> |
| 7979 | 10 >= 10 |
| 7980 | </Expanded> |
| 7981 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7982 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7983 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7984 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7985 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7986 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7987 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7988 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7989 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 7990 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7991 | </Section> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 7992 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7993 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7994 | <Original> |
| 7995 | v.size() == 0 |
| 7996 | </Original> |
| 7997 | <Expanded> |
| 7998 | 0 == 0 |
| 7999 | </Expanded> |
| 8000 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8001 | <Section name="When: we reserve more space"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 8002 | <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] | 8003 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8004 | <Original> |
| 8005 | v.capacity() >= 10 |
| 8006 | </Original> |
| 8007 | <Expanded> |
| 8008 | 10 >= 10 |
| 8009 | </Expanded> |
| 8010 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8011 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8012 | <Original> |
| 8013 | v.size() == 0 |
| 8014 | </Original> |
| 8015 | <Expanded> |
| 8016 | 0 == 0 |
| 8017 | </Expanded> |
| 8018 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8019 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8020 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8021 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8022 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8023 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8024 | </Section> |
| 8025 | <OverallResult success="true"/> |
| 8026 | </TestCase> |
| 8027 | <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] | 8028 | <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] | 8029 | <Section name="When: The test headers are printed as part of the normal running of the scenario"> |
| 8030 | <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] | 8031 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8032 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8033 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8034 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8035 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8036 | </Section> |
| 8037 | <OverallResult success="true"/> |
| 8038 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8039 | <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods"> |
| 8040 | <Section name="Given: No operations precede me"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8041 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8042 | <Original> |
| 8043 | before == 0 |
| 8044 | </Original> |
| 8045 | <Expanded> |
| 8046 | 0 == 0 |
| 8047 | </Expanded> |
| 8048 | </Expression> |
| 8049 | <Section name="When: We get the count"> |
| 8050 | <Section name="Then: Subsequently values are higher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8051 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8052 | <Original> |
| 8053 | after > before |
| 8054 | </Original> |
| 8055 | <Expanded> |
| 8056 | 1 > 0 |
| 8057 | </Expanded> |
| 8058 | </Expression> |
| 8059 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8060 | </Section> |
| 8061 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8062 | </Section> |
| 8063 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 8064 | </Section> |
| 8065 | <OverallResult success="true"/> |
| 8066 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8067 | <TestCase name="section tracking"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8068 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8069 | <Original> |
| 8070 | !testCaseTracker.isCompleted() |
| 8071 | </Original> |
| 8072 | <Expanded> |
| 8073 | !false |
| 8074 | </Expanded> |
| 8075 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8076 | <Section name="test case with no sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8077 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8078 | <Original> |
| 8079 | !testCaseTracker.isCompleted() |
| 8080 | </Original> |
| 8081 | <Expanded> |
| 8082 | !false |
| 8083 | </Expanded> |
| 8084 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8085 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8086 | <Original> |
| 8087 | testCaseTracker.isCompleted() |
| 8088 | </Original> |
| 8089 | <Expanded> |
| 8090 | true |
| 8091 | </Expanded> |
| 8092 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8093 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8094 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8095 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8096 | <Original> |
| 8097 | !testCaseTracker.isCompleted() |
| 8098 | </Original> |
| 8099 | <Expanded> |
| 8100 | !false |
| 8101 | </Expanded> |
| 8102 | </Expression> |
| 8103 | <Section name="test case with one section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8104 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8105 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8106 | testCaseTracker.enterSection( section1Name ) |
| 8107 | </Original> |
| 8108 | <Expanded> |
| 8109 | true |
| 8110 | </Expanded> |
| 8111 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8112 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8113 | <Original> |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8114 | !testCaseTracker.isCompleted() |
| 8115 | </Original> |
| 8116 | <Expanded> |
| 8117 | !false |
| 8118 | </Expanded> |
| 8119 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8120 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8121 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8122 | testCaseTracker.isCompleted() |
| 8123 | </Original> |
| 8124 | <Expanded> |
| 8125 | true |
| 8126 | </Expanded> |
| 8127 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8128 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8129 | <Original> |
| 8130 | !testCaseTracker.enterSection( section1Name ) |
| 8131 | </Original> |
| 8132 | <Expanded> |
| 8133 | !false |
| 8134 | </Expanded> |
| 8135 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8136 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8137 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8138 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8139 | <Original> |
| 8140 | !testCaseTracker.isCompleted() |
| 8141 | </Original> |
| 8142 | <Expanded> |
| 8143 | !false |
| 8144 | </Expanded> |
| 8145 | </Expression> |
| 8146 | <Section name="test case with two consecutive sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8147 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8148 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8149 | testCaseTracker.enterSection( section1Name ) |
| 8150 | </Original> |
| 8151 | <Expanded> |
| 8152 | true |
| 8153 | </Expanded> |
| 8154 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8155 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8156 | <Original> |
| 8157 | !testCaseTracker.enterSection( section2Name ) |
| 8158 | </Original> |
| 8159 | <Expanded> |
| 8160 | !false |
| 8161 | </Expanded> |
| 8162 | </Expression> |
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> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8171 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8172 | <Original> |
| 8173 | !testCaseTracker.enterSection( section1Name ) |
| 8174 | </Original> |
| 8175 | <Expanded> |
| 8176 | !false |
| 8177 | </Expanded> |
| 8178 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8179 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8180 | <Original> |
| 8181 | testCaseTracker.enterSection( section2Name ) |
| 8182 | </Original> |
| 8183 | <Expanded> |
| 8184 | true |
| 8185 | </Expanded> |
| 8186 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8187 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8188 | <Original> |
| 8189 | testCaseTracker.isCompleted() |
| 8190 | </Original> |
| 8191 | <Expanded> |
| 8192 | true |
| 8193 | </Expanded> |
| 8194 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8195 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8196 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8197 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8198 | <Original> |
| 8199 | !testCaseTracker.isCompleted() |
| 8200 | </Original> |
| 8201 | <Expanded> |
| 8202 | !false |
| 8203 | </Expanded> |
| 8204 | </Expression> |
| 8205 | <Section name="test case with one section within another"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8206 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8207 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8208 | testCaseTracker.enterSection( section1Name ) |
| 8209 | </Original> |
| 8210 | <Expanded> |
| 8211 | true |
| 8212 | </Expanded> |
| 8213 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8214 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8215 | <Original> |
| 8216 | testCaseTracker.enterSection( section2Name ) |
| 8217 | </Original> |
| 8218 | <Expanded> |
| 8219 | true |
| 8220 | </Expanded> |
| 8221 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8222 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8223 | <Original> |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8224 | !testCaseTracker.isCompleted() |
| 8225 | </Original> |
| 8226 | <Expanded> |
| 8227 | !false |
| 8228 | </Expanded> |
| 8229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8230 | <Expression success="true" type="CHECK" filename="projects/SelfTest/SectionTrackerTests.cpp" > |
Phil Nash | a020865 | 2014-04-21 19:02:38 +0100 | [diff] [blame] | 8231 | <Original> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8232 | testCaseTracker.isCompleted() |
| 8233 | </Original> |
| 8234 | <Expanded> |
| 8235 | true |
| 8236 | </Expanded> |
| 8237 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8238 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8239 | </Section> |
| 8240 | <OverallResult success="true"/> |
| 8241 | </TestCase> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame^] | 8242 | <OverallResults successes="674" failures="100" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8243 | </Group> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame^] | 8244 | <OverallResults successes="674" failures="100" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 8245 | </Catch> |