Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 1 | <?xml version="1.1" encoding="UTF-8"?> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2 | <Catch name="<exe-name>"> |
| 3 | <Group name="<exe-name>"> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4 | <TestCase name="# A test name that starts with a #"> |
| 5 | <OverallResult success="true"/> |
| 6 | </TestCase> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame^] | 7 | <TestCase name="#809"> |
| 8 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/CompilationTests.cpp" > |
| 9 | <Original> |
| 10 | 42 == f |
| 11 | </Original> |
| 12 | <Expanded> |
| 13 | 42 == {?} |
| 14 | </Expanded> |
| 15 | </Expression> |
| 16 | <OverallResult success="true"/> |
| 17 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 18 | <TestCase name="'Not' checks that should fail"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 19 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 20 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 21 | false != false |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 22 | </Original> |
| 23 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 24 | false != false |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 25 | </Expanded> |
| 26 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 27 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 28 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 29 | true != true |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 30 | </Original> |
| 31 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 32 | true != true |
| 33 | </Expanded> |
| 34 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 35 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 36 | <Original> |
| 37 | !true |
| 38 | </Original> |
| 39 | <Expanded> |
| 40 | false |
| 41 | </Expanded> |
| 42 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 43 | <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 44 | <Original> |
| 45 | !true |
| 46 | </Original> |
| 47 | <Expanded> |
| 48 | !true |
| 49 | </Expanded> |
| 50 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 51 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 52 | <Original> |
| 53 | !trueValue |
| 54 | </Original> |
| 55 | <Expanded> |
| 56 | false |
| 57 | </Expanded> |
| 58 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 59 | <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 60 | <Original> |
| 61 | !trueValue |
| 62 | </Original> |
| 63 | <Expanded> |
| 64 | !true |
| 65 | </Expanded> |
| 66 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 67 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 68 | <Original> |
| 69 | !(1 == 1) |
| 70 | </Original> |
| 71 | <Expanded> |
| 72 | false |
| 73 | </Expanded> |
| 74 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 75 | <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 76 | <Original> |
| 77 | !1 == 1 |
| 78 | </Original> |
| 79 | <Expanded> |
| 80 | !(1 == 1) |
| 81 | </Expanded> |
| 82 | </Expression> |
| 83 | <OverallResult success="false"/> |
| 84 | </TestCase> |
| 85 | <TestCase name="'Not' checks that should succeed"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 86 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 87 | <Original> |
| 88 | false == false |
| 89 | </Original> |
| 90 | <Expanded> |
| 91 | false == false |
| 92 | </Expanded> |
| 93 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 94 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 95 | <Original> |
| 96 | true == true |
| 97 | </Original> |
| 98 | <Expanded> |
| 99 | true == true |
| 100 | </Expanded> |
| 101 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 102 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 103 | <Original> |
| 104 | !false |
| 105 | </Original> |
| 106 | <Expanded> |
| 107 | true |
| 108 | </Expanded> |
| 109 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 110 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 111 | <Original> |
| 112 | !false |
| 113 | </Original> |
| 114 | <Expanded> |
| 115 | !false |
| 116 | </Expanded> |
| 117 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 118 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 119 | <Original> |
| 120 | !falseValue |
| 121 | </Original> |
| 122 | <Expanded> |
| 123 | true |
| 124 | </Expanded> |
| 125 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 126 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 127 | <Original> |
| 128 | !falseValue |
| 129 | </Original> |
| 130 | <Expanded> |
| 131 | !false |
| 132 | </Expanded> |
| 133 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 134 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 135 | <Original> |
| 136 | !(1 == 2) |
| 137 | </Original> |
| 138 | <Expanded> |
| 139 | true |
| 140 | </Expanded> |
| 141 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 142 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 143 | <Original> |
| 144 | !1 == 2 |
| 145 | </Original> |
| 146 | <Expanded> |
| 147 | !(1 == 2) |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 148 | </Expanded> |
| 149 | </Expression> |
| 150 | <OverallResult success="true"/> |
| 151 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 152 | <TestCase name="(unimplemented) static bools can be evaluated"> |
| 153 | <Section name="compare to true"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 154 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 155 | <Original> |
| 156 | is_true<true>::value == true |
| 157 | </Original> |
| 158 | <Expanded> |
| 159 | true == true |
| 160 | </Expanded> |
| 161 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 162 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 163 | <Original> |
| 164 | true == is_true<true>::value |
| 165 | </Original> |
| 166 | <Expanded> |
| 167 | true == true |
| 168 | </Expanded> |
| 169 | </Expression> |
| 170 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 171 | </Section> |
| 172 | <Section name="compare to false"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 173 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 174 | <Original> |
| 175 | is_true<false>::value == false |
| 176 | </Original> |
| 177 | <Expanded> |
| 178 | false == false |
| 179 | </Expanded> |
| 180 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 181 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 182 | <Original> |
| 183 | false == is_true<false>::value |
| 184 | </Original> |
| 185 | <Expanded> |
| 186 | false == false |
| 187 | </Expanded> |
| 188 | </Expression> |
| 189 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 190 | </Section> |
| 191 | <Section name="negation"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 192 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 193 | <Original> |
| 194 | !is_true<false>::value |
| 195 | </Original> |
| 196 | <Expanded> |
| 197 | true |
| 198 | </Expanded> |
| 199 | </Expression> |
| 200 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 201 | </Section> |
| 202 | <Section name="double negation"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 203 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 204 | <Original> |
| 205 | !!is_true<true>::value |
| 206 | </Original> |
| 207 | <Expanded> |
| 208 | true |
| 209 | </Expanded> |
| 210 | </Expression> |
| 211 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 212 | </Section> |
| 213 | <Section name="direct"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 214 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 215 | <Original> |
| 216 | is_true<true>::value |
| 217 | </Original> |
| 218 | <Expanded> |
| 219 | true |
| 220 | </Expanded> |
| 221 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 222 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 223 | <Original> |
| 224 | !is_true<false>::value |
| 225 | </Original> |
| 226 | <Expanded> |
| 227 | !false |
| 228 | </Expanded> |
| 229 | </Expression> |
| 230 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 231 | </Section> |
| 232 | <OverallResult success="true"/> |
| 233 | </TestCase> |
| 234 | <TestCase name="A METHOD_AS_TEST_CASE based test run that fails"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 235 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/ClassTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 236 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 237 | s == "world" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 238 | </Original> |
| 239 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 240 | "hello" == "world" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 241 | </Expanded> |
| 242 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 243 | <OverallResult success="false"/> |
| 244 | </TestCase> |
| 245 | <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 246 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ClassTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 247 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 248 | s == "hello" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 249 | </Original> |
| 250 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 251 | "hello" == "hello" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 252 | </Expanded> |
| 253 | </Expression> |
| 254 | <OverallResult success="true"/> |
| 255 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 256 | <TestCase name="A TEST_CASE_METHOD based test run that fails"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 257 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/ClassTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 258 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 259 | m_a == 2 |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 260 | </Original> |
| 261 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 262 | 1 == 2 |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 263 | </Expanded> |
| 264 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 265 | <OverallResult success="false"/> |
| 266 | </TestCase> |
| 267 | <TestCase name="A TEST_CASE_METHOD based test run that succeeds"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 268 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ClassTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 269 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 270 | m_a == 1 |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 271 | </Original> |
| 272 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 273 | 1 == 1 |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 274 | </Expanded> |
| 275 | </Expression> |
| 276 | <OverallResult success="true"/> |
| 277 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 278 | <TestCase name="A couple of nested sections followed by a failure"> |
| 279 | <Section name="Outer"> |
| 280 | <Section name="Inner"> |
| 281 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 282 | </Section> |
| 283 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 284 | </Section> |
| 285 | <Failure> |
| 286 | to infinity and beyond |
| 287 | </Failure> |
| 288 | <OverallResult success="false"/> |
| 289 | </TestCase> |
| 290 | <TestCase name="A failing expression with a non streamable type is still captured"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 291 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 292 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 293 | &o1 == &o2 |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 294 | </Original> |
| 295 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 296 | 0x<hex digits> == 0x<hex digits> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 297 | </Expanded> |
| 298 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 299 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 300 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 301 | o1 == o2 |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 302 | </Original> |
| 303 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 304 | {?} == {?} |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 305 | </Expanded> |
| 306 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 307 | <OverallResult success="false"/> |
| 308 | </TestCase> |
| 309 | <TestCase name="AllOf matcher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 310 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 311 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 312 | testStringForMatching(), AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 313 | </Original> |
| 314 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 315 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 316 | </Expanded> |
| 317 | </Expression> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 318 | <OverallResult success="true"/> |
| 319 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 320 | <TestCase name="An empty test with no assertions"> |
| 321 | <OverallResult success="true"/> |
| 322 | </TestCase> |
| 323 | <TestCase name="An expression with side-effects should only be evaluated once"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 324 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 325 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 326 | i++ == 7 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 327 | </Original> |
| 328 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 329 | 7 == 7 |
| 330 | </Expanded> |
| 331 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 332 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 333 | <Original> |
| 334 | i++ == 8 |
| 335 | </Original> |
| 336 | <Expanded> |
| 337 | 8 == 8 |
| 338 | </Expanded> |
| 339 | </Expression> |
| 340 | <OverallResult success="true"/> |
| 341 | </TestCase> |
| 342 | <TestCase name="An unchecked exception reports the line of the last assertion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 343 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 344 | <Original> |
| 345 | 1 == 1 |
| 346 | </Original> |
| 347 | <Expanded> |
| 348 | 1 == 1 |
| 349 | </Expanded> |
| 350 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 351 | <Expression success="false" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 352 | <Original> |
| 353 | {Unknown expression after the reported line} |
| 354 | </Original> |
| 355 | <Expanded> |
| 356 | {Unknown expression after the reported line} |
| 357 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 358 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 359 | unexpected exception |
| 360 | </Exception> |
| 361 | </Expression> |
| 362 | <OverallResult success="false"/> |
| 363 | </TestCase> |
| 364 | <TestCase name="Anonymous test case 1"> |
| 365 | <OverallResult success="true"/> |
| 366 | </TestCase> |
| 367 | <TestCase name="AnyOf matcher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 368 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 369 | <Original> |
| 370 | testStringForMatching(), AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) |
| 371 | </Original> |
| 372 | <Expanded> |
| 373 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) |
| 374 | </Expanded> |
| 375 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 376 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 377 | <Original> |
| 378 | testStringForMatching(), AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) |
| 379 | </Original> |
| 380 | <Expanded> |
| 381 | "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) |
| 382 | </Expanded> |
| 383 | </Expression> |
| 384 | <OverallResult success="true"/> |
| 385 | </TestCase> |
| 386 | <TestCase name="Approximate PI"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 387 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 388 | <Original> |
| 389 | divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) |
| 390 | </Original> |
| 391 | <Expanded> |
| 392 | 3.1428571429 == Approx( 3.141 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 393 | </Expanded> |
| 394 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 395 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 396 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 397 | divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 398 | </Original> |
| 399 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 400 | 3.1428571429 != Approx( 3.141 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 401 | </Expanded> |
| 402 | </Expression> |
| 403 | <OverallResult success="true"/> |
| 404 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 405 | <TestCase name="Approximate comparisons with different epsilons"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 406 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 407 | <Original> |
| 408 | d != Approx( 1.231 ) |
| 409 | </Original> |
| 410 | <Expanded> |
| 411 | 1.23 != Approx( 1.231 ) |
| 412 | </Expanded> |
| 413 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 414 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 415 | <Original> |
| 416 | d == Approx( 1.231 ).epsilon( 0.1 ) |
| 417 | </Original> |
| 418 | <Expanded> |
| 419 | 1.23 == Approx( 1.231 ) |
| 420 | </Expanded> |
| 421 | </Expression> |
| 422 | <OverallResult success="true"/> |
| 423 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 424 | <TestCase name="Approximate comparisons with floats"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 425 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 426 | <Original> |
| 427 | 1.23f == Approx( 1.23f ) |
| 428 | </Original> |
| 429 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 430 | 1.23f == Approx( 1.2300000191 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 431 | </Expanded> |
| 432 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 433 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 434 | <Original> |
| 435 | 0.0f == Approx( 0.0f ) |
| 436 | </Original> |
| 437 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 438 | 0.0f == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 439 | </Expanded> |
| 440 | </Expression> |
| 441 | <OverallResult success="true"/> |
| 442 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 443 | <TestCase name="Approximate comparisons with ints"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 444 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 445 | <Original> |
| 446 | 1 == Approx( 1 ) |
| 447 | </Original> |
| 448 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 449 | 1 == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 450 | </Expanded> |
| 451 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 452 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 453 | <Original> |
| 454 | 0 == Approx( 0 ) |
| 455 | </Original> |
| 456 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 457 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 458 | </Expanded> |
| 459 | </Expression> |
| 460 | <OverallResult success="true"/> |
| 461 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 462 | <TestCase name="Approximate comparisons with mixed numeric types"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 463 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 464 | <Original> |
| 465 | 1.0f == Approx( 1 ) |
| 466 | </Original> |
| 467 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 468 | 1.0f == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 469 | </Expanded> |
| 470 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 471 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 472 | <Original> |
| 473 | 0 == Approx( dZero) |
| 474 | </Original> |
| 475 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 476 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 477 | </Expanded> |
| 478 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 479 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 480 | <Original> |
| 481 | 0 == Approx( dSmall ).epsilon( 0.001 ) |
| 482 | </Original> |
| 483 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 484 | 0 == Approx( 0.00001 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 485 | </Expanded> |
| 486 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 487 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 488 | <Original> |
| 489 | 1.234f == Approx( dMedium ) |
| 490 | </Original> |
| 491 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 492 | 1.234f == Approx( 1.234 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 493 | </Expanded> |
| 494 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 495 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 496 | <Original> |
| 497 | dMedium == Approx( 1.234f ) |
| 498 | </Original> |
| 499 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 500 | 1.234 == Approx( 1.2339999676 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 501 | </Expanded> |
| 502 | </Expression> |
| 503 | <OverallResult success="true"/> |
| 504 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 505 | <TestCase name="Assertions then sections"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 506 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 507 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 508 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 509 | </Original> |
| 510 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 511 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 512 | </Expanded> |
| 513 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 514 | <Section name="A section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 515 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 516 | <Original> |
| 517 | Catch::alwaysTrue() |
| 518 | </Original> |
| 519 | <Expanded> |
| 520 | true |
| 521 | </Expanded> |
| 522 | </Expression> |
| 523 | <Section name="Another section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 524 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 525 | <Original> |
| 526 | Catch::alwaysTrue() |
| 527 | </Original> |
| 528 | <Expanded> |
| 529 | true |
| 530 | </Expanded> |
| 531 | </Expression> |
| 532 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 533 | </Section> |
| 534 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 535 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 536 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 537 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 538 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 539 | </Original> |
| 540 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 541 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 542 | </Expanded> |
| 543 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 544 | <Section name="A section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 545 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 546 | <Original> |
| 547 | Catch::alwaysTrue() |
| 548 | </Original> |
| 549 | <Expanded> |
| 550 | true |
| 551 | </Expanded> |
| 552 | </Expression> |
| 553 | <Section name="Another other section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 554 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 555 | <Original> |
| 556 | Catch::alwaysTrue() |
| 557 | </Original> |
| 558 | <Expanded> |
| 559 | true |
| 560 | </Expanded> |
| 561 | </Expression> |
| 562 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 563 | </Section> |
| 564 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 565 | </Section> |
| 566 | <OverallResult success="true"/> |
| 567 | </TestCase> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame^] | 568 | <TestCase name="Character pretty printing"> |
| 569 | <Section name="Specifically escaped"> |
| 570 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 571 | <Original> |
| 572 | tab == '\t' |
| 573 | </Original> |
| 574 | <Expanded> |
| 575 | '\t' == '\t' |
| 576 | </Expanded> |
| 577 | </Expression> |
| 578 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 579 | <Original> |
| 580 | newline == '\n' |
| 581 | </Original> |
| 582 | <Expanded> |
| 583 | '\n' == '\n' |
| 584 | </Expanded> |
| 585 | </Expression> |
| 586 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 587 | <Original> |
| 588 | carr_return == '\r' |
| 589 | </Original> |
| 590 | <Expanded> |
| 591 | '\r' == '\r' |
| 592 | </Expanded> |
| 593 | </Expression> |
| 594 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 595 | <Original> |
| 596 | form_feed == '\f' |
| 597 | </Original> |
| 598 | <Expanded> |
| 599 | '\f' == '\f' |
| 600 | </Expanded> |
| 601 | </Expression> |
| 602 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 603 | </Section> |
| 604 | <Section name="General chars"> |
| 605 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 606 | <Original> |
| 607 | space == ' ' |
| 608 | </Original> |
| 609 | <Expanded> |
| 610 | ' ' == ' ' |
| 611 | </Expanded> |
| 612 | </Expression> |
| 613 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 614 | <Original> |
| 615 | c == chars[i] |
| 616 | </Original> |
| 617 | <Expanded> |
| 618 | 'a' == 'a' |
| 619 | </Expanded> |
| 620 | </Expression> |
| 621 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 622 | <Original> |
| 623 | c == chars[i] |
| 624 | </Original> |
| 625 | <Expanded> |
| 626 | 'z' == 'z' |
| 627 | </Expanded> |
| 628 | </Expression> |
| 629 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 630 | <Original> |
| 631 | c == chars[i] |
| 632 | </Original> |
| 633 | <Expanded> |
| 634 | 'A' == 'A' |
| 635 | </Expanded> |
| 636 | </Expression> |
| 637 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 638 | <Original> |
| 639 | c == chars[i] |
| 640 | </Original> |
| 641 | <Expanded> |
| 642 | 'Z' == 'Z' |
| 643 | </Expanded> |
| 644 | </Expression> |
| 645 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
| 646 | </Section> |
| 647 | <Section name="Low ASCII"> |
| 648 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 649 | <Original> |
| 650 | null_terminator == '\0' |
| 651 | </Original> |
| 652 | <Expanded> |
| 653 | 0 == 0 |
| 654 | </Expanded> |
| 655 | </Expression> |
| 656 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 657 | <Original> |
| 658 | c == i |
| 659 | </Original> |
| 660 | <Expanded> |
| 661 | 2 == 2 |
| 662 | </Expanded> |
| 663 | </Expression> |
| 664 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 665 | <Original> |
| 666 | c == i |
| 667 | </Original> |
| 668 | <Expanded> |
| 669 | 3 == 3 |
| 670 | </Expanded> |
| 671 | </Expression> |
| 672 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 673 | <Original> |
| 674 | c == i |
| 675 | </Original> |
| 676 | <Expanded> |
| 677 | 4 == 4 |
| 678 | </Expanded> |
| 679 | </Expression> |
| 680 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringGeneralTests.cpp" > |
| 681 | <Original> |
| 682 | c == i |
| 683 | </Original> |
| 684 | <Expanded> |
| 685 | 5 == 5 |
| 686 | </Expanded> |
| 687 | </Expression> |
| 688 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
| 689 | </Section> |
| 690 | <OverallResult success="true"/> |
| 691 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 692 | <TestCase name="Comparing function pointers"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 693 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 694 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 695 | a |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 696 | </Original> |
| 697 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 698 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 699 | </Expanded> |
| 700 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 701 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 702 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 703 | a == &foo |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 704 | </Original> |
| 705 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 706 | 0x<hex digits> == 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 707 | </Expanded> |
| 708 | </Expression> |
| 709 | <OverallResult success="true"/> |
| 710 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 711 | <TestCase name="Comparing member function pointers"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 712 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 713 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 714 | m == &S::f |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 715 | </Original> |
| 716 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 717 | 0x<hex digits> |
| 718 | == |
| 719 | 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 720 | </Expanded> |
| 721 | </Expression> |
| 722 | <OverallResult success="true"/> |
| 723 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 724 | <TestCase name="Comparisons between ints where one side is computed"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 725 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 726 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 727 | 54 == 6*9 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 728 | </Original> |
| 729 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 730 | 54 == 54 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 731 | </Expanded> |
| 732 | </Expression> |
| 733 | <OverallResult success="true"/> |
| 734 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 735 | <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 736 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 737 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 738 | ( -1 > 2u ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 739 | </Original> |
| 740 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 741 | true |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 742 | </Expanded> |
| 743 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 744 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 745 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 746 | -1 > 2u |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 747 | </Original> |
| 748 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 749 | -1 > 2 |
| 750 | </Expanded> |
| 751 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 752 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 753 | <Original> |
| 754 | ( 2u < -1 ) |
| 755 | </Original> |
| 756 | <Expanded> |
| 757 | true |
| 758 | </Expanded> |
| 759 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 760 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 761 | <Original> |
| 762 | 2u < -1 |
| 763 | </Original> |
| 764 | <Expanded> |
| 765 | 2 < -1 |
| 766 | </Expanded> |
| 767 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 768 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 769 | <Original> |
| 770 | ( minInt > 2u ) |
| 771 | </Original> |
| 772 | <Expanded> |
| 773 | true |
| 774 | </Expanded> |
| 775 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 776 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 777 | <Original> |
| 778 | minInt > 2u |
| 779 | </Original> |
| 780 | <Expanded> |
| 781 | -2147483648 > 2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 782 | </Expanded> |
| 783 | </Expression> |
| 784 | <OverallResult success="true"/> |
| 785 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 786 | <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 787 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 788 | <Original> |
| 789 | i == 1 |
| 790 | </Original> |
| 791 | <Expanded> |
| 792 | 1 == 1 |
| 793 | </Expanded> |
| 794 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 795 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 796 | <Original> |
| 797 | ui == 2 |
| 798 | </Original> |
| 799 | <Expanded> |
| 800 | 2 == 2 |
| 801 | </Expanded> |
| 802 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 803 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 804 | <Original> |
| 805 | l == 3 |
| 806 | </Original> |
| 807 | <Expanded> |
| 808 | 3 == 3 |
| 809 | </Expanded> |
| 810 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 811 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 812 | <Original> |
| 813 | ul == 4 |
| 814 | </Original> |
| 815 | <Expanded> |
| 816 | 4 == 4 |
| 817 | </Expanded> |
| 818 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 819 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 820 | <Original> |
| 821 | c == 5 |
| 822 | </Original> |
| 823 | <Expanded> |
| 824 | 5 == 5 |
| 825 | </Expanded> |
| 826 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 827 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 828 | <Original> |
| 829 | uc == 6 |
| 830 | </Original> |
| 831 | <Expanded> |
| 832 | 6 == 6 |
| 833 | </Expanded> |
| 834 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 835 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 836 | <Original> |
| 837 | 1 == i |
| 838 | </Original> |
| 839 | <Expanded> |
| 840 | 1 == 1 |
| 841 | </Expanded> |
| 842 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 843 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 844 | <Original> |
| 845 | 2 == ui |
| 846 | </Original> |
| 847 | <Expanded> |
| 848 | 2 == 2 |
| 849 | </Expanded> |
| 850 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 851 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 852 | <Original> |
| 853 | 3 == l |
| 854 | </Original> |
| 855 | <Expanded> |
| 856 | 3 == 3 |
| 857 | </Expanded> |
| 858 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 859 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 860 | <Original> |
| 861 | 4 == ul |
| 862 | </Original> |
| 863 | <Expanded> |
| 864 | 4 == 4 |
| 865 | </Expanded> |
| 866 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 867 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 868 | <Original> |
| 869 | 5 == c |
| 870 | </Original> |
| 871 | <Expanded> |
| 872 | 5 == 5 |
| 873 | </Expanded> |
| 874 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 875 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 876 | <Original> |
| 877 | 6 == uc |
| 878 | </Original> |
| 879 | <Expanded> |
| 880 | 6 == 6 |
| 881 | </Expanded> |
| 882 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 883 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 884 | <Original> |
| 885 | (std::numeric_limits<unsigned long>::max)() > ul |
| 886 | </Original> |
| 887 | <Expanded> |
Phil Nash | 0edebf4 | 2015-07-28 18:24:20 +0100 | [diff] [blame] | 888 | 18446744073709551615 (0x<hex digits>) |
| 889 | > |
| 890 | 4 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 891 | </Expanded> |
| 892 | </Expression> |
| 893 | <OverallResult success="true"/> |
| 894 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 895 | <TestCase name="Contains string matcher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 896 | <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 897 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 898 | testStringForMatching(), Contains( "not there" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 899 | </Original> |
| 900 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 901 | "this string contains 'abc' as a substring" contains: "not there" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 902 | </Expanded> |
| 903 | </Expression> |
Phil Nash | a49f088 | 2015-11-18 08:39:21 +0000 | [diff] [blame] | 904 | <OverallResult success="false"/> |
| 905 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 906 | <TestCase name="Custom exceptions can be translated when testing for nothrow"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 907 | <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 908 | <Original> |
| 909 | throwCustom() |
| 910 | </Original> |
| 911 | <Expanded> |
| 912 | throwCustom() |
| 913 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 914 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 915 | custom exception - not std |
| 916 | </Exception> |
| 917 | </Expression> |
| 918 | <OverallResult success="false"/> |
| 919 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 920 | <TestCase name="Custom exceptions can be translated when testing for throwing as something else"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 921 | <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 922 | <Original> |
| 923 | throwCustom() |
| 924 | </Original> |
| 925 | <Expanded> |
| 926 | throwCustom() |
| 927 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 928 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 929 | custom exception - not std |
| 930 | </Exception> |
| 931 | </Expression> |
| 932 | <OverallResult success="false"/> |
| 933 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 934 | <TestCase name="Custom std-exceptions can be custom translated"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 935 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 936 | custom std exception |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 937 | </Exception> |
| 938 | <OverallResult success="false"/> |
| 939 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 940 | <TestCase name="Demonstrate that a non-const == is not used"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 941 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 942 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 943 | t == 1u |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 944 | </Original> |
| 945 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 946 | {?} == 1 |
| 947 | </Expanded> |
| 948 | </Expression> |
| 949 | <OverallResult success="true"/> |
| 950 | </TestCase> |
| 951 | <TestCase name="EndsWith string matcher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 952 | <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 953 | <Original> |
| 954 | testStringForMatching(), EndsWith( "this" ) |
| 955 | </Original> |
| 956 | <Expanded> |
| 957 | "this string contains 'abc' as a substring" ends with: "this" |
| 958 | </Expanded> |
| 959 | </Expression> |
| 960 | <OverallResult success="false"/> |
| 961 | </TestCase> |
| 962 | <TestCase name="Equality checks that should fail"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 963 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 964 | <Original> |
| 965 | data.int_seven == 6 |
| 966 | </Original> |
| 967 | <Expanded> |
| 968 | 7 == 6 |
| 969 | </Expanded> |
| 970 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 971 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 972 | <Original> |
| 973 | data.int_seven == 8 |
| 974 | </Original> |
| 975 | <Expanded> |
| 976 | 7 == 8 |
| 977 | </Expanded> |
| 978 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 979 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 980 | <Original> |
| 981 | data.int_seven == 0 |
| 982 | </Original> |
| 983 | <Expanded> |
| 984 | 7 == 0 |
| 985 | </Expanded> |
| 986 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 987 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 988 | <Original> |
| 989 | data.float_nine_point_one == Approx( 9.11f ) |
| 990 | </Original> |
| 991 | <Expanded> |
| 992 | 9.1f == Approx( 9.1099996567 ) |
| 993 | </Expanded> |
| 994 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 995 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 996 | <Original> |
| 997 | data.float_nine_point_one == Approx( 9.0f ) |
| 998 | </Original> |
| 999 | <Expanded> |
| 1000 | 9.1f == Approx( 9.0 ) |
| 1001 | </Expanded> |
| 1002 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1003 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1004 | <Original> |
| 1005 | data.float_nine_point_one == Approx( 1 ) |
| 1006 | </Original> |
| 1007 | <Expanded> |
| 1008 | 9.1f == Approx( 1.0 ) |
| 1009 | </Expanded> |
| 1010 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1011 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1012 | <Original> |
| 1013 | data.float_nine_point_one == Approx( 0 ) |
| 1014 | </Original> |
| 1015 | <Expanded> |
| 1016 | 9.1f == Approx( 0.0 ) |
| 1017 | </Expanded> |
| 1018 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1019 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1020 | <Original> |
| 1021 | data.double_pi == Approx( 3.1415 ) |
| 1022 | </Original> |
| 1023 | <Expanded> |
| 1024 | 3.1415926535 == Approx( 3.1415 ) |
| 1025 | </Expanded> |
| 1026 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1027 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1028 | <Original> |
| 1029 | data.str_hello == "goodbye" |
| 1030 | </Original> |
| 1031 | <Expanded> |
| 1032 | "hello" == "goodbye" |
| 1033 | </Expanded> |
| 1034 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1035 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1036 | <Original> |
| 1037 | data.str_hello == "hell" |
| 1038 | </Original> |
| 1039 | <Expanded> |
| 1040 | "hello" == "hell" |
| 1041 | </Expanded> |
| 1042 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1043 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1044 | <Original> |
| 1045 | data.str_hello == "hello1" |
| 1046 | </Original> |
| 1047 | <Expanded> |
| 1048 | "hello" == "hello1" |
| 1049 | </Expanded> |
| 1050 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1051 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1052 | <Original> |
| 1053 | data.str_hello.size() == 6 |
| 1054 | </Original> |
| 1055 | <Expanded> |
| 1056 | 5 == 6 |
| 1057 | </Expanded> |
| 1058 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1059 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1060 | <Original> |
| 1061 | x == Approx( 1.301 ) |
| 1062 | </Original> |
| 1063 | <Expanded> |
| 1064 | 1.3 == Approx( 1.301 ) |
| 1065 | </Expanded> |
| 1066 | </Expression> |
| 1067 | <OverallResult success="true"/> |
| 1068 | </TestCase> |
| 1069 | <TestCase name="Equality checks that should succeed"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1070 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1071 | <Original> |
| 1072 | data.int_seven == 7 |
| 1073 | </Original> |
| 1074 | <Expanded> |
| 1075 | 7 == 7 |
| 1076 | </Expanded> |
| 1077 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1078 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1079 | <Original> |
| 1080 | data.float_nine_point_one == Approx( 9.1f ) |
| 1081 | </Original> |
| 1082 | <Expanded> |
| 1083 | 9.1f == Approx( 9.1000003815 ) |
| 1084 | </Expanded> |
| 1085 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1086 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1087 | <Original> |
| 1088 | data.double_pi == Approx( 3.1415926535 ) |
| 1089 | </Original> |
| 1090 | <Expanded> |
| 1091 | 3.1415926535 == Approx( 3.1415926535 ) |
| 1092 | </Expanded> |
| 1093 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1094 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1095 | <Original> |
| 1096 | data.str_hello == "hello" |
| 1097 | </Original> |
| 1098 | <Expanded> |
| 1099 | "hello" == "hello" |
| 1100 | </Expanded> |
| 1101 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1102 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1103 | <Original> |
| 1104 | "hello" == data.str_hello |
| 1105 | </Original> |
| 1106 | <Expanded> |
| 1107 | "hello" == "hello" |
| 1108 | </Expanded> |
| 1109 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1110 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1111 | <Original> |
| 1112 | data.str_hello.size() == 5 |
| 1113 | </Original> |
| 1114 | <Expanded> |
| 1115 | 5 == 5 |
| 1116 | </Expanded> |
| 1117 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1118 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1119 | <Original> |
| 1120 | x == Approx( 1.3 ) |
| 1121 | </Original> |
| 1122 | <Expanded> |
| 1123 | 1.3 == Approx( 1.3 ) |
| 1124 | </Expanded> |
| 1125 | </Expression> |
| 1126 | <OverallResult success="true"/> |
| 1127 | </TestCase> |
| 1128 | <TestCase name="Equals"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1129 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1130 | <Original> |
| 1131 | testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) |
| 1132 | </Original> |
| 1133 | <Expanded> |
| 1134 | "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" |
| 1135 | </Expanded> |
| 1136 | </Expression> |
| 1137 | <OverallResult success="true"/> |
| 1138 | </TestCase> |
| 1139 | <TestCase name="Equals string matcher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1140 | <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1141 | <Original> |
| 1142 | testStringForMatching(), Equals( "something else" ) |
| 1143 | </Original> |
| 1144 | <Expanded> |
| 1145 | "this string contains 'abc' as a substring" equals: "something else" |
| 1146 | </Expanded> |
| 1147 | </Expression> |
| 1148 | <OverallResult success="false"/> |
| 1149 | </TestCase> |
| 1150 | <TestCase name="Equals string matcher, with NULL"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1151 | <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1152 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 1153 | "", Equals(0) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1154 | </Original> |
| 1155 | <Expanded> |
| 1156 | "" equals: "" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1157 | </Expanded> |
| 1158 | </Expression> |
| 1159 | <OverallResult success="true"/> |
| 1160 | </TestCase> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1161 | <TestCase name="Exception messages can be tested for"> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1162 | <Section name="exact match"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1163 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1164 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1165 | thisThrows(), "expected exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1166 | </Original> |
| 1167 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1168 | thisThrows(), "expected exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1169 | </Expanded> |
| 1170 | </Expression> |
| 1171 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 1172 | </Section> |
| 1173 | <Section name="different case"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1174 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1175 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1176 | thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1177 | </Original> |
| 1178 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1179 | thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1180 | </Expanded> |
| 1181 | </Expression> |
| 1182 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 1183 | </Section> |
| 1184 | <Section name="wildcarded"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1185 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1186 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1187 | thisThrows(), StartsWith( "expected" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1188 | </Original> |
| 1189 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1190 | thisThrows(), StartsWith( "expected" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1191 | </Expanded> |
| 1192 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1193 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1194 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1195 | thisThrows(), EndsWith( "exception" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1196 | </Original> |
| 1197 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1198 | thisThrows(), EndsWith( "exception" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1199 | </Expanded> |
| 1200 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1201 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1202 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1203 | thisThrows(), Contains( "except" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1204 | </Original> |
| 1205 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1206 | thisThrows(), Contains( "except" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1207 | </Expanded> |
| 1208 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1209 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1210 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1211 | thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1212 | </Original> |
| 1213 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1214 | thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1215 | </Expanded> |
| 1216 | </Expression> |
| 1217 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 1218 | </Section> |
| 1219 | <OverallResult success="true"/> |
| 1220 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1221 | <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1222 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1223 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1224 | thisThrows() |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1225 | </Original> |
| 1226 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1227 | thisThrows() |
| 1228 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1229 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1230 | expected exception |
| 1231 | </Exception> |
| 1232 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1233 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1234 | <Original> |
| 1235 | thisDoesntThrow() |
| 1236 | </Original> |
| 1237 | <Expanded> |
| 1238 | thisDoesntThrow() |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1239 | </Expanded> |
| 1240 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1241 | <Expression success="false" type="CHECK_NOTHROW" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1242 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1243 | thisThrows() |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1244 | </Original> |
| 1245 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1246 | thisThrows() |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1247 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1248 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1249 | expected exception |
| 1250 | </Exception> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1251 | </Expression> |
| 1252 | <OverallResult success="false"/> |
| 1253 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1254 | <TestCase name="FAIL aborts the test"> |
| 1255 | <Failure> |
| 1256 | This is a failure |
| 1257 | </Failure> |
| 1258 | <OverallResult success="false"/> |
| 1259 | </TestCase> |
| 1260 | <TestCase name="FAIL does not require an argument"> |
| 1261 | <Failure/> |
| 1262 | <OverallResult success="false"/> |
| 1263 | </TestCase> |
| 1264 | <TestCase name="Factorials are computed"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1265 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1266 | <Original> |
| 1267 | Factorial(0) == 1 |
| 1268 | </Original> |
| 1269 | <Expanded> |
| 1270 | 1 == 1 |
| 1271 | </Expanded> |
| 1272 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1273 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1274 | <Original> |
| 1275 | Factorial(1) == 1 |
| 1276 | </Original> |
| 1277 | <Expanded> |
| 1278 | 1 == 1 |
| 1279 | </Expanded> |
| 1280 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1281 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1282 | <Original> |
| 1283 | Factorial(2) == 2 |
| 1284 | </Original> |
| 1285 | <Expanded> |
| 1286 | 2 == 2 |
| 1287 | </Expanded> |
| 1288 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1289 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1290 | <Original> |
| 1291 | Factorial(3) == 6 |
| 1292 | </Original> |
| 1293 | <Expanded> |
| 1294 | 6 == 6 |
| 1295 | </Expanded> |
| 1296 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1297 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1298 | <Original> |
| 1299 | Factorial(10) == 3628800 |
| 1300 | </Original> |
| 1301 | <Expanded> |
| 1302 | 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) |
| 1303 | </Expanded> |
| 1304 | </Expression> |
| 1305 | <OverallResult success="true"/> |
| 1306 | </TestCase> |
| 1307 | <TestCase name="Generator over a range of pairs"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1308 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1309 | <Original> |
| 1310 | i->first == i->second-1 |
| 1311 | </Original> |
| 1312 | <Expanded> |
| 1313 | 0 == 0 |
| 1314 | </Expanded> |
| 1315 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1316 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 1317 | <Original> |
| 1318 | i->first == i->second-1 |
| 1319 | </Original> |
| 1320 | <Expanded> |
| 1321 | 2 == 2 |
| 1322 | </Expanded> |
| 1323 | </Expression> |
| 1324 | <OverallResult success="true"/> |
| 1325 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1326 | <TestCase name="Generators over two ranges"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1327 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1328 | <Original> |
| 1329 | multiply( i, 2 ) == i*2 |
| 1330 | </Original> |
| 1331 | <Expanded> |
| 1332 | 2 == 2 |
| 1333 | </Expanded> |
| 1334 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1335 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1336 | <Original> |
| 1337 | multiply( j, 2 ) == j*2 |
| 1338 | </Original> |
| 1339 | <Expanded> |
| 1340 | 200 == 200 |
| 1341 | </Expanded> |
| 1342 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1343 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1344 | <Original> |
| 1345 | multiply( i, 2 ) == i*2 |
| 1346 | </Original> |
| 1347 | <Expanded> |
| 1348 | 4 == 4 |
| 1349 | </Expanded> |
| 1350 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1351 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1352 | <Original> |
| 1353 | multiply( j, 2 ) == j*2 |
| 1354 | </Original> |
| 1355 | <Expanded> |
| 1356 | 200 == 200 |
| 1357 | </Expanded> |
| 1358 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1359 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1360 | <Original> |
| 1361 | multiply( i, 2 ) == i*2 |
| 1362 | </Original> |
| 1363 | <Expanded> |
| 1364 | 6 == 6 |
| 1365 | </Expanded> |
| 1366 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1367 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1368 | <Original> |
| 1369 | multiply( j, 2 ) == j*2 |
| 1370 | </Original> |
| 1371 | <Expanded> |
| 1372 | 200 == 200 |
| 1373 | </Expanded> |
| 1374 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1375 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1376 | <Original> |
| 1377 | multiply( i, 2 ) == i*2 |
| 1378 | </Original> |
| 1379 | <Expanded> |
| 1380 | 8 == 8 |
| 1381 | </Expanded> |
| 1382 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1383 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1384 | <Original> |
| 1385 | multiply( j, 2 ) == j*2 |
| 1386 | </Original> |
| 1387 | <Expanded> |
| 1388 | 200 == 200 |
| 1389 | </Expanded> |
| 1390 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1391 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1392 | <Original> |
| 1393 | multiply( i, 2 ) == i*2 |
| 1394 | </Original> |
| 1395 | <Expanded> |
| 1396 | 10 == 10 |
| 1397 | </Expanded> |
| 1398 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1399 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1400 | <Original> |
| 1401 | multiply( j, 2 ) == j*2 |
| 1402 | </Original> |
| 1403 | <Expanded> |
| 1404 | 200 == 200 |
| 1405 | </Expanded> |
| 1406 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1407 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1408 | <Original> |
| 1409 | multiply( i, 2 ) == i*2 |
| 1410 | </Original> |
| 1411 | <Expanded> |
| 1412 | 30 == 30 |
| 1413 | </Expanded> |
| 1414 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1415 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1416 | <Original> |
| 1417 | multiply( j, 2 ) == j*2 |
| 1418 | </Original> |
| 1419 | <Expanded> |
| 1420 | 200 == 200 |
| 1421 | </Expanded> |
| 1422 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1423 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1424 | <Original> |
| 1425 | multiply( i, 2 ) == i*2 |
| 1426 | </Original> |
| 1427 | <Expanded> |
| 1428 | 40 == 40 |
| 1429 | </Expanded> |
| 1430 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1431 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1432 | <Original> |
| 1433 | multiply( j, 2 ) == j*2 |
| 1434 | </Original> |
| 1435 | <Expanded> |
| 1436 | 200 == 200 |
| 1437 | </Expanded> |
| 1438 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1439 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1440 | <Original> |
| 1441 | multiply( i, 2 ) == i*2 |
| 1442 | </Original> |
| 1443 | <Expanded> |
| 1444 | 42 == 42 |
| 1445 | </Expanded> |
| 1446 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1447 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1448 | <Original> |
| 1449 | multiply( j, 2 ) == j*2 |
| 1450 | </Original> |
| 1451 | <Expanded> |
| 1452 | 200 == 200 |
| 1453 | </Expanded> |
| 1454 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1455 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1456 | <Original> |
| 1457 | multiply( i, 2 ) == i*2 |
| 1458 | </Original> |
| 1459 | <Expanded> |
| 1460 | 72 == 72 |
| 1461 | </Expanded> |
| 1462 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1463 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1464 | <Original> |
| 1465 | multiply( j, 2 ) == j*2 |
| 1466 | </Original> |
| 1467 | <Expanded> |
| 1468 | 200 == 200 |
| 1469 | </Expanded> |
| 1470 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1471 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1472 | <Original> |
| 1473 | multiply( i, 2 ) == i*2 |
| 1474 | </Original> |
| 1475 | <Expanded> |
| 1476 | 2 == 2 |
| 1477 | </Expanded> |
| 1478 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1479 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1480 | <Original> |
| 1481 | multiply( j, 2 ) == j*2 |
| 1482 | </Original> |
| 1483 | <Expanded> |
| 1484 | 202 == 202 |
| 1485 | </Expanded> |
| 1486 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1487 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1488 | <Original> |
| 1489 | multiply( i, 2 ) == i*2 |
| 1490 | </Original> |
| 1491 | <Expanded> |
| 1492 | 4 == 4 |
| 1493 | </Expanded> |
| 1494 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1495 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1496 | <Original> |
| 1497 | multiply( j, 2 ) == j*2 |
| 1498 | </Original> |
| 1499 | <Expanded> |
| 1500 | 202 == 202 |
| 1501 | </Expanded> |
| 1502 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1503 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1504 | <Original> |
| 1505 | multiply( i, 2 ) == i*2 |
| 1506 | </Original> |
| 1507 | <Expanded> |
| 1508 | 6 == 6 |
| 1509 | </Expanded> |
| 1510 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1511 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1512 | <Original> |
| 1513 | multiply( j, 2 ) == j*2 |
| 1514 | </Original> |
| 1515 | <Expanded> |
| 1516 | 202 == 202 |
| 1517 | </Expanded> |
| 1518 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1519 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1520 | <Original> |
| 1521 | multiply( i, 2 ) == i*2 |
| 1522 | </Original> |
| 1523 | <Expanded> |
| 1524 | 8 == 8 |
| 1525 | </Expanded> |
| 1526 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1527 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1528 | <Original> |
| 1529 | multiply( j, 2 ) == j*2 |
| 1530 | </Original> |
| 1531 | <Expanded> |
| 1532 | 202 == 202 |
| 1533 | </Expanded> |
| 1534 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1535 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1536 | <Original> |
| 1537 | multiply( i, 2 ) == i*2 |
| 1538 | </Original> |
| 1539 | <Expanded> |
| 1540 | 10 == 10 |
| 1541 | </Expanded> |
| 1542 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1543 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1544 | <Original> |
| 1545 | multiply( j, 2 ) == j*2 |
| 1546 | </Original> |
| 1547 | <Expanded> |
| 1548 | 202 == 202 |
| 1549 | </Expanded> |
| 1550 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1551 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1552 | <Original> |
| 1553 | multiply( i, 2 ) == i*2 |
| 1554 | </Original> |
| 1555 | <Expanded> |
| 1556 | 30 == 30 |
| 1557 | </Expanded> |
| 1558 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1559 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1560 | <Original> |
| 1561 | multiply( j, 2 ) == j*2 |
| 1562 | </Original> |
| 1563 | <Expanded> |
| 1564 | 202 == 202 |
| 1565 | </Expanded> |
| 1566 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1567 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1568 | <Original> |
| 1569 | multiply( i, 2 ) == i*2 |
| 1570 | </Original> |
| 1571 | <Expanded> |
| 1572 | 40 == 40 |
| 1573 | </Expanded> |
| 1574 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1575 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1576 | <Original> |
| 1577 | multiply( j, 2 ) == j*2 |
| 1578 | </Original> |
| 1579 | <Expanded> |
| 1580 | 202 == 202 |
| 1581 | </Expanded> |
| 1582 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1583 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1584 | <Original> |
| 1585 | multiply( i, 2 ) == i*2 |
| 1586 | </Original> |
| 1587 | <Expanded> |
| 1588 | 42 == 42 |
| 1589 | </Expanded> |
| 1590 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1591 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1592 | <Original> |
| 1593 | multiply( j, 2 ) == j*2 |
| 1594 | </Original> |
| 1595 | <Expanded> |
| 1596 | 202 == 202 |
| 1597 | </Expanded> |
| 1598 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1599 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1600 | <Original> |
| 1601 | multiply( i, 2 ) == i*2 |
| 1602 | </Original> |
| 1603 | <Expanded> |
| 1604 | 72 == 72 |
| 1605 | </Expanded> |
| 1606 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1607 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1608 | <Original> |
| 1609 | multiply( j, 2 ) == j*2 |
| 1610 | </Original> |
| 1611 | <Expanded> |
| 1612 | 202 == 202 |
| 1613 | </Expanded> |
| 1614 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1615 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1616 | <Original> |
| 1617 | multiply( i, 2 ) == i*2 |
| 1618 | </Original> |
| 1619 | <Expanded> |
| 1620 | 2 == 2 |
| 1621 | </Expanded> |
| 1622 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1623 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1624 | <Original> |
| 1625 | multiply( j, 2 ) == j*2 |
| 1626 | </Original> |
| 1627 | <Expanded> |
| 1628 | 204 == 204 |
| 1629 | </Expanded> |
| 1630 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1631 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1632 | <Original> |
| 1633 | multiply( i, 2 ) == i*2 |
| 1634 | </Original> |
| 1635 | <Expanded> |
| 1636 | 4 == 4 |
| 1637 | </Expanded> |
| 1638 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1639 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1640 | <Original> |
| 1641 | multiply( j, 2 ) == j*2 |
| 1642 | </Original> |
| 1643 | <Expanded> |
| 1644 | 204 == 204 |
| 1645 | </Expanded> |
| 1646 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1647 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1648 | <Original> |
| 1649 | multiply( i, 2 ) == i*2 |
| 1650 | </Original> |
| 1651 | <Expanded> |
| 1652 | 6 == 6 |
| 1653 | </Expanded> |
| 1654 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1655 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1656 | <Original> |
| 1657 | multiply( j, 2 ) == j*2 |
| 1658 | </Original> |
| 1659 | <Expanded> |
| 1660 | 204 == 204 |
| 1661 | </Expanded> |
| 1662 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1663 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1664 | <Original> |
| 1665 | multiply( i, 2 ) == i*2 |
| 1666 | </Original> |
| 1667 | <Expanded> |
| 1668 | 8 == 8 |
| 1669 | </Expanded> |
| 1670 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1671 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1672 | <Original> |
| 1673 | multiply( j, 2 ) == j*2 |
| 1674 | </Original> |
| 1675 | <Expanded> |
| 1676 | 204 == 204 |
| 1677 | </Expanded> |
| 1678 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1679 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1680 | <Original> |
| 1681 | multiply( i, 2 ) == i*2 |
| 1682 | </Original> |
| 1683 | <Expanded> |
| 1684 | 10 == 10 |
| 1685 | </Expanded> |
| 1686 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1687 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1688 | <Original> |
| 1689 | multiply( j, 2 ) == j*2 |
| 1690 | </Original> |
| 1691 | <Expanded> |
| 1692 | 204 == 204 |
| 1693 | </Expanded> |
| 1694 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1695 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1696 | <Original> |
| 1697 | multiply( i, 2 ) == i*2 |
| 1698 | </Original> |
| 1699 | <Expanded> |
| 1700 | 30 == 30 |
| 1701 | </Expanded> |
| 1702 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1703 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1704 | <Original> |
| 1705 | multiply( j, 2 ) == j*2 |
| 1706 | </Original> |
| 1707 | <Expanded> |
| 1708 | 204 == 204 |
| 1709 | </Expanded> |
| 1710 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1711 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1712 | <Original> |
| 1713 | multiply( i, 2 ) == i*2 |
| 1714 | </Original> |
| 1715 | <Expanded> |
| 1716 | 40 == 40 |
| 1717 | </Expanded> |
| 1718 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1719 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1720 | <Original> |
| 1721 | multiply( j, 2 ) == j*2 |
| 1722 | </Original> |
| 1723 | <Expanded> |
| 1724 | 204 == 204 |
| 1725 | </Expanded> |
| 1726 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1727 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1728 | <Original> |
| 1729 | multiply( i, 2 ) == i*2 |
| 1730 | </Original> |
| 1731 | <Expanded> |
| 1732 | 42 == 42 |
| 1733 | </Expanded> |
| 1734 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1735 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1736 | <Original> |
| 1737 | multiply( j, 2 ) == j*2 |
| 1738 | </Original> |
| 1739 | <Expanded> |
| 1740 | 204 == 204 |
| 1741 | </Expanded> |
| 1742 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1743 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1744 | <Original> |
| 1745 | multiply( i, 2 ) == i*2 |
| 1746 | </Original> |
| 1747 | <Expanded> |
| 1748 | 72 == 72 |
| 1749 | </Expanded> |
| 1750 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1751 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1752 | <Original> |
| 1753 | multiply( j, 2 ) == j*2 |
| 1754 | </Original> |
| 1755 | <Expanded> |
| 1756 | 204 == 204 |
| 1757 | </Expanded> |
| 1758 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1759 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1760 | <Original> |
| 1761 | multiply( i, 2 ) == i*2 |
| 1762 | </Original> |
| 1763 | <Expanded> |
| 1764 | 2 == 2 |
| 1765 | </Expanded> |
| 1766 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1767 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1768 | <Original> |
| 1769 | multiply( j, 2 ) == j*2 |
| 1770 | </Original> |
| 1771 | <Expanded> |
| 1772 | 206 == 206 |
| 1773 | </Expanded> |
| 1774 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1775 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1776 | <Original> |
| 1777 | multiply( i, 2 ) == i*2 |
| 1778 | </Original> |
| 1779 | <Expanded> |
| 1780 | 4 == 4 |
| 1781 | </Expanded> |
| 1782 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1783 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1784 | <Original> |
| 1785 | multiply( j, 2 ) == j*2 |
| 1786 | </Original> |
| 1787 | <Expanded> |
| 1788 | 206 == 206 |
| 1789 | </Expanded> |
| 1790 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1791 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1792 | <Original> |
| 1793 | multiply( i, 2 ) == i*2 |
| 1794 | </Original> |
| 1795 | <Expanded> |
| 1796 | 6 == 6 |
| 1797 | </Expanded> |
| 1798 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1799 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1800 | <Original> |
| 1801 | multiply( j, 2 ) == j*2 |
| 1802 | </Original> |
| 1803 | <Expanded> |
| 1804 | 206 == 206 |
| 1805 | </Expanded> |
| 1806 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1807 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1808 | <Original> |
| 1809 | multiply( i, 2 ) == i*2 |
| 1810 | </Original> |
| 1811 | <Expanded> |
| 1812 | 8 == 8 |
| 1813 | </Expanded> |
| 1814 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1815 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1816 | <Original> |
| 1817 | multiply( j, 2 ) == j*2 |
| 1818 | </Original> |
| 1819 | <Expanded> |
| 1820 | 206 == 206 |
| 1821 | </Expanded> |
| 1822 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1823 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1824 | <Original> |
| 1825 | multiply( i, 2 ) == i*2 |
| 1826 | </Original> |
| 1827 | <Expanded> |
| 1828 | 10 == 10 |
| 1829 | </Expanded> |
| 1830 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1831 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1832 | <Original> |
| 1833 | multiply( j, 2 ) == j*2 |
| 1834 | </Original> |
| 1835 | <Expanded> |
| 1836 | 206 == 206 |
| 1837 | </Expanded> |
| 1838 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1839 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1840 | <Original> |
| 1841 | multiply( i, 2 ) == i*2 |
| 1842 | </Original> |
| 1843 | <Expanded> |
| 1844 | 30 == 30 |
| 1845 | </Expanded> |
| 1846 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1847 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1848 | <Original> |
| 1849 | multiply( j, 2 ) == j*2 |
| 1850 | </Original> |
| 1851 | <Expanded> |
| 1852 | 206 == 206 |
| 1853 | </Expanded> |
| 1854 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1855 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1856 | <Original> |
| 1857 | multiply( i, 2 ) == i*2 |
| 1858 | </Original> |
| 1859 | <Expanded> |
| 1860 | 40 == 40 |
| 1861 | </Expanded> |
| 1862 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1863 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1864 | <Original> |
| 1865 | multiply( j, 2 ) == j*2 |
| 1866 | </Original> |
| 1867 | <Expanded> |
| 1868 | 206 == 206 |
| 1869 | </Expanded> |
| 1870 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1871 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1872 | <Original> |
| 1873 | multiply( i, 2 ) == i*2 |
| 1874 | </Original> |
| 1875 | <Expanded> |
| 1876 | 42 == 42 |
| 1877 | </Expanded> |
| 1878 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1879 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1880 | <Original> |
| 1881 | multiply( j, 2 ) == j*2 |
| 1882 | </Original> |
| 1883 | <Expanded> |
| 1884 | 206 == 206 |
| 1885 | </Expanded> |
| 1886 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1887 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1888 | <Original> |
| 1889 | multiply( i, 2 ) == i*2 |
| 1890 | </Original> |
| 1891 | <Expanded> |
| 1892 | 72 == 72 |
| 1893 | </Expanded> |
| 1894 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1895 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1896 | <Original> |
| 1897 | multiply( j, 2 ) == j*2 |
| 1898 | </Original> |
| 1899 | <Expanded> |
| 1900 | 206 == 206 |
| 1901 | </Expanded> |
| 1902 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1903 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1904 | <Original> |
| 1905 | multiply( i, 2 ) == i*2 |
| 1906 | </Original> |
| 1907 | <Expanded> |
| 1908 | 2 == 2 |
| 1909 | </Expanded> |
| 1910 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1911 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1912 | <Original> |
| 1913 | multiply( j, 2 ) == j*2 |
| 1914 | </Original> |
| 1915 | <Expanded> |
| 1916 | 208 == 208 |
| 1917 | </Expanded> |
| 1918 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1919 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1920 | <Original> |
| 1921 | multiply( i, 2 ) == i*2 |
| 1922 | </Original> |
| 1923 | <Expanded> |
| 1924 | 4 == 4 |
| 1925 | </Expanded> |
| 1926 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1927 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1928 | <Original> |
| 1929 | multiply( j, 2 ) == j*2 |
| 1930 | </Original> |
| 1931 | <Expanded> |
| 1932 | 208 == 208 |
| 1933 | </Expanded> |
| 1934 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1935 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1936 | <Original> |
| 1937 | multiply( i, 2 ) == i*2 |
| 1938 | </Original> |
| 1939 | <Expanded> |
| 1940 | 6 == 6 |
| 1941 | </Expanded> |
| 1942 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1943 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1944 | <Original> |
| 1945 | multiply( j, 2 ) == j*2 |
| 1946 | </Original> |
| 1947 | <Expanded> |
| 1948 | 208 == 208 |
| 1949 | </Expanded> |
| 1950 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1951 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1952 | <Original> |
| 1953 | multiply( i, 2 ) == i*2 |
| 1954 | </Original> |
| 1955 | <Expanded> |
| 1956 | 8 == 8 |
| 1957 | </Expanded> |
| 1958 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1959 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1960 | <Original> |
| 1961 | multiply( j, 2 ) == j*2 |
| 1962 | </Original> |
| 1963 | <Expanded> |
| 1964 | 208 == 208 |
| 1965 | </Expanded> |
| 1966 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1967 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1968 | <Original> |
| 1969 | multiply( i, 2 ) == i*2 |
| 1970 | </Original> |
| 1971 | <Expanded> |
| 1972 | 10 == 10 |
| 1973 | </Expanded> |
| 1974 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1975 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1976 | <Original> |
| 1977 | multiply( j, 2 ) == j*2 |
| 1978 | </Original> |
| 1979 | <Expanded> |
| 1980 | 208 == 208 |
| 1981 | </Expanded> |
| 1982 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1983 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1984 | <Original> |
| 1985 | multiply( i, 2 ) == i*2 |
| 1986 | </Original> |
| 1987 | <Expanded> |
| 1988 | 30 == 30 |
| 1989 | </Expanded> |
| 1990 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1991 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1992 | <Original> |
| 1993 | multiply( j, 2 ) == j*2 |
| 1994 | </Original> |
| 1995 | <Expanded> |
| 1996 | 208 == 208 |
| 1997 | </Expanded> |
| 1998 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 1999 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2000 | <Original> |
| 2001 | multiply( i, 2 ) == i*2 |
| 2002 | </Original> |
| 2003 | <Expanded> |
| 2004 | 40 == 40 |
| 2005 | </Expanded> |
| 2006 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2007 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2008 | <Original> |
| 2009 | multiply( j, 2 ) == j*2 |
| 2010 | </Original> |
| 2011 | <Expanded> |
| 2012 | 208 == 208 |
| 2013 | </Expanded> |
| 2014 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2015 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2016 | <Original> |
| 2017 | multiply( i, 2 ) == i*2 |
| 2018 | </Original> |
| 2019 | <Expanded> |
| 2020 | 42 == 42 |
| 2021 | </Expanded> |
| 2022 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2023 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2024 | <Original> |
| 2025 | multiply( j, 2 ) == j*2 |
| 2026 | </Original> |
| 2027 | <Expanded> |
| 2028 | 208 == 208 |
| 2029 | </Expanded> |
| 2030 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2031 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2032 | <Original> |
| 2033 | multiply( i, 2 ) == i*2 |
| 2034 | </Original> |
| 2035 | <Expanded> |
| 2036 | 72 == 72 |
| 2037 | </Expanded> |
| 2038 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2039 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2040 | <Original> |
| 2041 | multiply( j, 2 ) == j*2 |
| 2042 | </Original> |
| 2043 | <Expanded> |
| 2044 | 208 == 208 |
| 2045 | </Expanded> |
| 2046 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2047 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2048 | <Original> |
| 2049 | multiply( i, 2 ) == i*2 |
| 2050 | </Original> |
| 2051 | <Expanded> |
| 2052 | 2 == 2 |
| 2053 | </Expanded> |
| 2054 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2055 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2056 | <Original> |
| 2057 | multiply( j, 2 ) == j*2 |
| 2058 | </Original> |
| 2059 | <Expanded> |
| 2060 | 210 == 210 |
| 2061 | </Expanded> |
| 2062 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2063 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2064 | <Original> |
| 2065 | multiply( i, 2 ) == i*2 |
| 2066 | </Original> |
| 2067 | <Expanded> |
| 2068 | 4 == 4 |
| 2069 | </Expanded> |
| 2070 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2071 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2072 | <Original> |
| 2073 | multiply( j, 2 ) == j*2 |
| 2074 | </Original> |
| 2075 | <Expanded> |
| 2076 | 210 == 210 |
| 2077 | </Expanded> |
| 2078 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2079 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2080 | <Original> |
| 2081 | multiply( i, 2 ) == i*2 |
| 2082 | </Original> |
| 2083 | <Expanded> |
| 2084 | 6 == 6 |
| 2085 | </Expanded> |
| 2086 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2087 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2088 | <Original> |
| 2089 | multiply( j, 2 ) == j*2 |
| 2090 | </Original> |
| 2091 | <Expanded> |
| 2092 | 210 == 210 |
| 2093 | </Expanded> |
| 2094 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2095 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2096 | <Original> |
| 2097 | multiply( i, 2 ) == i*2 |
| 2098 | </Original> |
| 2099 | <Expanded> |
| 2100 | 8 == 8 |
| 2101 | </Expanded> |
| 2102 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2103 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2104 | <Original> |
| 2105 | multiply( j, 2 ) == j*2 |
| 2106 | </Original> |
| 2107 | <Expanded> |
| 2108 | 210 == 210 |
| 2109 | </Expanded> |
| 2110 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2111 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2112 | <Original> |
| 2113 | multiply( i, 2 ) == i*2 |
| 2114 | </Original> |
| 2115 | <Expanded> |
| 2116 | 10 == 10 |
| 2117 | </Expanded> |
| 2118 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2119 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2120 | <Original> |
| 2121 | multiply( j, 2 ) == j*2 |
| 2122 | </Original> |
| 2123 | <Expanded> |
| 2124 | 210 == 210 |
| 2125 | </Expanded> |
| 2126 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2127 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2128 | <Original> |
| 2129 | multiply( i, 2 ) == i*2 |
| 2130 | </Original> |
| 2131 | <Expanded> |
| 2132 | 30 == 30 |
| 2133 | </Expanded> |
| 2134 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2135 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2136 | <Original> |
| 2137 | multiply( j, 2 ) == j*2 |
| 2138 | </Original> |
| 2139 | <Expanded> |
| 2140 | 210 == 210 |
| 2141 | </Expanded> |
| 2142 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2143 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2144 | <Original> |
| 2145 | multiply( i, 2 ) == i*2 |
| 2146 | </Original> |
| 2147 | <Expanded> |
| 2148 | 40 == 40 |
| 2149 | </Expanded> |
| 2150 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2151 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2152 | <Original> |
| 2153 | multiply( j, 2 ) == j*2 |
| 2154 | </Original> |
| 2155 | <Expanded> |
| 2156 | 210 == 210 |
| 2157 | </Expanded> |
| 2158 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2159 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2160 | <Original> |
| 2161 | multiply( i, 2 ) == i*2 |
| 2162 | </Original> |
| 2163 | <Expanded> |
| 2164 | 42 == 42 |
| 2165 | </Expanded> |
| 2166 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2167 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2168 | <Original> |
| 2169 | multiply( j, 2 ) == j*2 |
| 2170 | </Original> |
| 2171 | <Expanded> |
| 2172 | 210 == 210 |
| 2173 | </Expanded> |
| 2174 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2175 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2176 | <Original> |
| 2177 | multiply( i, 2 ) == i*2 |
| 2178 | </Original> |
| 2179 | <Expanded> |
| 2180 | 72 == 72 |
| 2181 | </Expanded> |
| 2182 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2183 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2184 | <Original> |
| 2185 | multiply( j, 2 ) == j*2 |
| 2186 | </Original> |
| 2187 | <Expanded> |
| 2188 | 210 == 210 |
| 2189 | </Expanded> |
| 2190 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2191 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2192 | <Original> |
| 2193 | multiply( i, 2 ) == i*2 |
| 2194 | </Original> |
| 2195 | <Expanded> |
| 2196 | 2 == 2 |
| 2197 | </Expanded> |
| 2198 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2199 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2200 | <Original> |
| 2201 | multiply( j, 2 ) == j*2 |
| 2202 | </Original> |
| 2203 | <Expanded> |
| 2204 | 212 == 212 |
| 2205 | </Expanded> |
| 2206 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2207 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2208 | <Original> |
| 2209 | multiply( i, 2 ) == i*2 |
| 2210 | </Original> |
| 2211 | <Expanded> |
| 2212 | 4 == 4 |
| 2213 | </Expanded> |
| 2214 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2215 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2216 | <Original> |
| 2217 | multiply( j, 2 ) == j*2 |
| 2218 | </Original> |
| 2219 | <Expanded> |
| 2220 | 212 == 212 |
| 2221 | </Expanded> |
| 2222 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2223 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2224 | <Original> |
| 2225 | multiply( i, 2 ) == i*2 |
| 2226 | </Original> |
| 2227 | <Expanded> |
| 2228 | 6 == 6 |
| 2229 | </Expanded> |
| 2230 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2231 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2232 | <Original> |
| 2233 | multiply( j, 2 ) == j*2 |
| 2234 | </Original> |
| 2235 | <Expanded> |
| 2236 | 212 == 212 |
| 2237 | </Expanded> |
| 2238 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2239 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2240 | <Original> |
| 2241 | multiply( i, 2 ) == i*2 |
| 2242 | </Original> |
| 2243 | <Expanded> |
| 2244 | 8 == 8 |
| 2245 | </Expanded> |
| 2246 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2247 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2248 | <Original> |
| 2249 | multiply( j, 2 ) == j*2 |
| 2250 | </Original> |
| 2251 | <Expanded> |
| 2252 | 212 == 212 |
| 2253 | </Expanded> |
| 2254 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2255 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2256 | <Original> |
| 2257 | multiply( i, 2 ) == i*2 |
| 2258 | </Original> |
| 2259 | <Expanded> |
| 2260 | 10 == 10 |
| 2261 | </Expanded> |
| 2262 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2263 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2264 | <Original> |
| 2265 | multiply( j, 2 ) == j*2 |
| 2266 | </Original> |
| 2267 | <Expanded> |
| 2268 | 212 == 212 |
| 2269 | </Expanded> |
| 2270 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2271 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2272 | <Original> |
| 2273 | multiply( i, 2 ) == i*2 |
| 2274 | </Original> |
| 2275 | <Expanded> |
| 2276 | 30 == 30 |
| 2277 | </Expanded> |
| 2278 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2279 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2280 | <Original> |
| 2281 | multiply( j, 2 ) == j*2 |
| 2282 | </Original> |
| 2283 | <Expanded> |
| 2284 | 212 == 212 |
| 2285 | </Expanded> |
| 2286 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2287 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2288 | <Original> |
| 2289 | multiply( i, 2 ) == i*2 |
| 2290 | </Original> |
| 2291 | <Expanded> |
| 2292 | 40 == 40 |
| 2293 | </Expanded> |
| 2294 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2295 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2296 | <Original> |
| 2297 | multiply( j, 2 ) == j*2 |
| 2298 | </Original> |
| 2299 | <Expanded> |
| 2300 | 212 == 212 |
| 2301 | </Expanded> |
| 2302 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2303 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2304 | <Original> |
| 2305 | multiply( i, 2 ) == i*2 |
| 2306 | </Original> |
| 2307 | <Expanded> |
| 2308 | 42 == 42 |
| 2309 | </Expanded> |
| 2310 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2311 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2312 | <Original> |
| 2313 | multiply( j, 2 ) == j*2 |
| 2314 | </Original> |
| 2315 | <Expanded> |
| 2316 | 212 == 212 |
| 2317 | </Expanded> |
| 2318 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2319 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2320 | <Original> |
| 2321 | multiply( i, 2 ) == i*2 |
| 2322 | </Original> |
| 2323 | <Expanded> |
| 2324 | 72 == 72 |
| 2325 | </Expanded> |
| 2326 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2327 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2328 | <Original> |
| 2329 | multiply( j, 2 ) == j*2 |
| 2330 | </Original> |
| 2331 | <Expanded> |
| 2332 | 212 == 212 |
| 2333 | </Expanded> |
| 2334 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2335 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2336 | <Original> |
| 2337 | multiply( i, 2 ) == i*2 |
| 2338 | </Original> |
| 2339 | <Expanded> |
| 2340 | 2 == 2 |
| 2341 | </Expanded> |
| 2342 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2343 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2344 | <Original> |
| 2345 | multiply( j, 2 ) == j*2 |
| 2346 | </Original> |
| 2347 | <Expanded> |
| 2348 | 214 == 214 |
| 2349 | </Expanded> |
| 2350 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2351 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2352 | <Original> |
| 2353 | multiply( i, 2 ) == i*2 |
| 2354 | </Original> |
| 2355 | <Expanded> |
| 2356 | 4 == 4 |
| 2357 | </Expanded> |
| 2358 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2359 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2360 | <Original> |
| 2361 | multiply( j, 2 ) == j*2 |
| 2362 | </Original> |
| 2363 | <Expanded> |
| 2364 | 214 == 214 |
| 2365 | </Expanded> |
| 2366 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2367 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2368 | <Original> |
| 2369 | multiply( i, 2 ) == i*2 |
| 2370 | </Original> |
| 2371 | <Expanded> |
| 2372 | 6 == 6 |
| 2373 | </Expanded> |
| 2374 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2375 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2376 | <Original> |
| 2377 | multiply( j, 2 ) == j*2 |
| 2378 | </Original> |
| 2379 | <Expanded> |
| 2380 | 214 == 214 |
| 2381 | </Expanded> |
| 2382 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2383 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2384 | <Original> |
| 2385 | multiply( i, 2 ) == i*2 |
| 2386 | </Original> |
| 2387 | <Expanded> |
| 2388 | 8 == 8 |
| 2389 | </Expanded> |
| 2390 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2391 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2392 | <Original> |
| 2393 | multiply( j, 2 ) == j*2 |
| 2394 | </Original> |
| 2395 | <Expanded> |
| 2396 | 214 == 214 |
| 2397 | </Expanded> |
| 2398 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2399 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2400 | <Original> |
| 2401 | multiply( i, 2 ) == i*2 |
| 2402 | </Original> |
| 2403 | <Expanded> |
| 2404 | 10 == 10 |
| 2405 | </Expanded> |
| 2406 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2407 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2408 | <Original> |
| 2409 | multiply( j, 2 ) == j*2 |
| 2410 | </Original> |
| 2411 | <Expanded> |
| 2412 | 214 == 214 |
| 2413 | </Expanded> |
| 2414 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2415 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2416 | <Original> |
| 2417 | multiply( i, 2 ) == i*2 |
| 2418 | </Original> |
| 2419 | <Expanded> |
| 2420 | 30 == 30 |
| 2421 | </Expanded> |
| 2422 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2423 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2424 | <Original> |
| 2425 | multiply( j, 2 ) == j*2 |
| 2426 | </Original> |
| 2427 | <Expanded> |
| 2428 | 214 == 214 |
| 2429 | </Expanded> |
| 2430 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2431 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2432 | <Original> |
| 2433 | multiply( i, 2 ) == i*2 |
| 2434 | </Original> |
| 2435 | <Expanded> |
| 2436 | 40 == 40 |
| 2437 | </Expanded> |
| 2438 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2439 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2440 | <Original> |
| 2441 | multiply( j, 2 ) == j*2 |
| 2442 | </Original> |
| 2443 | <Expanded> |
| 2444 | 214 == 214 |
| 2445 | </Expanded> |
| 2446 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2447 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2448 | <Original> |
| 2449 | multiply( i, 2 ) == i*2 |
| 2450 | </Original> |
| 2451 | <Expanded> |
| 2452 | 42 == 42 |
| 2453 | </Expanded> |
| 2454 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2455 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2456 | <Original> |
| 2457 | multiply( j, 2 ) == j*2 |
| 2458 | </Original> |
| 2459 | <Expanded> |
| 2460 | 214 == 214 |
| 2461 | </Expanded> |
| 2462 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2463 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2464 | <Original> |
| 2465 | multiply( i, 2 ) == i*2 |
| 2466 | </Original> |
| 2467 | <Expanded> |
| 2468 | 72 == 72 |
| 2469 | </Expanded> |
| 2470 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2471 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/<exe-name>/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2472 | <Original> |
| 2473 | multiply( j, 2 ) == j*2 |
| 2474 | </Original> |
| 2475 | <Expanded> |
| 2476 | 214 == 214 |
| 2477 | </Expanded> |
| 2478 | </Expression> |
| 2479 | <OverallResult success="true"/> |
| 2480 | </TestCase> |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2481 | <TestCase name="Greater-than inequalities with different epsilons"> |
| 2482 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2483 | <Original> |
| 2484 | d >= Approx( 1.22 ) |
| 2485 | </Original> |
| 2486 | <Expanded> |
| 2487 | 1.23 >= Approx( 1.22 ) |
| 2488 | </Expanded> |
| 2489 | </Expression> |
| 2490 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2491 | <Original> |
| 2492 | d >= Approx( 1.23 ) |
| 2493 | </Original> |
| 2494 | <Expanded> |
| 2495 | 1.23 >= Approx( 1.23 ) |
| 2496 | </Expanded> |
| 2497 | </Expression> |
| 2498 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2499 | <Original> |
| 2500 | !d >= Approx( 1.24 ) |
| 2501 | </Original> |
| 2502 | <Expanded> |
| 2503 | !(1.23 >= Approx( 1.24 )) |
| 2504 | </Expanded> |
| 2505 | </Expression> |
| 2506 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2507 | <Original> |
| 2508 | d >= Approx( 1.24 ).epsilon(0.1) |
| 2509 | </Original> |
| 2510 | <Expanded> |
| 2511 | 1.23 >= Approx( 1.24 ) |
| 2512 | </Expanded> |
| 2513 | </Expression> |
| 2514 | <OverallResult success="true"/> |
| 2515 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2516 | <TestCase name="INFO and WARN do not abort tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2517 | <Info> |
| 2518 | this is a message |
| 2519 | </Info> |
| 2520 | <Warning> |
| 2521 | this is a warning |
| 2522 | </Warning> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2523 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2524 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2525 | <TestCase name="INFO gets logged on failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2526 | <Info> |
| 2527 | this message should be logged |
| 2528 | </Info> |
| 2529 | <Info> |
| 2530 | so should this |
| 2531 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2532 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2533 | <Original> |
| 2534 | a == 1 |
| 2535 | </Original> |
| 2536 | <Expanded> |
| 2537 | 2 == 1 |
| 2538 | </Expanded> |
| 2539 | </Expression> |
| 2540 | <OverallResult success="false"/> |
| 2541 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2542 | <TestCase name="INFO gets logged on failure, even if captured before successful assertions"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2543 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2544 | <Original> |
| 2545 | a == 2 |
| 2546 | </Original> |
| 2547 | <Expanded> |
| 2548 | 2 == 2 |
| 2549 | </Expanded> |
| 2550 | </Expression> |
| 2551 | <Info> |
| 2552 | this message should be logged |
| 2553 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2554 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2555 | <Original> |
| 2556 | a == 1 |
| 2557 | </Original> |
| 2558 | <Expanded> |
| 2559 | 2 == 1 |
| 2560 | </Expanded> |
| 2561 | </Expression> |
| 2562 | <Info> |
| 2563 | and this, but later |
| 2564 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2565 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2566 | <Original> |
| 2567 | a == 0 |
| 2568 | </Original> |
| 2569 | <Expanded> |
| 2570 | 2 == 0 |
| 2571 | </Expanded> |
| 2572 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2573 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2574 | <Original> |
| 2575 | a == 2 |
| 2576 | </Original> |
| 2577 | <Expanded> |
| 2578 | 2 == 2 |
| 2579 | </Expanded> |
| 2580 | </Expression> |
| 2581 | <OverallResult success="false"/> |
| 2582 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2583 | <TestCase name="Inequality checks that should fail"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2584 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2585 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2586 | data.int_seven != 7 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2587 | </Original> |
| 2588 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2589 | 7 != 7 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2590 | </Expanded> |
| 2591 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2592 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2593 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2594 | data.float_nine_point_one != Approx( 9.1f ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2595 | </Original> |
| 2596 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2597 | 9.1f != Approx( 9.1000003815 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2598 | </Expanded> |
| 2599 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2600 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2601 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2602 | data.double_pi != Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2603 | </Original> |
| 2604 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2605 | 3.1415926535 != Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2606 | </Expanded> |
| 2607 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2608 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2609 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2610 | data.str_hello != "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2611 | </Original> |
| 2612 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2613 | "hello" != "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2614 | </Expanded> |
| 2615 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2616 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2617 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2618 | data.str_hello.size() != 5 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2619 | </Original> |
| 2620 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2621 | 5 != 5 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2622 | </Expanded> |
| 2623 | </Expression> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2624 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2625 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2626 | <TestCase name="Inequality checks that should succeed"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2627 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2628 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2629 | data.int_seven != 6 |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2630 | </Original> |
| 2631 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2632 | 7 != 6 |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2633 | </Expanded> |
| 2634 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2635 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2636 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2637 | data.int_seven != 8 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2638 | </Original> |
| 2639 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2640 | 7 != 8 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2641 | </Expanded> |
| 2642 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2643 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2644 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2645 | data.float_nine_point_one != Approx( 9.11f ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2646 | </Original> |
| 2647 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2648 | 9.1f != Approx( 9.1099996567 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2649 | </Expanded> |
| 2650 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2651 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2652 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2653 | data.float_nine_point_one != Approx( 9.0f ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2654 | </Original> |
| 2655 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2656 | 9.1f != Approx( 9.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2657 | </Expanded> |
| 2658 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2659 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2660 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2661 | data.float_nine_point_one != Approx( 1 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2662 | </Original> |
| 2663 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2664 | 9.1f != Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2665 | </Expanded> |
| 2666 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2667 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2668 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2669 | data.float_nine_point_one != Approx( 0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2670 | </Original> |
| 2671 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2672 | 9.1f != Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2673 | </Expanded> |
| 2674 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2675 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2676 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2677 | data.double_pi != Approx( 3.1415 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2678 | </Original> |
| 2679 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2680 | 3.1415926535 != Approx( 3.1415 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2681 | </Expanded> |
| 2682 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2683 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2684 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2685 | data.str_hello != "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2686 | </Original> |
| 2687 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2688 | "hello" != "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2689 | </Expanded> |
| 2690 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2691 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2692 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2693 | data.str_hello != "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2694 | </Original> |
| 2695 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2696 | "hello" != "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2697 | </Expanded> |
| 2698 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2699 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2700 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2701 | data.str_hello != "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2702 | </Original> |
| 2703 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2704 | "hello" != "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2705 | </Expanded> |
| 2706 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2707 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2708 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2709 | data.str_hello.size() != 6 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2710 | </Original> |
| 2711 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 2712 | 5 != 6 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2713 | </Expanded> |
| 2714 | </Expression> |
| 2715 | <OverallResult success="true"/> |
| 2716 | </TestCase> |
Phil Nash | 0cde0e9 | 2017-01-09 14:40:09 +0000 | [diff] [blame] | 2717 | <TestCase name="Less-than inequalities with different epsilons"> |
| 2718 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2719 | <Original> |
| 2720 | d <= Approx( 1.24 ) |
| 2721 | </Original> |
| 2722 | <Expanded> |
| 2723 | 1.23 <= Approx( 1.24 ) |
| 2724 | </Expanded> |
| 2725 | </Expression> |
| 2726 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2727 | <Original> |
| 2728 | d <= Approx( 1.23 ) |
| 2729 | </Original> |
| 2730 | <Expanded> |
| 2731 | 1.23 <= Approx( 1.23 ) |
| 2732 | </Expanded> |
| 2733 | </Expression> |
| 2734 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2735 | <Original> |
| 2736 | !d <= Approx( 1.22 ) |
| 2737 | </Original> |
| 2738 | <Expanded> |
| 2739 | !(1.23 <= Approx( 1.22 )) |
| 2740 | </Expanded> |
| 2741 | </Expression> |
| 2742 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
| 2743 | <Original> |
| 2744 | d <= Approx( 1.22 ).epsilon(0.1) |
| 2745 | </Original> |
| 2746 | <Expanded> |
| 2747 | 1.23 <= Approx( 1.22 ) |
| 2748 | </Expanded> |
| 2749 | </Expression> |
| 2750 | <OverallResult success="true"/> |
| 2751 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2752 | <TestCase name="Long strings can be wrapped"> |
| 2753 | <Section name="plain string"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2754 | <Section name="No wrapping"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2755 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2756 | <Original> |
| 2757 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 2758 | </Original> |
| 2759 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2760 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2761 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2762 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2763 | </Expanded> |
| 2764 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2765 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2766 | <Original> |
| 2767 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 2768 | </Original> |
| 2769 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2770 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2771 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2772 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2773 | </Expanded> |
| 2774 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2775 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2776 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2777 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2778 | </Section> |
| 2779 | <Section name="plain string"> |
| 2780 | <Section name="Wrapped once"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2781 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2782 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2783 | Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2784 | </Original> |
| 2785 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2786 | "one two three |
| 2787 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2788 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2789 | "one two three |
| 2790 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2791 | </Expanded> |
| 2792 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2793 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2794 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2795 | Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2796 | </Original> |
| 2797 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2798 | "one two three |
| 2799 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2800 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2801 | "one two three |
| 2802 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2803 | </Expanded> |
| 2804 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2805 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2806 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2807 | Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2808 | </Original> |
| 2809 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2810 | "one two three |
| 2811 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2812 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2813 | "one two three |
| 2814 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2815 | </Expanded> |
| 2816 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2817 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2818 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2819 | Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2820 | </Original> |
| 2821 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2822 | "one two three |
| 2823 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2824 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2825 | "one two three |
| 2826 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2827 | </Expanded> |
| 2828 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2829 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2830 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2831 | Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2832 | </Original> |
| 2833 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2834 | "one two |
| 2835 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2836 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2837 | "one two |
| 2838 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2839 | </Expanded> |
| 2840 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2841 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2842 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2843 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2844 | </Section> |
| 2845 | <Section name="plain string"> |
| 2846 | <Section name="Wrapped twice"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2847 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2848 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2849 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2850 | </Original> |
| 2851 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2852 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2853 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2854 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2855 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2856 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2857 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2858 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2859 | </Expanded> |
| 2860 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2861 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2862 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2863 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2864 | </Original> |
| 2865 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2866 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2867 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2868 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2869 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2870 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2871 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2872 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2873 | </Expanded> |
| 2874 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2875 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2876 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2877 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2878 | </Original> |
| 2879 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2880 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2881 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2882 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2883 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2884 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2885 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2886 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2887 | </Expanded> |
| 2888 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2889 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2890 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2891 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2892 | </Section> |
| 2893 | <Section name="plain string"> |
| 2894 | <Section name="Wrapped three times"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2895 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2896 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2897 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2898 | </Original> |
| 2899 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2900 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2901 | two |
| 2902 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2903 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2904 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2905 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2906 | two |
| 2907 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2908 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2909 | </Expanded> |
| 2910 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2911 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2912 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2913 | Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2914 | </Original> |
| 2915 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2916 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2917 | two |
| 2918 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2919 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2920 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2921 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2922 | two |
| 2923 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2924 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2925 | </Expanded> |
| 2926 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2927 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2928 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2929 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2930 | </Section> |
| 2931 | <Section name="plain string"> |
| 2932 | <Section name="Short wrap"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2933 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2934 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2935 | Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2936 | </Original> |
| 2937 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2938 | "abc- |
| 2939 | def" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2940 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2941 | "abc- |
| 2942 | def" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2943 | </Expanded> |
| 2944 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2945 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2946 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2947 | Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2948 | </Original> |
| 2949 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2950 | "abc- |
| 2951 | defg" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2952 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2953 | "abc- |
| 2954 | defg" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2955 | </Expanded> |
| 2956 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2957 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2958 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2959 | Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2960 | </Original> |
| 2961 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2962 | "abc- |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2963 | def- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2964 | gh" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2965 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2966 | "abc- |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2967 | def- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2968 | gh" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2969 | </Expanded> |
| 2970 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2971 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2972 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2973 | Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2974 | </Original> |
| 2975 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2976 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2977 | two |
| 2978 | thr- |
| 2979 | ee |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2980 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2981 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2982 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2983 | two |
| 2984 | thr- |
| 2985 | ee |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2986 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2987 | </Expanded> |
| 2988 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 2989 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2990 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2991 | Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2992 | </Original> |
| 2993 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2994 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2995 | two |
| 2996 | th- |
| 2997 | ree |
| 2998 | fo- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 2999 | ur" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3000 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3001 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3002 | two |
| 3003 | th- |
| 3004 | ree |
| 3005 | fo- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3006 | ur" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3007 | </Expanded> |
| 3008 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3009 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3010 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3011 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3012 | </Section> |
| 3013 | <Section name="plain string"> |
| 3014 | <Section name="As container"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3015 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3016 | <Original> |
| 3017 | text.size() == 4 |
| 3018 | </Original> |
| 3019 | <Expanded> |
| 3020 | 4 == 4 |
| 3021 | </Expanded> |
| 3022 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3023 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3024 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3025 | text[0] == "one" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3026 | </Original> |
| 3027 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3028 | "one" == "one" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3029 | </Expanded> |
| 3030 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3031 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3032 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3033 | text[1] == "two" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3034 | </Original> |
| 3035 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3036 | "two" == "two" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3037 | </Expanded> |
| 3038 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3039 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3040 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3041 | text[2] == "three" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3042 | </Original> |
| 3043 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3044 | "three" == "three" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3045 | </Expanded> |
| 3046 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3047 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3048 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3049 | text[3] == "four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3050 | </Original> |
| 3051 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3052 | "four" == "four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3053 | </Expanded> |
| 3054 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3055 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3056 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3057 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3058 | </Section> |
| 3059 | <Section name="plain string"> |
| 3060 | <Section name="Indent first line differently"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3061 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3062 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3063 | text.toString() == " one two\n three\n four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3064 | </Original> |
| 3065 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3066 | " one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3067 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3068 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3069 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3070 | " one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3071 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3072 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3073 | </Expanded> |
| 3074 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3075 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3076 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3077 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3078 | </Section> |
| 3079 | <Section name="With newlines"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3080 | <Section name="No wrapping"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3081 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3082 | <Original> |
| 3083 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 3084 | </Original> |
| 3085 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3086 | "one two |
| 3087 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3088 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3089 | "one two |
| 3090 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3091 | </Expanded> |
| 3092 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3093 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3094 | <Original> |
| 3095 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 3096 | </Original> |
| 3097 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3098 | "one two |
| 3099 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3100 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3101 | "one two |
| 3102 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3103 | </Expanded> |
| 3104 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3105 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3106 | <Original> |
| 3107 | Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString |
| 3108 | </Original> |
| 3109 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3110 | "one two |
| 3111 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3112 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3113 | "one two |
| 3114 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3115 | </Expanded> |
| 3116 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3117 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3118 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3119 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3120 | </Section> |
| 3121 | <Section name="With newlines"> |
| 3122 | <Section name="Trailing newline"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3123 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3124 | <Original> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3125 | Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3126 | </Original> |
| 3127 | <Expanded> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3128 | "abcdef" == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3129 | </Expanded> |
| 3130 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3131 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3132 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3133 | Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3134 | </Original> |
| 3135 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3136 | "abcdef" == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3137 | </Expanded> |
| 3138 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3139 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3140 | <Original> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3141 | Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3142 | </Original> |
| 3143 | <Expanded> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3144 | "abcdef" == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3145 | </Expanded> |
| 3146 | </Expression> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3147 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3148 | <Original> |
| 3149 | Text( "abcdef\n", TextAttributes().setWidth( 5 ) ).toString() == "abcd-\nef" |
| 3150 | </Original> |
| 3151 | <Expanded> |
| 3152 | "abcd- |
| 3153 | ef" |
| 3154 | == |
| 3155 | "abcd- |
| 3156 | ef" |
| 3157 | </Expanded> |
| 3158 | </Expression> |
| 3159 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3160 | </Section> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3161 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3162 | </Section> |
| 3163 | <Section name="With newlines"> |
| 3164 | <Section name="Wrapped once"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3165 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3166 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3167 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3168 | </Original> |
| 3169 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3170 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3171 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3172 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3173 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3174 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3175 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3176 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3177 | </Expanded> |
| 3178 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3179 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3180 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3181 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3182 | </Original> |
| 3183 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3184 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3185 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3186 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3187 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3188 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3189 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3190 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3191 | </Expanded> |
| 3192 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3193 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3194 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3195 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3196 | </Original> |
| 3197 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3198 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3199 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3200 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3201 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3202 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3203 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3204 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3205 | </Expanded> |
| 3206 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3207 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3208 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3209 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3210 | </Section> |
| 3211 | <Section name="With newlines"> |
| 3212 | <Section name="Wrapped twice"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3213 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3214 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3215 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3216 | </Original> |
| 3217 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3218 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3219 | two |
| 3220 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3221 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3222 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3223 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3224 | two |
| 3225 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3226 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3227 | </Expanded> |
| 3228 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3229 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3230 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3231 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3232 | </Section> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3233 | <Section name="With wrap-before/ after characters"> |
| 3234 | <Section name="No wrapping"> |
| 3235 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3236 | <Original> |
| 3237 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 3238 | </Original> |
| 3239 | <Expanded> |
| 3240 | "one,two(three) <here>" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3241 | == |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3242 | "one,two(three) <here>" |
| 3243 | </Expanded> |
| 3244 | </Expression> |
| 3245 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3246 | <Original> |
| 3247 | Text( testString, TextAttributes().setWidth( 24 ) ).toString() == testString |
| 3248 | </Original> |
| 3249 | <Expanded> |
| 3250 | "one,two(three) <here>" |
| 3251 | == |
| 3252 | "one,two(three) <here>" |
| 3253 | </Expanded> |
| 3254 | </Expression> |
| 3255 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 3256 | </Section> |
| 3257 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 3258 | </Section> |
| 3259 | <Section name="With wrap-before/ after characters"> |
| 3260 | <Section name="Wrap before"> |
| 3261 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3262 | <Original> |
| 3263 | Text( testString, TextAttributes().setWidth( 11 ) ).toString() == "one,two\n(three)\n<here>" |
| 3264 | </Original> |
| 3265 | <Expanded> |
| 3266 | "one,two |
| 3267 | (three) |
| 3268 | <here>" |
| 3269 | == |
| 3270 | "one,two |
| 3271 | (three) |
| 3272 | <here>" |
| 3273 | </Expanded> |
| 3274 | </Expression> |
| 3275 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3276 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3277 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3278 | </Section> |
Phil Nash | 4a04682 | 2017-01-17 17:13:23 +0000 | [diff] [blame] | 3279 | <Section name="With wrap-before/ after characters"> |
| 3280 | <Section name="Wrap after"> |
| 3281 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3282 | <Original> |
| 3283 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one,\ntwo\n(thre-\ne)\n<here>" |
| 3284 | </Original> |
| 3285 | <Expanded> |
| 3286 | "one, |
| 3287 | two |
| 3288 | (thre- |
| 3289 | e) |
| 3290 | <here>" |
| 3291 | == |
| 3292 | "one, |
| 3293 | two |
| 3294 | (thre- |
| 3295 | e) |
| 3296 | <here>" |
| 3297 | </Expanded> |
| 3298 | </Expression> |
| 3299 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3300 | <Original> |
| 3301 | Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one,\ntwo\n(thr-\nee)\n<her-\ne>" |
| 3302 | </Original> |
| 3303 | <Expanded> |
| 3304 | "one, |
| 3305 | two |
| 3306 | (thr- |
| 3307 | ee) |
| 3308 | <her- |
| 3309 | e>" |
| 3310 | == |
| 3311 | "one, |
| 3312 | two |
| 3313 | (thr- |
| 3314 | ee) |
| 3315 | <her- |
| 3316 | e>" |
| 3317 | </Expanded> |
| 3318 | </Expression> |
| 3319 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
| 3320 | <Original> |
| 3321 | Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one,\ntwo\n(th-\nree)\n<he-\nre>" |
| 3322 | </Original> |
| 3323 | <Expanded> |
| 3324 | "one, |
| 3325 | two |
| 3326 | (th- |
| 3327 | ree) |
| 3328 | <he- |
| 3329 | re>" |
| 3330 | == |
| 3331 | "one, |
| 3332 | two |
| 3333 | (th- |
| 3334 | ree) |
| 3335 | <he- |
| 3336 | re>" |
| 3337 | </Expanded> |
| 3338 | </Expression> |
| 3339 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 3340 | </Section> |
| 3341 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 3342 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3343 | <OverallResult success="true"/> |
| 3344 | </TestCase> |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 3345 | <TestCase name="Long text is truncted"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 3346 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 3347 | <Original> |
Phil Nash | 5262e61 | 2015-12-10 18:43:29 +0000 | [diff] [blame] | 3348 | t.toString(), EndsWith( "... message truncated due to excessive size" ) |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 3349 | </Original> |
| 3350 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3351 | "******************************************************************************- |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 3352 | ******************************************************************************- |
| 3353 | ************************ |
| 3354 | ******************************************************************************- |
| 3355 | ******************************************************************************- |
| 3356 | ************************ |
| 3357 | ******************************************************************************- |
| 3358 | ******************************************************************************- |
| 3359 | ************************ |
| 3360 | ******************************************************************************- |
| 3361 | ******************************************************************************- |
| 3362 | ************************ |
| 3363 | ******************************************************************************- |
| 3364 | ******************************************************************************- |
| 3365 | ************************ |
| 3366 | ******************************************************************************- |
| 3367 | ******************************************************************************- |
| 3368 | ************************ |
| 3369 | ******************************************************************************- |
| 3370 | ******************************************************************************- |
| 3371 | ************************ |
| 3372 | ******************************************************************************- |
| 3373 | ******************************************************************************- |
| 3374 | ************************ |
| 3375 | ******************************************************************************- |
| 3376 | ******************************************************************************- |
| 3377 | ************************ |
| 3378 | ******************************************************************************- |
| 3379 | ******************************************************************************- |
| 3380 | ************************ |
| 3381 | ******************************************************************************- |
| 3382 | ******************************************************************************- |
| 3383 | ************************ |
| 3384 | ******************************************************************************- |
| 3385 | ******************************************************************************- |
| 3386 | ************************ |
| 3387 | ******************************************************************************- |
| 3388 | ******************************************************************************- |
| 3389 | ************************ |
| 3390 | ******************************************************************************- |
| 3391 | ******************************************************************************- |
| 3392 | ************************ |
| 3393 | ******************************************************************************- |
| 3394 | ******************************************************************************- |
| 3395 | ************************ |
| 3396 | ******************************************************************************- |
| 3397 | ******************************************************************************- |
| 3398 | ************************ |
| 3399 | ******************************************************************************- |
| 3400 | ******************************************************************************- |
| 3401 | ************************ |
| 3402 | ******************************************************************************- |
| 3403 | ******************************************************************************- |
| 3404 | ************************ |
| 3405 | ******************************************************************************- |
| 3406 | ******************************************************************************- |
| 3407 | ************************ |
| 3408 | ******************************************************************************- |
| 3409 | ******************************************************************************- |
| 3410 | ************************ |
| 3411 | ******************************************************************************- |
| 3412 | ******************************************************************************- |
| 3413 | ************************ |
| 3414 | ******************************************************************************- |
| 3415 | ******************************************************************************- |
| 3416 | ************************ |
| 3417 | ******************************************************************************- |
| 3418 | ******************************************************************************- |
| 3419 | ************************ |
| 3420 | ******************************************************************************- |
| 3421 | ******************************************************************************- |
| 3422 | ************************ |
| 3423 | ******************************************************************************- |
| 3424 | ******************************************************************************- |
| 3425 | ************************ |
| 3426 | ******************************************************************************- |
| 3427 | ******************************************************************************- |
| 3428 | ************************ |
| 3429 | ******************************************************************************- |
| 3430 | ******************************************************************************- |
| 3431 | ************************ |
| 3432 | ******************************************************************************- |
| 3433 | ******************************************************************************- |
| 3434 | ************************ |
| 3435 | ******************************************************************************- |
| 3436 | ******************************************************************************- |
| 3437 | ************************ |
| 3438 | ******************************************************************************- |
| 3439 | ******************************************************************************- |
| 3440 | ************************ |
| 3441 | ******************************************************************************- |
| 3442 | ******************************************************************************- |
| 3443 | ************************ |
| 3444 | ******************************************************************************- |
| 3445 | ******************************************************************************- |
| 3446 | ************************ |
| 3447 | ******************************************************************************- |
| 3448 | ******************************************************************************- |
| 3449 | ************************ |
| 3450 | ******************************************************************************- |
| 3451 | ******************************************************************************- |
| 3452 | ************************ |
| 3453 | ******************************************************************************- |
| 3454 | ******************************************************************************- |
| 3455 | ************************ |
| 3456 | ******************************************************************************- |
| 3457 | ******************************************************************************- |
| 3458 | ************************ |
| 3459 | ******************************************************************************- |
| 3460 | ******************************************************************************- |
| 3461 | ************************ |
| 3462 | ******************************************************************************- |
| 3463 | ******************************************************************************- |
| 3464 | ************************ |
| 3465 | ******************************************************************************- |
| 3466 | ******************************************************************************- |
| 3467 | ************************ |
| 3468 | ******************************************************************************- |
| 3469 | ******************************************************************************- |
| 3470 | ************************ |
| 3471 | ******************************************************************************- |
| 3472 | ******************************************************************************- |
| 3473 | ************************ |
| 3474 | ******************************************************************************- |
| 3475 | ******************************************************************************- |
| 3476 | ************************ |
| 3477 | ******************************************************************************- |
| 3478 | ******************************************************************************- |
| 3479 | ************************ |
| 3480 | ******************************************************************************- |
| 3481 | ******************************************************************************- |
| 3482 | ************************ |
| 3483 | ******************************************************************************- |
| 3484 | ******************************************************************************- |
| 3485 | ************************ |
| 3486 | ******************************************************************************- |
| 3487 | ******************************************************************************- |
| 3488 | ************************ |
| 3489 | ******************************************************************************- |
| 3490 | ******************************************************************************- |
| 3491 | ************************ |
| 3492 | ******************************************************************************- |
| 3493 | ******************************************************************************- |
| 3494 | ************************ |
| 3495 | ******************************************************************************- |
| 3496 | ******************************************************************************- |
| 3497 | ************************ |
| 3498 | ******************************************************************************- |
| 3499 | ******************************************************************************- |
| 3500 | ************************ |
| 3501 | ******************************************************************************- |
| 3502 | ******************************************************************************- |
| 3503 | ************************ |
| 3504 | ******************************************************************************- |
| 3505 | ******************************************************************************- |
| 3506 | ************************ |
| 3507 | ******************************************************************************- |
| 3508 | ******************************************************************************- |
| 3509 | ************************ |
| 3510 | ******************************************************************************- |
| 3511 | ******************************************************************************- |
| 3512 | ************************ |
| 3513 | ******************************************************************************- |
| 3514 | ******************************************************************************- |
| 3515 | ************************ |
| 3516 | ******************************************************************************- |
| 3517 | ******************************************************************************- |
| 3518 | ************************ |
| 3519 | ******************************************************************************- |
| 3520 | ******************************************************************************- |
| 3521 | ************************ |
| 3522 | ******************************************************************************- |
| 3523 | ******************************************************************************- |
| 3524 | ************************ |
| 3525 | ******************************************************************************- |
| 3526 | ******************************************************************************- |
| 3527 | ************************ |
| 3528 | ******************************************************************************- |
| 3529 | ******************************************************************************- |
| 3530 | ************************ |
| 3531 | ******************************************************************************- |
| 3532 | ******************************************************************************- |
| 3533 | ************************ |
| 3534 | ******************************************************************************- |
| 3535 | ******************************************************************************- |
| 3536 | ************************ |
| 3537 | ******************************************************************************- |
| 3538 | ******************************************************************************- |
| 3539 | ************************ |
| 3540 | ******************************************************************************- |
| 3541 | ******************************************************************************- |
| 3542 | ************************ |
| 3543 | ******************************************************************************- |
| 3544 | ******************************************************************************- |
| 3545 | ************************ |
| 3546 | ******************************************************************************- |
| 3547 | ******************************************************************************- |
| 3548 | ************************ |
| 3549 | ******************************************************************************- |
| 3550 | ******************************************************************************- |
| 3551 | ************************ |
| 3552 | ******************************************************************************- |
| 3553 | ******************************************************************************- |
| 3554 | ************************ |
| 3555 | ******************************************************************************- |
| 3556 | ******************************************************************************- |
| 3557 | ************************ |
| 3558 | ******************************************************************************- |
| 3559 | ******************************************************************************- |
| 3560 | ************************ |
| 3561 | ******************************************************************************- |
| 3562 | ******************************************************************************- |
| 3563 | ************************ |
| 3564 | ******************************************************************************- |
| 3565 | ******************************************************************************- |
| 3566 | ************************ |
| 3567 | ******************************************************************************- |
| 3568 | ******************************************************************************- |
| 3569 | ************************ |
| 3570 | ******************************************************************************- |
| 3571 | ******************************************************************************- |
| 3572 | ************************ |
| 3573 | ******************************************************************************- |
| 3574 | ******************************************************************************- |
| 3575 | ************************ |
| 3576 | ******************************************************************************- |
| 3577 | ******************************************************************************- |
| 3578 | ************************ |
| 3579 | ******************************************************************************- |
| 3580 | ******************************************************************************- |
| 3581 | ************************ |
| 3582 | ******************************************************************************- |
| 3583 | ******************************************************************************- |
| 3584 | ************************ |
| 3585 | ******************************************************************************- |
| 3586 | ******************************************************************************- |
| 3587 | ************************ |
| 3588 | ******************************************************************************- |
| 3589 | ******************************************************************************- |
| 3590 | ************************ |
| 3591 | ******************************************************************************- |
| 3592 | ******************************************************************************- |
| 3593 | ************************ |
| 3594 | ******************************************************************************- |
| 3595 | ******************************************************************************- |
| 3596 | ************************ |
| 3597 | ******************************************************************************- |
| 3598 | ******************************************************************************- |
| 3599 | ************************ |
| 3600 | ******************************************************************************- |
| 3601 | ******************************************************************************- |
| 3602 | ************************ |
| 3603 | ******************************************************************************- |
| 3604 | ******************************************************************************- |
| 3605 | ************************ |
| 3606 | ******************************************************************************- |
| 3607 | ******************************************************************************- |
| 3608 | ************************ |
| 3609 | ******************************************************************************- |
| 3610 | ******************************************************************************- |
| 3611 | ************************ |
| 3612 | ******************************************************************************- |
| 3613 | ******************************************************************************- |
| 3614 | ************************ |
| 3615 | ******************************************************************************- |
| 3616 | ******************************************************************************- |
| 3617 | ************************ |
| 3618 | ******************************************************************************- |
| 3619 | ******************************************************************************- |
| 3620 | ************************ |
| 3621 | ******************************************************************************- |
| 3622 | ******************************************************************************- |
| 3623 | ************************ |
| 3624 | ******************************************************************************- |
| 3625 | ******************************************************************************- |
| 3626 | ************************ |
| 3627 | ******************************************************************************- |
| 3628 | ******************************************************************************- |
| 3629 | ************************ |
| 3630 | ******************************************************************************- |
| 3631 | ******************************************************************************- |
| 3632 | ************************ |
| 3633 | ******************************************************************************- |
| 3634 | ******************************************************************************- |
| 3635 | ************************ |
| 3636 | ******************************************************************************- |
| 3637 | ******************************************************************************- |
| 3638 | ************************ |
| 3639 | ******************************************************************************- |
| 3640 | ******************************************************************************- |
| 3641 | ************************ |
| 3642 | ******************************************************************************- |
| 3643 | ******************************************************************************- |
| 3644 | ************************ |
| 3645 | ******************************************************************************- |
| 3646 | ******************************************************************************- |
| 3647 | ************************ |
| 3648 | ******************************************************************************- |
| 3649 | ******************************************************************************- |
| 3650 | ************************ |
| 3651 | ******************************************************************************- |
| 3652 | ******************************************************************************- |
| 3653 | ************************ |
| 3654 | ******************************************************************************- |
| 3655 | ******************************************************************************- |
| 3656 | ************************ |
| 3657 | ******************************************************************************- |
| 3658 | ******************************************************************************- |
| 3659 | ************************ |
| 3660 | ******************************************************************************- |
| 3661 | ******************************************************************************- |
| 3662 | ************************ |
| 3663 | ******************************************************************************- |
| 3664 | ******************************************************************************- |
| 3665 | ************************ |
| 3666 | ******************************************************************************- |
| 3667 | ******************************************************************************- |
| 3668 | ************************ |
| 3669 | ******************************************************************************- |
| 3670 | ******************************************************************************- |
| 3671 | ************************ |
| 3672 | ******************************************************************************- |
| 3673 | ******************************************************************************- |
| 3674 | ************************ |
| 3675 | ******************************************************************************- |
| 3676 | ******************************************************************************- |
| 3677 | ************************ |
| 3678 | ******************************************************************************- |
| 3679 | ******************************************************************************- |
| 3680 | ************************ |
| 3681 | ******************************************************************************- |
| 3682 | ******************************************************************************- |
| 3683 | ************************ |
| 3684 | ******************************************************************************- |
| 3685 | ******************************************************************************- |
| 3686 | ************************ |
| 3687 | ******************************************************************************- |
| 3688 | ******************************************************************************- |
| 3689 | ************************ |
| 3690 | ******************************************************************************- |
| 3691 | ******************************************************************************- |
| 3692 | ************************ |
| 3693 | ******************************************************************************- |
| 3694 | ******************************************************************************- |
| 3695 | ************************ |
| 3696 | ******************************************************************************- |
| 3697 | ******************************************************************************- |
| 3698 | ************************ |
| 3699 | ******************************************************************************- |
| 3700 | ******************************************************************************- |
| 3701 | ************************ |
| 3702 | ******************************************************************************- |
| 3703 | ******************************************************************************- |
| 3704 | ************************ |
| 3705 | ******************************************************************************- |
| 3706 | ******************************************************************************- |
| 3707 | ************************ |
| 3708 | ******************************************************************************- |
| 3709 | ******************************************************************************- |
| 3710 | ************************ |
| 3711 | ******************************************************************************- |
| 3712 | ******************************************************************************- |
| 3713 | ************************ |
| 3714 | ******************************************************************************- |
| 3715 | ******************************************************************************- |
| 3716 | ************************ |
| 3717 | ******************************************************************************- |
| 3718 | ******************************************************************************- |
| 3719 | ************************ |
| 3720 | ******************************************************************************- |
| 3721 | ******************************************************************************- |
| 3722 | ************************ |
| 3723 | ******************************************************************************- |
| 3724 | ******************************************************************************- |
| 3725 | ************************ |
| 3726 | ******************************************************************************- |
| 3727 | ******************************************************************************- |
| 3728 | ************************ |
| 3729 | ******************************************************************************- |
| 3730 | ******************************************************************************- |
| 3731 | ************************ |
| 3732 | ******************************************************************************- |
| 3733 | ******************************************************************************- |
| 3734 | ************************ |
| 3735 | ******************************************************************************- |
| 3736 | ******************************************************************************- |
| 3737 | ************************ |
| 3738 | ******************************************************************************- |
| 3739 | ******************************************************************************- |
| 3740 | ************************ |
| 3741 | ******************************************************************************- |
| 3742 | ******************************************************************************- |
| 3743 | ************************ |
| 3744 | ******************************************************************************- |
| 3745 | ******************************************************************************- |
| 3746 | ************************ |
| 3747 | ******************************************************************************- |
| 3748 | ******************************************************************************- |
| 3749 | ************************ |
| 3750 | ******************************************************************************- |
| 3751 | ******************************************************************************- |
| 3752 | ************************ |
| 3753 | ******************************************************************************- |
| 3754 | ******************************************************************************- |
| 3755 | ************************ |
| 3756 | ******************************************************************************- |
| 3757 | ******************************************************************************- |
| 3758 | ************************ |
| 3759 | ******************************************************************************- |
| 3760 | ******************************************************************************- |
| 3761 | ************************ |
| 3762 | ******************************************************************************- |
| 3763 | ******************************************************************************- |
| 3764 | ************************ |
| 3765 | ******************************************************************************- |
| 3766 | ******************************************************************************- |
| 3767 | ************************ |
| 3768 | ******************************************************************************- |
| 3769 | ******************************************************************************- |
| 3770 | ************************ |
| 3771 | ******************************************************************************- |
| 3772 | ******************************************************************************- |
| 3773 | ************************ |
| 3774 | ******************************************************************************- |
| 3775 | ******************************************************************************- |
| 3776 | ************************ |
| 3777 | ******************************************************************************- |
| 3778 | ******************************************************************************- |
| 3779 | ************************ |
| 3780 | ******************************************************************************- |
| 3781 | ******************************************************************************- |
| 3782 | ************************ |
| 3783 | ******************************************************************************- |
| 3784 | ******************************************************************************- |
| 3785 | ************************ |
| 3786 | ******************************************************************************- |
| 3787 | ******************************************************************************- |
| 3788 | ************************ |
| 3789 | ******************************************************************************- |
| 3790 | ******************************************************************************- |
| 3791 | ************************ |
| 3792 | ******************************************************************************- |
| 3793 | ******************************************************************************- |
| 3794 | ************************ |
| 3795 | ******************************************************************************- |
| 3796 | ******************************************************************************- |
| 3797 | ************************ |
| 3798 | ******************************************************************************- |
| 3799 | ******************************************************************************- |
| 3800 | ************************ |
| 3801 | ******************************************************************************- |
| 3802 | ******************************************************************************- |
| 3803 | ************************ |
| 3804 | ******************************************************************************- |
| 3805 | ******************************************************************************- |
| 3806 | ************************ |
| 3807 | ******************************************************************************- |
| 3808 | ******************************************************************************- |
| 3809 | ************************ |
| 3810 | ******************************************************************************- |
| 3811 | ******************************************************************************- |
| 3812 | ************************ |
| 3813 | ******************************************************************************- |
| 3814 | ******************************************************************************- |
| 3815 | ************************ |
| 3816 | ******************************************************************************- |
| 3817 | ******************************************************************************- |
| 3818 | ************************ |
| 3819 | ******************************************************************************- |
| 3820 | ******************************************************************************- |
| 3821 | ************************ |
| 3822 | ******************************************************************************- |
| 3823 | ******************************************************************************- |
| 3824 | ************************ |
| 3825 | ******************************************************************************- |
| 3826 | ******************************************************************************- |
| 3827 | ************************ |
| 3828 | ******************************************************************************- |
| 3829 | ******************************************************************************- |
| 3830 | ************************ |
| 3831 | ******************************************************************************- |
| 3832 | ******************************************************************************- |
| 3833 | ************************ |
| 3834 | ******************************************************************************- |
| 3835 | ******************************************************************************- |
| 3836 | ************************ |
| 3837 | ******************************************************************************- |
| 3838 | ******************************************************************************- |
| 3839 | ************************ |
| 3840 | ******************************************************************************- |
| 3841 | ******************************************************************************- |
| 3842 | ************************ |
| 3843 | ******************************************************************************- |
| 3844 | ******************************************************************************- |
| 3845 | ************************ |
| 3846 | ******************************************************************************- |
| 3847 | ******************************************************************************- |
| 3848 | ************************ |
| 3849 | ******************************************************************************- |
| 3850 | ******************************************************************************- |
| 3851 | ************************ |
| 3852 | ******************************************************************************- |
| 3853 | ******************************************************************************- |
| 3854 | ************************ |
| 3855 | ******************************************************************************- |
| 3856 | ******************************************************************************- |
| 3857 | ************************ |
| 3858 | ******************************************************************************- |
| 3859 | ******************************************************************************- |
| 3860 | ************************ |
| 3861 | ******************************************************************************- |
| 3862 | ******************************************************************************- |
| 3863 | ************************ |
| 3864 | ******************************************************************************- |
| 3865 | ******************************************************************************- |
| 3866 | ************************ |
| 3867 | ******************************************************************************- |
| 3868 | ******************************************************************************- |
| 3869 | ************************ |
| 3870 | ******************************************************************************- |
| 3871 | ******************************************************************************- |
| 3872 | ************************ |
| 3873 | ******************************************************************************- |
| 3874 | ******************************************************************************- |
| 3875 | ************************ |
| 3876 | ******************************************************************************- |
| 3877 | ******************************************************************************- |
| 3878 | ************************ |
| 3879 | ******************************************************************************- |
| 3880 | ******************************************************************************- |
| 3881 | ************************ |
| 3882 | ******************************************************************************- |
| 3883 | ******************************************************************************- |
| 3884 | ************************ |
| 3885 | ******************************************************************************- |
| 3886 | ******************************************************************************- |
| 3887 | ************************ |
| 3888 | ******************************************************************************- |
| 3889 | ******************************************************************************- |
| 3890 | ************************ |
| 3891 | ******************************************************************************- |
| 3892 | ******************************************************************************- |
| 3893 | ************************ |
| 3894 | ******************************************************************************- |
| 3895 | ******************************************************************************- |
| 3896 | ************************ |
| 3897 | ******************************************************************************- |
| 3898 | ******************************************************************************- |
| 3899 | ************************ |
| 3900 | ******************************************************************************- |
| 3901 | ******************************************************************************- |
| 3902 | ************************ |
| 3903 | ******************************************************************************- |
| 3904 | ******************************************************************************- |
| 3905 | ************************ |
| 3906 | ******************************************************************************- |
| 3907 | ******************************************************************************- |
| 3908 | ************************ |
| 3909 | ******************************************************************************- |
| 3910 | ******************************************************************************- |
| 3911 | ************************ |
| 3912 | ******************************************************************************- |
| 3913 | ******************************************************************************- |
| 3914 | ************************ |
| 3915 | ******************************************************************************- |
| 3916 | ******************************************************************************- |
| 3917 | ************************ |
| 3918 | ******************************************************************************- |
| 3919 | ******************************************************************************- |
| 3920 | ************************ |
| 3921 | ******************************************************************************- |
| 3922 | ******************************************************************************- |
| 3923 | ************************ |
| 3924 | ******************************************************************************- |
| 3925 | ******************************************************************************- |
| 3926 | ************************ |
| 3927 | ******************************************************************************- |
| 3928 | ******************************************************************************- |
| 3929 | ************************ |
| 3930 | ******************************************************************************- |
| 3931 | ******************************************************************************- |
| 3932 | ************************ |
| 3933 | ******************************************************************************- |
| 3934 | ******************************************************************************- |
| 3935 | ************************ |
| 3936 | ******************************************************************************- |
| 3937 | ******************************************************************************- |
| 3938 | ************************ |
| 3939 | ******************************************************************************- |
| 3940 | ******************************************************************************- |
| 3941 | ************************ |
| 3942 | ******************************************************************************- |
| 3943 | ******************************************************************************- |
| 3944 | ************************ |
| 3945 | ******************************************************************************- |
| 3946 | ******************************************************************************- |
| 3947 | ************************ |
| 3948 | ******************************************************************************- |
| 3949 | ******************************************************************************- |
| 3950 | ************************ |
| 3951 | ******************************************************************************- |
| 3952 | ******************************************************************************- |
| 3953 | ************************ |
| 3954 | ******************************************************************************- |
| 3955 | ******************************************************************************- |
| 3956 | ************************ |
| 3957 | ******************************************************************************- |
| 3958 | ******************************************************************************- |
| 3959 | ************************ |
| 3960 | ******************************************************************************- |
| 3961 | ******************************************************************************- |
| 3962 | ************************ |
| 3963 | ******************************************************************************- |
| 3964 | ******************************************************************************- |
| 3965 | ************************ |
| 3966 | ******************************************************************************- |
| 3967 | ******************************************************************************- |
| 3968 | ************************ |
| 3969 | ******************************************************************************- |
| 3970 | ******************************************************************************- |
| 3971 | ************************ |
| 3972 | ******************************************************************************- |
| 3973 | ******************************************************************************- |
| 3974 | ************************ |
| 3975 | ******************************************************************************- |
| 3976 | ******************************************************************************- |
| 3977 | ************************ |
| 3978 | ******************************************************************************- |
| 3979 | ******************************************************************************- |
| 3980 | ************************ |
| 3981 | ******************************************************************************- |
| 3982 | ******************************************************************************- |
| 3983 | ************************ |
| 3984 | ******************************************************************************- |
| 3985 | ******************************************************************************- |
| 3986 | ************************ |
| 3987 | ******************************************************************************- |
| 3988 | ******************************************************************************- |
| 3989 | ************************ |
| 3990 | ******************************************************************************- |
| 3991 | ******************************************************************************- |
| 3992 | ************************ |
| 3993 | ******************************************************************************- |
| 3994 | ******************************************************************************- |
| 3995 | ************************ |
| 3996 | ******************************************************************************- |
| 3997 | ******************************************************************************- |
| 3998 | ************************ |
| 3999 | ******************************************************************************- |
| 4000 | ******************************************************************************- |
| 4001 | ************************ |
| 4002 | ******************************************************************************- |
| 4003 | ******************************************************************************- |
| 4004 | ************************ |
| 4005 | ******************************************************************************- |
| 4006 | ******************************************************************************- |
| 4007 | ************************ |
| 4008 | ******************************************************************************- |
| 4009 | ******************************************************************************- |
| 4010 | ************************ |
| 4011 | ******************************************************************************- |
| 4012 | ******************************************************************************- |
| 4013 | ************************ |
| 4014 | ******************************************************************************- |
| 4015 | ******************************************************************************- |
| 4016 | ************************ |
| 4017 | ******************************************************************************- |
| 4018 | ******************************************************************************- |
| 4019 | ************************ |
| 4020 | ******************************************************************************- |
| 4021 | ******************************************************************************- |
| 4022 | ************************ |
| 4023 | ******************************************************************************- |
| 4024 | ******************************************************************************- |
| 4025 | ************************ |
| 4026 | ******************************************************************************- |
| 4027 | ******************************************************************************- |
| 4028 | ************************ |
| 4029 | ******************************************************************************- |
| 4030 | ******************************************************************************- |
| 4031 | ************************ |
| 4032 | ******************************************************************************- |
| 4033 | ******************************************************************************- |
| 4034 | ************************ |
| 4035 | ******************************************************************************- |
| 4036 | ******************************************************************************- |
| 4037 | ************************ |
| 4038 | ******************************************************************************- |
| 4039 | ******************************************************************************- |
| 4040 | ************************ |
| 4041 | ******************************************************************************- |
| 4042 | ******************************************************************************- |
| 4043 | ************************ |
| 4044 | ******************************************************************************- |
| 4045 | ******************************************************************************- |
| 4046 | ************************ |
| 4047 | ******************************************************************************- |
| 4048 | ******************************************************************************- |
| 4049 | ************************ |
| 4050 | ******************************************************************************- |
| 4051 | ******************************************************************************- |
| 4052 | ************************ |
| 4053 | ******************************************************************************- |
| 4054 | ******************************************************************************- |
| 4055 | ************************ |
| 4056 | ******************************************************************************- |
| 4057 | ******************************************************************************- |
| 4058 | ************************ |
| 4059 | ******************************************************************************- |
| 4060 | ******************************************************************************- |
| 4061 | ************************ |
| 4062 | ******************************************************************************- |
| 4063 | ******************************************************************************- |
| 4064 | ************************ |
| 4065 | ******************************************************************************- |
| 4066 | ******************************************************************************- |
| 4067 | ************************ |
| 4068 | ******************************************************************************- |
| 4069 | ******************************************************************************- |
| 4070 | ************************ |
| 4071 | ******************************************************************************- |
| 4072 | ******************************************************************************- |
| 4073 | ************************ |
| 4074 | ******************************************************************************- |
| 4075 | ******************************************************************************- |
| 4076 | ************************ |
| 4077 | ******************************************************************************- |
| 4078 | ******************************************************************************- |
| 4079 | ************************ |
| 4080 | ******************************************************************************- |
| 4081 | ******************************************************************************- |
| 4082 | ************************ |
| 4083 | ******************************************************************************- |
| 4084 | ******************************************************************************- |
| 4085 | ************************ |
| 4086 | ******************************************************************************- |
| 4087 | ******************************************************************************- |
| 4088 | ************************ |
| 4089 | ******************************************************************************- |
| 4090 | ******************************************************************************- |
| 4091 | ************************ |
| 4092 | ******************************************************************************- |
| 4093 | ******************************************************************************- |
| 4094 | ************************ |
| 4095 | ******************************************************************************- |
| 4096 | ******************************************************************************- |
| 4097 | ************************ |
| 4098 | ******************************************************************************- |
| 4099 | ******************************************************************************- |
| 4100 | ************************ |
| 4101 | ******************************************************************************- |
| 4102 | ******************************************************************************- |
| 4103 | ************************ |
| 4104 | ******************************************************************************- |
| 4105 | ******************************************************************************- |
| 4106 | ************************ |
| 4107 | ******************************************************************************- |
| 4108 | ******************************************************************************- |
| 4109 | ************************ |
| 4110 | ******************************************************************************- |
| 4111 | ******************************************************************************- |
| 4112 | ************************ |
| 4113 | ******************************************************************************- |
| 4114 | ******************************************************************************- |
| 4115 | ************************ |
| 4116 | ******************************************************************************- |
| 4117 | ******************************************************************************- |
| 4118 | ************************ |
| 4119 | ******************************************************************************- |
| 4120 | ******************************************************************************- |
| 4121 | ************************ |
| 4122 | ******************************************************************************- |
| 4123 | ******************************************************************************- |
| 4124 | ************************ |
| 4125 | ******************************************************************************- |
| 4126 | ******************************************************************************- |
| 4127 | ************************ |
| 4128 | ******************************************************************************- |
| 4129 | ******************************************************************************- |
| 4130 | ************************ |
| 4131 | ******************************************************************************- |
| 4132 | ******************************************************************************- |
| 4133 | ************************ |
| 4134 | ******************************************************************************- |
| 4135 | ******************************************************************************- |
| 4136 | ************************ |
| 4137 | ******************************************************************************- |
| 4138 | ******************************************************************************- |
| 4139 | ************************ |
| 4140 | ******************************************************************************- |
| 4141 | ******************************************************************************- |
| 4142 | ************************ |
| 4143 | ******************************************************************************- |
| 4144 | ******************************************************************************- |
| 4145 | ************************ |
| 4146 | ******************************************************************************- |
| 4147 | ******************************************************************************- |
| 4148 | ************************ |
| 4149 | ******************************************************************************- |
| 4150 | ******************************************************************************- |
| 4151 | ************************ |
| 4152 | ******************************************************************************- |
| 4153 | ******************************************************************************- |
| 4154 | ************************ |
| 4155 | ******************************************************************************- |
| 4156 | ******************************************************************************- |
| 4157 | ************************ |
| 4158 | ******************************************************************************- |
| 4159 | ******************************************************************************- |
| 4160 | ************************ |
| 4161 | ******************************************************************************- |
| 4162 | ******************************************************************************- |
| 4163 | ************************ |
| 4164 | ******************************************************************************- |
| 4165 | ******************************************************************************- |
| 4166 | ************************ |
| 4167 | ******************************************************************************- |
| 4168 | ******************************************************************************- |
| 4169 | ************************ |
| 4170 | ******************************************************************************- |
| 4171 | ******************************************************************************- |
| 4172 | ************************ |
| 4173 | ******************************************************************************- |
| 4174 | ******************************************************************************- |
| 4175 | ************************ |
| 4176 | ******************************************************************************- |
| 4177 | ******************************************************************************- |
| 4178 | ************************ |
| 4179 | ******************************************************************************- |
| 4180 | ******************************************************************************- |
| 4181 | ************************ |
| 4182 | ******************************************************************************- |
| 4183 | ******************************************************************************- |
| 4184 | ************************ |
| 4185 | ******************************************************************************- |
| 4186 | ******************************************************************************- |
| 4187 | ************************ |
| 4188 | ******************************************************************************- |
| 4189 | ******************************************************************************- |
| 4190 | ************************ |
| 4191 | ******************************************************************************- |
| 4192 | ******************************************************************************- |
| 4193 | ************************ |
| 4194 | ******************************************************************************- |
| 4195 | ******************************************************************************- |
| 4196 | ************************ |
| 4197 | ******************************************************************************- |
| 4198 | ******************************************************************************- |
| 4199 | ************************ |
| 4200 | ******************************************************************************- |
| 4201 | ******************************************************************************- |
| 4202 | ************************ |
| 4203 | ******************************************************************************- |
| 4204 | ******************************************************************************- |
| 4205 | ************************ |
| 4206 | ******************************************************************************- |
| 4207 | ******************************************************************************- |
| 4208 | ************************ |
| 4209 | ******************************************************************************- |
| 4210 | ******************************************************************************- |
| 4211 | ************************ |
| 4212 | ******************************************************************************- |
| 4213 | ******************************************************************************- |
| 4214 | ************************ |
| 4215 | ******************************************************************************- |
| 4216 | ******************************************************************************- |
| 4217 | ************************ |
| 4218 | ******************************************************************************- |
| 4219 | ******************************************************************************- |
| 4220 | ************************ |
| 4221 | ******************************************************************************- |
| 4222 | ******************************************************************************- |
| 4223 | ************************ |
| 4224 | ******************************************************************************- |
| 4225 | ******************************************************************************- |
| 4226 | ************************ |
| 4227 | ******************************************************************************- |
| 4228 | ******************************************************************************- |
| 4229 | ************************ |
| 4230 | ******************************************************************************- |
| 4231 | ******************************************************************************- |
| 4232 | ************************ |
| 4233 | ******************************************************************************- |
| 4234 | ******************************************************************************- |
| 4235 | ************************ |
| 4236 | ******************************************************************************- |
| 4237 | ******************************************************************************- |
| 4238 | ************************ |
| 4239 | ******************************************************************************- |
| 4240 | ******************************************************************************- |
| 4241 | ************************ |
| 4242 | ******************************************************************************- |
| 4243 | ******************************************************************************- |
| 4244 | ************************ |
| 4245 | ******************************************************************************- |
| 4246 | ******************************************************************************- |
| 4247 | ************************ |
| 4248 | ******************************************************************************- |
| 4249 | ******************************************************************************- |
| 4250 | ************************ |
| 4251 | ******************************************************************************- |
| 4252 | ******************************************************************************- |
| 4253 | ************************ |
| 4254 | ******************************************************************************- |
| 4255 | ******************************************************************************- |
| 4256 | ************************ |
| 4257 | ******************************************************************************- |
| 4258 | ******************************************************************************- |
| 4259 | ************************ |
| 4260 | ******************************************************************************- |
| 4261 | ******************************************************************************- |
| 4262 | ************************ |
| 4263 | ******************************************************************************- |
| 4264 | ******************************************************************************- |
| 4265 | ************************ |
| 4266 | ******************************************************************************- |
| 4267 | ******************************************************************************- |
| 4268 | ************************ |
| 4269 | ******************************************************************************- |
| 4270 | ******************************************************************************- |
| 4271 | ************************ |
| 4272 | ******************************************************************************- |
| 4273 | ******************************************************************************- |
| 4274 | ************************ |
| 4275 | ******************************************************************************- |
| 4276 | ******************************************************************************- |
| 4277 | ************************ |
| 4278 | ******************************************************************************- |
| 4279 | ******************************************************************************- |
| 4280 | ************************ |
| 4281 | ******************************************************************************- |
| 4282 | ******************************************************************************- |
| 4283 | ************************ |
| 4284 | ******************************************************************************- |
| 4285 | ******************************************************************************- |
| 4286 | ************************ |
| 4287 | ******************************************************************************- |
| 4288 | ******************************************************************************- |
| 4289 | ************************ |
| 4290 | ******************************************************************************- |
| 4291 | ******************************************************************************- |
| 4292 | ************************ |
| 4293 | ******************************************************************************- |
| 4294 | ******************************************************************************- |
| 4295 | ************************ |
| 4296 | ******************************************************************************- |
| 4297 | ******************************************************************************- |
| 4298 | ************************ |
| 4299 | ******************************************************************************- |
| 4300 | ******************************************************************************- |
| 4301 | ************************ |
| 4302 | ******************************************************************************- |
| 4303 | ******************************************************************************- |
| 4304 | ************************ |
| 4305 | ******************************************************************************- |
| 4306 | ******************************************************************************- |
| 4307 | ************************ |
| 4308 | ******************************************************************************- |
| 4309 | ******************************************************************************- |
| 4310 | ************************ |
| 4311 | ******************************************************************************- |
| 4312 | ******************************************************************************- |
| 4313 | ************************ |
| 4314 | ******************************************************************************- |
| 4315 | ******************************************************************************- |
| 4316 | ************************ |
| 4317 | ******************************************************************************- |
| 4318 | ******************************************************************************- |
| 4319 | ************************ |
| 4320 | ******************************************************************************- |
| 4321 | ******************************************************************************- |
| 4322 | ************************ |
| 4323 | ******************************************************************************- |
| 4324 | ******************************************************************************- |
| 4325 | ************************ |
| 4326 | ******************************************************************************- |
| 4327 | ******************************************************************************- |
| 4328 | ************************ |
| 4329 | ******************************************************************************- |
| 4330 | ******************************************************************************- |
| 4331 | ************************ |
| 4332 | ******************************************************************************- |
| 4333 | ******************************************************************************- |
| 4334 | ************************ |
| 4335 | ******************************************************************************- |
| 4336 | ******************************************************************************- |
| 4337 | ************************ |
| 4338 | ******************************************************************************- |
| 4339 | ******************************************************************************- |
| 4340 | ************************ |
| 4341 | ******************************************************************************- |
| 4342 | ******************************************************************************- |
| 4343 | ************************ |
| 4344 | ******************************************************************************- |
| 4345 | ******************************************************************************- |
| 4346 | ************************ |
| 4347 | ******************************************************************************- |
| 4348 | ******************************************************************************- |
| 4349 | ************************ |
| 4350 | ******************************************************************************- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4351 | ... message truncated due to excessive size" ends with: "... message truncated due to excessive size" |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 4352 | </Expanded> |
| 4353 | </Expression> |
| 4354 | <OverallResult success="true"/> |
| 4355 | </TestCase> |
Phil Nash | 0e64973 | 2015-11-20 16:54:07 +0000 | [diff] [blame] | 4356 | <TestCase name="ManuallyRegistered"> |
| 4357 | <OverallResult success="true"/> |
| 4358 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4359 | <TestCase name="Matchers can be (AllOf) composed with the && operator"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4360 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4361 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4362 | testStringForMatching(), Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4363 | </Original> |
| 4364 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4365 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4366 | </Expanded> |
| 4367 | </Expression> |
| 4368 | <OverallResult success="true"/> |
| 4369 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4370 | <TestCase name="Matchers can be (AnyOf) composed with the || operator"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4371 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4372 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4373 | testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4374 | </Original> |
| 4375 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4376 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4377 | </Expanded> |
| 4378 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4379 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4380 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4381 | testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4382 | </Original> |
| 4383 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4384 | "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" ) |
| 4385 | </Expanded> |
| 4386 | </Expression> |
| 4387 | <OverallResult success="true"/> |
| 4388 | </TestCase> |
| 4389 | <TestCase name="Matchers can be composed with both && and ||"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4390 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4391 | <Original> |
| 4392 | testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) |
| 4393 | </Original> |
| 4394 | <Expanded> |
| 4395 | "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" ) |
| 4396 | </Expanded> |
| 4397 | </Expression> |
| 4398 | <OverallResult success="true"/> |
| 4399 | </TestCase> |
| 4400 | <TestCase name="Matchers can be composed with both && and || - failing"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4401 | <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4402 | <Original> |
| 4403 | testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) |
| 4404 | </Original> |
| 4405 | <Expanded> |
| 4406 | "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4407 | </Expanded> |
| 4408 | </Expression> |
| 4409 | <OverallResult success="false"/> |
| 4410 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4411 | <TestCase name="Matchers can be negated (Not) with the ! operator"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4412 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4413 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4414 | testStringForMatching(), !Contains( "different" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4415 | </Original> |
| 4416 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4417 | "this string contains 'abc' as a substring" not contains: "different" |
| 4418 | </Expanded> |
| 4419 | </Expression> |
| 4420 | <OverallResult success="true"/> |
| 4421 | </TestCase> |
| 4422 | <TestCase name="Matchers can be negated (Not) with the ! operator - failing"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4423 | <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4424 | <Original> |
| 4425 | testStringForMatching(), !Contains( "substring" ) |
| 4426 | </Original> |
| 4427 | <Expanded> |
| 4428 | "this string contains 'abc' as a substring" not contains: "substring" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4429 | </Expanded> |
| 4430 | </Expression> |
| 4431 | <OverallResult success="false"/> |
| 4432 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4433 | <TestCase name="Mismatching exception messages failing the test"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4434 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4435 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4436 | thisThrows(), "expected exception" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4437 | </Original> |
| 4438 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4439 | thisThrows(), "expected exception" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4440 | </Expanded> |
| 4441 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4442 | <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4443 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4444 | thisThrows(), "should fail" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4445 | </Original> |
| 4446 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4447 | expected exception |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4448 | </Expanded> |
| 4449 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4450 | <OverallResult success="false"/> |
| 4451 | </TestCase> |
| 4452 | <TestCase name="Nice descriptive name"> |
| 4453 | <Warning> |
| 4454 | This one ran |
| 4455 | </Warning> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4456 | <OverallResult success="true"/> |
| 4457 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4458 | <TestCase name="Non-std exceptions can be translated"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4459 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4460 | custom exception |
| 4461 | </Exception> |
| 4462 | <OverallResult success="false"/> |
| 4463 | </TestCase> |
| 4464 | <TestCase name="NotImplemented exception"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4465 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4466 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4467 | thisFunctionNotImplemented( 7 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4468 | </Original> |
| 4469 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4470 | thisFunctionNotImplemented( 7 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4471 | </Expanded> |
| 4472 | </Expression> |
| 4473 | <OverallResult success="true"/> |
| 4474 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 4475 | <TestCase name="Objects that evaluated in boolean contexts can be checked"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4476 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4477 | <Original> |
| 4478 | True |
| 4479 | </Original> |
| 4480 | <Expanded> |
| 4481 | true |
| 4482 | </Expanded> |
| 4483 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4484 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4485 | <Original> |
| 4486 | !False |
| 4487 | </Original> |
| 4488 | <Expanded> |
| 4489 | true |
| 4490 | </Expanded> |
| 4491 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4492 | <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4493 | <Original> |
| 4494 | !False |
| 4495 | </Original> |
| 4496 | <Expanded> |
| 4497 | !false |
| 4498 | </Expanded> |
| 4499 | </Expression> |
| 4500 | <OverallResult success="true"/> |
| 4501 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4502 | <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4503 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4504 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4505 | 0x<hex digits> == o |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4506 | </Original> |
| 4507 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4508 | 3221225472 (0x<hex digits>) == {?} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4509 | </Expanded> |
| 4510 | </Expression> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4511 | <OverallResult success="true"/> |
| 4512 | </TestCase> |
| 4513 | <TestCase name="Ordering comparison checks that should fail"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4514 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4515 | <Original> |
| 4516 | data.int_seven > 7 |
| 4517 | </Original> |
| 4518 | <Expanded> |
| 4519 | 7 > 7 |
| 4520 | </Expanded> |
| 4521 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4522 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4523 | <Original> |
| 4524 | data.int_seven < 7 |
| 4525 | </Original> |
| 4526 | <Expanded> |
| 4527 | 7 < 7 |
| 4528 | </Expanded> |
| 4529 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4530 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4531 | <Original> |
| 4532 | data.int_seven > 8 |
| 4533 | </Original> |
| 4534 | <Expanded> |
| 4535 | 7 > 8 |
| 4536 | </Expanded> |
| 4537 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4538 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4539 | <Original> |
| 4540 | data.int_seven < 6 |
| 4541 | </Original> |
| 4542 | <Expanded> |
| 4543 | 7 < 6 |
| 4544 | </Expanded> |
| 4545 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4546 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4547 | <Original> |
| 4548 | data.int_seven < 0 |
| 4549 | </Original> |
| 4550 | <Expanded> |
| 4551 | 7 < 0 |
| 4552 | </Expanded> |
| 4553 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4554 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4555 | <Original> |
| 4556 | data.int_seven < -1 |
| 4557 | </Original> |
| 4558 | <Expanded> |
| 4559 | 7 < -1 |
| 4560 | </Expanded> |
| 4561 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4562 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4563 | <Original> |
| 4564 | data.int_seven >= 8 |
| 4565 | </Original> |
| 4566 | <Expanded> |
| 4567 | 7 >= 8 |
| 4568 | </Expanded> |
| 4569 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4570 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4571 | <Original> |
| 4572 | data.int_seven <= 6 |
| 4573 | </Original> |
| 4574 | <Expanded> |
| 4575 | 7 <= 6 |
| 4576 | </Expanded> |
| 4577 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4578 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4579 | <Original> |
| 4580 | data.float_nine_point_one < 9 |
| 4581 | </Original> |
| 4582 | <Expanded> |
| 4583 | 9.1f < 9 |
| 4584 | </Expanded> |
| 4585 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4586 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4587 | <Original> |
| 4588 | data.float_nine_point_one > 10 |
| 4589 | </Original> |
| 4590 | <Expanded> |
| 4591 | 9.1f > 10 |
| 4592 | </Expanded> |
| 4593 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4594 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4595 | <Original> |
| 4596 | data.float_nine_point_one > 9.2 |
| 4597 | </Original> |
| 4598 | <Expanded> |
| 4599 | 9.1f > 9.2 |
| 4600 | </Expanded> |
| 4601 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4602 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4603 | <Original> |
| 4604 | data.str_hello > "hello" |
| 4605 | </Original> |
| 4606 | <Expanded> |
| 4607 | "hello" > "hello" |
| 4608 | </Expanded> |
| 4609 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4610 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4611 | <Original> |
| 4612 | data.str_hello < "hello" |
| 4613 | </Original> |
| 4614 | <Expanded> |
| 4615 | "hello" < "hello" |
| 4616 | </Expanded> |
| 4617 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4618 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4619 | <Original> |
| 4620 | data.str_hello > "hellp" |
| 4621 | </Original> |
| 4622 | <Expanded> |
| 4623 | "hello" > "hellp" |
| 4624 | </Expanded> |
| 4625 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4626 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4627 | <Original> |
| 4628 | data.str_hello > "z" |
| 4629 | </Original> |
| 4630 | <Expanded> |
| 4631 | "hello" > "z" |
| 4632 | </Expanded> |
| 4633 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4634 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4635 | <Original> |
| 4636 | data.str_hello < "hellm" |
| 4637 | </Original> |
| 4638 | <Expanded> |
| 4639 | "hello" < "hellm" |
| 4640 | </Expanded> |
| 4641 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4642 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4643 | <Original> |
| 4644 | data.str_hello < "a" |
| 4645 | </Original> |
| 4646 | <Expanded> |
| 4647 | "hello" < "a" |
| 4648 | </Expanded> |
| 4649 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4650 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4651 | <Original> |
| 4652 | data.str_hello >= "z" |
| 4653 | </Original> |
| 4654 | <Expanded> |
| 4655 | "hello" >= "z" |
| 4656 | </Expanded> |
| 4657 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4658 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4659 | <Original> |
| 4660 | data.str_hello <= "a" |
| 4661 | </Original> |
| 4662 | <Expanded> |
| 4663 | "hello" <= "a" |
| 4664 | </Expanded> |
| 4665 | </Expression> |
| 4666 | <OverallResult success="false"/> |
| 4667 | </TestCase> |
| 4668 | <TestCase name="Ordering comparison checks that should succeed"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4669 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4670 | <Original> |
| 4671 | data.int_seven < 8 |
| 4672 | </Original> |
| 4673 | <Expanded> |
| 4674 | 7 < 8 |
| 4675 | </Expanded> |
| 4676 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4677 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4678 | <Original> |
| 4679 | data.int_seven > 6 |
| 4680 | </Original> |
| 4681 | <Expanded> |
| 4682 | 7 > 6 |
| 4683 | </Expanded> |
| 4684 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4685 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4686 | <Original> |
| 4687 | data.int_seven > 0 |
| 4688 | </Original> |
| 4689 | <Expanded> |
| 4690 | 7 > 0 |
| 4691 | </Expanded> |
| 4692 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4693 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4694 | <Original> |
| 4695 | data.int_seven > -1 |
| 4696 | </Original> |
| 4697 | <Expanded> |
| 4698 | 7 > -1 |
| 4699 | </Expanded> |
| 4700 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4701 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4702 | <Original> |
| 4703 | data.int_seven >= 7 |
| 4704 | </Original> |
| 4705 | <Expanded> |
| 4706 | 7 >= 7 |
| 4707 | </Expanded> |
| 4708 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4709 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4710 | <Original> |
| 4711 | data.int_seven >= 6 |
| 4712 | </Original> |
| 4713 | <Expanded> |
| 4714 | 7 >= 6 |
| 4715 | </Expanded> |
| 4716 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4717 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4718 | <Original> |
| 4719 | data.int_seven <= 7 |
| 4720 | </Original> |
| 4721 | <Expanded> |
| 4722 | 7 <= 7 |
| 4723 | </Expanded> |
| 4724 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4725 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4726 | <Original> |
| 4727 | data.int_seven <= 8 |
| 4728 | </Original> |
| 4729 | <Expanded> |
| 4730 | 7 <= 8 |
| 4731 | </Expanded> |
| 4732 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4733 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4734 | <Original> |
| 4735 | data.float_nine_point_one > 9 |
| 4736 | </Original> |
| 4737 | <Expanded> |
| 4738 | 9.1f > 9 |
| 4739 | </Expanded> |
| 4740 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4741 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4742 | <Original> |
| 4743 | data.float_nine_point_one < 10 |
| 4744 | </Original> |
| 4745 | <Expanded> |
| 4746 | 9.1f < 10 |
| 4747 | </Expanded> |
| 4748 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4749 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4750 | <Original> |
| 4751 | data.float_nine_point_one < 9.2 |
| 4752 | </Original> |
| 4753 | <Expanded> |
| 4754 | 9.1f < 9.2 |
| 4755 | </Expanded> |
| 4756 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4757 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4758 | <Original> |
| 4759 | data.str_hello <= "hello" |
| 4760 | </Original> |
| 4761 | <Expanded> |
| 4762 | "hello" <= "hello" |
| 4763 | </Expanded> |
| 4764 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4765 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4766 | <Original> |
| 4767 | data.str_hello >= "hello" |
| 4768 | </Original> |
| 4769 | <Expanded> |
| 4770 | "hello" >= "hello" |
| 4771 | </Expanded> |
| 4772 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4773 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4774 | <Original> |
| 4775 | data.str_hello < "hellp" |
| 4776 | </Original> |
| 4777 | <Expanded> |
| 4778 | "hello" < "hellp" |
| 4779 | </Expanded> |
| 4780 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4781 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4782 | <Original> |
| 4783 | data.str_hello < "zebra" |
| 4784 | </Original> |
| 4785 | <Expanded> |
| 4786 | "hello" < "zebra" |
| 4787 | </Expanded> |
| 4788 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4789 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4790 | <Original> |
| 4791 | data.str_hello > "hellm" |
| 4792 | </Original> |
| 4793 | <Expanded> |
| 4794 | "hello" > "hellm" |
| 4795 | </Expanded> |
| 4796 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4797 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4798 | <Original> |
| 4799 | data.str_hello > "a" |
| 4800 | </Original> |
| 4801 | <Expanded> |
| 4802 | "hello" > "a" |
| 4803 | </Expanded> |
| 4804 | </Expression> |
| 4805 | <OverallResult success="true"/> |
| 4806 | </TestCase> |
| 4807 | <TestCase name="Output from all sections is reported"> |
| 4808 | <Section name="one"> |
| 4809 | <Failure> |
| 4810 | Message from section one |
| 4811 | </Failure> |
| 4812 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4813 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4814 | <Section name="two"> |
| 4815 | <Failure> |
| 4816 | Message from section two |
| 4817 | </Failure> |
| 4818 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4819 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 4820 | <OverallResult success="false"/> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 4821 | </TestCase> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4822 | <TestCase name="Parse test names and tags"> |
| 4823 | <Section name="Empty test spec should have no filters"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4824 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4825 | <Original> |
| 4826 | spec.hasFilters() == false |
| 4827 | </Original> |
| 4828 | <Expanded> |
| 4829 | false == false |
| 4830 | </Expanded> |
| 4831 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4832 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4833 | <Original> |
| 4834 | spec.matches( tcA ) == false |
| 4835 | </Original> |
| 4836 | <Expanded> |
| 4837 | false == false |
| 4838 | </Expanded> |
| 4839 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4840 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4841 | <Original> |
| 4842 | spec.matches( tcB ) == false |
| 4843 | </Original> |
| 4844 | <Expanded> |
| 4845 | false == false |
| 4846 | </Expanded> |
| 4847 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4848 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4849 | </Section> |
| 4850 | <Section name="Test spec from empty string should have no filters"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4851 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4852 | <Original> |
| 4853 | spec.hasFilters() == false |
| 4854 | </Original> |
| 4855 | <Expanded> |
| 4856 | false == false |
| 4857 | </Expanded> |
| 4858 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4859 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4860 | <Original> |
| 4861 | spec.matches(tcA ) == false |
| 4862 | </Original> |
| 4863 | <Expanded> |
| 4864 | false == false |
| 4865 | </Expanded> |
| 4866 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4867 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4868 | <Original> |
| 4869 | spec.matches( tcB ) == false |
| 4870 | </Original> |
| 4871 | <Expanded> |
| 4872 | false == false |
| 4873 | </Expanded> |
| 4874 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4875 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4876 | </Section> |
| 4877 | <Section name="Test spec from just a comma should have no filters"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4878 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4879 | <Original> |
| 4880 | spec.hasFilters() == false |
| 4881 | </Original> |
| 4882 | <Expanded> |
| 4883 | false == false |
| 4884 | </Expanded> |
| 4885 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4886 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4887 | <Original> |
| 4888 | spec.matches( tcA ) == false |
| 4889 | </Original> |
| 4890 | <Expanded> |
| 4891 | false == false |
| 4892 | </Expanded> |
| 4893 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4894 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4895 | <Original> |
| 4896 | spec.matches( tcB ) == false |
| 4897 | </Original> |
| 4898 | <Expanded> |
| 4899 | false == false |
| 4900 | </Expanded> |
| 4901 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4902 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4903 | </Section> |
| 4904 | <Section name="Test spec from name should have one filter"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4905 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4906 | <Original> |
| 4907 | spec.hasFilters() == true |
| 4908 | </Original> |
| 4909 | <Expanded> |
| 4910 | true == true |
| 4911 | </Expanded> |
| 4912 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4913 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4914 | <Original> |
| 4915 | spec.matches( tcA ) == false |
| 4916 | </Original> |
| 4917 | <Expanded> |
| 4918 | false == false |
| 4919 | </Expanded> |
| 4920 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4921 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4922 | <Original> |
| 4923 | spec.matches( tcB ) == true |
| 4924 | </Original> |
| 4925 | <Expanded> |
| 4926 | true == true |
| 4927 | </Expanded> |
| 4928 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4929 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4930 | </Section> |
| 4931 | <Section name="Test spec from quoted name should have one filter"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4932 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4933 | <Original> |
| 4934 | spec.hasFilters() == true |
| 4935 | </Original> |
| 4936 | <Expanded> |
| 4937 | true == true |
| 4938 | </Expanded> |
| 4939 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4940 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4941 | <Original> |
| 4942 | spec.matches( tcA ) == false |
| 4943 | </Original> |
| 4944 | <Expanded> |
| 4945 | false == false |
| 4946 | </Expanded> |
| 4947 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4948 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4949 | <Original> |
| 4950 | spec.matches( tcB ) == true |
| 4951 | </Original> |
| 4952 | <Expanded> |
| 4953 | true == true |
| 4954 | </Expanded> |
| 4955 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4956 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4957 | </Section> |
| 4958 | <Section name="Test spec from name should have one filter"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4959 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4960 | <Original> |
| 4961 | spec.hasFilters() == true |
| 4962 | </Original> |
| 4963 | <Expanded> |
| 4964 | true == true |
| 4965 | </Expanded> |
| 4966 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4967 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4968 | <Original> |
| 4969 | spec.matches( tcA ) == false |
| 4970 | </Original> |
| 4971 | <Expanded> |
| 4972 | false == false |
| 4973 | </Expanded> |
| 4974 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4975 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4976 | <Original> |
| 4977 | spec.matches( tcB ) == true |
| 4978 | </Original> |
| 4979 | <Expanded> |
| 4980 | true == true |
| 4981 | </Expanded> |
| 4982 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4983 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4984 | <Original> |
| 4985 | spec.matches( tcC ) == false |
| 4986 | </Original> |
| 4987 | <Expanded> |
| 4988 | false == false |
| 4989 | </Expanded> |
| 4990 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4991 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4992 | </Section> |
| 4993 | <Section name="Wildcard at the start"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 4994 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 4995 | <Original> |
| 4996 | spec.hasFilters() == true |
| 4997 | </Original> |
| 4998 | <Expanded> |
| 4999 | true == true |
| 5000 | </Expanded> |
| 5001 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5002 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5003 | <Original> |
| 5004 | spec.matches( tcA ) == false |
| 5005 | </Original> |
| 5006 | <Expanded> |
| 5007 | false == false |
| 5008 | </Expanded> |
| 5009 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5010 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5011 | <Original> |
| 5012 | spec.matches( tcB ) == false |
| 5013 | </Original> |
| 5014 | <Expanded> |
| 5015 | false == false |
| 5016 | </Expanded> |
| 5017 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5018 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5019 | <Original> |
| 5020 | spec.matches( tcC ) == true |
| 5021 | </Original> |
| 5022 | <Expanded> |
| 5023 | true == true |
| 5024 | </Expanded> |
| 5025 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5026 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5027 | <Original> |
| 5028 | spec.matches( tcD ) == false |
| 5029 | </Original> |
| 5030 | <Expanded> |
| 5031 | false == false |
| 5032 | </Expanded> |
| 5033 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5034 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5035 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5036 | parseTestSpec( "*a" ).matches( tcA ) == true |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5037 | </Original> |
| 5038 | <Expanded> |
| 5039 | true == true |
| 5040 | </Expanded> |
| 5041 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5042 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5043 | </Section> |
| 5044 | <Section name="Wildcard at the end"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5045 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5046 | <Original> |
| 5047 | spec.hasFilters() == true |
| 5048 | </Original> |
| 5049 | <Expanded> |
| 5050 | true == true |
| 5051 | </Expanded> |
| 5052 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5053 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5054 | <Original> |
| 5055 | spec.matches( tcA ) == false |
| 5056 | </Original> |
| 5057 | <Expanded> |
| 5058 | false == false |
| 5059 | </Expanded> |
| 5060 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5061 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5062 | <Original> |
| 5063 | spec.matches( tcB ) == false |
| 5064 | </Original> |
| 5065 | <Expanded> |
| 5066 | false == false |
| 5067 | </Expanded> |
| 5068 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5069 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5070 | <Original> |
| 5071 | spec.matches( tcC ) == true |
| 5072 | </Original> |
| 5073 | <Expanded> |
| 5074 | true == true |
| 5075 | </Expanded> |
| 5076 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5077 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5078 | <Original> |
| 5079 | spec.matches( tcD ) == false |
| 5080 | </Original> |
| 5081 | <Expanded> |
| 5082 | false == false |
| 5083 | </Expanded> |
| 5084 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5085 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5086 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5087 | parseTestSpec( "a*" ).matches( tcA ) == true |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5088 | </Original> |
| 5089 | <Expanded> |
| 5090 | true == true |
| 5091 | </Expanded> |
| 5092 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5093 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5094 | </Section> |
| 5095 | <Section name="Wildcard at both ends"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5096 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5097 | <Original> |
| 5098 | spec.hasFilters() == true |
| 5099 | </Original> |
| 5100 | <Expanded> |
| 5101 | true == true |
| 5102 | </Expanded> |
| 5103 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5104 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5105 | <Original> |
| 5106 | spec.matches( tcA ) == false |
| 5107 | </Original> |
| 5108 | <Expanded> |
| 5109 | false == false |
| 5110 | </Expanded> |
| 5111 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5112 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5113 | <Original> |
| 5114 | spec.matches( tcB ) == false |
| 5115 | </Original> |
| 5116 | <Expanded> |
| 5117 | false == false |
| 5118 | </Expanded> |
| 5119 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5120 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5121 | <Original> |
| 5122 | spec.matches( tcC ) == true |
| 5123 | </Original> |
| 5124 | <Expanded> |
| 5125 | true == true |
| 5126 | </Expanded> |
| 5127 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5128 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5129 | <Original> |
| 5130 | spec.matches( tcD ) == true |
| 5131 | </Original> |
| 5132 | <Expanded> |
| 5133 | true == true |
| 5134 | </Expanded> |
| 5135 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5136 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5137 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5138 | parseTestSpec( "*a*" ).matches( tcA ) == true |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5139 | </Original> |
| 5140 | <Expanded> |
| 5141 | true == true |
| 5142 | </Expanded> |
| 5143 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5144 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5145 | </Section> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5146 | <Section name="Redundant wildcard at the start"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5147 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5148 | <Original> |
| 5149 | spec.hasFilters() == true |
| 5150 | </Original> |
| 5151 | <Expanded> |
| 5152 | true == true |
| 5153 | </Expanded> |
| 5154 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5155 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5156 | <Original> |
| 5157 | spec.matches( tcA ) == true |
| 5158 | </Original> |
| 5159 | <Expanded> |
| 5160 | true == true |
| 5161 | </Expanded> |
| 5162 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5163 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5164 | <Original> |
| 5165 | spec.matches( tcB ) == false |
| 5166 | </Original> |
| 5167 | <Expanded> |
| 5168 | false == false |
| 5169 | </Expanded> |
| 5170 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5171 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5172 | </Section> |
| 5173 | <Section name="Redundant wildcard at the end"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5174 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5175 | <Original> |
| 5176 | spec.hasFilters() == true |
| 5177 | </Original> |
| 5178 | <Expanded> |
| 5179 | true == true |
| 5180 | </Expanded> |
| 5181 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5182 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5183 | <Original> |
| 5184 | spec.matches( tcA ) == true |
| 5185 | </Original> |
| 5186 | <Expanded> |
| 5187 | true == true |
| 5188 | </Expanded> |
| 5189 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5190 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5191 | <Original> |
| 5192 | spec.matches( tcB ) == false |
| 5193 | </Original> |
| 5194 | <Expanded> |
| 5195 | false == false |
| 5196 | </Expanded> |
| 5197 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5198 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5199 | </Section> |
| 5200 | <Section name="Redundant wildcard at both ends"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5201 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5202 | <Original> |
| 5203 | spec.hasFilters() == true |
| 5204 | </Original> |
| 5205 | <Expanded> |
| 5206 | true == true |
| 5207 | </Expanded> |
| 5208 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5209 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5210 | <Original> |
| 5211 | spec.matches( tcA ) == true |
| 5212 | </Original> |
| 5213 | <Expanded> |
| 5214 | true == true |
| 5215 | </Expanded> |
| 5216 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5217 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5218 | <Original> |
| 5219 | spec.matches( tcB ) == false |
| 5220 | </Original> |
| 5221 | <Expanded> |
| 5222 | false == false |
| 5223 | </Expanded> |
| 5224 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5225 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5226 | </Section> |
| 5227 | <Section name="Wildcard at both ends, redundant at start"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5228 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5229 | <Original> |
| 5230 | spec.hasFilters() == true |
| 5231 | </Original> |
| 5232 | <Expanded> |
| 5233 | true == true |
| 5234 | </Expanded> |
| 5235 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5236 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5237 | <Original> |
| 5238 | spec.matches( tcA ) == false |
| 5239 | </Original> |
| 5240 | <Expanded> |
| 5241 | false == false |
| 5242 | </Expanded> |
| 5243 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5244 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5245 | <Original> |
| 5246 | spec.matches( tcB ) == false |
| 5247 | </Original> |
| 5248 | <Expanded> |
| 5249 | false == false |
| 5250 | </Expanded> |
| 5251 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5252 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5253 | <Original> |
| 5254 | spec.matches( tcC ) == true |
| 5255 | </Original> |
| 5256 | <Expanded> |
| 5257 | true == true |
| 5258 | </Expanded> |
| 5259 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5260 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5261 | <Original> |
| 5262 | spec.matches( tcD ) == true |
| 5263 | </Original> |
| 5264 | <Expanded> |
| 5265 | true == true |
| 5266 | </Expanded> |
| 5267 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5268 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 5269 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5270 | <Section name="Just wildcard"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5271 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5272 | <Original> |
| 5273 | spec.hasFilters() == true |
| 5274 | </Original> |
| 5275 | <Expanded> |
| 5276 | true == true |
| 5277 | </Expanded> |
| 5278 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5279 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5280 | <Original> |
| 5281 | spec.matches( tcA ) == true |
| 5282 | </Original> |
| 5283 | <Expanded> |
| 5284 | true == true |
| 5285 | </Expanded> |
| 5286 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5287 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5288 | <Original> |
| 5289 | spec.matches( tcB ) == true |
| 5290 | </Original> |
| 5291 | <Expanded> |
| 5292 | true == true |
| 5293 | </Expanded> |
| 5294 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5295 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5296 | <Original> |
| 5297 | spec.matches( tcC ) == true |
| 5298 | </Original> |
| 5299 | <Expanded> |
| 5300 | true == true |
| 5301 | </Expanded> |
| 5302 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5303 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5304 | <Original> |
| 5305 | spec.matches( tcD ) == true |
| 5306 | </Original> |
| 5307 | <Expanded> |
| 5308 | true == true |
| 5309 | </Expanded> |
| 5310 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5311 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5312 | </Section> |
| 5313 | <Section name="Single tag"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5314 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5315 | <Original> |
| 5316 | spec.hasFilters() == true |
| 5317 | </Original> |
| 5318 | <Expanded> |
| 5319 | true == true |
| 5320 | </Expanded> |
| 5321 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5322 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5323 | <Original> |
| 5324 | spec.matches( tcA ) == false |
| 5325 | </Original> |
| 5326 | <Expanded> |
| 5327 | false == false |
| 5328 | </Expanded> |
| 5329 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5330 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5331 | <Original> |
| 5332 | spec.matches( tcB ) == true |
| 5333 | </Original> |
| 5334 | <Expanded> |
| 5335 | true == true |
| 5336 | </Expanded> |
| 5337 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5338 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5339 | <Original> |
| 5340 | spec.matches( tcC ) == false |
| 5341 | </Original> |
| 5342 | <Expanded> |
| 5343 | false == false |
| 5344 | </Expanded> |
| 5345 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5346 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5347 | </Section> |
| 5348 | <Section name="Single tag, two matches"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5349 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5350 | <Original> |
| 5351 | spec.hasFilters() == true |
| 5352 | </Original> |
| 5353 | <Expanded> |
| 5354 | true == true |
| 5355 | </Expanded> |
| 5356 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5357 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5358 | <Original> |
| 5359 | spec.matches( tcA ) == false |
| 5360 | </Original> |
| 5361 | <Expanded> |
| 5362 | false == false |
| 5363 | </Expanded> |
| 5364 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5365 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5366 | <Original> |
| 5367 | spec.matches( tcB ) == true |
| 5368 | </Original> |
| 5369 | <Expanded> |
| 5370 | true == true |
| 5371 | </Expanded> |
| 5372 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5373 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5374 | <Original> |
| 5375 | spec.matches( tcC ) == true |
| 5376 | </Original> |
| 5377 | <Expanded> |
| 5378 | true == true |
| 5379 | </Expanded> |
| 5380 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5381 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5382 | </Section> |
| 5383 | <Section name="Two tags"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5384 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5385 | <Original> |
| 5386 | spec.hasFilters() == true |
| 5387 | </Original> |
| 5388 | <Expanded> |
| 5389 | true == true |
| 5390 | </Expanded> |
| 5391 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5392 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5393 | <Original> |
| 5394 | spec.matches( tcA ) == false |
| 5395 | </Original> |
| 5396 | <Expanded> |
| 5397 | false == false |
| 5398 | </Expanded> |
| 5399 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5400 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5401 | <Original> |
| 5402 | spec.matches( tcB ) == false |
| 5403 | </Original> |
| 5404 | <Expanded> |
| 5405 | false == false |
| 5406 | </Expanded> |
| 5407 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5408 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5409 | <Original> |
| 5410 | spec.matches( tcC ) == true |
| 5411 | </Original> |
| 5412 | <Expanded> |
| 5413 | true == true |
| 5414 | </Expanded> |
| 5415 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5416 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5417 | </Section> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 5418 | <Section name="Two tags, spare separated"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5419 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 5420 | <Original> |
| 5421 | spec.hasFilters() == true |
| 5422 | </Original> |
| 5423 | <Expanded> |
| 5424 | true == true |
| 5425 | </Expanded> |
| 5426 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5427 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 5428 | <Original> |
| 5429 | spec.matches( tcA ) == false |
| 5430 | </Original> |
| 5431 | <Expanded> |
| 5432 | false == false |
| 5433 | </Expanded> |
| 5434 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5435 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 5436 | <Original> |
| 5437 | spec.matches( tcB ) == false |
| 5438 | </Original> |
| 5439 | <Expanded> |
| 5440 | false == false |
| 5441 | </Expanded> |
| 5442 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5443 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 5444 | <Original> |
| 5445 | spec.matches( tcC ) == true |
| 5446 | </Original> |
| 5447 | <Expanded> |
| 5448 | true == true |
| 5449 | </Expanded> |
| 5450 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5451 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 5452 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5453 | <Section name="Wildcarded name and tag"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5454 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5455 | <Original> |
| 5456 | spec.hasFilters() == true |
| 5457 | </Original> |
| 5458 | <Expanded> |
| 5459 | true == true |
| 5460 | </Expanded> |
| 5461 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5462 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5463 | <Original> |
| 5464 | spec.matches( tcA ) == false |
| 5465 | </Original> |
| 5466 | <Expanded> |
| 5467 | false == false |
| 5468 | </Expanded> |
| 5469 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5470 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5471 | <Original> |
| 5472 | spec.matches( tcB ) == false |
| 5473 | </Original> |
| 5474 | <Expanded> |
| 5475 | false == false |
| 5476 | </Expanded> |
| 5477 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5478 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5479 | <Original> |
| 5480 | spec.matches( tcC ) == true |
| 5481 | </Original> |
| 5482 | <Expanded> |
| 5483 | true == true |
| 5484 | </Expanded> |
| 5485 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5486 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5487 | <Original> |
| 5488 | spec.matches( tcD ) == false |
| 5489 | </Original> |
| 5490 | <Expanded> |
| 5491 | false == false |
| 5492 | </Expanded> |
| 5493 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5494 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5495 | </Section> |
| 5496 | <Section name="Single tag exclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5497 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5498 | <Original> |
| 5499 | spec.hasFilters() == true |
| 5500 | </Original> |
| 5501 | <Expanded> |
| 5502 | true == true |
| 5503 | </Expanded> |
| 5504 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5505 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5506 | <Original> |
| 5507 | spec.matches( tcA ) == true |
| 5508 | </Original> |
| 5509 | <Expanded> |
| 5510 | true == true |
| 5511 | </Expanded> |
| 5512 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5513 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5514 | <Original> |
| 5515 | spec.matches( tcB ) == false |
| 5516 | </Original> |
| 5517 | <Expanded> |
| 5518 | false == false |
| 5519 | </Expanded> |
| 5520 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5521 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5522 | <Original> |
| 5523 | spec.matches( tcC ) == true |
| 5524 | </Original> |
| 5525 | <Expanded> |
| 5526 | true == true |
| 5527 | </Expanded> |
| 5528 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5529 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5530 | </Section> |
| 5531 | <Section name="One tag exclusion and one tag inclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5532 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5533 | <Original> |
| 5534 | spec.hasFilters() == true |
| 5535 | </Original> |
| 5536 | <Expanded> |
| 5537 | true == true |
| 5538 | </Expanded> |
| 5539 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5540 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5541 | <Original> |
| 5542 | spec.matches( tcA ) == false |
| 5543 | </Original> |
| 5544 | <Expanded> |
| 5545 | false == false |
| 5546 | </Expanded> |
| 5547 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5548 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5549 | <Original> |
| 5550 | spec.matches( tcB ) == true |
| 5551 | </Original> |
| 5552 | <Expanded> |
| 5553 | true == true |
| 5554 | </Expanded> |
| 5555 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5556 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5557 | <Original> |
| 5558 | spec.matches( tcC ) == false |
| 5559 | </Original> |
| 5560 | <Expanded> |
| 5561 | false == false |
| 5562 | </Expanded> |
| 5563 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5564 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5565 | </Section> |
| 5566 | <Section name="One tag exclusion and one wldcarded name inclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5567 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5568 | <Original> |
| 5569 | spec.hasFilters() == true |
| 5570 | </Original> |
| 5571 | <Expanded> |
| 5572 | true == true |
| 5573 | </Expanded> |
| 5574 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5575 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5576 | <Original> |
| 5577 | spec.matches( tcA ) == false |
| 5578 | </Original> |
| 5579 | <Expanded> |
| 5580 | false == false |
| 5581 | </Expanded> |
| 5582 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5583 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5584 | <Original> |
| 5585 | spec.matches( tcB ) == false |
| 5586 | </Original> |
| 5587 | <Expanded> |
| 5588 | false == false |
| 5589 | </Expanded> |
| 5590 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5591 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5592 | <Original> |
| 5593 | spec.matches( tcC ) == false |
| 5594 | </Original> |
| 5595 | <Expanded> |
| 5596 | false == false |
| 5597 | </Expanded> |
| 5598 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5599 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5600 | <Original> |
| 5601 | spec.matches( tcD ) == true |
| 5602 | </Original> |
| 5603 | <Expanded> |
| 5604 | true == true |
| 5605 | </Expanded> |
| 5606 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5607 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5608 | </Section> |
| 5609 | <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5610 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5611 | <Original> |
| 5612 | spec.hasFilters() == true |
| 5613 | </Original> |
| 5614 | <Expanded> |
| 5615 | true == true |
| 5616 | </Expanded> |
| 5617 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5618 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5619 | <Original> |
| 5620 | spec.matches( tcA ) == false |
| 5621 | </Original> |
| 5622 | <Expanded> |
| 5623 | false == false |
| 5624 | </Expanded> |
| 5625 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5626 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5627 | <Original> |
| 5628 | spec.matches( tcB ) == false |
| 5629 | </Original> |
| 5630 | <Expanded> |
| 5631 | false == false |
| 5632 | </Expanded> |
| 5633 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5634 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5635 | <Original> |
| 5636 | spec.matches( tcC ) == false |
| 5637 | </Original> |
| 5638 | <Expanded> |
| 5639 | false == false |
| 5640 | </Expanded> |
| 5641 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5642 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5643 | <Original> |
| 5644 | spec.matches( tcD ) == true |
| 5645 | </Original> |
| 5646 | <Expanded> |
| 5647 | true == true |
| 5648 | </Expanded> |
| 5649 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5650 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5651 | </Section> |
| 5652 | <Section name="name exclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5653 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5654 | <Original> |
| 5655 | spec.hasFilters() == true |
| 5656 | </Original> |
| 5657 | <Expanded> |
| 5658 | true == true |
| 5659 | </Expanded> |
| 5660 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5661 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5662 | <Original> |
| 5663 | spec.matches( tcA ) == true |
| 5664 | </Original> |
| 5665 | <Expanded> |
| 5666 | true == true |
| 5667 | </Expanded> |
| 5668 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5669 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5670 | <Original> |
| 5671 | spec.matches( tcB ) == false |
| 5672 | </Original> |
| 5673 | <Expanded> |
| 5674 | false == false |
| 5675 | </Expanded> |
| 5676 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5677 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5678 | <Original> |
| 5679 | spec.matches( tcC ) == true |
| 5680 | </Original> |
| 5681 | <Expanded> |
| 5682 | true == true |
| 5683 | </Expanded> |
| 5684 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5685 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5686 | <Original> |
| 5687 | spec.matches( tcD ) == true |
| 5688 | </Original> |
| 5689 | <Expanded> |
| 5690 | true == true |
| 5691 | </Expanded> |
| 5692 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5693 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5694 | </Section> |
| 5695 | <Section name="wildcarded name exclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5696 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5697 | <Original> |
| 5698 | spec.hasFilters() == true |
| 5699 | </Original> |
| 5700 | <Expanded> |
| 5701 | true == true |
| 5702 | </Expanded> |
| 5703 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5704 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5705 | <Original> |
| 5706 | spec.matches( tcA ) == true |
| 5707 | </Original> |
| 5708 | <Expanded> |
| 5709 | true == true |
| 5710 | </Expanded> |
| 5711 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5712 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5713 | <Original> |
| 5714 | spec.matches( tcB ) == true |
| 5715 | </Original> |
| 5716 | <Expanded> |
| 5717 | true == true |
| 5718 | </Expanded> |
| 5719 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5720 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5721 | <Original> |
| 5722 | spec.matches( tcC ) == false |
| 5723 | </Original> |
| 5724 | <Expanded> |
| 5725 | false == false |
| 5726 | </Expanded> |
| 5727 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5728 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5729 | <Original> |
| 5730 | spec.matches( tcD ) == false |
| 5731 | </Original> |
| 5732 | <Expanded> |
| 5733 | false == false |
| 5734 | </Expanded> |
| 5735 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5736 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5737 | </Section> |
| 5738 | <Section name="wildcarded name exclusion with tag inclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5739 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5740 | <Original> |
| 5741 | spec.hasFilters() == true |
| 5742 | </Original> |
| 5743 | <Expanded> |
| 5744 | true == true |
| 5745 | </Expanded> |
| 5746 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5747 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5748 | <Original> |
| 5749 | spec.matches( tcA ) == true |
| 5750 | </Original> |
| 5751 | <Expanded> |
| 5752 | true == true |
| 5753 | </Expanded> |
| 5754 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5755 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5756 | <Original> |
| 5757 | spec.matches( tcB ) == true |
| 5758 | </Original> |
| 5759 | <Expanded> |
| 5760 | true == true |
| 5761 | </Expanded> |
| 5762 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5763 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5764 | <Original> |
| 5765 | spec.matches( tcC ) == true |
| 5766 | </Original> |
| 5767 | <Expanded> |
| 5768 | true == true |
| 5769 | </Expanded> |
| 5770 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5771 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5772 | <Original> |
| 5773 | spec.matches( tcD ) == false |
| 5774 | </Original> |
| 5775 | <Expanded> |
| 5776 | false == false |
| 5777 | </Expanded> |
| 5778 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5779 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5780 | </Section> |
| 5781 | <Section name="wildcarded name exclusion, using exclude:, with tag inclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5782 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5783 | <Original> |
| 5784 | spec.hasFilters() == true |
| 5785 | </Original> |
| 5786 | <Expanded> |
| 5787 | true == true |
| 5788 | </Expanded> |
| 5789 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5790 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5791 | <Original> |
| 5792 | spec.matches( tcA ) == true |
| 5793 | </Original> |
| 5794 | <Expanded> |
| 5795 | true == true |
| 5796 | </Expanded> |
| 5797 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5798 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5799 | <Original> |
| 5800 | spec.matches( tcB ) == true |
| 5801 | </Original> |
| 5802 | <Expanded> |
| 5803 | true == true |
| 5804 | </Expanded> |
| 5805 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5806 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5807 | <Original> |
| 5808 | spec.matches( tcC ) == true |
| 5809 | </Original> |
| 5810 | <Expanded> |
| 5811 | true == true |
| 5812 | </Expanded> |
| 5813 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5814 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5815 | <Original> |
| 5816 | spec.matches( tcD ) == false |
| 5817 | </Original> |
| 5818 | <Expanded> |
| 5819 | false == false |
| 5820 | </Expanded> |
| 5821 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5822 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5823 | </Section> |
| 5824 | <Section name="two wildcarded names"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5825 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5826 | <Original> |
| 5827 | spec.hasFilters() == true |
| 5828 | </Original> |
| 5829 | <Expanded> |
| 5830 | true == true |
| 5831 | </Expanded> |
| 5832 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5833 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5834 | <Original> |
| 5835 | spec.matches( tcA ) == false |
| 5836 | </Original> |
| 5837 | <Expanded> |
| 5838 | false == false |
| 5839 | </Expanded> |
| 5840 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5841 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5842 | <Original> |
| 5843 | spec.matches( tcB ) == false |
| 5844 | </Original> |
| 5845 | <Expanded> |
| 5846 | false == false |
| 5847 | </Expanded> |
| 5848 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5849 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5850 | <Original> |
| 5851 | spec.matches( tcC ) == true |
| 5852 | </Original> |
| 5853 | <Expanded> |
| 5854 | true == true |
| 5855 | </Expanded> |
| 5856 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5857 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5858 | <Original> |
| 5859 | spec.matches( tcD ) == false |
| 5860 | </Original> |
| 5861 | <Expanded> |
| 5862 | false == false |
| 5863 | </Expanded> |
| 5864 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5865 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5866 | </Section> |
| 5867 | <Section name="empty tag"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5868 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5869 | <Original> |
| 5870 | spec.hasFilters() == false |
| 5871 | </Original> |
| 5872 | <Expanded> |
| 5873 | false == false |
| 5874 | </Expanded> |
| 5875 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5876 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5877 | <Original> |
| 5878 | spec.matches( tcA ) == false |
| 5879 | </Original> |
| 5880 | <Expanded> |
| 5881 | false == false |
| 5882 | </Expanded> |
| 5883 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5884 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5885 | <Original> |
| 5886 | spec.matches( tcB ) == false |
| 5887 | </Original> |
| 5888 | <Expanded> |
| 5889 | false == false |
| 5890 | </Expanded> |
| 5891 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5892 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5893 | <Original> |
| 5894 | spec.matches( tcC ) == false |
| 5895 | </Original> |
| 5896 | <Expanded> |
| 5897 | false == false |
| 5898 | </Expanded> |
| 5899 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5900 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5901 | <Original> |
| 5902 | spec.matches( tcD ) == false |
| 5903 | </Original> |
| 5904 | <Expanded> |
| 5905 | false == false |
| 5906 | </Expanded> |
| 5907 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5908 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5909 | </Section> |
| 5910 | <Section name="empty quoted name"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5911 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5912 | <Original> |
| 5913 | spec.hasFilters() == false |
| 5914 | </Original> |
| 5915 | <Expanded> |
| 5916 | false == false |
| 5917 | </Expanded> |
| 5918 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5919 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5920 | <Original> |
| 5921 | spec.matches( tcA ) == false |
| 5922 | </Original> |
| 5923 | <Expanded> |
| 5924 | false == false |
| 5925 | </Expanded> |
| 5926 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5927 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5928 | <Original> |
| 5929 | spec.matches( tcB ) == false |
| 5930 | </Original> |
| 5931 | <Expanded> |
| 5932 | false == false |
| 5933 | </Expanded> |
| 5934 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5935 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5936 | <Original> |
| 5937 | spec.matches( tcC ) == false |
| 5938 | </Original> |
| 5939 | <Expanded> |
| 5940 | false == false |
| 5941 | </Expanded> |
| 5942 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5943 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5944 | <Original> |
| 5945 | spec.matches( tcD ) == false |
| 5946 | </Original> |
| 5947 | <Expanded> |
| 5948 | false == false |
| 5949 | </Expanded> |
| 5950 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5951 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5952 | </Section> |
| 5953 | <Section name="quoted string followed by tag exclusion"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5954 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5955 | <Original> |
| 5956 | spec.hasFilters() == true |
| 5957 | </Original> |
| 5958 | <Expanded> |
| 5959 | true == true |
| 5960 | </Expanded> |
| 5961 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5962 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5963 | <Original> |
| 5964 | spec.matches( tcA ) == false |
| 5965 | </Original> |
| 5966 | <Expanded> |
| 5967 | false == false |
| 5968 | </Expanded> |
| 5969 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5970 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5971 | <Original> |
| 5972 | spec.matches( tcB ) == false |
| 5973 | </Original> |
| 5974 | <Expanded> |
| 5975 | false == false |
| 5976 | </Expanded> |
| 5977 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5978 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5979 | <Original> |
| 5980 | spec.matches( tcC ) == false |
| 5981 | </Original> |
| 5982 | <Expanded> |
| 5983 | false == false |
| 5984 | </Expanded> |
| 5985 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5986 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5987 | <Original> |
| 5988 | spec.matches( tcD ) == true |
| 5989 | </Original> |
| 5990 | <Expanded> |
| 5991 | true == true |
| 5992 | </Expanded> |
| 5993 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5994 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 5995 | </Section> |
| 5996 | <OverallResult success="true"/> |
| 5997 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 5998 | <TestCase name="Parsing a std::pair"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 5999 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6000 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6001 | (std::pair<int, int>( 1, 2 )) == aNicePair |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6002 | </Original> |
| 6003 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6004 | std::pair( 1, 2 ) == std::pair( 1, 2 ) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6005 | </Expanded> |
| 6006 | </Expression> |
| 6007 | <OverallResult success="true"/> |
| 6008 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6009 | <TestCase name="Pointers can be compared to null"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6010 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6011 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6012 | p == 0 |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6013 | </Original> |
| 6014 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6015 | NULL == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6016 | </Expanded> |
| 6017 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6018 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6019 | <Original> |
| 6020 | p == pNULL |
| 6021 | </Original> |
| 6022 | <Expanded> |
| 6023 | NULL == NULL |
| 6024 | </Expanded> |
| 6025 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6026 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6027 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6028 | p != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6029 | </Original> |
| 6030 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6031 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6032 | </Expanded> |
| 6033 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6034 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6035 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6036 | cp != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6037 | </Original> |
| 6038 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6039 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6040 | </Expanded> |
| 6041 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6042 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6043 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6044 | cpc != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6045 | </Original> |
| 6046 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6047 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6048 | </Expanded> |
| 6049 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6050 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6051 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6052 | returnsNull() == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6053 | </Original> |
| 6054 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6055 | {null string} == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6056 | </Expanded> |
| 6057 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6058 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6059 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6060 | returnsConstNull() == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6061 | </Original> |
| 6062 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6063 | {null string} == 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6064 | </Expanded> |
| 6065 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6066 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6067 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6068 | 0 != p |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6069 | </Original> |
| 6070 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 6071 | 0 != 0x<hex digits> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6072 | </Expanded> |
| 6073 | </Expression> |
| 6074 | <OverallResult success="true"/> |
| 6075 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6076 | <TestCase name="Pointers can be converted to strings"> |
| 6077 | <Warning> |
| 6078 | actual address of p: 0x<hex digits> |
| 6079 | </Warning> |
| 6080 | <Warning> |
| 6081 | toString(p): 0x<hex digits> |
| 6082 | </Warning> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 6083 | <OverallResult success="true"/> |
| 6084 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6085 | <TestCase name="Process can be configured on command line"> |
| 6086 | <Section name="default - no arguments"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6087 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6088 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6089 | parseIntoConfig( argv, config ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6090 | </Original> |
| 6091 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6092 | parseIntoConfig( argv, config ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6093 | </Expanded> |
| 6094 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6095 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6096 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6097 | config.shouldDebugBreak == false |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6098 | </Original> |
| 6099 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6100 | false == false |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6101 | </Expanded> |
| 6102 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6103 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6104 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6105 | config.abortAfter == -1 |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6106 | </Original> |
| 6107 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6108 | -1 == -1 |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6109 | </Expanded> |
| 6110 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6111 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6112 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6113 | config.noThrow == false |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6114 | </Original> |
| 6115 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6116 | false == false |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6117 | </Expanded> |
| 6118 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6119 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6120 | <Original> |
| 6121 | config.reporterNames.empty() |
| 6122 | </Original> |
| 6123 | <Expanded> |
| 6124 | true |
| 6125 | </Expanded> |
| 6126 | </Expression> |
| 6127 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
| 6128 | </Section> |
| 6129 | <Section name="test lists"> |
| 6130 | <Section name="1 test" description="Specify one test case using"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6131 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6132 | <Original> |
| 6133 | parseIntoConfig( argv, config ) |
| 6134 | </Original> |
| 6135 | <Expanded> |
| 6136 | parseIntoConfig( argv, config ) |
| 6137 | </Expanded> |
| 6138 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6139 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6140 | <Original> |
| 6141 | cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false |
| 6142 | </Original> |
| 6143 | <Expanded> |
| 6144 | false == false |
| 6145 | </Expanded> |
| 6146 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6147 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6148 | <Original> |
| 6149 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) |
| 6150 | </Original> |
| 6151 | <Expanded> |
| 6152 | true |
| 6153 | </Expanded> |
| 6154 | </Expression> |
| 6155 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 6156 | </Section> |
| 6157 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 6158 | </Section> |
| 6159 | <Section name="test lists"> |
| 6160 | <Section name="Specify one test case exclusion using exclude:"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6161 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6162 | <Original> |
| 6163 | parseIntoConfig( argv, config ) |
| 6164 | </Original> |
| 6165 | <Expanded> |
| 6166 | parseIntoConfig( argv, config ) |
| 6167 | </Expanded> |
| 6168 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6169 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6170 | <Original> |
| 6171 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
| 6172 | </Original> |
| 6173 | <Expanded> |
| 6174 | false == false |
| 6175 | </Expanded> |
| 6176 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6177 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6178 | <Original> |
| 6179 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
| 6180 | </Original> |
| 6181 | <Expanded> |
| 6182 | true |
| 6183 | </Expanded> |
| 6184 | </Expression> |
| 6185 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 6186 | </Section> |
| 6187 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 6188 | </Section> |
| 6189 | <Section name="test lists"> |
| 6190 | <Section name="Specify one test case exclusion using ~"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6191 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6192 | <Original> |
| 6193 | parseIntoConfig( argv, config ) |
| 6194 | </Original> |
| 6195 | <Expanded> |
| 6196 | parseIntoConfig( argv, config ) |
| 6197 | </Expanded> |
| 6198 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6199 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6200 | <Original> |
| 6201 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
| 6202 | </Original> |
| 6203 | <Expanded> |
| 6204 | false == false |
| 6205 | </Expanded> |
| 6206 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6207 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6208 | <Original> |
| 6209 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
| 6210 | </Original> |
| 6211 | <Expanded> |
| 6212 | true |
| 6213 | </Expanded> |
| 6214 | </Expression> |
| 6215 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 6216 | </Section> |
| 6217 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 6218 | </Section> |
| 6219 | <Section name="reporter"> |
| 6220 | <Section name="-r/console"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6221 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6222 | <Original> |
| 6223 | parseIntoConfig( argv, config ) |
| 6224 | </Original> |
| 6225 | <Expanded> |
| 6226 | parseIntoConfig( argv, config ) |
| 6227 | </Expanded> |
| 6228 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6229 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6230 | <Original> |
| 6231 | config.reporterNames[0] == "console" |
| 6232 | </Original> |
| 6233 | <Expanded> |
| 6234 | "console" == "console" |
| 6235 | </Expanded> |
| 6236 | </Expression> |
| 6237 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6238 | </Section> |
| 6239 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6240 | </Section> |
| 6241 | <Section name="reporter"> |
| 6242 | <Section name="-r/xml"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6243 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6244 | <Original> |
| 6245 | parseIntoConfig( argv, config ) |
| 6246 | </Original> |
| 6247 | <Expanded> |
| 6248 | parseIntoConfig( argv, config ) |
| 6249 | </Expanded> |
| 6250 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6251 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6252 | <Original> |
| 6253 | config.reporterNames[0] == "xml" |
| 6254 | </Original> |
| 6255 | <Expanded> |
| 6256 | "xml" == "xml" |
| 6257 | </Expanded> |
| 6258 | </Expression> |
| 6259 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6260 | </Section> |
| 6261 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6262 | </Section> |
| 6263 | <Section name="reporter"> |
| 6264 | <Section name="-r xml and junit"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6265 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6266 | <Original> |
| 6267 | parseIntoConfig( argv, config ) |
| 6268 | </Original> |
| 6269 | <Expanded> |
| 6270 | parseIntoConfig( argv, config ) |
| 6271 | </Expanded> |
| 6272 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6273 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6274 | <Original> |
| 6275 | config.reporterNames.size() == 2 |
| 6276 | </Original> |
| 6277 | <Expanded> |
| 6278 | 2 == 2 |
| 6279 | </Expanded> |
| 6280 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6281 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6282 | <Original> |
| 6283 | config.reporterNames[0] == "xml" |
| 6284 | </Original> |
| 6285 | <Expanded> |
| 6286 | "xml" == "xml" |
| 6287 | </Expanded> |
| 6288 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6289 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6290 | <Original> |
| 6291 | config.reporterNames[1] == "junit" |
| 6292 | </Original> |
| 6293 | <Expanded> |
| 6294 | "junit" == "junit" |
| 6295 | </Expanded> |
| 6296 | </Expression> |
| 6297 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 6298 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6299 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6300 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6301 | <Section name="reporter"> |
| 6302 | <Section name="--reporter/junit"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6303 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6304 | <Original> |
| 6305 | parseIntoConfig( argv, config ) |
| 6306 | </Original> |
| 6307 | <Expanded> |
| 6308 | parseIntoConfig( argv, config ) |
| 6309 | </Expanded> |
| 6310 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6311 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6312 | <Original> |
| 6313 | config.reporterNames[0] == "junit" |
| 6314 | </Original> |
| 6315 | <Expanded> |
| 6316 | "junit" == "junit" |
| 6317 | </Expanded> |
| 6318 | </Expression> |
| 6319 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6320 | </Section> |
| 6321 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 6322 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6323 | <Section name="debugger"> |
| 6324 | <Section name="-b"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6325 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6326 | <Original> |
| 6327 | parseIntoConfig( argv, config ) |
| 6328 | </Original> |
| 6329 | <Expanded> |
| 6330 | parseIntoConfig( argv, config ) |
| 6331 | </Expanded> |
| 6332 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6333 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6334 | <Original> |
| 6335 | config.shouldDebugBreak == true |
| 6336 | </Original> |
| 6337 | <Expanded> |
| 6338 | true == true |
| 6339 | </Expanded> |
| 6340 | </Expression> |
| 6341 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6342 | </Section> |
| 6343 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6344 | </Section> |
| 6345 | <Section name="debugger"> |
| 6346 | <Section name="--break"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6347 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6348 | <Original> |
| 6349 | parseIntoConfig( argv, config ) |
| 6350 | </Original> |
| 6351 | <Expanded> |
| 6352 | parseIntoConfig( argv, config ) |
| 6353 | </Expanded> |
| 6354 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6355 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6356 | <Original> |
| 6357 | config.shouldDebugBreak |
| 6358 | </Original> |
| 6359 | <Expanded> |
| 6360 | true |
| 6361 | </Expanded> |
| 6362 | </Expression> |
| 6363 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6364 | </Section> |
| 6365 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6366 | </Section> |
| 6367 | <Section name="abort"> |
| 6368 | <Section name="-a aborts after first failure"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6369 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6370 | <Original> |
| 6371 | parseIntoConfig( argv, config ) |
| 6372 | </Original> |
| 6373 | <Expanded> |
| 6374 | parseIntoConfig( argv, config ) |
| 6375 | </Expanded> |
| 6376 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6377 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6378 | <Original> |
| 6379 | config.abortAfter == 1 |
| 6380 | </Original> |
| 6381 | <Expanded> |
| 6382 | 1 == 1 |
| 6383 | </Expanded> |
| 6384 | </Expression> |
| 6385 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6386 | </Section> |
| 6387 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6388 | </Section> |
| 6389 | <Section name="abort"> |
| 6390 | <Section name="-x 2 aborts after two failures"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6391 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6392 | <Original> |
| 6393 | parseIntoConfig( argv, config ) |
| 6394 | </Original> |
| 6395 | <Expanded> |
| 6396 | parseIntoConfig( argv, config ) |
| 6397 | </Expanded> |
| 6398 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6399 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6400 | <Original> |
| 6401 | config.abortAfter == 2 |
| 6402 | </Original> |
| 6403 | <Expanded> |
| 6404 | 2 == 2 |
| 6405 | </Expanded> |
| 6406 | </Expression> |
| 6407 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6408 | </Section> |
| 6409 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6410 | </Section> |
| 6411 | <Section name="abort"> |
| 6412 | <Section name="-x must be greater than zero"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6413 | <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6414 | <Original> |
| 6415 | parseIntoConfigAndReturnError( argv, config ), Contains( "greater than zero" ) |
| 6416 | </Original> |
| 6417 | <Expanded> |
| 6418 | "Value after -x or --abortAfter must be greater than zero |
| 6419 | - while parsing: (-x, --abortx <no. failures>)" contains: "greater than zero" |
| 6420 | </Expanded> |
| 6421 | </Expression> |
| 6422 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6423 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6424 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6425 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6426 | <Section name="abort"> |
| 6427 | <Section name="-x must be numeric"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6428 | <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6429 | <Original> |
| 6430 | parseIntoConfigAndReturnError( argv, config ), Contains( "-x" ) |
| 6431 | </Original> |
| 6432 | <Expanded> |
| 6433 | "Unable to convert oops to destination type |
| 6434 | - while parsing: (-x, --abortx <no. failures>)" contains: "-x" |
| 6435 | </Expanded> |
| 6436 | </Expression> |
| 6437 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6438 | </Section> |
| 6439 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6440 | </Section> |
| 6441 | <Section name="nothrow"> |
| 6442 | <Section name="-e"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6443 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6444 | <Original> |
| 6445 | parseIntoConfig( argv, config ) |
| 6446 | </Original> |
| 6447 | <Expanded> |
| 6448 | parseIntoConfig( argv, config ) |
| 6449 | </Expanded> |
| 6450 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6451 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6452 | <Original> |
| 6453 | config.noThrow == true |
| 6454 | </Original> |
| 6455 | <Expanded> |
| 6456 | true == true |
| 6457 | </Expanded> |
| 6458 | </Expression> |
| 6459 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6460 | </Section> |
| 6461 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6462 | </Section> |
| 6463 | <Section name="nothrow"> |
| 6464 | <Section name="--nothrow"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6465 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6466 | <Original> |
| 6467 | parseIntoConfig( argv, config ) |
| 6468 | </Original> |
| 6469 | <Expanded> |
| 6470 | parseIntoConfig( argv, config ) |
| 6471 | </Expanded> |
| 6472 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6473 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6474 | <Original> |
| 6475 | config.noThrow == true |
| 6476 | </Original> |
| 6477 | <Expanded> |
| 6478 | true == true |
| 6479 | </Expanded> |
| 6480 | </Expression> |
| 6481 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6482 | </Section> |
| 6483 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6484 | </Section> |
| 6485 | <Section name="output filename"> |
| 6486 | <Section name="-o filename"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6487 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6488 | <Original> |
| 6489 | parseIntoConfig( argv, config ) |
| 6490 | </Original> |
| 6491 | <Expanded> |
| 6492 | parseIntoConfig( argv, config ) |
| 6493 | </Expanded> |
| 6494 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6495 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6496 | <Original> |
| 6497 | config.outputFilename == "filename.ext" |
| 6498 | </Original> |
| 6499 | <Expanded> |
| 6500 | "filename.ext" == "filename.ext" |
| 6501 | </Expanded> |
| 6502 | </Expression> |
| 6503 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6504 | </Section> |
| 6505 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6506 | </Section> |
| 6507 | <Section name="output filename"> |
| 6508 | <Section name="--out"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6509 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6510 | <Original> |
| 6511 | parseIntoConfig( argv, config ) |
| 6512 | </Original> |
| 6513 | <Expanded> |
| 6514 | parseIntoConfig( argv, config ) |
| 6515 | </Expanded> |
| 6516 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6517 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6518 | <Original> |
| 6519 | config.outputFilename == "filename.ext" |
| 6520 | </Original> |
| 6521 | <Expanded> |
| 6522 | "filename.ext" == "filename.ext" |
| 6523 | </Expanded> |
| 6524 | </Expression> |
| 6525 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6526 | </Section> |
| 6527 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6528 | </Section> |
| 6529 | <Section name="combinations"> |
| 6530 | <Section name="Single character flags can be combined"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6531 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6532 | <Original> |
| 6533 | parseIntoConfig( argv, config ) |
| 6534 | </Original> |
| 6535 | <Expanded> |
| 6536 | parseIntoConfig( argv, config ) |
| 6537 | </Expanded> |
| 6538 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6539 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6540 | <Original> |
| 6541 | config.abortAfter == 1 |
| 6542 | </Original> |
| 6543 | <Expanded> |
| 6544 | 1 == 1 |
| 6545 | </Expanded> |
| 6546 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6547 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6548 | <Original> |
| 6549 | config.shouldDebugBreak |
| 6550 | </Original> |
| 6551 | <Expanded> |
| 6552 | true |
| 6553 | </Expanded> |
| 6554 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6555 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6556 | <Original> |
| 6557 | config.noThrow == true |
| 6558 | </Original> |
| 6559 | <Expanded> |
| 6560 | true == true |
| 6561 | </Expanded> |
| 6562 | </Expression> |
| 6563 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 6564 | </Section> |
| 6565 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 6566 | </Section> |
| 6567 | <Section name="use-colour"> |
| 6568 | <Section name="without option"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6569 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6570 | <Original> |
| 6571 | parseIntoConfig( argv, config ) |
| 6572 | </Original> |
| 6573 | <Expanded> |
| 6574 | parseIntoConfig( argv, config ) |
| 6575 | </Expanded> |
| 6576 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6577 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6578 | <Original> |
| 6579 | config.useColour == UseColour::Auto |
| 6580 | </Original> |
| 6581 | <Expanded> |
| 6582 | 0 == 0 |
| 6583 | </Expanded> |
| 6584 | </Expression> |
| 6585 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6586 | </Section> |
| 6587 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6588 | </Section> |
| 6589 | <Section name="use-colour"> |
| 6590 | <Section name="auto"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6591 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6592 | <Original> |
| 6593 | parseIntoConfig( argv, config ) |
| 6594 | </Original> |
| 6595 | <Expanded> |
| 6596 | parseIntoConfig( argv, config ) |
| 6597 | </Expanded> |
| 6598 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6599 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6600 | <Original> |
| 6601 | config.useColour == UseColour::Auto |
| 6602 | </Original> |
| 6603 | <Expanded> |
| 6604 | 0 == 0 |
| 6605 | </Expanded> |
| 6606 | </Expression> |
| 6607 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6608 | </Section> |
| 6609 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6610 | </Section> |
| 6611 | <Section name="use-colour"> |
| 6612 | <Section name="yes"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6613 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6614 | <Original> |
| 6615 | parseIntoConfig( argv, config ) |
| 6616 | </Original> |
| 6617 | <Expanded> |
| 6618 | parseIntoConfig( argv, config ) |
| 6619 | </Expanded> |
| 6620 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6621 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6622 | <Original> |
| 6623 | config.useColour == UseColour::Yes |
| 6624 | </Original> |
| 6625 | <Expanded> |
| 6626 | 1 == 1 |
| 6627 | </Expanded> |
| 6628 | </Expression> |
| 6629 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6630 | </Section> |
| 6631 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6632 | </Section> |
| 6633 | <Section name="use-colour"> |
| 6634 | <Section name="no"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6635 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6636 | <Original> |
| 6637 | parseIntoConfig( argv, config ) |
| 6638 | </Original> |
| 6639 | <Expanded> |
| 6640 | parseIntoConfig( argv, config ) |
| 6641 | </Expanded> |
| 6642 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6643 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6644 | <Original> |
| 6645 | config.useColour == UseColour::No |
| 6646 | </Original> |
| 6647 | <Expanded> |
| 6648 | 2 == 2 |
| 6649 | </Expanded> |
| 6650 | </Expression> |
| 6651 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6652 | </Section> |
| 6653 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6654 | </Section> |
| 6655 | <Section name="use-colour"> |
| 6656 | <Section name="error"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6657 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6658 | <Original> |
| 6659 | parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) |
| 6660 | </Original> |
| 6661 | <Expanded> |
| 6662 | parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) |
| 6663 | </Expanded> |
| 6664 | </Expression> |
| 6665 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6666 | </Section> |
| 6667 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6668 | </Section> |
| 6669 | <OverallResult success="true"/> |
| 6670 | </TestCase> |
| 6671 | <TestCase name="SCOPED_INFO is reset for each loop"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6672 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6673 | <Original> |
| 6674 | i < 10 |
| 6675 | </Original> |
| 6676 | <Expanded> |
| 6677 | 0 < 10 |
| 6678 | </Expanded> |
| 6679 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6680 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6681 | <Original> |
| 6682 | i < 10 |
| 6683 | </Original> |
| 6684 | <Expanded> |
| 6685 | 1 < 10 |
| 6686 | </Expanded> |
| 6687 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6688 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6689 | <Original> |
| 6690 | i < 10 |
| 6691 | </Original> |
| 6692 | <Expanded> |
| 6693 | 2 < 10 |
| 6694 | </Expanded> |
| 6695 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6696 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6697 | <Original> |
| 6698 | i < 10 |
| 6699 | </Original> |
| 6700 | <Expanded> |
| 6701 | 3 < 10 |
| 6702 | </Expanded> |
| 6703 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6704 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6705 | <Original> |
| 6706 | i < 10 |
| 6707 | </Original> |
| 6708 | <Expanded> |
| 6709 | 4 < 10 |
| 6710 | </Expanded> |
| 6711 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6712 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6713 | <Original> |
| 6714 | i < 10 |
| 6715 | </Original> |
| 6716 | <Expanded> |
| 6717 | 5 < 10 |
| 6718 | </Expanded> |
| 6719 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6720 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6721 | <Original> |
| 6722 | i < 10 |
| 6723 | </Original> |
| 6724 | <Expanded> |
| 6725 | 6 < 10 |
| 6726 | </Expanded> |
| 6727 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6728 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6729 | <Original> |
| 6730 | i < 10 |
| 6731 | </Original> |
| 6732 | <Expanded> |
| 6733 | 7 < 10 |
| 6734 | </Expanded> |
| 6735 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6736 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6737 | <Original> |
| 6738 | i < 10 |
| 6739 | </Original> |
| 6740 | <Expanded> |
| 6741 | 8 < 10 |
| 6742 | </Expanded> |
| 6743 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6744 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6745 | <Original> |
| 6746 | i < 10 |
| 6747 | </Original> |
| 6748 | <Expanded> |
| 6749 | 9 < 10 |
| 6750 | </Expanded> |
| 6751 | </Expression> |
| 6752 | <Info> |
| 6753 | current counter 10 |
| 6754 | </Info> |
| 6755 | <Info> |
| 6756 | i := 10 |
| 6757 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6758 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6759 | <Original> |
| 6760 | i < 10 |
| 6761 | </Original> |
| 6762 | <Expanded> |
| 6763 | 10 < 10 |
| 6764 | </Expanded> |
| 6765 | </Expression> |
| 6766 | <OverallResult success="false"/> |
| 6767 | </TestCase> |
| 6768 | <TestCase name="SUCCEED counts as a test pass"> |
| 6769 | <OverallResult success="true"/> |
| 6770 | </TestCase> |
| 6771 | <TestCase name="SUCCESS does not require an argument"> |
| 6772 | <OverallResult success="true"/> |
| 6773 | </TestCase> |
| 6774 | <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods"> |
| 6775 | <Section name="Given: No operations precede me"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6776 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6777 | <Original> |
| 6778 | before == 0 |
| 6779 | </Original> |
| 6780 | <Expanded> |
| 6781 | 0 == 0 |
| 6782 | </Expanded> |
| 6783 | </Expression> |
| 6784 | <Section name="When: We get the count"> |
| 6785 | <Section name="Then: Subsequently values are higher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6786 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6787 | <Original> |
| 6788 | after > before |
| 6789 | </Original> |
| 6790 | <Expanded> |
| 6791 | 1 > 0 |
| 6792 | </Expanded> |
| 6793 | </Expression> |
| 6794 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6795 | </Section> |
| 6796 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6797 | </Section> |
| 6798 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 6799 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6800 | <OverallResult success="true"/> |
| 6801 | </TestCase> |
| 6802 | <TestCase name="Scenario: Do that thing with the thing"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6803 | <Section name="Given: This stuff exists"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6804 | <Section name="When: I do this"> |
| 6805 | <Section name="Then: it should do this"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6806 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6807 | <Original> |
| 6808 | itDoesThis() |
| 6809 | </Original> |
| 6810 | <Expanded> |
| 6811 | true |
| 6812 | </Expanded> |
| 6813 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6814 | <Section name="And: do that"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6815 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6816 | <Original> |
| 6817 | itDoesThat() |
| 6818 | </Original> |
| 6819 | <Expanded> |
| 6820 | true |
| 6821 | </Expanded> |
| 6822 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6823 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6824 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6825 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6826 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6827 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6828 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6829 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6830 | </Section> |
| 6831 | <OverallResult success="true"/> |
| 6832 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6833 | <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping"> |
| 6834 | <Section name="Given: A section name that is so long that it cannot fit in a single console width"> |
| 6835 | <Section name="When: The test headers are printed as part of the normal running of the scenario"> |
| 6836 | <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent"> |
| 6837 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6838 | </Section> |
| 6839 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6840 | </Section> |
| 6841 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 6842 | </Section> |
| 6843 | <OverallResult success="true"/> |
| 6844 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6845 | <TestCase name="Scenario: Vector resizing affects size and capacity"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6846 | <Section name="Given: an empty vector"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6847 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6848 | <Original> |
| 6849 | v.size() == 0 |
| 6850 | </Original> |
| 6851 | <Expanded> |
| 6852 | 0 == 0 |
| 6853 | </Expanded> |
| 6854 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6855 | <Section name="When: it is made larger"> |
| 6856 | <Section name="Then: the size and capacity go up"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6857 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6858 | <Original> |
| 6859 | v.size() == 10 |
| 6860 | </Original> |
| 6861 | <Expanded> |
| 6862 | 10 == 10 |
| 6863 | </Expanded> |
| 6864 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6865 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6866 | <Original> |
| 6867 | v.capacity() >= 10 |
| 6868 | </Original> |
| 6869 | <Expanded> |
| 6870 | 10 >= 10 |
| 6871 | </Expanded> |
| 6872 | </Expression> |
| 6873 | <Section name="And when: it is made smaller again"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6874 | <Section name="Then: the size goes down but the capacity stays the same"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6875 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6876 | <Original> |
| 6877 | v.size() == 5 |
| 6878 | </Original> |
| 6879 | <Expanded> |
| 6880 | 5 == 5 |
| 6881 | </Expanded> |
| 6882 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6883 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6884 | <Original> |
| 6885 | v.capacity() >= 10 |
| 6886 | </Original> |
| 6887 | <Expanded> |
| 6888 | 10 >= 10 |
| 6889 | </Expanded> |
| 6890 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6891 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6892 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6893 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6894 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6895 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6896 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6897 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6898 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6899 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6900 | </Section> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6901 | <Section name="Given: an empty vector"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6902 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6903 | <Original> |
| 6904 | v.size() == 0 |
| 6905 | </Original> |
| 6906 | <Expanded> |
| 6907 | 0 == 0 |
| 6908 | </Expanded> |
| 6909 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6910 | <Section name="When: we reserve more space"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 6911 | <Section name="Then: The capacity is increased but the size remains the same"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6912 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6913 | <Original> |
| 6914 | v.capacity() >= 10 |
| 6915 | </Original> |
| 6916 | <Expanded> |
| 6917 | 10 >= 10 |
| 6918 | </Expanded> |
| 6919 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6920 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6921 | <Original> |
| 6922 | v.size() == 0 |
| 6923 | </Original> |
| 6924 | <Expanded> |
| 6925 | 0 == 0 |
| 6926 | </Expanded> |
| 6927 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6928 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6929 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6930 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6931 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6932 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6933 | </Section> |
| 6934 | <OverallResult success="true"/> |
| 6935 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6936 | <TestCase name="Sends stuff to stdout and stderr"> |
Phil Nash | 23eb4cc | 2017-02-06 16:14:06 +0000 | [diff] [blame] | 6937 | <OverallResult success="true"> |
| 6938 | <StdOut> |
| 6939 | A string sent directly to stdout |
| 6940 | </StdOut> |
| 6941 | <StdErr> |
| 6942 | A string sent directly to stderr |
| 6943 | </StdErr> |
| 6944 | </OverallResult> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6945 | </TestCase> |
| 6946 | <TestCase name="Some simple comparisons between doubles"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6947 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6948 | <Original> |
| 6949 | d == Approx( 1.23 ) |
| 6950 | </Original> |
| 6951 | <Expanded> |
| 6952 | 1.23 == Approx( 1.23 ) |
| 6953 | </Expanded> |
| 6954 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6955 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6956 | <Original> |
| 6957 | d != Approx( 1.22 ) |
| 6958 | </Original> |
| 6959 | <Expanded> |
| 6960 | 1.23 != Approx( 1.22 ) |
| 6961 | </Expanded> |
| 6962 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6963 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6964 | <Original> |
| 6965 | d != Approx( 1.24 ) |
| 6966 | </Original> |
| 6967 | <Expanded> |
| 6968 | 1.23 != Approx( 1.24 ) |
| 6969 | </Expanded> |
| 6970 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6971 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6972 | <Original> |
| 6973 | Approx( d ) == 1.23 |
| 6974 | </Original> |
| 6975 | <Expanded> |
| 6976 | Approx( 1.23 ) == 1.23 |
| 6977 | </Expanded> |
| 6978 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6979 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6980 | <Original> |
| 6981 | Approx( d ) != 1.22 |
| 6982 | </Original> |
| 6983 | <Expanded> |
| 6984 | Approx( 1.23 ) != 1.22 |
| 6985 | </Expanded> |
| 6986 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 6987 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 6988 | <Original> |
| 6989 | Approx( d ) != 1.24 |
| 6990 | </Original> |
| 6991 | <Expanded> |
| 6992 | Approx( 1.23 ) != 1.24 |
| 6993 | </Expanded> |
| 6994 | </Expression> |
| 6995 | <OverallResult success="true"/> |
| 6996 | </TestCase> |
| 6997 | <TestCase name="Standard output from all sections is reported"> |
| 6998 | <Section name="one"> |
| 6999 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
| 7000 | </Section> |
| 7001 | <Section name="two"> |
| 7002 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
| 7003 | </Section> |
Phil Nash | 23eb4cc | 2017-02-06 16:14:06 +0000 | [diff] [blame] | 7004 | <OverallResult success="false"> |
| 7005 | <StdOut> |
| 7006 | Message from section one |
| 7007 | Message from section two |
| 7008 | </StdOut> |
| 7009 | </OverallResult> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7010 | </TestCase> |
| 7011 | <TestCase name="StartsWith string matcher"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7012 | <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7013 | <Original> |
| 7014 | testStringForMatching(), StartsWith( "string" ) |
| 7015 | </Original> |
| 7016 | <Expanded> |
| 7017 | "this string contains 'abc' as a substring" starts with: "string" |
| 7018 | </Expanded> |
| 7019 | </Expression> |
| 7020 | <OverallResult success="false"/> |
| 7021 | </TestCase> |
| 7022 | <TestCase name="String matchers"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7023 | <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7024 | <Original> |
| 7025 | testStringForMatching(), Contains( "string" ) |
| 7026 | </Original> |
| 7027 | <Expanded> |
| 7028 | "this string contains 'abc' as a substring" contains: "string" |
| 7029 | </Expanded> |
| 7030 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7031 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7032 | <Original> |
| 7033 | testStringForMatching(), Contains( "abc" ) |
| 7034 | </Original> |
| 7035 | <Expanded> |
| 7036 | "this string contains 'abc' as a substring" contains: "abc" |
| 7037 | </Expanded> |
| 7038 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7039 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7040 | <Original> |
| 7041 | testStringForMatching(), StartsWith( "this" ) |
| 7042 | </Original> |
| 7043 | <Expanded> |
| 7044 | "this string contains 'abc' as a substring" starts with: "this" |
| 7045 | </Expanded> |
| 7046 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7047 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7048 | <Original> |
| 7049 | testStringForMatching(), EndsWith( "substring" ) |
| 7050 | </Original> |
| 7051 | <Expanded> |
| 7052 | "this string contains 'abc' as a substring" ends with: "substring" |
| 7053 | </Expanded> |
| 7054 | </Expression> |
| 7055 | <OverallResult success="true"/> |
| 7056 | </TestCase> |
| 7057 | <TestCase name="Strings can be rendered with colour"> |
Phil Nash | 23eb4cc | 2017-02-06 16:14:06 +0000 | [diff] [blame] | 7058 | <OverallResult success="true"> |
| 7059 | <StdOut> |
| 7060 | hello |
| 7061 | hello |
| 7062 | </StdOut> |
| 7063 | </OverallResult> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7064 | </TestCase> |
| 7065 | <TestCase name="Tabs and newlines show in output"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7066 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7067 | <Original> |
| 7068 | s1 == s2 |
| 7069 | </Original> |
| 7070 | <Expanded> |
| 7071 | "if ($b == 10) { |
| 7072 | $a = 20; |
| 7073 | }" |
| 7074 | == |
| 7075 | "if ($b == 10) { |
| 7076 | $a = 20; |
| 7077 | } |
| 7078 | " |
| 7079 | </Expanded> |
| 7080 | </Expression> |
| 7081 | <OverallResult success="false"/> |
| 7082 | </TestCase> |
| 7083 | <TestCase name="Tag alias can be registered against tag patterns"> |
| 7084 | <Section name="The same tag alias can only be registered once"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7085 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7086 | <Original> |
| 7087 | what, Contains( "[@zzz]" ) |
| 7088 | </Original> |
| 7089 | <Expanded> |
| 7090 | "error: tag alias, "[@zzz]" already registered. |
| 7091 | First seen at file:2 |
| 7092 | Redefined at file:10" contains: "[@zzz]" |
| 7093 | </Expanded> |
| 7094 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7095 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7096 | <Original> |
| 7097 | what, Contains( "file" ) |
| 7098 | </Original> |
| 7099 | <Expanded> |
| 7100 | "error: tag alias, "[@zzz]" already registered. |
| 7101 | First seen at file:2 |
| 7102 | Redefined at file:10" contains: "file" |
| 7103 | </Expanded> |
| 7104 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7105 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7106 | <Original> |
| 7107 | what, Contains( "2" ) |
| 7108 | </Original> |
| 7109 | <Expanded> |
| 7110 | "error: tag alias, "[@zzz]" already registered. |
| 7111 | First seen at file:2 |
| 7112 | Redefined at file:10" contains: "2" |
| 7113 | </Expanded> |
| 7114 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7115 | <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7116 | <Original> |
| 7117 | what, Contains( "10" ) |
| 7118 | </Original> |
| 7119 | <Expanded> |
| 7120 | "error: tag alias, "[@zzz]" already registered. |
| 7121 | First seen at file:2 |
| 7122 | Redefined at file:10" contains: "10" |
| 7123 | </Expanded> |
| 7124 | </Expression> |
| 7125 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 7126 | </Section> |
| 7127 | <Section name="Tag aliases must be of the form [@name]"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7128 | <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7129 | <Original> |
| 7130 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7131 | </Original> |
| 7132 | <Expanded> |
| 7133 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7134 | </Expanded> |
| 7135 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7136 | <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7137 | <Original> |
| 7138 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7139 | </Original> |
| 7140 | <Expanded> |
| 7141 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7142 | </Expanded> |
| 7143 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7144 | <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7145 | <Original> |
| 7146 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7147 | </Original> |
| 7148 | <Expanded> |
| 7149 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7150 | </Expanded> |
| 7151 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7152 | <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/TagAliasTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7153 | <Original> |
| 7154 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7155 | </Original> |
| 7156 | <Expanded> |
| 7157 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
| 7158 | </Expanded> |
| 7159 | </Expression> |
| 7160 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 7161 | </Section> |
| 7162 | <OverallResult success="true"/> |
| 7163 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7164 | <TestCase name="Test case with one argument"> |
| 7165 | <OverallResult success="true"/> |
| 7166 | </TestCase> |
| 7167 | <TestCase name="Test enum bit values"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7168 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7169 | <Original> |
| 7170 | 0x<hex digits> == bit30and31 |
| 7171 | </Original> |
| 7172 | <Expanded> |
| 7173 | 3221225472 (0x<hex digits>) == 3221225472 |
| 7174 | </Expanded> |
| 7175 | </Expression> |
| 7176 | <OverallResult success="true"/> |
| 7177 | </TestCase> |
| 7178 | <TestCase name="Text can be formatted using the Text class"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7179 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7180 | <Original> |
| 7181 | Text( "hi there" ).toString() == "hi there" |
| 7182 | </Original> |
| 7183 | <Expanded> |
| 7184 | "hi there" == "hi there" |
| 7185 | </Expanded> |
| 7186 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7187 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7188 | <Original> |
| 7189 | Text( "hi there", narrow ).toString() == "hi\nthere" |
| 7190 | </Original> |
| 7191 | <Expanded> |
| 7192 | "hi |
| 7193 | there" |
| 7194 | == |
| 7195 | "hi |
| 7196 | there" |
| 7197 | </Expanded> |
| 7198 | </Expression> |
| 7199 | <OverallResult success="true"/> |
| 7200 | </TestCase> |
| 7201 | <TestCase name="The NO_FAIL macro reports a failure but does not fail the test"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7202 | <Expression success="false" type="CHECK_NOFAIL" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7203 | <Original> |
| 7204 | 1 == 2 |
| 7205 | </Original> |
| 7206 | <Expanded> |
| 7207 | 1 == 2 |
| 7208 | </Expanded> |
| 7209 | </Expression> |
| 7210 | <OverallResult success="true"/> |
| 7211 | </TestCase> |
| 7212 | <TestCase name="This test 'should' fail but doesn't"> |
| 7213 | <OverallResult success="false"/> |
| 7214 | </TestCase> |
| 7215 | <TestCase name="Tracker"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7216 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7217 | <Original> |
| 7218 | testCase.isOpen() |
| 7219 | </Original> |
| 7220 | <Expanded> |
| 7221 | true |
| 7222 | </Expanded> |
| 7223 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7224 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7225 | <Original> |
| 7226 | s1.isOpen() |
| 7227 | </Original> |
| 7228 | <Expanded> |
| 7229 | true |
| 7230 | </Expanded> |
| 7231 | </Expression> |
| 7232 | <Section name="successfully close one section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7233 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7234 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7235 | s1.isSuccessfullyCompleted() |
| 7236 | </Original> |
| 7237 | <Expanded> |
| 7238 | true |
| 7239 | </Expanded> |
| 7240 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7241 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7242 | <Original> |
| 7243 | testCase.isComplete() == false |
| 7244 | </Original> |
| 7245 | <Expanded> |
| 7246 | false == false |
| 7247 | </Expanded> |
| 7248 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7249 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7250 | <Original> |
| 7251 | ctx.completedCycle() |
| 7252 | </Original> |
| 7253 | <Expanded> |
| 7254 | true |
| 7255 | </Expanded> |
| 7256 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7257 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7258 | <Original> |
| 7259 | testCase.isSuccessfullyCompleted() |
| 7260 | </Original> |
| 7261 | <Expanded> |
| 7262 | true |
| 7263 | </Expanded> |
| 7264 | </Expression> |
| 7265 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 7266 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7267 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7268 | <Original> |
| 7269 | testCase.isOpen() |
| 7270 | </Original> |
| 7271 | <Expanded> |
| 7272 | true |
| 7273 | </Expanded> |
| 7274 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7275 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7276 | <Original> |
| 7277 | s1.isOpen() |
| 7278 | </Original> |
| 7279 | <Expanded> |
| 7280 | true |
| 7281 | </Expanded> |
| 7282 | </Expression> |
| 7283 | <Section name="fail one section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7284 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7285 | <Original> |
| 7286 | s1.isComplete() |
| 7287 | </Original> |
| 7288 | <Expanded> |
| 7289 | true |
| 7290 | </Expanded> |
| 7291 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7292 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7293 | <Original> |
| 7294 | s1.isSuccessfullyCompleted() == false |
| 7295 | </Original> |
| 7296 | <Expanded> |
| 7297 | false == false |
| 7298 | </Expanded> |
| 7299 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7300 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7301 | <Original> |
| 7302 | testCase.isComplete() == false |
| 7303 | </Original> |
| 7304 | <Expanded> |
| 7305 | false == false |
| 7306 | </Expanded> |
| 7307 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7308 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7309 | <Original> |
| 7310 | ctx.completedCycle() |
| 7311 | </Original> |
| 7312 | <Expanded> |
| 7313 | true |
| 7314 | </Expanded> |
| 7315 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7316 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7317 | <Original> |
| 7318 | testCase.isSuccessfullyCompleted() == false |
| 7319 | </Original> |
| 7320 | <Expanded> |
| 7321 | false == false |
| 7322 | </Expanded> |
| 7323 | </Expression> |
| 7324 | <Section name="re-enter after failed section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7325 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7326 | <Original> |
| 7327 | testCase2.isOpen() |
| 7328 | </Original> |
| 7329 | <Expanded> |
| 7330 | true |
| 7331 | </Expanded> |
| 7332 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7333 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7334 | <Original> |
| 7335 | s1b.isOpen() == false |
| 7336 | </Original> |
| 7337 | <Expanded> |
| 7338 | false == false |
| 7339 | </Expanded> |
| 7340 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7341 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7342 | <Original> |
| 7343 | ctx.completedCycle() |
| 7344 | </Original> |
| 7345 | <Expanded> |
| 7346 | true |
| 7347 | </Expanded> |
| 7348 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7349 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7350 | <Original> |
| 7351 | testCase.isComplete() |
| 7352 | </Original> |
| 7353 | <Expanded> |
| 7354 | true |
| 7355 | </Expanded> |
| 7356 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7357 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7358 | <Original> |
| 7359 | testCase.isSuccessfullyCompleted() |
| 7360 | </Original> |
| 7361 | <Expanded> |
| 7362 | true |
| 7363 | </Expanded> |
| 7364 | </Expression> |
| 7365 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
| 7366 | </Section> |
| 7367 | <OverallResults successes="10" failures="0" expectedFailures="0"/> |
| 7368 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7369 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7370 | <Original> |
| 7371 | testCase.isOpen() |
| 7372 | </Original> |
| 7373 | <Expanded> |
| 7374 | true |
| 7375 | </Expanded> |
| 7376 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7377 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7378 | <Original> |
| 7379 | s1.isOpen() |
| 7380 | </Original> |
| 7381 | <Expanded> |
| 7382 | true |
| 7383 | </Expanded> |
| 7384 | </Expression> |
| 7385 | <Section name="fail one section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7386 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7387 | <Original> |
| 7388 | s1.isComplete() |
| 7389 | </Original> |
| 7390 | <Expanded> |
| 7391 | true |
| 7392 | </Expanded> |
| 7393 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7394 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7395 | <Original> |
| 7396 | s1.isSuccessfullyCompleted() == false |
| 7397 | </Original> |
| 7398 | <Expanded> |
| 7399 | false == false |
| 7400 | </Expanded> |
| 7401 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7402 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7403 | <Original> |
| 7404 | testCase.isComplete() == false |
| 7405 | </Original> |
| 7406 | <Expanded> |
| 7407 | false == false |
| 7408 | </Expanded> |
| 7409 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7410 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7411 | <Original> |
| 7412 | ctx.completedCycle() |
| 7413 | </Original> |
| 7414 | <Expanded> |
| 7415 | true |
| 7416 | </Expanded> |
| 7417 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7418 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7419 | <Original> |
| 7420 | testCase.isSuccessfullyCompleted() == false |
| 7421 | </Original> |
| 7422 | <Expanded> |
| 7423 | false == false |
| 7424 | </Expanded> |
| 7425 | </Expression> |
| 7426 | <Section name="re-enter after failed section and find next section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7427 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7428 | <Original> |
| 7429 | testCase2.isOpen() |
| 7430 | </Original> |
| 7431 | <Expanded> |
| 7432 | true |
| 7433 | </Expanded> |
| 7434 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7435 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7436 | <Original> |
| 7437 | s1b.isOpen() == false |
| 7438 | </Original> |
| 7439 | <Expanded> |
| 7440 | false == false |
| 7441 | </Expanded> |
| 7442 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7443 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7444 | <Original> |
| 7445 | s2.isOpen() |
| 7446 | </Original> |
| 7447 | <Expanded> |
| 7448 | true |
| 7449 | </Expanded> |
| 7450 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7451 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7452 | <Original> |
| 7453 | ctx.completedCycle() |
| 7454 | </Original> |
| 7455 | <Expanded> |
| 7456 | true |
| 7457 | </Expanded> |
| 7458 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7459 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7460 | <Original> |
| 7461 | testCase.isComplete() |
| 7462 | </Original> |
| 7463 | <Expanded> |
| 7464 | true |
| 7465 | </Expanded> |
| 7466 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7467 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7468 | <Original> |
| 7469 | testCase.isSuccessfullyCompleted() |
| 7470 | </Original> |
| 7471 | <Expanded> |
| 7472 | true |
| 7473 | </Expanded> |
| 7474 | </Expression> |
| 7475 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
| 7476 | </Section> |
| 7477 | <OverallResults successes="11" failures="0" expectedFailures="0"/> |
| 7478 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7479 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7480 | <Original> |
| 7481 | testCase.isOpen() |
| 7482 | </Original> |
| 7483 | <Expanded> |
| 7484 | true |
| 7485 | </Expanded> |
| 7486 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7487 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7488 | <Original> |
| 7489 | s1.isOpen() |
| 7490 | </Original> |
| 7491 | <Expanded> |
| 7492 | true |
| 7493 | </Expanded> |
| 7494 | </Expression> |
| 7495 | <Section name="successfully close one section, then find another"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7496 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7497 | <Original> |
| 7498 | s2.isOpen() == false |
| 7499 | </Original> |
| 7500 | <Expanded> |
| 7501 | false == false |
| 7502 | </Expanded> |
| 7503 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7504 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7505 | <Original> |
| 7506 | testCase.isComplete() == false |
| 7507 | </Original> |
| 7508 | <Expanded> |
| 7509 | false == false |
| 7510 | </Expanded> |
| 7511 | </Expression> |
| 7512 | <Section name="Re-enter - skips S1 and enters S2"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7513 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7514 | <Original> |
| 7515 | testCase2.isOpen() |
| 7516 | </Original> |
| 7517 | <Expanded> |
| 7518 | true |
| 7519 | </Expanded> |
| 7520 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7521 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7522 | <Original> |
| 7523 | s1b.isOpen() == false |
| 7524 | </Original> |
| 7525 | <Expanded> |
| 7526 | false == false |
| 7527 | </Expanded> |
| 7528 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7529 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7530 | <Original> |
| 7531 | s2b.isOpen() |
| 7532 | </Original> |
| 7533 | <Expanded> |
| 7534 | true |
| 7535 | </Expanded> |
| 7536 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7537 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7538 | <Original> |
| 7539 | ctx.completedCycle() == false |
| 7540 | </Original> |
| 7541 | <Expanded> |
| 7542 | false == false |
| 7543 | </Expanded> |
| 7544 | </Expression> |
| 7545 | <Section name="Successfully close S2"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7546 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7547 | <Original> |
| 7548 | ctx.completedCycle() |
| 7549 | </Original> |
| 7550 | <Expanded> |
| 7551 | true |
| 7552 | </Expanded> |
| 7553 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7554 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7555 | <Original> |
| 7556 | s2b.isSuccessfullyCompleted() |
| 7557 | </Original> |
| 7558 | <Expanded> |
| 7559 | true |
| 7560 | </Expanded> |
| 7561 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7562 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7563 | <Original> |
| 7564 | testCase2.isComplete() == false |
| 7565 | </Original> |
| 7566 | <Expanded> |
| 7567 | false == false |
| 7568 | </Expanded> |
| 7569 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7570 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7571 | <Original> |
| 7572 | testCase2.isSuccessfullyCompleted() |
| 7573 | </Original> |
| 7574 | <Expanded> |
| 7575 | true |
| 7576 | </Expanded> |
| 7577 | </Expression> |
| 7578 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 7579 | </Section> |
| 7580 | <OverallResults successes="8" failures="0" expectedFailures="0"/> |
| 7581 | </Section> |
| 7582 | <OverallResults successes="10" failures="0" expectedFailures="0"/> |
| 7583 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7584 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7585 | <Original> |
| 7586 | testCase.isOpen() |
| 7587 | </Original> |
| 7588 | <Expanded> |
| 7589 | true |
| 7590 | </Expanded> |
| 7591 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7592 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7593 | <Original> |
| 7594 | s1.isOpen() |
| 7595 | </Original> |
| 7596 | <Expanded> |
| 7597 | true |
| 7598 | </Expanded> |
| 7599 | </Expression> |
| 7600 | <Section name="successfully close one section, then find another"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7601 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7602 | <Original> |
| 7603 | s2.isOpen() == false |
| 7604 | </Original> |
| 7605 | <Expanded> |
| 7606 | false == false |
| 7607 | </Expanded> |
| 7608 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7609 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7610 | <Original> |
| 7611 | testCase.isComplete() == false |
| 7612 | </Original> |
| 7613 | <Expanded> |
| 7614 | false == false |
| 7615 | </Expanded> |
| 7616 | </Expression> |
| 7617 | <Section name="Re-enter - skips S1 and enters S2"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7618 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7619 | <Original> |
| 7620 | testCase2.isOpen() |
| 7621 | </Original> |
| 7622 | <Expanded> |
| 7623 | true |
| 7624 | </Expanded> |
| 7625 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7626 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7627 | <Original> |
| 7628 | s1b.isOpen() == false |
| 7629 | </Original> |
| 7630 | <Expanded> |
| 7631 | false == false |
| 7632 | </Expanded> |
| 7633 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7634 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7635 | <Original> |
| 7636 | s2b.isOpen() |
| 7637 | </Original> |
| 7638 | <Expanded> |
| 7639 | true |
| 7640 | </Expanded> |
| 7641 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7642 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7643 | <Original> |
| 7644 | ctx.completedCycle() == false |
| 7645 | </Original> |
| 7646 | <Expanded> |
| 7647 | false == false |
| 7648 | </Expanded> |
| 7649 | </Expression> |
| 7650 | <Section name="fail S2"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7651 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7652 | <Original> |
| 7653 | ctx.completedCycle() |
| 7654 | </Original> |
| 7655 | <Expanded> |
| 7656 | true |
| 7657 | </Expanded> |
| 7658 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7659 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7660 | <Original> |
| 7661 | s2b.isComplete() |
| 7662 | </Original> |
| 7663 | <Expanded> |
| 7664 | true |
| 7665 | </Expanded> |
| 7666 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7667 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7668 | <Original> |
| 7669 | s2b.isSuccessfullyCompleted() == false |
| 7670 | </Original> |
| 7671 | <Expanded> |
| 7672 | false == false |
| 7673 | </Expanded> |
| 7674 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7675 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7676 | <Original> |
| 7677 | testCase2.isSuccessfullyCompleted() == false |
| 7678 | </Original> |
| 7679 | <Expanded> |
| 7680 | false == false |
| 7681 | </Expanded> |
| 7682 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7683 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7684 | <Original> |
| 7685 | testCase3.isOpen() |
| 7686 | </Original> |
| 7687 | <Expanded> |
| 7688 | true |
| 7689 | </Expanded> |
| 7690 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7691 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7692 | <Original> |
| 7693 | s1c.isOpen() == false |
| 7694 | </Original> |
| 7695 | <Expanded> |
| 7696 | false == false |
| 7697 | </Expanded> |
| 7698 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7699 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7700 | <Original> |
| 7701 | s2c.isOpen() == false |
| 7702 | </Original> |
| 7703 | <Expanded> |
| 7704 | false == false |
| 7705 | </Expanded> |
| 7706 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7707 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7708 | <Original> |
| 7709 | testCase3.isSuccessfullyCompleted() |
| 7710 | </Original> |
| 7711 | <Expanded> |
| 7712 | true |
| 7713 | </Expanded> |
| 7714 | </Expression> |
| 7715 | <OverallResults successes="8" failures="0" expectedFailures="0"/> |
| 7716 | </Section> |
| 7717 | <OverallResults successes="12" failures="0" expectedFailures="0"/> |
| 7718 | </Section> |
| 7719 | <OverallResults successes="14" failures="0" expectedFailures="0"/> |
| 7720 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7721 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7722 | <Original> |
| 7723 | testCase.isOpen() |
| 7724 | </Original> |
| 7725 | <Expanded> |
| 7726 | true |
| 7727 | </Expanded> |
| 7728 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7729 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7730 | <Original> |
| 7731 | s1.isOpen() |
| 7732 | </Original> |
| 7733 | <Expanded> |
| 7734 | true |
| 7735 | </Expanded> |
| 7736 | </Expression> |
| 7737 | <Section name="open a nested section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7738 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7739 | <Original> |
| 7740 | s2.isOpen() |
| 7741 | </Original> |
| 7742 | <Expanded> |
| 7743 | true |
| 7744 | </Expanded> |
| 7745 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7746 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7747 | <Original> |
| 7748 | s2.isComplete() |
| 7749 | </Original> |
| 7750 | <Expanded> |
| 7751 | true |
| 7752 | </Expanded> |
| 7753 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7754 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7755 | <Original> |
| 7756 | s1.isComplete() == false |
| 7757 | </Original> |
| 7758 | <Expanded> |
| 7759 | false == false |
| 7760 | </Expanded> |
| 7761 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7762 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7763 | <Original> |
| 7764 | s1.isComplete() |
| 7765 | </Original> |
| 7766 | <Expanded> |
| 7767 | true |
| 7768 | </Expanded> |
| 7769 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7770 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7771 | <Original> |
| 7772 | testCase.isComplete() == false |
| 7773 | </Original> |
| 7774 | <Expanded> |
| 7775 | false == false |
| 7776 | </Expanded> |
| 7777 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7778 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7779 | <Original> |
| 7780 | testCase.isComplete() |
| 7781 | </Original> |
| 7782 | <Expanded> |
| 7783 | true |
| 7784 | </Expanded> |
| 7785 | </Expression> |
| 7786 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
| 7787 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7788 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7789 | <Original> |
| 7790 | testCase.isOpen() |
| 7791 | </Original> |
| 7792 | <Expanded> |
| 7793 | true |
| 7794 | </Expanded> |
| 7795 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7796 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7797 | <Original> |
| 7798 | s1.isOpen() |
| 7799 | </Original> |
| 7800 | <Expanded> |
| 7801 | true |
| 7802 | </Expanded> |
| 7803 | </Expression> |
| 7804 | <Section name="start a generator"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7805 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7806 | <Original> |
| 7807 | g1.isOpen() |
| 7808 | </Original> |
| 7809 | <Expanded> |
| 7810 | true |
| 7811 | </Expanded> |
| 7812 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7813 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7814 | <Original> |
| 7815 | g1.index() == 0 |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7816 | </Original> |
| 7817 | <Expanded> |
| 7818 | 0 == 0 |
| 7819 | </Expanded> |
| 7820 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7821 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7822 | <Original> |
| 7823 | g1.isComplete() == false |
| 7824 | </Original> |
| 7825 | <Expanded> |
| 7826 | false == false |
| 7827 | </Expanded> |
| 7828 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7829 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7830 | <Original> |
| 7831 | s1.isComplete() == false |
| 7832 | </Original> |
| 7833 | <Expanded> |
| 7834 | false == false |
| 7835 | </Expanded> |
| 7836 | </Expression> |
| 7837 | <Section name="close outer section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7838 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7839 | <Original> |
| 7840 | s1.isComplete() == false |
| 7841 | </Original> |
| 7842 | <Expanded> |
| 7843 | false == false |
| 7844 | </Expanded> |
| 7845 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7846 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7847 | <Original> |
| 7848 | testCase.isSuccessfullyCompleted() == false |
| 7849 | </Original> |
| 7850 | <Expanded> |
| 7851 | false == false |
| 7852 | </Expanded> |
| 7853 | </Expression> |
| 7854 | <Section name="Re-enter for second generation"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7855 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7856 | <Original> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7857 | testCase2.isOpen() |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7858 | </Original> |
| 7859 | <Expanded> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7860 | true |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7861 | </Expanded> |
| 7862 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7863 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7864 | <Original> |
| 7865 | s1b.isOpen() |
| 7866 | </Original> |
| 7867 | <Expanded> |
| 7868 | true |
| 7869 | </Expanded> |
| 7870 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7871 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7872 | <Original> |
| 7873 | g1b.isOpen() |
| 7874 | </Original> |
| 7875 | <Expanded> |
| 7876 | true |
| 7877 | </Expanded> |
| 7878 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7879 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7880 | <Original> |
| 7881 | g1b.index() == 1 |
| 7882 | </Original> |
| 7883 | <Expanded> |
| 7884 | 1 == 1 |
| 7885 | </Expanded> |
| 7886 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7887 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7888 | <Original> |
| 7889 | s1.isComplete() == false |
| 7890 | </Original> |
| 7891 | <Expanded> |
| 7892 | false == false |
| 7893 | </Expanded> |
| 7894 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7895 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7896 | <Original> |
| 7897 | s1b.isComplete() |
| 7898 | </Original> |
| 7899 | <Expanded> |
| 7900 | true |
| 7901 | </Expanded> |
| 7902 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7903 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7904 | <Original> |
| 7905 | g1b.isComplete() |
| 7906 | </Original> |
| 7907 | <Expanded> |
| 7908 | true |
| 7909 | </Expanded> |
| 7910 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7911 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7912 | <Original> |
| 7913 | testCase2.isComplete() |
| 7914 | </Original> |
| 7915 | <Expanded> |
| 7916 | true |
| 7917 | </Expanded> |
| 7918 | </Expression> |
| 7919 | <OverallResults successes="8" failures="0" expectedFailures="0"/> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 7920 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7921 | <OverallResults successes="10" failures="0" expectedFailures="0"/> |
| 7922 | </Section> |
| 7923 | <OverallResults successes="14" failures="0" expectedFailures="0"/> |
| 7924 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7925 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7926 | <Original> |
| 7927 | testCase.isOpen() |
| 7928 | </Original> |
| 7929 | <Expanded> |
| 7930 | true |
| 7931 | </Expanded> |
| 7932 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7933 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7934 | <Original> |
| 7935 | s1.isOpen() |
| 7936 | </Original> |
| 7937 | <Expanded> |
| 7938 | true |
| 7939 | </Expanded> |
| 7940 | </Expression> |
| 7941 | <Section name="start a generator"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7942 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7943 | <Original> |
| 7944 | g1.isOpen() |
| 7945 | </Original> |
| 7946 | <Expanded> |
| 7947 | true |
| 7948 | </Expanded> |
| 7949 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7950 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7951 | <Original> |
| 7952 | g1.index() == 0 |
| 7953 | </Original> |
| 7954 | <Expanded> |
| 7955 | 0 == 0 |
| 7956 | </Expanded> |
| 7957 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7958 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7959 | <Original> |
| 7960 | g1.isComplete() == false |
| 7961 | </Original> |
| 7962 | <Expanded> |
| 7963 | false == false |
| 7964 | </Expanded> |
| 7965 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7966 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7967 | <Original> |
| 7968 | s1.isComplete() == false |
| 7969 | </Original> |
| 7970 | <Expanded> |
| 7971 | false == false |
| 7972 | </Expanded> |
| 7973 | </Expression> |
| 7974 | <Section name="Start a new inner section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7975 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7976 | <Original> |
| 7977 | s2.isOpen() |
| 7978 | </Original> |
| 7979 | <Expanded> |
| 7980 | true |
| 7981 | </Expanded> |
| 7982 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7983 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7984 | <Original> |
| 7985 | s2.isComplete() |
| 7986 | </Original> |
| 7987 | <Expanded> |
| 7988 | true |
| 7989 | </Expanded> |
| 7990 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7991 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 7992 | <Original> |
| 7993 | s1.isComplete() == false |
| 7994 | </Original> |
| 7995 | <Expanded> |
| 7996 | false == false |
| 7997 | </Expanded> |
| 7998 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 7999 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8000 | <Original> |
| 8001 | testCase.isComplete() == false |
| 8002 | </Original> |
| 8003 | <Expanded> |
| 8004 | false == false |
| 8005 | </Expanded> |
| 8006 | </Expression> |
| 8007 | <Section name="Re-enter for second generation"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8008 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8009 | <Original> |
| 8010 | testCase2.isOpen() |
| 8011 | </Original> |
| 8012 | <Expanded> |
| 8013 | true |
| 8014 | </Expanded> |
| 8015 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8016 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8017 | <Original> |
| 8018 | s1b.isOpen() |
| 8019 | </Original> |
| 8020 | <Expanded> |
| 8021 | true |
| 8022 | </Expanded> |
| 8023 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8024 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8025 | <Original> |
| 8026 | g1b.isOpen() |
| 8027 | </Original> |
| 8028 | <Expanded> |
| 8029 | true |
| 8030 | </Expanded> |
| 8031 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8032 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8033 | <Original> |
| 8034 | g1b.index() == 1 |
| 8035 | </Original> |
| 8036 | <Expanded> |
| 8037 | 1 == 1 |
| 8038 | </Expanded> |
| 8039 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8040 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8041 | <Original> |
| 8042 | s2b.isOpen() |
| 8043 | </Original> |
| 8044 | <Expanded> |
| 8045 | true |
| 8046 | </Expanded> |
| 8047 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8048 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8049 | <Original> |
| 8050 | s2b.isComplete() |
| 8051 | </Original> |
| 8052 | <Expanded> |
| 8053 | true |
| 8054 | </Expanded> |
| 8055 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8056 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8057 | <Original> |
| 8058 | g1b.isComplete() |
| 8059 | </Original> |
| 8060 | <Expanded> |
| 8061 | true |
| 8062 | </Expanded> |
| 8063 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8064 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8065 | <Original> |
| 8066 | s1b.isComplete() |
| 8067 | </Original> |
| 8068 | <Expanded> |
| 8069 | true |
| 8070 | </Expanded> |
| 8071 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8072 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8073 | <Original> |
| 8074 | testCase2.isComplete() |
| 8075 | </Original> |
| 8076 | <Expanded> |
| 8077 | true |
| 8078 | </Expanded> |
| 8079 | </Expression> |
| 8080 | <OverallResults successes="9" failures="0" expectedFailures="0"/> |
| 8081 | </Section> |
| 8082 | <OverallResults successes="13" failures="0" expectedFailures="0"/> |
| 8083 | </Section> |
| 8084 | <OverallResults successes="17" failures="0" expectedFailures="0"/> |
| 8085 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8086 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8087 | <Original> |
| 8088 | testCase.isOpen() |
| 8089 | </Original> |
| 8090 | <Expanded> |
| 8091 | true |
| 8092 | </Expanded> |
| 8093 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8094 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8095 | <Original> |
| 8096 | s1.isOpen() |
| 8097 | </Original> |
| 8098 | <Expanded> |
| 8099 | true |
| 8100 | </Expanded> |
| 8101 | </Expression> |
| 8102 | <Section name="start a generator"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8103 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8104 | <Original> |
| 8105 | g1.isOpen() |
| 8106 | </Original> |
| 8107 | <Expanded> |
| 8108 | true |
| 8109 | </Expanded> |
| 8110 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8111 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8112 | <Original> |
| 8113 | g1.index() == 0 |
| 8114 | </Original> |
| 8115 | <Expanded> |
| 8116 | 0 == 0 |
| 8117 | </Expanded> |
| 8118 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8119 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8120 | <Original> |
| 8121 | g1.isComplete() == false |
| 8122 | </Original> |
| 8123 | <Expanded> |
| 8124 | false == false |
| 8125 | </Expanded> |
| 8126 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8127 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8128 | <Original> |
| 8129 | s1.isComplete() == false |
| 8130 | </Original> |
| 8131 | <Expanded> |
| 8132 | false == false |
| 8133 | </Expanded> |
| 8134 | </Expression> |
| 8135 | <Section name="Fail an inner section"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8136 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8137 | <Original> |
| 8138 | s2.isOpen() |
| 8139 | </Original> |
| 8140 | <Expanded> |
| 8141 | true |
| 8142 | </Expanded> |
| 8143 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8144 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8145 | <Original> |
| 8146 | s2.isComplete() |
| 8147 | </Original> |
| 8148 | <Expanded> |
| 8149 | true |
| 8150 | </Expanded> |
| 8151 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8152 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8153 | <Original> |
| 8154 | s2.isSuccessfullyCompleted() == false |
| 8155 | </Original> |
| 8156 | <Expanded> |
| 8157 | false == false |
| 8158 | </Expanded> |
| 8159 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8160 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8161 | <Original> |
| 8162 | s1.isComplete() == false |
| 8163 | </Original> |
| 8164 | <Expanded> |
| 8165 | false == false |
| 8166 | </Expanded> |
| 8167 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8168 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8169 | <Original> |
| 8170 | testCase.isComplete() == false |
| 8171 | </Original> |
| 8172 | <Expanded> |
| 8173 | false == false |
| 8174 | </Expanded> |
| 8175 | </Expression> |
| 8176 | <Section name="Re-enter for second generation"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8177 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8178 | <Original> |
| 8179 | testCase2.isOpen() |
| 8180 | </Original> |
| 8181 | <Expanded> |
| 8182 | true |
| 8183 | </Expanded> |
| 8184 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8185 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8186 | <Original> |
| 8187 | s1b.isOpen() |
| 8188 | </Original> |
| 8189 | <Expanded> |
| 8190 | true |
| 8191 | </Expanded> |
| 8192 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8193 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8194 | <Original> |
| 8195 | g1b.isOpen() |
| 8196 | </Original> |
| 8197 | <Expanded> |
| 8198 | true |
| 8199 | </Expanded> |
| 8200 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8201 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8202 | <Original> |
| 8203 | g1b.index() == 0 |
| 8204 | </Original> |
| 8205 | <Expanded> |
| 8206 | 0 == 0 |
| 8207 | </Expanded> |
| 8208 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8209 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8210 | <Original> |
| 8211 | s2b.isOpen() == false |
| 8212 | </Original> |
| 8213 | <Expanded> |
| 8214 | false == false |
| 8215 | </Expanded> |
| 8216 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8217 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8218 | <Original> |
| 8219 | g1b.isComplete() == false |
| 8220 | </Original> |
| 8221 | <Expanded> |
| 8222 | false == false |
| 8223 | </Expanded> |
| 8224 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8225 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8226 | <Original> |
| 8227 | s1b.isComplete() == false |
| 8228 | </Original> |
| 8229 | <Expanded> |
| 8230 | false == false |
| 8231 | </Expanded> |
| 8232 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8233 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8234 | <Original> |
| 8235 | testCase2.isComplete() == false |
| 8236 | </Original> |
| 8237 | <Expanded> |
| 8238 | false == false |
| 8239 | </Expanded> |
| 8240 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8241 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8242 | <Original> |
| 8243 | testCase3.isOpen() |
| 8244 | </Original> |
| 8245 | <Expanded> |
| 8246 | true |
| 8247 | </Expanded> |
| 8248 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8249 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8250 | <Original> |
| 8251 | s1c.isOpen() |
| 8252 | </Original> |
| 8253 | <Expanded> |
| 8254 | true |
| 8255 | </Expanded> |
| 8256 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8257 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8258 | <Original> |
| 8259 | g1c.isOpen() |
| 8260 | </Original> |
| 8261 | <Expanded> |
| 8262 | true |
| 8263 | </Expanded> |
| 8264 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8265 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8266 | <Original> |
| 8267 | g1c.index() == 1 |
| 8268 | </Original> |
| 8269 | <Expanded> |
| 8270 | 1 == 1 |
| 8271 | </Expanded> |
| 8272 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8273 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8274 | <Original> |
| 8275 | s2c.isOpen() |
| 8276 | </Original> |
| 8277 | <Expanded> |
| 8278 | true |
| 8279 | </Expanded> |
| 8280 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8281 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8282 | <Original> |
| 8283 | s2c.isComplete() |
| 8284 | </Original> |
| 8285 | <Expanded> |
| 8286 | true |
| 8287 | </Expanded> |
| 8288 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8289 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8290 | <Original> |
| 8291 | g1c.isComplete() |
| 8292 | </Original> |
| 8293 | <Expanded> |
| 8294 | true |
| 8295 | </Expanded> |
| 8296 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8297 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8298 | <Original> |
| 8299 | s1c.isComplete() |
| 8300 | </Original> |
| 8301 | <Expanded> |
| 8302 | true |
| 8303 | </Expanded> |
| 8304 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8305 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/PartTrackerTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8306 | <Original> |
| 8307 | testCase3.isComplete() |
| 8308 | </Original> |
| 8309 | <Expanded> |
| 8310 | true |
| 8311 | </Expanded> |
| 8312 | </Expression> |
| 8313 | <OverallResults successes="17" failures="0" expectedFailures="0"/> |
| 8314 | </Section> |
| 8315 | <OverallResults successes="22" failures="0" expectedFailures="0"/> |
| 8316 | </Section> |
| 8317 | <OverallResults successes="26" failures="0" expectedFailures="0"/> |
| 8318 | </Section> |
| 8319 | <OverallResult success="true"/> |
| 8320 | </TestCase> |
| 8321 | <TestCase name="Unexpected exceptions can be translated"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8322 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8323 | 3.14 |
| 8324 | </Exception> |
| 8325 | <OverallResult success="false"/> |
| 8326 | </TestCase> |
| 8327 | <TestCase name="Use a custom approx"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8328 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8329 | <Original> |
| 8330 | d == approx( 1.23 ) |
| 8331 | </Original> |
| 8332 | <Expanded> |
| 8333 | 1.23 == Approx( 1.23 ) |
| 8334 | </Expanded> |
| 8335 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8336 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8337 | <Original> |
| 8338 | d == approx( 1.22 ) |
| 8339 | </Original> |
| 8340 | <Expanded> |
| 8341 | 1.23 == Approx( 1.22 ) |
| 8342 | </Expanded> |
| 8343 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8344 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8345 | <Original> |
| 8346 | d == approx( 1.24 ) |
| 8347 | </Original> |
| 8348 | <Expanded> |
| 8349 | 1.23 == Approx( 1.24 ) |
| 8350 | </Expanded> |
| 8351 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8352 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8353 | <Original> |
| 8354 | d != approx( 1.25 ) |
| 8355 | </Original> |
| 8356 | <Expanded> |
| 8357 | 1.23 != Approx( 1.25 ) |
| 8358 | </Expanded> |
| 8359 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8360 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8361 | <Original> |
| 8362 | approx( d ) == 1.23 |
| 8363 | </Original> |
| 8364 | <Expanded> |
| 8365 | Approx( 1.23 ) == 1.23 |
| 8366 | </Expanded> |
| 8367 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8368 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8369 | <Original> |
| 8370 | approx( d ) == 1.22 |
| 8371 | </Original> |
| 8372 | <Expanded> |
| 8373 | Approx( 1.23 ) == 1.22 |
| 8374 | </Expanded> |
| 8375 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8376 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8377 | <Original> |
| 8378 | approx( d ) == 1.24 |
| 8379 | </Original> |
| 8380 | <Expanded> |
| 8381 | Approx( 1.23 ) == 1.24 |
| 8382 | </Expanded> |
| 8383 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8384 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8385 | <Original> |
| 8386 | approx( d ) != 1.25 |
| 8387 | </Original> |
| 8388 | <Expanded> |
| 8389 | Approx( 1.23 ) != 1.25 |
| 8390 | </Expanded> |
| 8391 | </Expression> |
| 8392 | <OverallResult success="true"/> |
| 8393 | </TestCase> |
| 8394 | <TestCase name="Variadic macros"> |
| 8395 | <Section name="Section with one argument"> |
| 8396 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8397 | </Section> |
| 8398 | <OverallResult success="true"/> |
| 8399 | </TestCase> |
| 8400 | <TestCase name="When checked exceptions are thrown they can be expected or unexpected"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8401 | <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8402 | <Original> |
| 8403 | thisThrows() |
| 8404 | </Original> |
| 8405 | <Expanded> |
| 8406 | thisThrows() |
| 8407 | </Expanded> |
| 8408 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8409 | <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8410 | <Original> |
| 8411 | thisDoesntThrow() |
| 8412 | </Original> |
| 8413 | <Expanded> |
| 8414 | thisDoesntThrow() |
| 8415 | </Expanded> |
| 8416 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8417 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8418 | <Original> |
| 8419 | thisThrows() |
| 8420 | </Original> |
| 8421 | <Expanded> |
| 8422 | thisThrows() |
| 8423 | </Expanded> |
| 8424 | </Expression> |
| 8425 | <OverallResult success="true"/> |
| 8426 | </TestCase> |
| 8427 | <TestCase name="When unchecked exceptions are thrown directly they are always failures"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8428 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8429 | unexpected exception |
| 8430 | </Exception> |
| 8431 | <OverallResult success="false"/> |
| 8432 | </TestCase> |
Phil Nash | 7bcb424 | 2017-01-23 17:56:41 +0000 | [diff] [blame] | 8433 | <TestCase name="When unchecked exceptions are thrown during a CHECK the test should continue"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8434 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8435 | <Original> |
| 8436 | thisThrows() == 0 |
| 8437 | </Original> |
| 8438 | <Expanded> |
| 8439 | thisThrows() == 0 |
| 8440 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8441 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8442 | expected exception |
| 8443 | </Exception> |
| 8444 | </Expression> |
| 8445 | <OverallResult success="false"/> |
| 8446 | </TestCase> |
| 8447 | <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8448 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8449 | <Original> |
| 8450 | thisThrows() == 0 |
| 8451 | </Original> |
| 8452 | <Expanded> |
| 8453 | thisThrows() == 0 |
| 8454 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8455 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8456 | expected exception |
| 8457 | </Exception> |
| 8458 | </Expression> |
| 8459 | <OverallResult success="false"/> |
| 8460 | </TestCase> |
| 8461 | <TestCase name="When unchecked exceptions are thrown from functions they are always failures"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8462 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8463 | <Original> |
| 8464 | thisThrows() == 0 |
| 8465 | </Original> |
| 8466 | <Expanded> |
| 8467 | thisThrows() == 0 |
| 8468 | </Expanded> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8469 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8470 | expected exception |
| 8471 | </Exception> |
| 8472 | </Expression> |
| 8473 | <OverallResult success="false"/> |
| 8474 | </TestCase> |
| 8475 | <TestCase name="When unchecked exceptions are thrown from sections they are always failures"> |
| 8476 | <Section name="section name"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8477 | <Exception filename="projects/<exe-name>/ExceptionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8478 | unexpected exception |
| 8479 | </Exception> |
| 8480 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
| 8481 | </Section> |
| 8482 | <OverallResult success="false"/> |
| 8483 | </TestCase> |
| 8484 | <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test"> |
| 8485 | <OverallResult success="true"/> |
| 8486 | </TestCase> |
| 8487 | <TestCase name="Where the LHS is not a simple value"> |
| 8488 | <Warning> |
| 8489 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 8490 | </Warning> |
| 8491 | <OverallResult success="true"/> |
| 8492 | </TestCase> |
| 8493 | <TestCase name="Where there is more to the expression after the RHS"> |
| 8494 | <Warning> |
| 8495 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 8496 | </Warning> |
| 8497 | <OverallResult success="true"/> |
| 8498 | </TestCase> |
| 8499 | <TestCase name="X/level/0/a"> |
| 8500 | <OverallResult success="true"/> |
| 8501 | </TestCase> |
| 8502 | <TestCase name="X/level/0/b"> |
| 8503 | <OverallResult success="true"/> |
| 8504 | </TestCase> |
| 8505 | <TestCase name="X/level/1/a"> |
| 8506 | <OverallResult success="true"/> |
| 8507 | </TestCase> |
| 8508 | <TestCase name="X/level/1/b"> |
| 8509 | <OverallResult success="true"/> |
| 8510 | </TestCase> |
| 8511 | <TestCase name="XmlEncode"> |
| 8512 | <Section name="normal string"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8513 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8514 | <Original> |
| 8515 | encode( "normal string" ) == "normal string" |
| 8516 | </Original> |
| 8517 | <Expanded> |
| 8518 | "normal string" == "normal string" |
| 8519 | </Expanded> |
| 8520 | </Expression> |
| 8521 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8522 | </Section> |
| 8523 | <Section name="empty string"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8524 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8525 | <Original> |
| 8526 | encode( "" ) == "" |
| 8527 | </Original> |
| 8528 | <Expanded> |
| 8529 | "" == "" |
| 8530 | </Expanded> |
| 8531 | </Expression> |
| 8532 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8533 | </Section> |
| 8534 | <Section name="string with ampersand"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8535 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8536 | <Original> |
| 8537 | encode( "smith & jones" ) == "smith &amp; jones" |
| 8538 | </Original> |
| 8539 | <Expanded> |
| 8540 | "smith &amp; jones" == "smith &amp; jones" |
| 8541 | </Expanded> |
| 8542 | </Expression> |
| 8543 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8544 | </Section> |
| 8545 | <Section name="string with less-than"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8546 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8547 | <Original> |
| 8548 | encode( "smith < jones" ) == "smith &lt; jones" |
| 8549 | </Original> |
| 8550 | <Expanded> |
| 8551 | "smith &lt; jones" == "smith &lt; jones" |
| 8552 | </Expanded> |
| 8553 | </Expression> |
| 8554 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8555 | </Section> |
| 8556 | <Section name="string with greater-than"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8557 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8558 | <Original> |
| 8559 | encode( "smith > jones" ) == "smith > jones" |
| 8560 | </Original> |
| 8561 | <Expanded> |
| 8562 | "smith > jones" == "smith > jones" |
| 8563 | </Expanded> |
| 8564 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8565 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8566 | <Original> |
| 8567 | encode( "smith ]]> jones" ) == "smith ]]&gt; jones" |
| 8568 | </Original> |
| 8569 | <Expanded> |
| 8570 | "smith ]]&gt; jones" |
| 8571 | == |
| 8572 | "smith ]]&gt; jones" |
| 8573 | </Expanded> |
| 8574 | </Expression> |
| 8575 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 8576 | </Section> |
| 8577 | <Section name="string with quotes"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8578 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8579 | <Original> |
| 8580 | encode( stringWithQuotes ) == stringWithQuotes |
| 8581 | </Original> |
| 8582 | <Expanded> |
| 8583 | "don't "quote" me on that" |
| 8584 | == |
| 8585 | "don't "quote" me on that" |
| 8586 | </Expanded> |
| 8587 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8588 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8589 | <Original> |
| 8590 | encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" |
| 8591 | </Original> |
| 8592 | <Expanded> |
| 8593 | "don't &quot;quote&quot; me on that" |
| 8594 | == |
| 8595 | "don't &quot;quote&quot; me on that" |
| 8596 | </Expanded> |
| 8597 | </Expression> |
| 8598 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 8599 | </Section> |
Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 8600 | <Section name="string with control char (1)"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8601 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8602 | <Original> |
Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 8603 | encode( "[\x01]" ) == "[&#x01;]" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8604 | </Original> |
| 8605 | <Expanded> |
| 8606 | "[&#x01;]" == "[&#x01;]" |
| 8607 | </Expanded> |
| 8608 | </Expression> |
| 8609 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8610 | </Section> |
Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 8611 | <Section name="string with control char (x7F)"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8612 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8613 | <Original> |
Phil Nash | 197bf07 | 2017-02-06 16:25:09 +0000 | [diff] [blame] | 8614 | encode( "[\x7F]" ) == "[&#x7F;]" |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8615 | </Original> |
| 8616 | <Expanded> |
| 8617 | "[&#x7F;]" == "[&#x7F;]" |
| 8618 | </Expanded> |
| 8619 | </Expression> |
| 8620 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8621 | </Section> |
| 8622 | <OverallResult success="true"/> |
| 8623 | </TestCase> |
| 8624 | <TestCase name="atomic if"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8625 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8626 | <Original> |
| 8627 | x == 0 |
| 8628 | </Original> |
| 8629 | <Expanded> |
| 8630 | 0 == 0 |
| 8631 | </Expanded> |
| 8632 | </Expression> |
| 8633 | <OverallResult success="true"/> |
| 8634 | </TestCase> |
| 8635 | <TestCase name="boolean member"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8636 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8637 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 8638 | obj.prop != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8639 | </Original> |
| 8640 | <Expanded> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 8641 | 0x<hex digits> != 0 |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8642 | </Expanded> |
| 8643 | </Expression> |
| 8644 | <OverallResult success="true"/> |
| 8645 | </TestCase> |
| 8646 | <TestCase name="checkedElse"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8647 | <Expression success="true" type="CHECKED_ELSE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8648 | <Original> |
| 8649 | flag |
| 8650 | </Original> |
| 8651 | <Expanded> |
| 8652 | true |
| 8653 | </Expanded> |
| 8654 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8655 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8656 | <Original> |
| 8657 | testCheckedElse( true ) |
| 8658 | </Original> |
| 8659 | <Expanded> |
| 8660 | true |
| 8661 | </Expanded> |
| 8662 | </Expression> |
| 8663 | <OverallResult success="true"/> |
| 8664 | </TestCase> |
| 8665 | <TestCase name="checkedElse, failing"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8666 | <Expression success="false" type="CHECKED_ELSE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8667 | <Original> |
| 8668 | flag |
| 8669 | </Original> |
| 8670 | <Expanded> |
| 8671 | false |
| 8672 | </Expanded> |
| 8673 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8674 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8675 | <Original> |
| 8676 | testCheckedElse( false ) |
| 8677 | </Original> |
| 8678 | <Expanded> |
| 8679 | false |
| 8680 | </Expanded> |
| 8681 | </Expression> |
| 8682 | <OverallResult success="false"/> |
| 8683 | </TestCase> |
| 8684 | <TestCase name="checkedIf"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8685 | <Expression success="true" type="CHECKED_IF" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8686 | <Original> |
| 8687 | flag |
| 8688 | </Original> |
| 8689 | <Expanded> |
| 8690 | true |
| 8691 | </Expanded> |
| 8692 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8693 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8694 | <Original> |
| 8695 | testCheckedIf( true ) |
| 8696 | </Original> |
| 8697 | <Expanded> |
| 8698 | true |
| 8699 | </Expanded> |
| 8700 | </Expression> |
| 8701 | <OverallResult success="true"/> |
| 8702 | </TestCase> |
| 8703 | <TestCase name="checkedIf, failing"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8704 | <Expression success="false" type="CHECKED_IF" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8705 | <Original> |
| 8706 | flag |
| 8707 | </Original> |
| 8708 | <Expanded> |
| 8709 | false |
| 8710 | </Expanded> |
| 8711 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8712 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8713 | <Original> |
| 8714 | testCheckedIf( false ) |
| 8715 | </Original> |
| 8716 | <Expanded> |
| 8717 | false |
| 8718 | </Expanded> |
| 8719 | </Expression> |
| 8720 | <OverallResult success="false"/> |
| 8721 | </TestCase> |
| 8722 | <TestCase name="comparisons between const int variables"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8723 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8724 | <Original> |
| 8725 | unsigned_char_var == 1 |
| 8726 | </Original> |
| 8727 | <Expanded> |
| 8728 | 1 == 1 |
| 8729 | </Expanded> |
| 8730 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8731 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8732 | <Original> |
| 8733 | unsigned_short_var == 1 |
| 8734 | </Original> |
| 8735 | <Expanded> |
| 8736 | 1 == 1 |
| 8737 | </Expanded> |
| 8738 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8739 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8740 | <Original> |
| 8741 | unsigned_int_var == 1 |
| 8742 | </Original> |
| 8743 | <Expanded> |
| 8744 | 1 == 1 |
| 8745 | </Expanded> |
| 8746 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8747 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8748 | <Original> |
| 8749 | unsigned_long_var == 1 |
| 8750 | </Original> |
| 8751 | <Expanded> |
| 8752 | 1 == 1 |
| 8753 | </Expanded> |
| 8754 | </Expression> |
| 8755 | <OverallResult success="true"/> |
| 8756 | </TestCase> |
| 8757 | <TestCase name="comparisons between int variables"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8758 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8759 | <Original> |
| 8760 | long_var == unsigned_char_var |
| 8761 | </Original> |
| 8762 | <Expanded> |
| 8763 | 1 == 1 |
| 8764 | </Expanded> |
| 8765 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8766 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8767 | <Original> |
| 8768 | long_var == unsigned_short_var |
| 8769 | </Original> |
| 8770 | <Expanded> |
| 8771 | 1 == 1 |
| 8772 | </Expanded> |
| 8773 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8774 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8775 | <Original> |
| 8776 | long_var == unsigned_int_var |
| 8777 | </Original> |
| 8778 | <Expanded> |
| 8779 | 1 == 1 |
| 8780 | </Expanded> |
| 8781 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8782 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ConditionTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8783 | <Original> |
| 8784 | long_var == unsigned_long_var |
| 8785 | </Original> |
| 8786 | <Expanded> |
| 8787 | 1 == 1 |
| 8788 | </Expanded> |
| 8789 | </Expression> |
| 8790 | <OverallResult success="true"/> |
| 8791 | </TestCase> |
| 8792 | <TestCase name="even more nested SECTION tests"> |
| 8793 | <Section name="c"> |
| 8794 | <Section name="d (leaf)"> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 8795 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8796 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8797 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8798 | </Section> |
| 8799 | <Section name="c"> |
| 8800 | <Section name="e (leaf)"> |
| 8801 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8802 | </Section> |
| 8803 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8804 | </Section> |
| 8805 | <Section name="f (leaf)"> |
| 8806 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8807 | </Section> |
| 8808 | <OverallResult success="true"/> |
| 8809 | </TestCase> |
| 8810 | <TestCase name="first tag"> |
| 8811 | <OverallResult success="true"/> |
| 8812 | </TestCase> |
| 8813 | <TestCase name="just failure"> |
| 8814 | <Failure> |
| 8815 | Previous info should not be seen |
| 8816 | </Failure> |
| 8817 | <OverallResult success="false"/> |
| 8818 | </TestCase> |
| 8819 | <TestCase name="just info"> |
| 8820 | <OverallResult success="true"/> |
| 8821 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8822 | <TestCase name="looped SECTION tests"> |
| 8823 | <Section name="s1" description="b is currently: 0"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8824 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8825 | <Original> |
| 8826 | b > a |
| 8827 | </Original> |
| 8828 | <Expanded> |
| 8829 | 0 > 1 |
| 8830 | </Expanded> |
| 8831 | </Expression> |
| 8832 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
| 8833 | </Section> |
| 8834 | <OverallResult success="false"/> |
| 8835 | </TestCase> |
| 8836 | <TestCase name="looped tests"> |
| 8837 | <Info> |
| 8838 | Testing if fib[0] (1) is even |
| 8839 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8840 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8841 | <Original> |
| 8842 | ( fib[i] % 2 ) == 0 |
| 8843 | </Original> |
| 8844 | <Expanded> |
| 8845 | 1 == 0 |
| 8846 | </Expanded> |
| 8847 | </Expression> |
| 8848 | <Info> |
| 8849 | Testing if fib[1] (1) is even |
| 8850 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8851 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8852 | <Original> |
| 8853 | ( fib[i] % 2 ) == 0 |
| 8854 | </Original> |
| 8855 | <Expanded> |
| 8856 | 1 == 0 |
| 8857 | </Expanded> |
| 8858 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8859 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8860 | <Original> |
| 8861 | ( fib[i] % 2 ) == 0 |
| 8862 | </Original> |
| 8863 | <Expanded> |
| 8864 | 0 == 0 |
| 8865 | </Expanded> |
| 8866 | </Expression> |
| 8867 | <Info> |
| 8868 | Testing if fib[3] (3) is even |
| 8869 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8870 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8871 | <Original> |
| 8872 | ( fib[i] % 2 ) == 0 |
| 8873 | </Original> |
| 8874 | <Expanded> |
| 8875 | 1 == 0 |
| 8876 | </Expanded> |
| 8877 | </Expression> |
| 8878 | <Info> |
| 8879 | Testing if fib[4] (5) is even |
| 8880 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8881 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8882 | <Original> |
| 8883 | ( fib[i] % 2 ) == 0 |
| 8884 | </Original> |
| 8885 | <Expanded> |
| 8886 | 1 == 0 |
| 8887 | </Expanded> |
| 8888 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8889 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8890 | <Original> |
| 8891 | ( fib[i] % 2 ) == 0 |
| 8892 | </Original> |
| 8893 | <Expanded> |
| 8894 | 0 == 0 |
| 8895 | </Expanded> |
| 8896 | </Expression> |
| 8897 | <Info> |
| 8898 | Testing if fib[6] (13) is even |
| 8899 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8900 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8901 | <Original> |
| 8902 | ( fib[i] % 2 ) == 0 |
| 8903 | </Original> |
| 8904 | <Expanded> |
| 8905 | 1 == 0 |
| 8906 | </Expanded> |
| 8907 | </Expression> |
| 8908 | <Info> |
| 8909 | Testing if fib[7] (21) is even |
| 8910 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8911 | <Expression success="false" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8912 | <Original> |
| 8913 | ( fib[i] % 2 ) == 0 |
| 8914 | </Original> |
| 8915 | <Expanded> |
| 8916 | 1 == 0 |
| 8917 | </Expanded> |
| 8918 | </Expression> |
| 8919 | <OverallResult success="false"/> |
| 8920 | </TestCase> |
| 8921 | <TestCase name="more nested SECTION tests"> |
| 8922 | <Section name="s1" description="doesn't equal"> |
| 8923 | <Section name="s2" description="equal"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8924 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8925 | <Original> |
| 8926 | a == b |
| 8927 | </Original> |
| 8928 | <Expanded> |
| 8929 | 1 == 2 |
| 8930 | </Expanded> |
| 8931 | </Expression> |
| 8932 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
| 8933 | </Section> |
| 8934 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
| 8935 | </Section> |
| 8936 | <Section name="s1" description="doesn't equal"> |
| 8937 | <Section name="s3" description="not equal"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8938 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8939 | <Original> |
| 8940 | a != b |
| 8941 | </Original> |
| 8942 | <Expanded> |
| 8943 | 1 != 2 |
| 8944 | </Expanded> |
| 8945 | </Expression> |
| 8946 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8947 | </Section> |
| 8948 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8949 | </Section> |
| 8950 | <Section name="s1" description="doesn't equal"> |
| 8951 | <Section name="s4" description="less than"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8952 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8953 | <Original> |
| 8954 | a < b |
| 8955 | </Original> |
| 8956 | <Expanded> |
| 8957 | 1 < 2 |
| 8958 | </Expanded> |
| 8959 | </Expression> |
| 8960 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8961 | </Section> |
| 8962 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8963 | </Section> |
| 8964 | <OverallResult success="false"/> |
| 8965 | </TestCase> |
| 8966 | <TestCase name="nested SECTION tests"> |
| 8967 | <Section name="s1" description="doesn't equal"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8968 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8969 | <Original> |
| 8970 | a != b |
| 8971 | </Original> |
| 8972 | <Expanded> |
| 8973 | 1 != 2 |
| 8974 | </Expanded> |
| 8975 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8976 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8977 | <Original> |
| 8978 | b != a |
| 8979 | </Original> |
| 8980 | <Expanded> |
| 8981 | 2 != 1 |
| 8982 | </Expanded> |
| 8983 | </Expression> |
| 8984 | <Section name="s2" description="not equal"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 8985 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 8986 | <Original> |
| 8987 | a != b |
| 8988 | </Original> |
| 8989 | <Expanded> |
| 8990 | 1 != 2 |
| 8991 | </Expanded> |
| 8992 | </Expression> |
| 8993 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 8994 | </Section> |
| 8995 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 8996 | </Section> |
| 8997 | <OverallResult success="true"/> |
| 8998 | </TestCase> |
| 8999 | <TestCase name="non streamable - with conv. op"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9000 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9001 | <Original> |
| 9002 | s == "7" |
| 9003 | </Original> |
| 9004 | <Expanded> |
| 9005 | "7" == "7" |
| 9006 | </Expanded> |
| 9007 | </Expression> |
| 9008 | <OverallResult success="true"/> |
| 9009 | </TestCase> |
| 9010 | <TestCase name="not allowed"> |
| 9011 | <OverallResult success="true"/> |
| 9012 | </TestCase> |
| 9013 | <TestCase name="null strings"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9014 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9015 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 9016 | makeString( false ) != static_cast<char*>(0) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9017 | </Original> |
| 9018 | <Expanded> |
| 9019 | "valid string" != {null string} |
| 9020 | </Expanded> |
| 9021 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9022 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9023 | <Original> |
Phil Nash | 976a655 | 2017-01-09 14:12:12 +0000 | [diff] [blame] | 9024 | makeString( true ) == static_cast<char*>(0) |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9025 | </Original> |
| 9026 | <Expanded> |
| 9027 | {null string} == {null string} |
| 9028 | </Expanded> |
| 9029 | </Expression> |
| 9030 | <OverallResult success="true"/> |
| 9031 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9032 | <TestCase name="pair<pair<int,const char *,pair<std::string,int> > -> toString"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9033 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringPair.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9034 | <Original> |
| 9035 | Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" |
| 9036 | </Original> |
| 9037 | <Expanded> |
| 9038 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 9039 | == |
| 9040 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
| 9041 | </Expanded> |
| 9042 | </Expression> |
| 9043 | <OverallResult success="true"/> |
| 9044 | </TestCase> |
| 9045 | <TestCase name="pointer to class"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9046 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9047 | <Original> |
| 9048 | p == 0 |
| 9049 | </Original> |
| 9050 | <Expanded> |
| 9051 | NULL == 0 |
| 9052 | </Expanded> |
| 9053 | </Expression> |
| 9054 | <OverallResult success="true"/> |
| 9055 | </TestCase> |
| 9056 | <TestCase name="random SECTION tests"> |
| 9057 | <Section name="s1" description="doesn't equal"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9058 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9059 | <Original> |
| 9060 | a != b |
| 9061 | </Original> |
| 9062 | <Expanded> |
| 9063 | 1 != 2 |
| 9064 | </Expanded> |
| 9065 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9066 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9067 | <Original> |
| 9068 | b != a |
| 9069 | </Original> |
| 9070 | <Expanded> |
| 9071 | 2 != 1 |
| 9072 | </Expanded> |
| 9073 | </Expression> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 9074 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9075 | </Section> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9076 | <Section name="s2" description="not equal"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9077 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9078 | <Original> |
| 9079 | a != b |
| 9080 | </Original> |
| 9081 | <Expanded> |
| 9082 | 1 != 2 |
| 9083 | </Expanded> |
| 9084 | </Expression> |
| 9085 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 9086 | </Section> |
| 9087 | <OverallResult success="true"/> |
| 9088 | </TestCase> |
| 9089 | <TestCase name="replaceInPlace"> |
| 9090 | <Section name="replace single char"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9091 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9092 | <Original> |
| 9093 | replaceInPlace( letters, "b", "z" ) |
| 9094 | </Original> |
| 9095 | <Expanded> |
| 9096 | true |
| 9097 | </Expanded> |
| 9098 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9099 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9100 | <Original> |
| 9101 | letters == "azcdefcg" |
| 9102 | </Original> |
| 9103 | <Expanded> |
| 9104 | "azcdefcg" == "azcdefcg" |
| 9105 | </Expanded> |
| 9106 | </Expression> |
| 9107 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9108 | </Section> |
| 9109 | <Section name="replace two chars"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9110 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9111 | <Original> |
| 9112 | replaceInPlace( letters, "c", "z" ) |
| 9113 | </Original> |
| 9114 | <Expanded> |
| 9115 | true |
| 9116 | </Expanded> |
| 9117 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9118 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9119 | <Original> |
| 9120 | letters == "abzdefzg" |
| 9121 | </Original> |
| 9122 | <Expanded> |
| 9123 | "abzdefzg" == "abzdefzg" |
| 9124 | </Expanded> |
| 9125 | </Expression> |
| 9126 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9127 | </Section> |
| 9128 | <Section name="replace first char"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9129 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9130 | <Original> |
| 9131 | replaceInPlace( letters, "a", "z" ) |
| 9132 | </Original> |
| 9133 | <Expanded> |
| 9134 | true |
| 9135 | </Expanded> |
| 9136 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9137 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9138 | <Original> |
| 9139 | letters == "zbcdefcg" |
| 9140 | </Original> |
| 9141 | <Expanded> |
| 9142 | "zbcdefcg" == "zbcdefcg" |
| 9143 | </Expanded> |
| 9144 | </Expression> |
| 9145 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9146 | </Section> |
| 9147 | <Section name="replace last char"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9148 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9149 | <Original> |
| 9150 | replaceInPlace( letters, "g", "z" ) |
| 9151 | </Original> |
| 9152 | <Expanded> |
| 9153 | true |
| 9154 | </Expanded> |
| 9155 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9156 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9157 | <Original> |
| 9158 | letters == "abcdefcz" |
| 9159 | </Original> |
| 9160 | <Expanded> |
| 9161 | "abcdefcz" == "abcdefcz" |
| 9162 | </Expanded> |
| 9163 | </Expression> |
| 9164 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9165 | </Section> |
| 9166 | <Section name="replace all chars"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9167 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9168 | <Original> |
| 9169 | replaceInPlace( letters, letters, "replaced" ) |
| 9170 | </Original> |
| 9171 | <Expanded> |
| 9172 | true |
| 9173 | </Expanded> |
| 9174 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9175 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9176 | <Original> |
| 9177 | letters == "replaced" |
| 9178 | </Original> |
| 9179 | <Expanded> |
| 9180 | "replaced" == "replaced" |
| 9181 | </Expanded> |
| 9182 | </Expression> |
| 9183 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9184 | </Section> |
| 9185 | <Section name="replace no chars"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9186 | <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9187 | <Original> |
| 9188 | !replaceInPlace( letters, "x", "z" ) |
| 9189 | </Original> |
| 9190 | <Expanded> |
| 9191 | !false |
| 9192 | </Expanded> |
| 9193 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9194 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9195 | <Original> |
| 9196 | letters == letters |
| 9197 | </Original> |
| 9198 | <Expanded> |
| 9199 | "abcdefcg" == "abcdefcg" |
| 9200 | </Expanded> |
| 9201 | </Expression> |
| 9202 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9203 | </Section> |
| 9204 | <Section name="escape '"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9205 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9206 | <Original> |
| 9207 | replaceInPlace( s, "'", "|'" ) |
| 9208 | </Original> |
| 9209 | <Expanded> |
| 9210 | true |
| 9211 | </Expanded> |
| 9212 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9213 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/TestMain.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9214 | <Original> |
| 9215 | s == "didn|'t" |
| 9216 | </Original> |
| 9217 | <Expanded> |
| 9218 | "didn|'t" == "didn|'t" |
| 9219 | </Expanded> |
| 9220 | </Expression> |
| 9221 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9222 | </Section> |
| 9223 | <OverallResult success="true"/> |
| 9224 | </TestCase> |
| 9225 | <TestCase name="second tag"> |
| 9226 | <OverallResult success="true"/> |
| 9227 | </TestCase> |
| 9228 | <TestCase name="send a single char to INFO"> |
| 9229 | <Info> |
| 9230 | 3 |
| 9231 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9232 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9233 | <Original> |
| 9234 | false |
| 9235 | </Original> |
| 9236 | <Expanded> |
| 9237 | false |
| 9238 | </Expanded> |
| 9239 | </Expression> |
| 9240 | <OverallResult success="false"/> |
| 9241 | </TestCase> |
| 9242 | <TestCase name="sends information to INFO"> |
| 9243 | <Info> |
| 9244 | hi |
| 9245 | </Info> |
| 9246 | <Info> |
| 9247 | i := 7 |
| 9248 | </Info> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9249 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/MessageTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9250 | <Original> |
| 9251 | false |
| 9252 | </Original> |
| 9253 | <Expanded> |
| 9254 | false |
| 9255 | </Expanded> |
| 9256 | </Expression> |
| 9257 | <OverallResult success="false"/> |
| 9258 | </TestCase> |
| 9259 | <TestCase name="std::pair<int,const std::string> -> toString"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9260 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringPair.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9261 | <Original> |
| 9262 | Catch::toString(value) == "{ 34, \"xyzzy\" }" |
| 9263 | </Original> |
| 9264 | <Expanded> |
| 9265 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 9266 | </Expanded> |
| 9267 | </Expression> |
| 9268 | <OverallResult success="true"/> |
| 9269 | </TestCase> |
| 9270 | <TestCase name="std::pair<int,std::string> -> toString"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9271 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringPair.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9272 | <Original> |
| 9273 | Catch::toString( value ) == "{ 34, \"xyzzy\" }" |
| 9274 | </Original> |
| 9275 | <Expanded> |
| 9276 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
| 9277 | </Expanded> |
| 9278 | </Expression> |
| 9279 | <OverallResult success="true"/> |
| 9280 | </TestCase> |
| 9281 | <TestCase name="std::vector<std::pair<std::string,int> > -> toString"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9282 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringPair.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9283 | <Original> |
| 9284 | Catch::toString( pr ) == "{ { \"green\", 55 } }" |
| 9285 | </Original> |
| 9286 | <Expanded> |
| 9287 | "{ { "green", 55 } }" |
| 9288 | == |
| 9289 | "{ { "green", 55 } }" |
| 9290 | </Expanded> |
| 9291 | </Expression> |
| 9292 | <OverallResult success="true"/> |
| 9293 | </TestCase> |
| 9294 | <TestCase name="string literals of different sizes can be compared"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9295 | <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/TrickyTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9296 | <Original> |
| 9297 | std::string( "first" ) == "second" |
| 9298 | </Original> |
| 9299 | <Expanded> |
| 9300 | "first" == "second" |
| 9301 | </Expanded> |
| 9302 | </Expression> |
| 9303 | <OverallResult success="false"/> |
| 9304 | </TestCase> |
| 9305 | <TestCase name="toString on const wchar_t const pointer returns the string contents"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9306 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9307 | <Original> |
| 9308 | result == "\"wide load\"" |
| 9309 | </Original> |
| 9310 | <Expanded> |
| 9311 | ""wide load"" == ""wide load"" |
| 9312 | </Expanded> |
| 9313 | </Expression> |
| 9314 | <OverallResult success="true"/> |
| 9315 | </TestCase> |
| 9316 | <TestCase name="toString on const wchar_t pointer returns the string contents"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9317 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9318 | <Original> |
| 9319 | result == "\"wide load\"" |
| 9320 | </Original> |
| 9321 | <Expanded> |
| 9322 | ""wide load"" == ""wide load"" |
| 9323 | </Expanded> |
| 9324 | </Expression> |
| 9325 | <OverallResult success="true"/> |
| 9326 | </TestCase> |
| 9327 | <TestCase name="toString on wchar_t const pointer returns the string contents"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9328 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9329 | <Original> |
| 9330 | result == "\"wide load\"" |
| 9331 | </Original> |
| 9332 | <Expanded> |
| 9333 | ""wide load"" == ""wide load"" |
| 9334 | </Expanded> |
| 9335 | </Expression> |
| 9336 | <OverallResult success="true"/> |
| 9337 | </TestCase> |
| 9338 | <TestCase name="toString on wchar_t returns the string contents"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9339 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9340 | <Original> |
| 9341 | result == "\"wide load\"" |
| 9342 | </Original> |
| 9343 | <Expanded> |
| 9344 | ""wide load"" == ""wide load"" |
| 9345 | </Expanded> |
| 9346 | </Expression> |
| 9347 | <OverallResult success="true"/> |
| 9348 | </TestCase> |
| 9349 | <TestCase name="toString( has_maker )"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9350 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringWhich.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9351 | <Original> |
| 9352 | Catch::toString( item ) == "StringMaker<has_maker>" |
| 9353 | </Original> |
| 9354 | <Expanded> |
| 9355 | "StringMaker<has_maker>" |
| 9356 | == |
| 9357 | "StringMaker<has_maker>" |
| 9358 | </Expanded> |
| 9359 | </Expression> |
| 9360 | <OverallResult success="true"/> |
| 9361 | </TestCase> |
| 9362 | <TestCase name="toString( has_maker_and_toString )"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9363 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringWhich.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9364 | <Original> |
| 9365 | Catch::toString( item ) == "toString( has_maker_and_toString )" |
| 9366 | </Original> |
| 9367 | <Expanded> |
| 9368 | "toString( has_maker_and_toString )" |
| 9369 | == |
| 9370 | "toString( has_maker_and_toString )" |
| 9371 | </Expanded> |
| 9372 | </Expression> |
| 9373 | <OverallResult success="true"/> |
| 9374 | </TestCase> |
| 9375 | <TestCase name="toString( has_toString )"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9376 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringWhich.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9377 | <Original> |
| 9378 | Catch::toString( item ) == "toString( has_toString )" |
| 9379 | </Original> |
| 9380 | <Expanded> |
| 9381 | "toString( has_toString )" |
| 9382 | == |
| 9383 | "toString( has_toString )" |
| 9384 | </Expanded> |
| 9385 | </Expression> |
| 9386 | <OverallResult success="true"/> |
| 9387 | </TestCase> |
| 9388 | <TestCase name="toString( vectors<has_maker )"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9389 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringWhich.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9390 | <Original> |
| 9391 | Catch::toString( v ) == "{ StringMaker<has_maker> }" |
| 9392 | </Original> |
| 9393 | <Expanded> |
| 9394 | "{ StringMaker<has_maker> }" |
| 9395 | == |
| 9396 | "{ StringMaker<has_maker> }" |
| 9397 | </Expanded> |
| 9398 | </Expression> |
| 9399 | <OverallResult success="true"/> |
| 9400 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9401 | <TestCase name="toString(enum w/operator<<)"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9402 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/EnumToString.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9403 | <Original> |
| 9404 | Catch::toString(e0) == "E2{0}" |
| 9405 | </Original> |
| 9406 | <Expanded> |
| 9407 | "E2{0}" == "E2{0}" |
| 9408 | </Expanded> |
| 9409 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9410 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/EnumToString.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9411 | <Original> |
| 9412 | Catch::toString(e1) == "E2{1}" |
| 9413 | </Original> |
| 9414 | <Expanded> |
| 9415 | "E2{1}" == "E2{1}" |
| 9416 | </Expanded> |
| 9417 | </Expression> |
| 9418 | <OverallResult success="true"/> |
| 9419 | </TestCase> |
| 9420 | <TestCase name="toString(enum)"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9421 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/EnumToString.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9422 | <Original> |
| 9423 | Catch::toString(e0) == "0" |
| 9424 | </Original> |
| 9425 | <Expanded> |
| 9426 | "0" == "0" |
| 9427 | </Expanded> |
| 9428 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9429 | <Expression success="true" type="CHECK" filename="projects/<exe-name>/EnumToString.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9430 | <Original> |
| 9431 | Catch::toString(e1) == "1" |
| 9432 | </Original> |
| 9433 | <Expanded> |
| 9434 | "1" == "1" |
| 9435 | </Expanded> |
| 9436 | </Expression> |
| 9437 | <OverallResult success="true"/> |
| 9438 | </TestCase> |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9439 | <TestCase name="vector<int> -> toString"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9440 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringVector.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9441 | <Original> |
| 9442 | Catch::toString(vv) == "{ }" |
| 9443 | </Original> |
| 9444 | <Expanded> |
| 9445 | "{ }" == "{ }" |
| 9446 | </Expanded> |
| 9447 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9448 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringVector.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9449 | <Original> |
| 9450 | Catch::toString(vv) == "{ 42 }" |
| 9451 | </Original> |
| 9452 | <Expanded> |
| 9453 | "{ 42 }" == "{ 42 }" |
| 9454 | </Expanded> |
| 9455 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9456 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringVector.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9457 | <Original> |
| 9458 | Catch::toString(vv) == "{ 42, 250 }" |
| 9459 | </Original> |
| 9460 | <Expanded> |
| 9461 | "{ 42, 250 }" == "{ 42, 250 }" |
| 9462 | </Expanded> |
| 9463 | </Expression> |
| 9464 | <OverallResult success="true"/> |
| 9465 | </TestCase> |
| 9466 | <TestCase name="vector<string> -> toString"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9467 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringVector.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9468 | <Original> |
| 9469 | Catch::toString(vv) == "{ }" |
| 9470 | </Original> |
| 9471 | <Expanded> |
| 9472 | "{ }" == "{ }" |
| 9473 | </Expanded> |
| 9474 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9475 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringVector.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9476 | <Original> |
| 9477 | Catch::toString(vv) == "{ \"hello\" }" |
| 9478 | </Original> |
| 9479 | <Expanded> |
| 9480 | "{ "hello" }" == "{ "hello" }" |
| 9481 | </Expanded> |
| 9482 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9483 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ToStringVector.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9484 | <Original> |
| 9485 | Catch::toString(vv) == "{ \"hello\", \"world\" }" |
| 9486 | </Original> |
| 9487 | <Expanded> |
| 9488 | "{ "hello", "world" }" |
| 9489 | == |
| 9490 | "{ "hello", "world" }" |
| 9491 | </Expanded> |
| 9492 | </Expression> |
| 9493 | <OverallResult success="true"/> |
| 9494 | </TestCase> |
| 9495 | <TestCase name="vectors can be sized and resized"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9496 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9497 | <Original> |
| 9498 | v.size() == 5 |
| 9499 | </Original> |
| 9500 | <Expanded> |
| 9501 | 5 == 5 |
| 9502 | </Expanded> |
| 9503 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9504 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9505 | <Original> |
| 9506 | v.capacity() >= 5 |
| 9507 | </Original> |
| 9508 | <Expanded> |
| 9509 | 5 >= 5 |
| 9510 | </Expanded> |
| 9511 | </Expression> |
| 9512 | <Section name="resizing bigger changes size and capacity"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9513 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9514 | <Original> |
| 9515 | v.size() == 10 |
| 9516 | </Original> |
| 9517 | <Expanded> |
| 9518 | 10 == 10 |
| 9519 | </Expanded> |
| 9520 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9521 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9522 | <Original> |
| 9523 | v.capacity() >= 10 |
| 9524 | </Original> |
| 9525 | <Expanded> |
| 9526 | 10 >= 10 |
| 9527 | </Expanded> |
| 9528 | </Expression> |
| 9529 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9530 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9531 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9532 | <Original> |
| 9533 | v.size() == 5 |
| 9534 | </Original> |
| 9535 | <Expanded> |
| 9536 | 5 == 5 |
| 9537 | </Expanded> |
| 9538 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9539 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9540 | <Original> |
| 9541 | v.capacity() >= 5 |
| 9542 | </Original> |
| 9543 | <Expanded> |
| 9544 | 5 >= 5 |
| 9545 | </Expanded> |
| 9546 | </Expression> |
| 9547 | <Section name="resizing smaller changes size but not capacity"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9548 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9549 | <Original> |
| 9550 | v.size() == 0 |
| 9551 | </Original> |
| 9552 | <Expanded> |
| 9553 | 0 == 0 |
| 9554 | </Expanded> |
| 9555 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9556 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9557 | <Original> |
| 9558 | v.capacity() >= 5 |
| 9559 | </Original> |
| 9560 | <Expanded> |
| 9561 | 5 >= 5 |
| 9562 | </Expanded> |
| 9563 | </Expression> |
| 9564 | <Section name="We can use the 'swap trick' to reset the capacity"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9565 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9566 | <Original> |
| 9567 | v.capacity() == 0 |
| 9568 | </Original> |
| 9569 | <Expanded> |
| 9570 | 0 == 0 |
| 9571 | </Expanded> |
| 9572 | </Expression> |
| 9573 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 9574 | </Section> |
| 9575 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
| 9576 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9577 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9578 | <Original> |
| 9579 | v.size() == 5 |
| 9580 | </Original> |
| 9581 | <Expanded> |
| 9582 | 5 == 5 |
| 9583 | </Expanded> |
| 9584 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9585 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9586 | <Original> |
| 9587 | v.capacity() >= 5 |
| 9588 | </Original> |
| 9589 | <Expanded> |
| 9590 | 5 >= 5 |
| 9591 | </Expanded> |
| 9592 | </Expression> |
| 9593 | <Section name="reserving bigger changes capacity but not size"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9594 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9595 | <Original> |
| 9596 | v.size() == 5 |
| 9597 | </Original> |
| 9598 | <Expanded> |
| 9599 | 5 == 5 |
| 9600 | </Expanded> |
| 9601 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9602 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9603 | <Original> |
| 9604 | v.capacity() >= 10 |
| 9605 | </Original> |
| 9606 | <Expanded> |
| 9607 | 10 >= 10 |
| 9608 | </Expanded> |
| 9609 | </Expression> |
| 9610 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9611 | </Section> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9612 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9613 | <Original> |
| 9614 | v.size() == 5 |
| 9615 | </Original> |
| 9616 | <Expanded> |
| 9617 | 5 == 5 |
| 9618 | </Expanded> |
| 9619 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9620 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9621 | <Original> |
| 9622 | v.capacity() >= 5 |
| 9623 | </Original> |
| 9624 | <Expanded> |
| 9625 | 5 >= 5 |
| 9626 | </Expanded> |
| 9627 | </Expression> |
| 9628 | <Section name="reserving smaller does not change size or capacity"> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9629 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9630 | <Original> |
| 9631 | v.size() == 5 |
| 9632 | </Original> |
| 9633 | <Expanded> |
| 9634 | 5 == 5 |
| 9635 | </Expanded> |
| 9636 | </Expression> |
Phil Nash | 62cbde3 | 2017-01-09 14:33:03 +0000 | [diff] [blame] | 9637 | <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" > |
Phil Nash | 79acc05 | 2016-11-29 11:32:16 +0000 | [diff] [blame] | 9638 | <Original> |
| 9639 | v.capacity() >= 5 |
| 9640 | </Original> |
| 9641 | <Expanded> |
| 9642 | 5 >= 5 |
| 9643 | </Expanded> |
| 9644 | </Expression> |
| 9645 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9646 | </Section> |
| 9647 | <OverallResult success="true"/> |
| 9648 | </TestCase> |
| 9649 | <TestCase name="xmlentitycheck"> |
| 9650 | <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>"> |
| 9651 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 9652 | </Section> |
| 9653 | <Section name="encoded chars" description="these should all be encoded: &&&"""<<<&"<<&""> |
| 9654 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 9655 | </Section> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 9656 | <OverallResult success="true"/> |
| 9657 | </TestCase> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame^] | 9658 | <OverallResults successes="832" failures="81" expectedFailures="18"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9659 | </Group> |
Martin Hořeňovský | 7db4d8d | 2017-02-07 13:32:48 +0100 | [diff] [blame^] | 9660 | <OverallResults successes="832" failures="80" expectedFailures="18"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9661 | </Catch> |