Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1 | <Catch name="CatchSelfTest"> |
Phil Nash | 85c8074 | 2015-07-28 18:26:09 +0100 | [diff] [blame] | 2 | <Group name="CatchSelfTest"> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 3 | <TestCase name="toString(enum)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 5 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6 | Catch::toString(e0) == "0" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7 | </Original> |
| 8 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9 | "0" == "0" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 10 | </Expanded> |
| 11 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 12 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 13 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 14 | Catch::toString(e1) == "1" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 15 | </Original> |
| 16 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 17 | "1" == "1" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 18 | </Expanded> |
| 19 | </Expression> |
| 20 | <OverallResult success="true"/> |
| 21 | </TestCase> |
| 22 | <TestCase name="toString(enum w/operator<<)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 23 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 24 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 25 | Catch::toString(e0) == "E2{0}" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 26 | </Original> |
| 27 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 28 | "E2{0}" == "E2{0}" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 29 | </Expanded> |
| 30 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 31 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 32 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 33 | Catch::toString(e1) == "E2{1}" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 34 | </Original> |
| 35 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 36 | "E2{1}" == "E2{1}" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 37 | </Expanded> |
| 38 | </Expression> |
| 39 | <OverallResult success="true"/> |
| 40 | </TestCase> |
| 41 | <TestCase name="toString(enum class)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 42 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 43 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 44 | Catch::toString(e0) == "0" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 45 | </Original> |
| 46 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 47 | "0" == "0" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 48 | </Expanded> |
| 49 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 50 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 51 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 52 | Catch::toString(e1) == "1" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 53 | </Original> |
| 54 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 55 | "1" == "1" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 56 | </Expanded> |
| 57 | </Expression> |
| 58 | <OverallResult success="true"/> |
| 59 | </TestCase> |
| 60 | <TestCase name="toString(enum class w/operator<<)"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 61 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 62 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 63 | Catch::toString(e0) == "E2/V0" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 64 | </Original> |
| 65 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 66 | "E2/V0" == "E2/V0" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 67 | </Expanded> |
| 68 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 69 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 70 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 71 | Catch::toString(e1) == "E2/V1" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 72 | </Original> |
| 73 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 74 | "E2/V1" == "E2/V1" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 75 | </Expanded> |
| 76 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 77 | <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" > |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 78 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 79 | Catch::toString(e3) == "Unknown enum value 10" |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 80 | </Original> |
| 81 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 82 | "Unknown enum value 10" |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 83 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 84 | "Unknown enum value 10" |
Phil Nash | 886ef16 | 2014-09-04 07:27:09 +0100 | [diff] [blame] | 85 | </Expanded> |
| 86 | </Expression> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 87 | <OverallResult success="true"/> |
| 88 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 89 | <TestCase name="Some simple comparisons between doubles"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 90 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 91 | <Original> |
| 92 | d == Approx( 1.23 ) |
| 93 | </Original> |
| 94 | <Expanded> |
| 95 | 1.23 == Approx( 1.23 ) |
| 96 | </Expanded> |
| 97 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 98 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 99 | <Original> |
| 100 | d != Approx( 1.22 ) |
| 101 | </Original> |
| 102 | <Expanded> |
| 103 | 1.23 != Approx( 1.22 ) |
| 104 | </Expanded> |
| 105 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 106 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 107 | <Original> |
| 108 | d != Approx( 1.24 ) |
| 109 | </Original> |
| 110 | <Expanded> |
| 111 | 1.23 != Approx( 1.24 ) |
| 112 | </Expanded> |
| 113 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 114 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 115 | <Original> |
| 116 | Approx( d ) == 1.23 |
| 117 | </Original> |
| 118 | <Expanded> |
| 119 | Approx( 1.23 ) == 1.23 |
| 120 | </Expanded> |
| 121 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 122 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 123 | <Original> |
| 124 | Approx( d ) != 1.22 |
| 125 | </Original> |
| 126 | <Expanded> |
| 127 | Approx( 1.23 ) != 1.22 |
| 128 | </Expanded> |
| 129 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 130 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 131 | <Original> |
| 132 | Approx( d ) != 1.24 |
| 133 | </Original> |
| 134 | <Expanded> |
| 135 | Approx( 1.23 ) != 1.24 |
| 136 | </Expanded> |
| 137 | </Expression> |
| 138 | <OverallResult success="true"/> |
| 139 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 140 | <TestCase name="Approximate comparisons with different epsilons"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 141 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 142 | <Original> |
| 143 | d != Approx( 1.231 ) |
| 144 | </Original> |
| 145 | <Expanded> |
| 146 | 1.23 != Approx( 1.231 ) |
| 147 | </Expanded> |
| 148 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 149 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 150 | <Original> |
| 151 | d == Approx( 1.231 ).epsilon( 0.1 ) |
| 152 | </Original> |
| 153 | <Expanded> |
| 154 | 1.23 == Approx( 1.231 ) |
| 155 | </Expanded> |
| 156 | </Expression> |
| 157 | <OverallResult success="true"/> |
| 158 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 159 | <TestCase name="Approximate comparisons with floats"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 160 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 161 | <Original> |
| 162 | 1.23f == Approx( 1.23f ) |
| 163 | </Original> |
| 164 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 165 | 1.23f == Approx( 1.2300000191 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 166 | </Expanded> |
| 167 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 168 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 169 | <Original> |
| 170 | 0.0f == Approx( 0.0f ) |
| 171 | </Original> |
| 172 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 173 | 0.0f == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 174 | </Expanded> |
| 175 | </Expression> |
| 176 | <OverallResult success="true"/> |
| 177 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 178 | <TestCase name="Approximate comparisons with ints"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 179 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 180 | <Original> |
| 181 | 1 == Approx( 1 ) |
| 182 | </Original> |
| 183 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 184 | 1 == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 185 | </Expanded> |
| 186 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 187 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 188 | <Original> |
| 189 | 0 == Approx( 0 ) |
| 190 | </Original> |
| 191 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 192 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 193 | </Expanded> |
| 194 | </Expression> |
| 195 | <OverallResult success="true"/> |
| 196 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 197 | <TestCase name="Approximate comparisons with mixed numeric types"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 198 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 199 | <Original> |
| 200 | 1.0f == Approx( 1 ) |
| 201 | </Original> |
| 202 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 203 | 1.0f == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 204 | </Expanded> |
| 205 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 206 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 207 | <Original> |
| 208 | 0 == Approx( dZero) |
| 209 | </Original> |
| 210 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 211 | 0 == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 212 | </Expanded> |
| 213 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 214 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 215 | <Original> |
| 216 | 0 == Approx( dSmall ).epsilon( 0.001 ) |
| 217 | </Original> |
| 218 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 219 | 0 == Approx( 0.00001 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 220 | </Expanded> |
| 221 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 222 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 223 | <Original> |
| 224 | 1.234f == Approx( dMedium ) |
| 225 | </Original> |
| 226 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 227 | 1.234f == Approx( 1.234 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 228 | </Expanded> |
| 229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 230 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 231 | <Original> |
| 232 | dMedium == Approx( 1.234f ) |
| 233 | </Original> |
| 234 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 235 | 1.234 == Approx( 1.2339999676 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 236 | </Expanded> |
| 237 | </Expression> |
| 238 | <OverallResult success="true"/> |
| 239 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 240 | <TestCase name="Use a custom approx"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 241 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 242 | <Original> |
| 243 | d == approx( 1.23 ) |
| 244 | </Original> |
| 245 | <Expanded> |
| 246 | 1.23 == Approx( 1.23 ) |
| 247 | </Expanded> |
| 248 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 249 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 250 | <Original> |
| 251 | d == approx( 1.22 ) |
| 252 | </Original> |
| 253 | <Expanded> |
| 254 | 1.23 == Approx( 1.22 ) |
| 255 | </Expanded> |
| 256 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 257 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 258 | <Original> |
| 259 | d == approx( 1.24 ) |
| 260 | </Original> |
| 261 | <Expanded> |
| 262 | 1.23 == Approx( 1.24 ) |
| 263 | </Expanded> |
| 264 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 265 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 266 | <Original> |
| 267 | d != approx( 1.25 ) |
| 268 | </Original> |
| 269 | <Expanded> |
| 270 | 1.23 != Approx( 1.25 ) |
| 271 | </Expanded> |
| 272 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 273 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 274 | <Original> |
| 275 | approx( d ) == 1.23 |
| 276 | </Original> |
| 277 | <Expanded> |
| 278 | Approx( 1.23 ) == 1.23 |
| 279 | </Expanded> |
| 280 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 281 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 282 | <Original> |
| 283 | approx( d ) == 1.22 |
| 284 | </Original> |
| 285 | <Expanded> |
| 286 | Approx( 1.23 ) == 1.22 |
| 287 | </Expanded> |
| 288 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 289 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 290 | <Original> |
| 291 | approx( d ) == 1.24 |
| 292 | </Original> |
| 293 | <Expanded> |
| 294 | Approx( 1.23 ) == 1.24 |
| 295 | </Expanded> |
| 296 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 297 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 298 | <Original> |
| 299 | approx( d ) != 1.25 |
| 300 | </Original> |
| 301 | <Expanded> |
| 302 | Approx( 1.23 ) != 1.25 |
| 303 | </Expanded> |
| 304 | </Expression> |
| 305 | <OverallResult success="true"/> |
| 306 | </TestCase> |
| 307 | <TestCase name="Approximate PI"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 308 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 309 | <Original> |
| 310 | divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) |
| 311 | </Original> |
| 312 | <Expanded> |
| 313 | 3.1428571429 == Approx( 3.141 ) |
| 314 | </Expanded> |
| 315 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 316 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ApproxTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 317 | <Original> |
| 318 | divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) |
| 319 | </Original> |
| 320 | <Expanded> |
| 321 | 3.1428571429 != Approx( 3.141 ) |
| 322 | </Expanded> |
| 323 | </Expression> |
| 324 | <OverallResult success="true"/> |
| 325 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 326 | <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 327 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 328 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 329 | s == "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 330 | </Original> |
| 331 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 332 | "hello" == "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 333 | </Expanded> |
| 334 | </Expression> |
| 335 | <OverallResult success="true"/> |
| 336 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 337 | <TestCase name="A METHOD_AS_TEST_CASE based test run that fails"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 338 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 339 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 340 | s == "world" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 341 | </Original> |
| 342 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 343 | "hello" == "world" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 344 | </Expanded> |
| 345 | </Expression> |
| 346 | <OverallResult success="false"/> |
| 347 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 348 | <TestCase name="A TEST_CASE_METHOD based test run that succeeds"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 349 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 350 | <Original> |
| 351 | m_a == 1 |
| 352 | </Original> |
| 353 | <Expanded> |
| 354 | 1 == 1 |
| 355 | </Expanded> |
| 356 | </Expression> |
| 357 | <OverallResult success="true"/> |
| 358 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 359 | <TestCase name="A TEST_CASE_METHOD based test run that fails"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 360 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ClassTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 361 | <Original> |
| 362 | m_a == 2 |
| 363 | </Original> |
| 364 | <Expanded> |
| 365 | 1 == 2 |
| 366 | </Expanded> |
| 367 | </Expression> |
| 368 | <OverallResult success="false"/> |
| 369 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 370 | <TestCase name="Equality checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 371 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 372 | <Original> |
| 373 | data.int_seven == 7 |
| 374 | </Original> |
| 375 | <Expanded> |
| 376 | 7 == 7 |
| 377 | </Expanded> |
| 378 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 379 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 380 | <Original> |
| 381 | data.float_nine_point_one == Approx( 9.1f ) |
| 382 | </Original> |
| 383 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 384 | 9.1f == Approx( 9.1000003815 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 385 | </Expanded> |
| 386 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 387 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 388 | <Original> |
| 389 | data.double_pi == Approx( 3.1415926535 ) |
| 390 | </Original> |
| 391 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 392 | 3.1415926535 == Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 393 | </Expanded> |
| 394 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 395 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 396 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 397 | data.str_hello == "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 398 | </Original> |
| 399 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 400 | "hello" == "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 401 | </Expanded> |
| 402 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 403 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 404 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 405 | "hello" == data.str_hello |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 406 | </Original> |
| 407 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 408 | "hello" == "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 409 | </Expanded> |
| 410 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 411 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 412 | <Original> |
| 413 | data.str_hello.size() == 5 |
| 414 | </Original> |
| 415 | <Expanded> |
| 416 | 5 == 5 |
| 417 | </Expanded> |
| 418 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 419 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 420 | <Original> |
| 421 | x == Approx( 1.3 ) |
| 422 | </Original> |
| 423 | <Expanded> |
| 424 | 1.3 == Approx( 1.3 ) |
| 425 | </Expanded> |
| 426 | </Expression> |
| 427 | <OverallResult success="true"/> |
| 428 | </TestCase> |
Phil Nash | baf181f | 2014-05-20 18:11:43 +0100 | [diff] [blame] | 429 | <TestCase name="Equality checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 430 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 431 | <Original> |
| 432 | data.int_seven == 6 |
| 433 | </Original> |
| 434 | <Expanded> |
| 435 | 7 == 6 |
| 436 | </Expanded> |
| 437 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 438 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 439 | <Original> |
| 440 | data.int_seven == 8 |
| 441 | </Original> |
| 442 | <Expanded> |
| 443 | 7 == 8 |
| 444 | </Expanded> |
| 445 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 446 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 447 | <Original> |
| 448 | data.int_seven == 0 |
| 449 | </Original> |
| 450 | <Expanded> |
| 451 | 7 == 0 |
| 452 | </Expanded> |
| 453 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 454 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 455 | <Original> |
| 456 | data.float_nine_point_one == Approx( 9.11f ) |
| 457 | </Original> |
| 458 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 459 | 9.1f == Approx( 9.1099996567 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 460 | </Expanded> |
| 461 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 462 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 463 | <Original> |
| 464 | data.float_nine_point_one == Approx( 9.0f ) |
| 465 | </Original> |
| 466 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 467 | 9.1f == Approx( 9.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 468 | </Expanded> |
| 469 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 470 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 471 | <Original> |
| 472 | data.float_nine_point_one == Approx( 1 ) |
| 473 | </Original> |
| 474 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 475 | 9.1f == Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 476 | </Expanded> |
| 477 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 478 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 479 | <Original> |
| 480 | data.float_nine_point_one == Approx( 0 ) |
| 481 | </Original> |
| 482 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 483 | 9.1f == Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 484 | </Expanded> |
| 485 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 486 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 487 | <Original> |
| 488 | data.double_pi == Approx( 3.1415 ) |
| 489 | </Original> |
| 490 | <Expanded> |
| 491 | 3.1415926535 == Approx( 3.1415 ) |
| 492 | </Expanded> |
| 493 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 494 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 495 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 496 | data.str_hello == "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 497 | </Original> |
| 498 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 499 | "hello" == "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 500 | </Expanded> |
| 501 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 502 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 503 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 504 | data.str_hello == "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 505 | </Original> |
| 506 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 507 | "hello" == "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 508 | </Expanded> |
| 509 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 510 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 511 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 512 | data.str_hello == "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 513 | </Original> |
| 514 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 515 | "hello" == "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 516 | </Expanded> |
| 517 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 518 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 519 | <Original> |
| 520 | data.str_hello.size() == 6 |
| 521 | </Original> |
| 522 | <Expanded> |
| 523 | 5 == 6 |
| 524 | </Expanded> |
| 525 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 526 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 527 | <Original> |
| 528 | x == Approx( 1.301 ) |
| 529 | </Original> |
| 530 | <Expanded> |
| 531 | 1.3 == Approx( 1.301 ) |
| 532 | </Expanded> |
| 533 | </Expression> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 534 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 535 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 536 | <TestCase name="Inequality checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 537 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 538 | <Original> |
| 539 | data.int_seven != 6 |
| 540 | </Original> |
| 541 | <Expanded> |
| 542 | 7 != 6 |
| 543 | </Expanded> |
| 544 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 545 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 546 | <Original> |
| 547 | data.int_seven != 8 |
| 548 | </Original> |
| 549 | <Expanded> |
| 550 | 7 != 8 |
| 551 | </Expanded> |
| 552 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 553 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 554 | <Original> |
| 555 | data.float_nine_point_one != Approx( 9.11f ) |
| 556 | </Original> |
| 557 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 558 | 9.1f != Approx( 9.1099996567 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 559 | </Expanded> |
| 560 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 561 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 562 | <Original> |
| 563 | data.float_nine_point_one != Approx( 9.0f ) |
| 564 | </Original> |
| 565 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 566 | 9.1f != Approx( 9.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 567 | </Expanded> |
| 568 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 569 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 570 | <Original> |
| 571 | data.float_nine_point_one != Approx( 1 ) |
| 572 | </Original> |
| 573 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 574 | 9.1f != Approx( 1.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 575 | </Expanded> |
| 576 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 577 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 578 | <Original> |
| 579 | data.float_nine_point_one != Approx( 0 ) |
| 580 | </Original> |
| 581 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 582 | 9.1f != Approx( 0.0 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 583 | </Expanded> |
| 584 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 585 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 586 | <Original> |
| 587 | data.double_pi != Approx( 3.1415 ) |
| 588 | </Original> |
| 589 | <Expanded> |
| 590 | 3.1415926535 != Approx( 3.1415 ) |
| 591 | </Expanded> |
| 592 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 593 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 594 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 595 | data.str_hello != "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 596 | </Original> |
| 597 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 598 | "hello" != "goodbye" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 599 | </Expanded> |
| 600 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 601 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 602 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 603 | data.str_hello != "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 604 | </Original> |
| 605 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 606 | "hello" != "hell" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 607 | </Expanded> |
| 608 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 609 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 610 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 611 | data.str_hello != "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 612 | </Original> |
| 613 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 614 | "hello" != "hello1" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 615 | </Expanded> |
| 616 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 617 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 618 | <Original> |
| 619 | data.str_hello.size() != 6 |
| 620 | </Original> |
| 621 | <Expanded> |
| 622 | 5 != 6 |
| 623 | </Expanded> |
| 624 | </Expression> |
| 625 | <OverallResult success="true"/> |
| 626 | </TestCase> |
Phil Nash | baf181f | 2014-05-20 18:11:43 +0100 | [diff] [blame] | 627 | <TestCase name="Inequality checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 628 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 629 | <Original> |
| 630 | data.int_seven != 7 |
| 631 | </Original> |
| 632 | <Expanded> |
| 633 | 7 != 7 |
| 634 | </Expanded> |
| 635 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 636 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 637 | <Original> |
| 638 | data.float_nine_point_one != Approx( 9.1f ) |
| 639 | </Original> |
| 640 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 641 | 9.1f != Approx( 9.1000003815 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 642 | </Expanded> |
| 643 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 644 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 645 | <Original> |
| 646 | data.double_pi != Approx( 3.1415926535 ) |
| 647 | </Original> |
| 648 | <Expanded> |
Phil Nash | 1aa60fa | 2013-12-19 18:41:55 +0000 | [diff] [blame] | 649 | 3.1415926535 != Approx( 3.1415926535 ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 650 | </Expanded> |
| 651 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 652 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 653 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 654 | data.str_hello != "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 655 | </Original> |
| 656 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 657 | "hello" != "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 658 | </Expanded> |
| 659 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 660 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 661 | <Original> |
| 662 | data.str_hello.size() != 5 |
| 663 | </Original> |
| 664 | <Expanded> |
| 665 | 5 != 5 |
| 666 | </Expanded> |
| 667 | </Expression> |
| 668 | <OverallResult success="false"/> |
| 669 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 670 | <TestCase name="Ordering comparison checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 671 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 672 | <Original> |
| 673 | data.int_seven < 8 |
| 674 | </Original> |
| 675 | <Expanded> |
| 676 | 7 < 8 |
| 677 | </Expanded> |
| 678 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 679 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 680 | <Original> |
| 681 | data.int_seven > 6 |
| 682 | </Original> |
| 683 | <Expanded> |
| 684 | 7 > 6 |
| 685 | </Expanded> |
| 686 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 687 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 688 | <Original> |
| 689 | data.int_seven > 0 |
| 690 | </Original> |
| 691 | <Expanded> |
| 692 | 7 > 0 |
| 693 | </Expanded> |
| 694 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 695 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 696 | <Original> |
| 697 | data.int_seven > -1 |
| 698 | </Original> |
| 699 | <Expanded> |
| 700 | 7 > -1 |
| 701 | </Expanded> |
| 702 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 703 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 704 | <Original> |
| 705 | data.int_seven >= 7 |
| 706 | </Original> |
| 707 | <Expanded> |
| 708 | 7 >= 7 |
| 709 | </Expanded> |
| 710 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 711 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 712 | <Original> |
| 713 | data.int_seven >= 6 |
| 714 | </Original> |
| 715 | <Expanded> |
| 716 | 7 >= 6 |
| 717 | </Expanded> |
| 718 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 719 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 720 | <Original> |
| 721 | data.int_seven <= 7 |
| 722 | </Original> |
| 723 | <Expanded> |
| 724 | 7 <= 7 |
| 725 | </Expanded> |
| 726 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 727 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 728 | <Original> |
| 729 | data.int_seven <= 8 |
| 730 | </Original> |
| 731 | <Expanded> |
| 732 | 7 <= 8 |
| 733 | </Expanded> |
| 734 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 735 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 736 | <Original> |
| 737 | data.float_nine_point_one > 9 |
| 738 | </Original> |
| 739 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 740 | 9.1f > 9 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 741 | </Expanded> |
| 742 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 743 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 744 | <Original> |
| 745 | data.float_nine_point_one < 10 |
| 746 | </Original> |
| 747 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 748 | 9.1f < 10 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 749 | </Expanded> |
| 750 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 751 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 752 | <Original> |
| 753 | data.float_nine_point_one < 9.2 |
| 754 | </Original> |
| 755 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 756 | 9.1f < 9.2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 757 | </Expanded> |
| 758 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 759 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 760 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 761 | data.str_hello <= "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 762 | </Original> |
| 763 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 764 | "hello" <= "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 765 | </Expanded> |
| 766 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 767 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 768 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 769 | data.str_hello >= "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 770 | </Original> |
| 771 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 772 | "hello" >= "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 773 | </Expanded> |
| 774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 775 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 776 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 777 | data.str_hello < "hellp" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 778 | </Original> |
| 779 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 780 | "hello" < "hellp" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 781 | </Expanded> |
| 782 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 783 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 784 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 785 | data.str_hello < "zebra" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 786 | </Original> |
| 787 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 788 | "hello" < "zebra" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 789 | </Expanded> |
| 790 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 791 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 792 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 793 | data.str_hello > "hellm" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 794 | </Original> |
| 795 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 796 | "hello" > "hellm" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 797 | </Expanded> |
| 798 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 799 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 800 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 801 | data.str_hello > "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 802 | </Original> |
| 803 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 804 | "hello" > "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 805 | </Expanded> |
| 806 | </Expression> |
| 807 | <OverallResult success="true"/> |
| 808 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 809 | <TestCase name="Ordering comparison checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 810 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 811 | <Original> |
| 812 | data.int_seven > 7 |
| 813 | </Original> |
| 814 | <Expanded> |
| 815 | 7 > 7 |
| 816 | </Expanded> |
| 817 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 818 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 819 | <Original> |
| 820 | data.int_seven < 7 |
| 821 | </Original> |
| 822 | <Expanded> |
| 823 | 7 < 7 |
| 824 | </Expanded> |
| 825 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 826 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 827 | <Original> |
| 828 | data.int_seven > 8 |
| 829 | </Original> |
| 830 | <Expanded> |
| 831 | 7 > 8 |
| 832 | </Expanded> |
| 833 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 834 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 835 | <Original> |
| 836 | data.int_seven < 6 |
| 837 | </Original> |
| 838 | <Expanded> |
| 839 | 7 < 6 |
| 840 | </Expanded> |
| 841 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 842 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 843 | <Original> |
| 844 | data.int_seven < 0 |
| 845 | </Original> |
| 846 | <Expanded> |
| 847 | 7 < 0 |
| 848 | </Expanded> |
| 849 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 850 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 851 | <Original> |
| 852 | data.int_seven < -1 |
| 853 | </Original> |
| 854 | <Expanded> |
| 855 | 7 < -1 |
| 856 | </Expanded> |
| 857 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 858 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 859 | <Original> |
| 860 | data.int_seven >= 8 |
| 861 | </Original> |
| 862 | <Expanded> |
| 863 | 7 >= 8 |
| 864 | </Expanded> |
| 865 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 866 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 867 | <Original> |
| 868 | data.int_seven <= 6 |
| 869 | </Original> |
| 870 | <Expanded> |
| 871 | 7 <= 6 |
| 872 | </Expanded> |
| 873 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 874 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 875 | <Original> |
| 876 | data.float_nine_point_one < 9 |
| 877 | </Original> |
| 878 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 879 | 9.1f < 9 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 880 | </Expanded> |
| 881 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 882 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 883 | <Original> |
| 884 | data.float_nine_point_one > 10 |
| 885 | </Original> |
| 886 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 887 | 9.1f > 10 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 888 | </Expanded> |
| 889 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 890 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 891 | <Original> |
| 892 | data.float_nine_point_one > 9.2 |
| 893 | </Original> |
| 894 | <Expanded> |
Phil Nash | d89e74f | 2014-07-09 18:16:40 +0100 | [diff] [blame] | 895 | 9.1f > 9.2 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 896 | </Expanded> |
| 897 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 898 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 899 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 900 | data.str_hello > "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 901 | </Original> |
| 902 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 903 | "hello" > "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 904 | </Expanded> |
| 905 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 906 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 907 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 908 | data.str_hello < "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 909 | </Original> |
| 910 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 911 | "hello" < "hello" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 912 | </Expanded> |
| 913 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 914 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 915 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 916 | data.str_hello > "hellp" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 917 | </Original> |
| 918 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 919 | "hello" > "hellp" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 920 | </Expanded> |
| 921 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 922 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 923 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 924 | data.str_hello > "z" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 925 | </Original> |
| 926 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 927 | "hello" > "z" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 928 | </Expanded> |
| 929 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 930 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 931 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 932 | data.str_hello < "hellm" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 933 | </Original> |
| 934 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 935 | "hello" < "hellm" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 936 | </Expanded> |
| 937 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 938 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 939 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 940 | data.str_hello < "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 941 | </Original> |
| 942 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 943 | "hello" < "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 944 | </Expanded> |
| 945 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 946 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 947 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 948 | data.str_hello >= "z" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 949 | </Original> |
| 950 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 951 | "hello" >= "z" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 952 | </Expanded> |
| 953 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 954 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 955 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 956 | data.str_hello <= "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 957 | </Original> |
| 958 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 959 | "hello" <= "a" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 960 | </Expanded> |
| 961 | </Expression> |
| 962 | <OverallResult success="false"/> |
| 963 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 964 | <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 965 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 966 | <Original> |
| 967 | i == 1 |
| 968 | </Original> |
| 969 | <Expanded> |
| 970 | 1 == 1 |
| 971 | </Expanded> |
| 972 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 973 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 974 | <Original> |
| 975 | ui == 2 |
| 976 | </Original> |
| 977 | <Expanded> |
| 978 | 2 == 2 |
| 979 | </Expanded> |
| 980 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 981 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 982 | <Original> |
| 983 | l == 3 |
| 984 | </Original> |
| 985 | <Expanded> |
| 986 | 3 == 3 |
| 987 | </Expanded> |
| 988 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 989 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 990 | <Original> |
| 991 | ul == 4 |
| 992 | </Original> |
| 993 | <Expanded> |
| 994 | 4 == 4 |
| 995 | </Expanded> |
| 996 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 997 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 998 | <Original> |
| 999 | c == 5 |
| 1000 | </Original> |
| 1001 | <Expanded> |
| 1002 | 5 == 5 |
| 1003 | </Expanded> |
| 1004 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1005 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1006 | <Original> |
| 1007 | uc == 6 |
| 1008 | </Original> |
| 1009 | <Expanded> |
| 1010 | 6 == 6 |
| 1011 | </Expanded> |
| 1012 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1013 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1014 | <Original> |
| 1015 | 1 == i |
| 1016 | </Original> |
| 1017 | <Expanded> |
| 1018 | 1 == 1 |
| 1019 | </Expanded> |
| 1020 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1021 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1022 | <Original> |
| 1023 | 2 == ui |
| 1024 | </Original> |
| 1025 | <Expanded> |
| 1026 | 2 == 2 |
| 1027 | </Expanded> |
| 1028 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1029 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1030 | <Original> |
| 1031 | 3 == l |
| 1032 | </Original> |
| 1033 | <Expanded> |
| 1034 | 3 == 3 |
| 1035 | </Expanded> |
| 1036 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1037 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1038 | <Original> |
| 1039 | 4 == ul |
| 1040 | </Original> |
| 1041 | <Expanded> |
| 1042 | 4 == 4 |
| 1043 | </Expanded> |
| 1044 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1045 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1046 | <Original> |
| 1047 | 5 == c |
| 1048 | </Original> |
| 1049 | <Expanded> |
| 1050 | 5 == 5 |
| 1051 | </Expanded> |
| 1052 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1053 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1054 | <Original> |
| 1055 | 6 == uc |
| 1056 | </Original> |
| 1057 | <Expanded> |
| 1058 | 6 == 6 |
| 1059 | </Expanded> |
| 1060 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1061 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1062 | <Original> |
| 1063 | (std::numeric_limits<unsigned long>::max)() > ul |
| 1064 | </Original> |
| 1065 | <Expanded> |
Phil Nash | 0edebf4 | 2015-07-28 18:24:20 +0100 | [diff] [blame] | 1066 | 18446744073709551615 (0x<hex digits>) |
| 1067 | > |
| 1068 | 4 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1069 | </Expanded> |
| 1070 | </Expression> |
| 1071 | <OverallResult success="true"/> |
| 1072 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1073 | <TestCase name="comparisons between int variables"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1074 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1075 | <Original> |
| 1076 | long_var == unsigned_char_var |
| 1077 | </Original> |
| 1078 | <Expanded> |
| 1079 | 1 == 1 |
| 1080 | </Expanded> |
| 1081 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1082 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1083 | <Original> |
| 1084 | long_var == unsigned_short_var |
| 1085 | </Original> |
| 1086 | <Expanded> |
| 1087 | 1 == 1 |
| 1088 | </Expanded> |
| 1089 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1090 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1091 | <Original> |
| 1092 | long_var == unsigned_int_var |
| 1093 | </Original> |
| 1094 | <Expanded> |
| 1095 | 1 == 1 |
| 1096 | </Expanded> |
| 1097 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1098 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1099 | <Original> |
| 1100 | long_var == unsigned_long_var |
| 1101 | </Original> |
| 1102 | <Expanded> |
| 1103 | 1 == 1 |
| 1104 | </Expanded> |
| 1105 | </Expression> |
| 1106 | <OverallResult success="true"/> |
| 1107 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1108 | <TestCase name="comparisons between const int variables"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1109 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1110 | <Original> |
| 1111 | unsigned_char_var == 1 |
| 1112 | </Original> |
| 1113 | <Expanded> |
| 1114 | 1 == 1 |
| 1115 | </Expanded> |
| 1116 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1117 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1118 | <Original> |
| 1119 | unsigned_short_var == 1 |
| 1120 | </Original> |
| 1121 | <Expanded> |
| 1122 | 1 == 1 |
| 1123 | </Expanded> |
| 1124 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1125 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1126 | <Original> |
| 1127 | unsigned_int_var == 1 |
| 1128 | </Original> |
| 1129 | <Expanded> |
| 1130 | 1 == 1 |
| 1131 | </Expanded> |
| 1132 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1133 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1134 | <Original> |
| 1135 | unsigned_long_var == 1 |
| 1136 | </Original> |
| 1137 | <Expanded> |
| 1138 | 1 == 1 |
| 1139 | </Expanded> |
| 1140 | </Expression> |
| 1141 | <OverallResult success="true"/> |
| 1142 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1143 | <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1144 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1145 | <Original> |
| 1146 | ( -1 > 2u ) |
| 1147 | </Original> |
| 1148 | <Expanded> |
| 1149 | true |
| 1150 | </Expanded> |
| 1151 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1152 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1153 | <Original> |
| 1154 | -1 > 2u |
| 1155 | </Original> |
| 1156 | <Expanded> |
| 1157 | -1 > 2 |
| 1158 | </Expanded> |
| 1159 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1160 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1161 | <Original> |
| 1162 | ( 2u < -1 ) |
| 1163 | </Original> |
| 1164 | <Expanded> |
| 1165 | true |
| 1166 | </Expanded> |
| 1167 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1168 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1169 | <Original> |
| 1170 | 2u < -1 |
| 1171 | </Original> |
| 1172 | <Expanded> |
| 1173 | 2 < -1 |
| 1174 | </Expanded> |
| 1175 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1176 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1177 | <Original> |
| 1178 | ( minInt > 2u ) |
| 1179 | </Original> |
| 1180 | <Expanded> |
| 1181 | true |
| 1182 | </Expanded> |
| 1183 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1184 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1185 | <Original> |
| 1186 | minInt > 2u |
| 1187 | </Original> |
| 1188 | <Expanded> |
| 1189 | -2147483648 > 2 |
| 1190 | </Expanded> |
| 1191 | </Expression> |
| 1192 | <OverallResult success="true"/> |
| 1193 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1194 | <TestCase name="Comparisons between ints where one side is computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1195 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1196 | <Original> |
| 1197 | 54 == 6*9 |
| 1198 | </Original> |
| 1199 | <Expanded> |
| 1200 | 54 == 54 |
| 1201 | </Expanded> |
| 1202 | </Expression> |
| 1203 | <OverallResult success="true"/> |
| 1204 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1205 | <TestCase name="Pointers can be compared to null"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1206 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1207 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1208 | p == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1209 | </Original> |
| 1210 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1211 | NULL == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1212 | </Expanded> |
| 1213 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1214 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1215 | <Original> |
| 1216 | p == pNULL |
| 1217 | </Original> |
| 1218 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1219 | NULL == NULL |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1220 | </Expanded> |
| 1221 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1222 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1223 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1224 | p != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1225 | </Original> |
| 1226 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1227 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1228 | </Expanded> |
| 1229 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1230 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1231 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1232 | cp != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1233 | </Original> |
| 1234 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1235 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1236 | </Expanded> |
| 1237 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1238 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1239 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1240 | cpc != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1241 | </Original> |
| 1242 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1243 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1244 | </Expanded> |
| 1245 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1246 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1247 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1248 | returnsNull() == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1249 | </Original> |
| 1250 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1251 | {null string} == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1252 | </Expanded> |
| 1253 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1254 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1255 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1256 | returnsConstNull() == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1257 | </Original> |
| 1258 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1259 | {null string} == nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1260 | </Expanded> |
| 1261 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1262 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1263 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1264 | nullptr != p |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1265 | </Original> |
| 1266 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 1267 | nullptr != 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1268 | </Expanded> |
| 1269 | </Expression> |
| 1270 | <OverallResult success="true"/> |
| 1271 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1272 | <TestCase name="'Not' checks that should succeed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1273 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1274 | <Original> |
| 1275 | false == false |
| 1276 | </Original> |
| 1277 | <Expanded> |
| 1278 | false == false |
| 1279 | </Expanded> |
| 1280 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1281 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1282 | <Original> |
| 1283 | true == true |
| 1284 | </Original> |
| 1285 | <Expanded> |
| 1286 | true == true |
| 1287 | </Expanded> |
| 1288 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1289 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1290 | <Original> |
| 1291 | !false |
| 1292 | </Original> |
| 1293 | <Expanded> |
| 1294 | true |
| 1295 | </Expanded> |
| 1296 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1297 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1298 | <Original> |
| 1299 | !false |
| 1300 | </Original> |
| 1301 | <Expanded> |
| 1302 | !false |
| 1303 | </Expanded> |
| 1304 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1305 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1306 | <Original> |
| 1307 | !falseValue |
| 1308 | </Original> |
| 1309 | <Expanded> |
| 1310 | true |
| 1311 | </Expanded> |
| 1312 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1313 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1314 | <Original> |
| 1315 | !falseValue |
| 1316 | </Original> |
| 1317 | <Expanded> |
| 1318 | !false |
| 1319 | </Expanded> |
| 1320 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1321 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1322 | <Original> |
| 1323 | !(1 == 2) |
| 1324 | </Original> |
| 1325 | <Expanded> |
| 1326 | true |
| 1327 | </Expanded> |
| 1328 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1329 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1330 | <Original> |
| 1331 | !1 == 2 |
| 1332 | </Original> |
| 1333 | <Expanded> |
| 1334 | !(1 == 2) |
| 1335 | </Expanded> |
| 1336 | </Expression> |
| 1337 | <OverallResult success="true"/> |
| 1338 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1339 | <TestCase name="'Not' checks that should fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1340 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1341 | <Original> |
| 1342 | false != false |
| 1343 | </Original> |
| 1344 | <Expanded> |
| 1345 | false != false |
| 1346 | </Expanded> |
| 1347 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1348 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1349 | <Original> |
| 1350 | true != true |
| 1351 | </Original> |
| 1352 | <Expanded> |
| 1353 | true != true |
| 1354 | </Expanded> |
| 1355 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1356 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1357 | <Original> |
| 1358 | !true |
| 1359 | </Original> |
| 1360 | <Expanded> |
| 1361 | false |
| 1362 | </Expanded> |
| 1363 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1364 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1365 | <Original> |
| 1366 | !true |
| 1367 | </Original> |
| 1368 | <Expanded> |
| 1369 | !true |
| 1370 | </Expanded> |
| 1371 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1372 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1373 | <Original> |
| 1374 | !trueValue |
| 1375 | </Original> |
| 1376 | <Expanded> |
| 1377 | false |
| 1378 | </Expanded> |
| 1379 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1380 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1381 | <Original> |
| 1382 | !trueValue |
| 1383 | </Original> |
| 1384 | <Expanded> |
| 1385 | !true |
| 1386 | </Expanded> |
| 1387 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1388 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1389 | <Original> |
| 1390 | !(1 == 1) |
| 1391 | </Original> |
| 1392 | <Expanded> |
| 1393 | false |
| 1394 | </Expanded> |
| 1395 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1396 | <Expression success="false" type="CHECK_FALSE" filename="projects/SelfTest/ConditionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1397 | <Original> |
| 1398 | !1 == 1 |
| 1399 | </Original> |
| 1400 | <Expanded> |
| 1401 | !(1 == 1) |
| 1402 | </Expanded> |
| 1403 | </Expression> |
| 1404 | <OverallResult success="false"/> |
| 1405 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1406 | <TestCase name="When checked exceptions are thrown they can be expected or unexpected"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1407 | <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1408 | <Original> |
| 1409 | thisThrows() |
| 1410 | </Original> |
| 1411 | <Expanded> |
| 1412 | thisThrows() |
| 1413 | </Expanded> |
| 1414 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1415 | <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1416 | <Original> |
| 1417 | thisDoesntThrow() |
| 1418 | </Original> |
| 1419 | <Expanded> |
| 1420 | thisDoesntThrow() |
| 1421 | </Expanded> |
| 1422 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1423 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1424 | <Original> |
| 1425 | thisThrows() |
| 1426 | </Original> |
| 1427 | <Expanded> |
| 1428 | thisThrows() |
| 1429 | </Expanded> |
| 1430 | </Expression> |
| 1431 | <OverallResult success="true"/> |
| 1432 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1433 | <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1434 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1435 | <Original> |
| 1436 | thisThrows() |
| 1437 | </Original> |
| 1438 | <Expanded> |
| 1439 | thisThrows() |
| 1440 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1441 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1442 | expected exception |
| 1443 | </Exception> |
| 1444 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1445 | <Expression success="false" type="CHECK_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1446 | <Original> |
| 1447 | thisDoesntThrow() |
| 1448 | </Original> |
| 1449 | <Expanded> |
| 1450 | thisDoesntThrow() |
| 1451 | </Expanded> |
| 1452 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1453 | <Expression success="false" type="CHECK_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1454 | <Original> |
| 1455 | thisThrows() |
| 1456 | </Original> |
| 1457 | <Expanded> |
| 1458 | thisThrows() |
| 1459 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1460 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1461 | expected exception |
| 1462 | </Exception> |
| 1463 | </Expression> |
| 1464 | <OverallResult success="false"/> |
| 1465 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1466 | <TestCase name="When unchecked exceptions are thrown directly they are always failures"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1467 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1468 | unexpected exception |
| 1469 | </Exception> |
| 1470 | <OverallResult success="false"/> |
| 1471 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1472 | <TestCase name="An unchecked exception reports the line of the last assertion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1473 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1474 | <Original> |
| 1475 | 1 == 1 |
| 1476 | </Original> |
| 1477 | <Expanded> |
| 1478 | 1 == 1 |
| 1479 | </Expanded> |
| 1480 | </Expression> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1481 | <Expression success="false" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1482 | <Original> |
| 1483 | {Unknown expression after the reported line} |
| 1484 | </Original> |
| 1485 | <Expanded> |
| 1486 | {Unknown expression after the reported line} |
| 1487 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1488 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1489 | unexpected exception |
| 1490 | </Exception> |
| 1491 | </Expression> |
| 1492 | <OverallResult success="false"/> |
| 1493 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1494 | <TestCase name="When unchecked exceptions are thrown from sections they are always failures"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1495 | <Section name="section name"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1496 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1497 | unexpected exception |
| 1498 | </Exception> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 1499 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1500 | </Section> |
| 1501 | <OverallResult success="false"/> |
| 1502 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1503 | <TestCase name="When unchecked exceptions are thrown from functions they are always failures"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1504 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1505 | <Original> |
| 1506 | thisThrows() == 0 |
| 1507 | </Original> |
| 1508 | <Expanded> |
| 1509 | thisThrows() == 0 |
| 1510 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1511 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1512 | expected exception |
| 1513 | </Exception> |
| 1514 | </Expression> |
| 1515 | <OverallResult success="false"/> |
| 1516 | </TestCase> |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1517 | <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1518 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1519 | <Original> |
| 1520 | thisThrows() == 0 |
| 1521 | </Original> |
| 1522 | <Expanded> |
| 1523 | thisThrows() == 0 |
| 1524 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1525 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 1bccc03 | 2014-04-12 19:20:46 +0100 | [diff] [blame] | 1526 | expected exception |
| 1527 | </Exception> |
| 1528 | </Expression> |
| 1529 | <OverallResult success="false"/> |
| 1530 | </TestCase> |
| 1531 | <TestCase name="When unchecked exceptions are thrown during a CHECK the test should abort and fail"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1532 | <Expression success="false" type="CHECK" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | a176b93 | 2014-04-12 19:07:24 +0100 | [diff] [blame] | 1533 | <Original> |
| 1534 | thisThrows() == 0 |
| 1535 | </Original> |
| 1536 | <Expanded> |
| 1537 | thisThrows() == 0 |
| 1538 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1539 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | a176b93 | 2014-04-12 19:07:24 +0100 | [diff] [blame] | 1540 | expected exception |
| 1541 | </Exception> |
| 1542 | </Expression> |
| 1543 | <OverallResult success="false"/> |
| 1544 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1545 | <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 1546 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1547 | </TestCase> |
Phil Nash | a49f088 | 2015-11-18 08:39:21 +0000 | [diff] [blame^] | 1548 | <TestCase name="Non-std exceptions can be translated"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1549 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1550 | custom exception |
| 1551 | </Exception> |
| 1552 | <OverallResult success="false"/> |
| 1553 | </TestCase> |
Phil Nash | a49f088 | 2015-11-18 08:39:21 +0000 | [diff] [blame^] | 1554 | <TestCase name="Custom std-exceptions can be custom translated"> |
| 1555 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1556 | custom std exception |
| 1557 | </Exception> |
| 1558 | <OverallResult success="false"/> |
| 1559 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1560 | <TestCase name="Custom exceptions can be translated when testing for nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1561 | <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1562 | <Original> |
| 1563 | throwCustom() |
| 1564 | </Original> |
| 1565 | <Expanded> |
| 1566 | throwCustom() |
| 1567 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1568 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1569 | custom exception - not std |
| 1570 | </Exception> |
| 1571 | </Expression> |
| 1572 | <OverallResult success="false"/> |
| 1573 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1574 | <TestCase name="Custom exceptions can be translated when testing for throwing as something else"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1575 | <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1576 | <Original> |
| 1577 | throwCustom() |
| 1578 | </Original> |
| 1579 | <Expanded> |
| 1580 | throwCustom() |
| 1581 | </Expanded> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1582 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1583 | custom exception - not std |
| 1584 | </Exception> |
| 1585 | </Expression> |
| 1586 | <OverallResult success="false"/> |
| 1587 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1588 | <TestCase name="Unexpected exceptions can be translated"> |
Phil Nash | a99e75b | 2014-12-11 23:40:29 +0000 | [diff] [blame] | 1589 | <Exception filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1590 | 3.14 |
| 1591 | </Exception> |
| 1592 | <OverallResult success="false"/> |
| 1593 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1594 | <TestCase name="NotImplemented exception"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1595 | <Expression success="true" type="REQUIRE_THROWS" filename="projects/SelfTest/ExceptionTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1596 | <Original> |
| 1597 | thisFunctionNotImplemented( 7 ) |
| 1598 | </Original> |
| 1599 | <Expanded> |
| 1600 | thisFunctionNotImplemented( 7 ) |
| 1601 | </Expanded> |
| 1602 | </Expression> |
| 1603 | <OverallResult success="true"/> |
| 1604 | </TestCase> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1605 | <TestCase name="Exception messages can be tested for"> |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1606 | <Section name="exact match"> |
| 1607 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1608 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1609 | thisThrows(), "expected exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1610 | </Original> |
| 1611 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1612 | thisThrows(), "expected exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1613 | </Expanded> |
| 1614 | </Expression> |
| 1615 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 1616 | </Section> |
| 1617 | <Section name="different case"> |
| 1618 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1619 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1620 | thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1621 | </Original> |
| 1622 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1623 | thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1624 | </Expanded> |
| 1625 | </Expression> |
| 1626 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 1627 | </Section> |
| 1628 | <Section name="wildcarded"> |
| 1629 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1630 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1631 | thisThrows(), StartsWith( "expected" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1632 | </Original> |
| 1633 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1634 | thisThrows(), StartsWith( "expected" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1635 | </Expanded> |
| 1636 | </Expression> |
| 1637 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1638 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1639 | thisThrows(), EndsWith( "exception" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1640 | </Original> |
| 1641 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1642 | thisThrows(), EndsWith( "exception" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1643 | </Expanded> |
| 1644 | </Expression> |
| 1645 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1646 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1647 | thisThrows(), Contains( "except" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1648 | </Original> |
| 1649 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1650 | thisThrows(), Contains( "except" ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1651 | </Expanded> |
| 1652 | </Expression> |
| 1653 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1654 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1655 | thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1656 | </Original> |
| 1657 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1658 | thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1659 | </Expanded> |
| 1660 | </Expression> |
| 1661 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 1662 | </Section> |
| 1663 | <OverallResult success="true"/> |
| 1664 | </TestCase> |
| 1665 | <TestCase name="Mismatching exception messages failing the test"> |
| 1666 | <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1667 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1668 | thisThrows(), "expected exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1669 | </Original> |
| 1670 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1671 | thisThrows(), "expected exception" |
Phil Nash | 2104ca2 | 2015-07-13 15:03:04 +0100 | [diff] [blame] | 1672 | </Expanded> |
| 1673 | </Expression> |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1674 | <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" > |
| 1675 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 1676 | thisThrows(), "should fail" |
Phil Nash | 85de743 | 2015-07-13 06:34:41 +0100 | [diff] [blame] | 1677 | </Original> |
| 1678 | <Expanded> |
| 1679 | expected exception |
| 1680 | </Expanded> |
| 1681 | </Expression> |
| 1682 | <OverallResult success="false"/> |
| 1683 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 1684 | <TestCase name="Generators over two ranges"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1685 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1686 | <Original> |
| 1687 | multiply( i, 2 ) == i*2 |
| 1688 | </Original> |
| 1689 | <Expanded> |
| 1690 | 2 == 2 |
| 1691 | </Expanded> |
| 1692 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1693 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1694 | <Original> |
| 1695 | multiply( j, 2 ) == j*2 |
| 1696 | </Original> |
| 1697 | <Expanded> |
| 1698 | 200 == 200 |
| 1699 | </Expanded> |
| 1700 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1701 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1702 | <Original> |
| 1703 | multiply( i, 2 ) == i*2 |
| 1704 | </Original> |
| 1705 | <Expanded> |
| 1706 | 4 == 4 |
| 1707 | </Expanded> |
| 1708 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1709 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1710 | <Original> |
| 1711 | multiply( j, 2 ) == j*2 |
| 1712 | </Original> |
| 1713 | <Expanded> |
| 1714 | 200 == 200 |
| 1715 | </Expanded> |
| 1716 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1717 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1718 | <Original> |
| 1719 | multiply( i, 2 ) == i*2 |
| 1720 | </Original> |
| 1721 | <Expanded> |
| 1722 | 6 == 6 |
| 1723 | </Expanded> |
| 1724 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1725 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1726 | <Original> |
| 1727 | multiply( j, 2 ) == j*2 |
| 1728 | </Original> |
| 1729 | <Expanded> |
| 1730 | 200 == 200 |
| 1731 | </Expanded> |
| 1732 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1733 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1734 | <Original> |
| 1735 | multiply( i, 2 ) == i*2 |
| 1736 | </Original> |
| 1737 | <Expanded> |
| 1738 | 8 == 8 |
| 1739 | </Expanded> |
| 1740 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1741 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1742 | <Original> |
| 1743 | multiply( j, 2 ) == j*2 |
| 1744 | </Original> |
| 1745 | <Expanded> |
| 1746 | 200 == 200 |
| 1747 | </Expanded> |
| 1748 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1749 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1750 | <Original> |
| 1751 | multiply( i, 2 ) == i*2 |
| 1752 | </Original> |
| 1753 | <Expanded> |
| 1754 | 10 == 10 |
| 1755 | </Expanded> |
| 1756 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1757 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1758 | <Original> |
| 1759 | multiply( j, 2 ) == j*2 |
| 1760 | </Original> |
| 1761 | <Expanded> |
| 1762 | 200 == 200 |
| 1763 | </Expanded> |
| 1764 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1765 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1766 | <Original> |
| 1767 | multiply( i, 2 ) == i*2 |
| 1768 | </Original> |
| 1769 | <Expanded> |
| 1770 | 30 == 30 |
| 1771 | </Expanded> |
| 1772 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1773 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1774 | <Original> |
| 1775 | multiply( j, 2 ) == j*2 |
| 1776 | </Original> |
| 1777 | <Expanded> |
| 1778 | 200 == 200 |
| 1779 | </Expanded> |
| 1780 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1781 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1782 | <Original> |
| 1783 | multiply( i, 2 ) == i*2 |
| 1784 | </Original> |
| 1785 | <Expanded> |
| 1786 | 40 == 40 |
| 1787 | </Expanded> |
| 1788 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1789 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1790 | <Original> |
| 1791 | multiply( j, 2 ) == j*2 |
| 1792 | </Original> |
| 1793 | <Expanded> |
| 1794 | 200 == 200 |
| 1795 | </Expanded> |
| 1796 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1797 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1798 | <Original> |
| 1799 | multiply( i, 2 ) == i*2 |
| 1800 | </Original> |
| 1801 | <Expanded> |
| 1802 | 42 == 42 |
| 1803 | </Expanded> |
| 1804 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1805 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1806 | <Original> |
| 1807 | multiply( j, 2 ) == j*2 |
| 1808 | </Original> |
| 1809 | <Expanded> |
| 1810 | 200 == 200 |
| 1811 | </Expanded> |
| 1812 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1813 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1814 | <Original> |
| 1815 | multiply( i, 2 ) == i*2 |
| 1816 | </Original> |
| 1817 | <Expanded> |
| 1818 | 72 == 72 |
| 1819 | </Expanded> |
| 1820 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1821 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1822 | <Original> |
| 1823 | multiply( j, 2 ) == j*2 |
| 1824 | </Original> |
| 1825 | <Expanded> |
| 1826 | 200 == 200 |
| 1827 | </Expanded> |
| 1828 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1829 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1830 | <Original> |
| 1831 | multiply( i, 2 ) == i*2 |
| 1832 | </Original> |
| 1833 | <Expanded> |
| 1834 | 2 == 2 |
| 1835 | </Expanded> |
| 1836 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1837 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1838 | <Original> |
| 1839 | multiply( j, 2 ) == j*2 |
| 1840 | </Original> |
| 1841 | <Expanded> |
| 1842 | 202 == 202 |
| 1843 | </Expanded> |
| 1844 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1845 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1846 | <Original> |
| 1847 | multiply( i, 2 ) == i*2 |
| 1848 | </Original> |
| 1849 | <Expanded> |
| 1850 | 4 == 4 |
| 1851 | </Expanded> |
| 1852 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1853 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1854 | <Original> |
| 1855 | multiply( j, 2 ) == j*2 |
| 1856 | </Original> |
| 1857 | <Expanded> |
| 1858 | 202 == 202 |
| 1859 | </Expanded> |
| 1860 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1861 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1862 | <Original> |
| 1863 | multiply( i, 2 ) == i*2 |
| 1864 | </Original> |
| 1865 | <Expanded> |
| 1866 | 6 == 6 |
| 1867 | </Expanded> |
| 1868 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1869 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1870 | <Original> |
| 1871 | multiply( j, 2 ) == j*2 |
| 1872 | </Original> |
| 1873 | <Expanded> |
| 1874 | 202 == 202 |
| 1875 | </Expanded> |
| 1876 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1877 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1878 | <Original> |
| 1879 | multiply( i, 2 ) == i*2 |
| 1880 | </Original> |
| 1881 | <Expanded> |
| 1882 | 8 == 8 |
| 1883 | </Expanded> |
| 1884 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1885 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1886 | <Original> |
| 1887 | multiply( j, 2 ) == j*2 |
| 1888 | </Original> |
| 1889 | <Expanded> |
| 1890 | 202 == 202 |
| 1891 | </Expanded> |
| 1892 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1893 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1894 | <Original> |
| 1895 | multiply( i, 2 ) == i*2 |
| 1896 | </Original> |
| 1897 | <Expanded> |
| 1898 | 10 == 10 |
| 1899 | </Expanded> |
| 1900 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1901 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1902 | <Original> |
| 1903 | multiply( j, 2 ) == j*2 |
| 1904 | </Original> |
| 1905 | <Expanded> |
| 1906 | 202 == 202 |
| 1907 | </Expanded> |
| 1908 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1909 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1910 | <Original> |
| 1911 | multiply( i, 2 ) == i*2 |
| 1912 | </Original> |
| 1913 | <Expanded> |
| 1914 | 30 == 30 |
| 1915 | </Expanded> |
| 1916 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1917 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1918 | <Original> |
| 1919 | multiply( j, 2 ) == j*2 |
| 1920 | </Original> |
| 1921 | <Expanded> |
| 1922 | 202 == 202 |
| 1923 | </Expanded> |
| 1924 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1925 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1926 | <Original> |
| 1927 | multiply( i, 2 ) == i*2 |
| 1928 | </Original> |
| 1929 | <Expanded> |
| 1930 | 40 == 40 |
| 1931 | </Expanded> |
| 1932 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1933 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1934 | <Original> |
| 1935 | multiply( j, 2 ) == j*2 |
| 1936 | </Original> |
| 1937 | <Expanded> |
| 1938 | 202 == 202 |
| 1939 | </Expanded> |
| 1940 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1941 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1942 | <Original> |
| 1943 | multiply( i, 2 ) == i*2 |
| 1944 | </Original> |
| 1945 | <Expanded> |
| 1946 | 42 == 42 |
| 1947 | </Expanded> |
| 1948 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1949 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1950 | <Original> |
| 1951 | multiply( j, 2 ) == j*2 |
| 1952 | </Original> |
| 1953 | <Expanded> |
| 1954 | 202 == 202 |
| 1955 | </Expanded> |
| 1956 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1957 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1958 | <Original> |
| 1959 | multiply( i, 2 ) == i*2 |
| 1960 | </Original> |
| 1961 | <Expanded> |
| 1962 | 72 == 72 |
| 1963 | </Expanded> |
| 1964 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1965 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1966 | <Original> |
| 1967 | multiply( j, 2 ) == j*2 |
| 1968 | </Original> |
| 1969 | <Expanded> |
| 1970 | 202 == 202 |
| 1971 | </Expanded> |
| 1972 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1973 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1974 | <Original> |
| 1975 | multiply( i, 2 ) == i*2 |
| 1976 | </Original> |
| 1977 | <Expanded> |
| 1978 | 2 == 2 |
| 1979 | </Expanded> |
| 1980 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1981 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1982 | <Original> |
| 1983 | multiply( j, 2 ) == j*2 |
| 1984 | </Original> |
| 1985 | <Expanded> |
| 1986 | 204 == 204 |
| 1987 | </Expanded> |
| 1988 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1989 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1990 | <Original> |
| 1991 | multiply( i, 2 ) == i*2 |
| 1992 | </Original> |
| 1993 | <Expanded> |
| 1994 | 4 == 4 |
| 1995 | </Expanded> |
| 1996 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 1997 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 1998 | <Original> |
| 1999 | multiply( j, 2 ) == j*2 |
| 2000 | </Original> |
| 2001 | <Expanded> |
| 2002 | 204 == 204 |
| 2003 | </Expanded> |
| 2004 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2005 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2006 | <Original> |
| 2007 | multiply( i, 2 ) == i*2 |
| 2008 | </Original> |
| 2009 | <Expanded> |
| 2010 | 6 == 6 |
| 2011 | </Expanded> |
| 2012 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2013 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2014 | <Original> |
| 2015 | multiply( j, 2 ) == j*2 |
| 2016 | </Original> |
| 2017 | <Expanded> |
| 2018 | 204 == 204 |
| 2019 | </Expanded> |
| 2020 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2021 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2022 | <Original> |
| 2023 | multiply( i, 2 ) == i*2 |
| 2024 | </Original> |
| 2025 | <Expanded> |
| 2026 | 8 == 8 |
| 2027 | </Expanded> |
| 2028 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2029 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2030 | <Original> |
| 2031 | multiply( j, 2 ) == j*2 |
| 2032 | </Original> |
| 2033 | <Expanded> |
| 2034 | 204 == 204 |
| 2035 | </Expanded> |
| 2036 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2037 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2038 | <Original> |
| 2039 | multiply( i, 2 ) == i*2 |
| 2040 | </Original> |
| 2041 | <Expanded> |
| 2042 | 10 == 10 |
| 2043 | </Expanded> |
| 2044 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2045 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2046 | <Original> |
| 2047 | multiply( j, 2 ) == j*2 |
| 2048 | </Original> |
| 2049 | <Expanded> |
| 2050 | 204 == 204 |
| 2051 | </Expanded> |
| 2052 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2053 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2054 | <Original> |
| 2055 | multiply( i, 2 ) == i*2 |
| 2056 | </Original> |
| 2057 | <Expanded> |
| 2058 | 30 == 30 |
| 2059 | </Expanded> |
| 2060 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2061 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2062 | <Original> |
| 2063 | multiply( j, 2 ) == j*2 |
| 2064 | </Original> |
| 2065 | <Expanded> |
| 2066 | 204 == 204 |
| 2067 | </Expanded> |
| 2068 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2069 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2070 | <Original> |
| 2071 | multiply( i, 2 ) == i*2 |
| 2072 | </Original> |
| 2073 | <Expanded> |
| 2074 | 40 == 40 |
| 2075 | </Expanded> |
| 2076 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2077 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2078 | <Original> |
| 2079 | multiply( j, 2 ) == j*2 |
| 2080 | </Original> |
| 2081 | <Expanded> |
| 2082 | 204 == 204 |
| 2083 | </Expanded> |
| 2084 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2085 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2086 | <Original> |
| 2087 | multiply( i, 2 ) == i*2 |
| 2088 | </Original> |
| 2089 | <Expanded> |
| 2090 | 42 == 42 |
| 2091 | </Expanded> |
| 2092 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2093 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2094 | <Original> |
| 2095 | multiply( j, 2 ) == j*2 |
| 2096 | </Original> |
| 2097 | <Expanded> |
| 2098 | 204 == 204 |
| 2099 | </Expanded> |
| 2100 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2101 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2102 | <Original> |
| 2103 | multiply( i, 2 ) == i*2 |
| 2104 | </Original> |
| 2105 | <Expanded> |
| 2106 | 72 == 72 |
| 2107 | </Expanded> |
| 2108 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2109 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2110 | <Original> |
| 2111 | multiply( j, 2 ) == j*2 |
| 2112 | </Original> |
| 2113 | <Expanded> |
| 2114 | 204 == 204 |
| 2115 | </Expanded> |
| 2116 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2117 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2118 | <Original> |
| 2119 | multiply( i, 2 ) == i*2 |
| 2120 | </Original> |
| 2121 | <Expanded> |
| 2122 | 2 == 2 |
| 2123 | </Expanded> |
| 2124 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2125 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2126 | <Original> |
| 2127 | multiply( j, 2 ) == j*2 |
| 2128 | </Original> |
| 2129 | <Expanded> |
| 2130 | 206 == 206 |
| 2131 | </Expanded> |
| 2132 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2133 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2134 | <Original> |
| 2135 | multiply( i, 2 ) == i*2 |
| 2136 | </Original> |
| 2137 | <Expanded> |
| 2138 | 4 == 4 |
| 2139 | </Expanded> |
| 2140 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2141 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2142 | <Original> |
| 2143 | multiply( j, 2 ) == j*2 |
| 2144 | </Original> |
| 2145 | <Expanded> |
| 2146 | 206 == 206 |
| 2147 | </Expanded> |
| 2148 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2149 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2150 | <Original> |
| 2151 | multiply( i, 2 ) == i*2 |
| 2152 | </Original> |
| 2153 | <Expanded> |
| 2154 | 6 == 6 |
| 2155 | </Expanded> |
| 2156 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2157 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2158 | <Original> |
| 2159 | multiply( j, 2 ) == j*2 |
| 2160 | </Original> |
| 2161 | <Expanded> |
| 2162 | 206 == 206 |
| 2163 | </Expanded> |
| 2164 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2165 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2166 | <Original> |
| 2167 | multiply( i, 2 ) == i*2 |
| 2168 | </Original> |
| 2169 | <Expanded> |
| 2170 | 8 == 8 |
| 2171 | </Expanded> |
| 2172 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2173 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2174 | <Original> |
| 2175 | multiply( j, 2 ) == j*2 |
| 2176 | </Original> |
| 2177 | <Expanded> |
| 2178 | 206 == 206 |
| 2179 | </Expanded> |
| 2180 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2181 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2182 | <Original> |
| 2183 | multiply( i, 2 ) == i*2 |
| 2184 | </Original> |
| 2185 | <Expanded> |
| 2186 | 10 == 10 |
| 2187 | </Expanded> |
| 2188 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2189 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2190 | <Original> |
| 2191 | multiply( j, 2 ) == j*2 |
| 2192 | </Original> |
| 2193 | <Expanded> |
| 2194 | 206 == 206 |
| 2195 | </Expanded> |
| 2196 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2197 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2198 | <Original> |
| 2199 | multiply( i, 2 ) == i*2 |
| 2200 | </Original> |
| 2201 | <Expanded> |
| 2202 | 30 == 30 |
| 2203 | </Expanded> |
| 2204 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2205 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2206 | <Original> |
| 2207 | multiply( j, 2 ) == j*2 |
| 2208 | </Original> |
| 2209 | <Expanded> |
| 2210 | 206 == 206 |
| 2211 | </Expanded> |
| 2212 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2213 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2214 | <Original> |
| 2215 | multiply( i, 2 ) == i*2 |
| 2216 | </Original> |
| 2217 | <Expanded> |
| 2218 | 40 == 40 |
| 2219 | </Expanded> |
| 2220 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2221 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2222 | <Original> |
| 2223 | multiply( j, 2 ) == j*2 |
| 2224 | </Original> |
| 2225 | <Expanded> |
| 2226 | 206 == 206 |
| 2227 | </Expanded> |
| 2228 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2229 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2230 | <Original> |
| 2231 | multiply( i, 2 ) == i*2 |
| 2232 | </Original> |
| 2233 | <Expanded> |
| 2234 | 42 == 42 |
| 2235 | </Expanded> |
| 2236 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2237 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2238 | <Original> |
| 2239 | multiply( j, 2 ) == j*2 |
| 2240 | </Original> |
| 2241 | <Expanded> |
| 2242 | 206 == 206 |
| 2243 | </Expanded> |
| 2244 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2245 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2246 | <Original> |
| 2247 | multiply( i, 2 ) == i*2 |
| 2248 | </Original> |
| 2249 | <Expanded> |
| 2250 | 72 == 72 |
| 2251 | </Expanded> |
| 2252 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2253 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2254 | <Original> |
| 2255 | multiply( j, 2 ) == j*2 |
| 2256 | </Original> |
| 2257 | <Expanded> |
| 2258 | 206 == 206 |
| 2259 | </Expanded> |
| 2260 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2261 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2262 | <Original> |
| 2263 | multiply( i, 2 ) == i*2 |
| 2264 | </Original> |
| 2265 | <Expanded> |
| 2266 | 2 == 2 |
| 2267 | </Expanded> |
| 2268 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2269 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2270 | <Original> |
| 2271 | multiply( j, 2 ) == j*2 |
| 2272 | </Original> |
| 2273 | <Expanded> |
| 2274 | 208 == 208 |
| 2275 | </Expanded> |
| 2276 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2277 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2278 | <Original> |
| 2279 | multiply( i, 2 ) == i*2 |
| 2280 | </Original> |
| 2281 | <Expanded> |
| 2282 | 4 == 4 |
| 2283 | </Expanded> |
| 2284 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2285 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2286 | <Original> |
| 2287 | multiply( j, 2 ) == j*2 |
| 2288 | </Original> |
| 2289 | <Expanded> |
| 2290 | 208 == 208 |
| 2291 | </Expanded> |
| 2292 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2293 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2294 | <Original> |
| 2295 | multiply( i, 2 ) == i*2 |
| 2296 | </Original> |
| 2297 | <Expanded> |
| 2298 | 6 == 6 |
| 2299 | </Expanded> |
| 2300 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2301 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2302 | <Original> |
| 2303 | multiply( j, 2 ) == j*2 |
| 2304 | </Original> |
| 2305 | <Expanded> |
| 2306 | 208 == 208 |
| 2307 | </Expanded> |
| 2308 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2309 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2310 | <Original> |
| 2311 | multiply( i, 2 ) == i*2 |
| 2312 | </Original> |
| 2313 | <Expanded> |
| 2314 | 8 == 8 |
| 2315 | </Expanded> |
| 2316 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2317 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2318 | <Original> |
| 2319 | multiply( j, 2 ) == j*2 |
| 2320 | </Original> |
| 2321 | <Expanded> |
| 2322 | 208 == 208 |
| 2323 | </Expanded> |
| 2324 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2325 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2326 | <Original> |
| 2327 | multiply( i, 2 ) == i*2 |
| 2328 | </Original> |
| 2329 | <Expanded> |
| 2330 | 10 == 10 |
| 2331 | </Expanded> |
| 2332 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2333 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2334 | <Original> |
| 2335 | multiply( j, 2 ) == j*2 |
| 2336 | </Original> |
| 2337 | <Expanded> |
| 2338 | 208 == 208 |
| 2339 | </Expanded> |
| 2340 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2341 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2342 | <Original> |
| 2343 | multiply( i, 2 ) == i*2 |
| 2344 | </Original> |
| 2345 | <Expanded> |
| 2346 | 30 == 30 |
| 2347 | </Expanded> |
| 2348 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2349 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2350 | <Original> |
| 2351 | multiply( j, 2 ) == j*2 |
| 2352 | </Original> |
| 2353 | <Expanded> |
| 2354 | 208 == 208 |
| 2355 | </Expanded> |
| 2356 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2357 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2358 | <Original> |
| 2359 | multiply( i, 2 ) == i*2 |
| 2360 | </Original> |
| 2361 | <Expanded> |
| 2362 | 40 == 40 |
| 2363 | </Expanded> |
| 2364 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2365 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2366 | <Original> |
| 2367 | multiply( j, 2 ) == j*2 |
| 2368 | </Original> |
| 2369 | <Expanded> |
| 2370 | 208 == 208 |
| 2371 | </Expanded> |
| 2372 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2373 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2374 | <Original> |
| 2375 | multiply( i, 2 ) == i*2 |
| 2376 | </Original> |
| 2377 | <Expanded> |
| 2378 | 42 == 42 |
| 2379 | </Expanded> |
| 2380 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2381 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2382 | <Original> |
| 2383 | multiply( j, 2 ) == j*2 |
| 2384 | </Original> |
| 2385 | <Expanded> |
| 2386 | 208 == 208 |
| 2387 | </Expanded> |
| 2388 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2389 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2390 | <Original> |
| 2391 | multiply( i, 2 ) == i*2 |
| 2392 | </Original> |
| 2393 | <Expanded> |
| 2394 | 72 == 72 |
| 2395 | </Expanded> |
| 2396 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2397 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2398 | <Original> |
| 2399 | multiply( j, 2 ) == j*2 |
| 2400 | </Original> |
| 2401 | <Expanded> |
| 2402 | 208 == 208 |
| 2403 | </Expanded> |
| 2404 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2405 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2406 | <Original> |
| 2407 | multiply( i, 2 ) == i*2 |
| 2408 | </Original> |
| 2409 | <Expanded> |
| 2410 | 2 == 2 |
| 2411 | </Expanded> |
| 2412 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2413 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2414 | <Original> |
| 2415 | multiply( j, 2 ) == j*2 |
| 2416 | </Original> |
| 2417 | <Expanded> |
| 2418 | 210 == 210 |
| 2419 | </Expanded> |
| 2420 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2421 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2422 | <Original> |
| 2423 | multiply( i, 2 ) == i*2 |
| 2424 | </Original> |
| 2425 | <Expanded> |
| 2426 | 4 == 4 |
| 2427 | </Expanded> |
| 2428 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2429 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2430 | <Original> |
| 2431 | multiply( j, 2 ) == j*2 |
| 2432 | </Original> |
| 2433 | <Expanded> |
| 2434 | 210 == 210 |
| 2435 | </Expanded> |
| 2436 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2437 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2438 | <Original> |
| 2439 | multiply( i, 2 ) == i*2 |
| 2440 | </Original> |
| 2441 | <Expanded> |
| 2442 | 6 == 6 |
| 2443 | </Expanded> |
| 2444 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2445 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2446 | <Original> |
| 2447 | multiply( j, 2 ) == j*2 |
| 2448 | </Original> |
| 2449 | <Expanded> |
| 2450 | 210 == 210 |
| 2451 | </Expanded> |
| 2452 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2453 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2454 | <Original> |
| 2455 | multiply( i, 2 ) == i*2 |
| 2456 | </Original> |
| 2457 | <Expanded> |
| 2458 | 8 == 8 |
| 2459 | </Expanded> |
| 2460 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2461 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2462 | <Original> |
| 2463 | multiply( j, 2 ) == j*2 |
| 2464 | </Original> |
| 2465 | <Expanded> |
| 2466 | 210 == 210 |
| 2467 | </Expanded> |
| 2468 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2469 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2470 | <Original> |
| 2471 | multiply( i, 2 ) == i*2 |
| 2472 | </Original> |
| 2473 | <Expanded> |
| 2474 | 10 == 10 |
| 2475 | </Expanded> |
| 2476 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2477 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2478 | <Original> |
| 2479 | multiply( j, 2 ) == j*2 |
| 2480 | </Original> |
| 2481 | <Expanded> |
| 2482 | 210 == 210 |
| 2483 | </Expanded> |
| 2484 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2485 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2486 | <Original> |
| 2487 | multiply( i, 2 ) == i*2 |
| 2488 | </Original> |
| 2489 | <Expanded> |
| 2490 | 30 == 30 |
| 2491 | </Expanded> |
| 2492 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2493 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2494 | <Original> |
| 2495 | multiply( j, 2 ) == j*2 |
| 2496 | </Original> |
| 2497 | <Expanded> |
| 2498 | 210 == 210 |
| 2499 | </Expanded> |
| 2500 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2501 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2502 | <Original> |
| 2503 | multiply( i, 2 ) == i*2 |
| 2504 | </Original> |
| 2505 | <Expanded> |
| 2506 | 40 == 40 |
| 2507 | </Expanded> |
| 2508 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2509 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2510 | <Original> |
| 2511 | multiply( j, 2 ) == j*2 |
| 2512 | </Original> |
| 2513 | <Expanded> |
| 2514 | 210 == 210 |
| 2515 | </Expanded> |
| 2516 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2517 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2518 | <Original> |
| 2519 | multiply( i, 2 ) == i*2 |
| 2520 | </Original> |
| 2521 | <Expanded> |
| 2522 | 42 == 42 |
| 2523 | </Expanded> |
| 2524 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2525 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2526 | <Original> |
| 2527 | multiply( j, 2 ) == j*2 |
| 2528 | </Original> |
| 2529 | <Expanded> |
| 2530 | 210 == 210 |
| 2531 | </Expanded> |
| 2532 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2533 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2534 | <Original> |
| 2535 | multiply( i, 2 ) == i*2 |
| 2536 | </Original> |
| 2537 | <Expanded> |
| 2538 | 72 == 72 |
| 2539 | </Expanded> |
| 2540 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2541 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2542 | <Original> |
| 2543 | multiply( j, 2 ) == j*2 |
| 2544 | </Original> |
| 2545 | <Expanded> |
| 2546 | 210 == 210 |
| 2547 | </Expanded> |
| 2548 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2549 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2550 | <Original> |
| 2551 | multiply( i, 2 ) == i*2 |
| 2552 | </Original> |
| 2553 | <Expanded> |
| 2554 | 2 == 2 |
| 2555 | </Expanded> |
| 2556 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2557 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2558 | <Original> |
| 2559 | multiply( j, 2 ) == j*2 |
| 2560 | </Original> |
| 2561 | <Expanded> |
| 2562 | 212 == 212 |
| 2563 | </Expanded> |
| 2564 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2565 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2566 | <Original> |
| 2567 | multiply( i, 2 ) == i*2 |
| 2568 | </Original> |
| 2569 | <Expanded> |
| 2570 | 4 == 4 |
| 2571 | </Expanded> |
| 2572 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2573 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2574 | <Original> |
| 2575 | multiply( j, 2 ) == j*2 |
| 2576 | </Original> |
| 2577 | <Expanded> |
| 2578 | 212 == 212 |
| 2579 | </Expanded> |
| 2580 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2581 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2582 | <Original> |
| 2583 | multiply( i, 2 ) == i*2 |
| 2584 | </Original> |
| 2585 | <Expanded> |
| 2586 | 6 == 6 |
| 2587 | </Expanded> |
| 2588 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2589 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2590 | <Original> |
| 2591 | multiply( j, 2 ) == j*2 |
| 2592 | </Original> |
| 2593 | <Expanded> |
| 2594 | 212 == 212 |
| 2595 | </Expanded> |
| 2596 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2597 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2598 | <Original> |
| 2599 | multiply( i, 2 ) == i*2 |
| 2600 | </Original> |
| 2601 | <Expanded> |
| 2602 | 8 == 8 |
| 2603 | </Expanded> |
| 2604 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2605 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2606 | <Original> |
| 2607 | multiply( j, 2 ) == j*2 |
| 2608 | </Original> |
| 2609 | <Expanded> |
| 2610 | 212 == 212 |
| 2611 | </Expanded> |
| 2612 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2613 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2614 | <Original> |
| 2615 | multiply( i, 2 ) == i*2 |
| 2616 | </Original> |
| 2617 | <Expanded> |
| 2618 | 10 == 10 |
| 2619 | </Expanded> |
| 2620 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2621 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2622 | <Original> |
| 2623 | multiply( j, 2 ) == j*2 |
| 2624 | </Original> |
| 2625 | <Expanded> |
| 2626 | 212 == 212 |
| 2627 | </Expanded> |
| 2628 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2629 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2630 | <Original> |
| 2631 | multiply( i, 2 ) == i*2 |
| 2632 | </Original> |
| 2633 | <Expanded> |
| 2634 | 30 == 30 |
| 2635 | </Expanded> |
| 2636 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2637 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2638 | <Original> |
| 2639 | multiply( j, 2 ) == j*2 |
| 2640 | </Original> |
| 2641 | <Expanded> |
| 2642 | 212 == 212 |
| 2643 | </Expanded> |
| 2644 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2645 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2646 | <Original> |
| 2647 | multiply( i, 2 ) == i*2 |
| 2648 | </Original> |
| 2649 | <Expanded> |
| 2650 | 40 == 40 |
| 2651 | </Expanded> |
| 2652 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2653 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2654 | <Original> |
| 2655 | multiply( j, 2 ) == j*2 |
| 2656 | </Original> |
| 2657 | <Expanded> |
| 2658 | 212 == 212 |
| 2659 | </Expanded> |
| 2660 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2661 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2662 | <Original> |
| 2663 | multiply( i, 2 ) == i*2 |
| 2664 | </Original> |
| 2665 | <Expanded> |
| 2666 | 42 == 42 |
| 2667 | </Expanded> |
| 2668 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2669 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2670 | <Original> |
| 2671 | multiply( j, 2 ) == j*2 |
| 2672 | </Original> |
| 2673 | <Expanded> |
| 2674 | 212 == 212 |
| 2675 | </Expanded> |
| 2676 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2677 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2678 | <Original> |
| 2679 | multiply( i, 2 ) == i*2 |
| 2680 | </Original> |
| 2681 | <Expanded> |
| 2682 | 72 == 72 |
| 2683 | </Expanded> |
| 2684 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2685 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2686 | <Original> |
| 2687 | multiply( j, 2 ) == j*2 |
| 2688 | </Original> |
| 2689 | <Expanded> |
| 2690 | 212 == 212 |
| 2691 | </Expanded> |
| 2692 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2693 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2694 | <Original> |
| 2695 | multiply( i, 2 ) == i*2 |
| 2696 | </Original> |
| 2697 | <Expanded> |
| 2698 | 2 == 2 |
| 2699 | </Expanded> |
| 2700 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2701 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2702 | <Original> |
| 2703 | multiply( j, 2 ) == j*2 |
| 2704 | </Original> |
| 2705 | <Expanded> |
| 2706 | 214 == 214 |
| 2707 | </Expanded> |
| 2708 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2709 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2710 | <Original> |
| 2711 | multiply( i, 2 ) == i*2 |
| 2712 | </Original> |
| 2713 | <Expanded> |
| 2714 | 4 == 4 |
| 2715 | </Expanded> |
| 2716 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2717 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2718 | <Original> |
| 2719 | multiply( j, 2 ) == j*2 |
| 2720 | </Original> |
| 2721 | <Expanded> |
| 2722 | 214 == 214 |
| 2723 | </Expanded> |
| 2724 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2725 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2726 | <Original> |
| 2727 | multiply( i, 2 ) == i*2 |
| 2728 | </Original> |
| 2729 | <Expanded> |
| 2730 | 6 == 6 |
| 2731 | </Expanded> |
| 2732 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2733 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2734 | <Original> |
| 2735 | multiply( j, 2 ) == j*2 |
| 2736 | </Original> |
| 2737 | <Expanded> |
| 2738 | 214 == 214 |
| 2739 | </Expanded> |
| 2740 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2741 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2742 | <Original> |
| 2743 | multiply( i, 2 ) == i*2 |
| 2744 | </Original> |
| 2745 | <Expanded> |
| 2746 | 8 == 8 |
| 2747 | </Expanded> |
| 2748 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2749 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2750 | <Original> |
| 2751 | multiply( j, 2 ) == j*2 |
| 2752 | </Original> |
| 2753 | <Expanded> |
| 2754 | 214 == 214 |
| 2755 | </Expanded> |
| 2756 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2757 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2758 | <Original> |
| 2759 | multiply( i, 2 ) == i*2 |
| 2760 | </Original> |
| 2761 | <Expanded> |
| 2762 | 10 == 10 |
| 2763 | </Expanded> |
| 2764 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2765 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2766 | <Original> |
| 2767 | multiply( j, 2 ) == j*2 |
| 2768 | </Original> |
| 2769 | <Expanded> |
| 2770 | 214 == 214 |
| 2771 | </Expanded> |
| 2772 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2773 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2774 | <Original> |
| 2775 | multiply( i, 2 ) == i*2 |
| 2776 | </Original> |
| 2777 | <Expanded> |
| 2778 | 30 == 30 |
| 2779 | </Expanded> |
| 2780 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2781 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2782 | <Original> |
| 2783 | multiply( j, 2 ) == j*2 |
| 2784 | </Original> |
| 2785 | <Expanded> |
| 2786 | 214 == 214 |
| 2787 | </Expanded> |
| 2788 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2789 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2790 | <Original> |
| 2791 | multiply( i, 2 ) == i*2 |
| 2792 | </Original> |
| 2793 | <Expanded> |
| 2794 | 40 == 40 |
| 2795 | </Expanded> |
| 2796 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2797 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2798 | <Original> |
| 2799 | multiply( j, 2 ) == j*2 |
| 2800 | </Original> |
| 2801 | <Expanded> |
| 2802 | 214 == 214 |
| 2803 | </Expanded> |
| 2804 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2805 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2806 | <Original> |
| 2807 | multiply( i, 2 ) == i*2 |
| 2808 | </Original> |
| 2809 | <Expanded> |
| 2810 | 42 == 42 |
| 2811 | </Expanded> |
| 2812 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2813 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2814 | <Original> |
| 2815 | multiply( j, 2 ) == j*2 |
| 2816 | </Original> |
| 2817 | <Expanded> |
| 2818 | 214 == 214 |
| 2819 | </Expanded> |
| 2820 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2821 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2822 | <Original> |
| 2823 | multiply( i, 2 ) == i*2 |
| 2824 | </Original> |
| 2825 | <Expanded> |
| 2826 | 72 == 72 |
| 2827 | </Expanded> |
| 2828 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2829 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2830 | <Original> |
| 2831 | multiply( j, 2 ) == j*2 |
| 2832 | </Original> |
| 2833 | <Expanded> |
| 2834 | 214 == 214 |
| 2835 | </Expanded> |
| 2836 | </Expression> |
| 2837 | <OverallResult success="true"/> |
| 2838 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2839 | <TestCase name="Generator over a range of pairs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2840 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2841 | <Original> |
| 2842 | i->first == i->second-1 |
| 2843 | </Original> |
| 2844 | <Expanded> |
| 2845 | 0 == 0 |
| 2846 | </Expanded> |
| 2847 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2848 | <Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2849 | <Original> |
| 2850 | i->first == i->second-1 |
| 2851 | </Original> |
| 2852 | <Expanded> |
| 2853 | 2 == 2 |
| 2854 | </Expanded> |
| 2855 | </Expression> |
| 2856 | <OverallResult success="true"/> |
| 2857 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2858 | <TestCase name="INFO and WARN do not abort tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2859 | <Info> |
| 2860 | this is a message |
| 2861 | </Info> |
| 2862 | <Warning> |
| 2863 | this is a warning |
| 2864 | </Warning> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 2865 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2866 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2867 | <TestCase name="SUCCEED counts as a test pass"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2868 | <OverallResult success="true"/> |
| 2869 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2870 | <TestCase name="INFO gets logged on failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2871 | <Info> |
| 2872 | this message should be logged |
| 2873 | </Info> |
| 2874 | <Info> |
| 2875 | so should this |
| 2876 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2877 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2878 | <Original> |
| 2879 | a == 1 |
| 2880 | </Original> |
| 2881 | <Expanded> |
| 2882 | 2 == 1 |
| 2883 | </Expanded> |
| 2884 | </Expression> |
| 2885 | <OverallResult success="false"/> |
| 2886 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2887 | <TestCase name="INFO gets logged on failure, even if captured before successful assertions"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2888 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2889 | <Original> |
| 2890 | a == 2 |
| 2891 | </Original> |
| 2892 | <Expanded> |
| 2893 | 2 == 2 |
| 2894 | </Expanded> |
| 2895 | </Expression> |
| 2896 | <Info> |
| 2897 | this message should be logged |
| 2898 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2899 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2900 | <Original> |
| 2901 | a == 1 |
| 2902 | </Original> |
| 2903 | <Expanded> |
| 2904 | 2 == 1 |
| 2905 | </Expanded> |
| 2906 | </Expression> |
| 2907 | <Info> |
| 2908 | and this, but later |
| 2909 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2910 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2911 | <Original> |
| 2912 | a == 0 |
| 2913 | </Original> |
| 2914 | <Expanded> |
| 2915 | 2 == 0 |
| 2916 | </Expanded> |
| 2917 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2918 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2919 | <Original> |
| 2920 | a == 2 |
| 2921 | </Original> |
| 2922 | <Expanded> |
| 2923 | 2 == 2 |
| 2924 | </Expanded> |
| 2925 | </Expression> |
| 2926 | <OverallResult success="false"/> |
| 2927 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2928 | <TestCase name="FAIL aborts the test"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2929 | <Failure> |
| 2930 | This is a failure |
| 2931 | </Failure> |
| 2932 | <OverallResult success="false"/> |
| 2933 | </TestCase> |
Phil Nash | 859760a | 2013-12-14 14:34:05 +0000 | [diff] [blame] | 2934 | <TestCase name="FAIL does not require an argument"> |
| 2935 | <Failure/> |
| 2936 | <OverallResult success="false"/> |
| 2937 | </TestCase> |
Phil Nash | 557b3bd | 2013-12-14 23:16:03 +0000 | [diff] [blame] | 2938 | <TestCase name="SUCCESS does not require an argument"> |
| 2939 | <OverallResult success="true"/> |
| 2940 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2941 | <TestCase name="Output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2942 | <Section name="one"> |
| 2943 | <Failure> |
| 2944 | Message from section one |
| 2945 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2946 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2947 | </Section> |
| 2948 | <Section name="two"> |
| 2949 | <Failure> |
| 2950 | Message from section two |
| 2951 | </Failure> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 2952 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2953 | </Section> |
| 2954 | <OverallResult success="false"/> |
| 2955 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2956 | <TestCase name="Standard output from all sections is reported"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2957 | <Section name="one"> |
Phil Nash | f5642be | 2015-11-03 17:05:08 +0000 | [diff] [blame] | 2958 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2959 | </Section> |
| 2960 | <Section name="two"> |
Phil Nash | f5642be | 2015-11-03 17:05:08 +0000 | [diff] [blame] | 2961 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2962 | </Section> |
Phil Nash | f5642be | 2015-11-03 17:05:08 +0000 | [diff] [blame] | 2963 | <OverallResult success="false"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2964 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 2965 | <TestCase name="SCOPED_INFO is reset for each loop"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2966 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2967 | <Original> |
| 2968 | i < 10 |
| 2969 | </Original> |
| 2970 | <Expanded> |
| 2971 | 0 < 10 |
| 2972 | </Expanded> |
| 2973 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2974 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2975 | <Original> |
| 2976 | i < 10 |
| 2977 | </Original> |
| 2978 | <Expanded> |
| 2979 | 1 < 10 |
| 2980 | </Expanded> |
| 2981 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2982 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2983 | <Original> |
| 2984 | i < 10 |
| 2985 | </Original> |
| 2986 | <Expanded> |
| 2987 | 2 < 10 |
| 2988 | </Expanded> |
| 2989 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2990 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2991 | <Original> |
| 2992 | i < 10 |
| 2993 | </Original> |
| 2994 | <Expanded> |
| 2995 | 3 < 10 |
| 2996 | </Expanded> |
| 2997 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 2998 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 2999 | <Original> |
| 3000 | i < 10 |
| 3001 | </Original> |
| 3002 | <Expanded> |
| 3003 | 4 < 10 |
| 3004 | </Expanded> |
| 3005 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3006 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3007 | <Original> |
| 3008 | i < 10 |
| 3009 | </Original> |
| 3010 | <Expanded> |
| 3011 | 5 < 10 |
| 3012 | </Expanded> |
| 3013 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3014 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3015 | <Original> |
| 3016 | i < 10 |
| 3017 | </Original> |
| 3018 | <Expanded> |
| 3019 | 6 < 10 |
| 3020 | </Expanded> |
| 3021 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3022 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3023 | <Original> |
| 3024 | i < 10 |
| 3025 | </Original> |
| 3026 | <Expanded> |
| 3027 | 7 < 10 |
| 3028 | </Expanded> |
| 3029 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3030 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3031 | <Original> |
| 3032 | i < 10 |
| 3033 | </Original> |
| 3034 | <Expanded> |
| 3035 | 8 < 10 |
| 3036 | </Expanded> |
| 3037 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3038 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3039 | <Original> |
| 3040 | i < 10 |
| 3041 | </Original> |
| 3042 | <Expanded> |
| 3043 | 9 < 10 |
| 3044 | </Expanded> |
| 3045 | </Expression> |
| 3046 | <Info> |
| 3047 | current counter 10 |
| 3048 | </Info> |
| 3049 | <Info> |
| 3050 | i := 10 |
| 3051 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3052 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3053 | <Original> |
| 3054 | i < 10 |
| 3055 | </Original> |
| 3056 | <Expanded> |
| 3057 | 10 < 10 |
| 3058 | </Expanded> |
| 3059 | </Expression> |
| 3060 | <OverallResult success="false"/> |
| 3061 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3062 | <TestCase name="The NO_FAIL macro reports a failure but does not fail the test"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3063 | <Expression success="false" type="CHECK_NOFAIL" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3064 | <Original> |
| 3065 | 1 == 2 |
| 3066 | </Original> |
| 3067 | <Expanded> |
| 3068 | 1 == 2 |
| 3069 | </Expanded> |
| 3070 | </Expression> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3071 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3072 | </TestCase> |
| 3073 | <TestCase name="just info"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3074 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3075 | </TestCase> |
| 3076 | <TestCase name="just failure"> |
| 3077 | <Failure> |
| 3078 | Previous info should not be seen |
| 3079 | </Failure> |
| 3080 | <OverallResult success="false"/> |
| 3081 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3082 | <TestCase name="sends information to INFO"> |
| 3083 | <Info> |
| 3084 | hi |
| 3085 | </Info> |
| 3086 | <Info> |
| 3087 | i := 7 |
| 3088 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3089 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MessageTests.cpp" > |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3090 | <Original> |
| 3091 | false |
| 3092 | </Original> |
| 3093 | <Expanded> |
| 3094 | false |
| 3095 | </Expanded> |
| 3096 | </Expression> |
| 3097 | <OverallResult success="false"/> |
| 3098 | </TestCase> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3099 | <TestCase name="Pointers can be converted to strings"> |
| 3100 | <Warning> |
| 3101 | actual address of p: 0x<hex digits> |
| 3102 | </Warning> |
| 3103 | <Warning> |
| 3104 | toString(p): 0x<hex digits> |
| 3105 | </Warning> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3106 | <OverallResult success="true"/> |
Phil Nash | 1479681 | 2014-05-23 18:55:05 +0100 | [diff] [blame] | 3107 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3108 | <TestCase name="random SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3109 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3110 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3111 | <Original> |
| 3112 | a != b |
| 3113 | </Original> |
| 3114 | <Expanded> |
| 3115 | 1 != 2 |
| 3116 | </Expanded> |
| 3117 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3118 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3119 | <Original> |
| 3120 | b != a |
| 3121 | </Original> |
| 3122 | <Expanded> |
| 3123 | 2 != 1 |
| 3124 | </Expanded> |
| 3125 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3126 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3127 | </Section> |
| 3128 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3129 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3130 | <Original> |
| 3131 | a != b |
| 3132 | </Original> |
| 3133 | <Expanded> |
| 3134 | 1 != 2 |
| 3135 | </Expanded> |
| 3136 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3137 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3138 | </Section> |
| 3139 | <OverallResult success="true"/> |
| 3140 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3141 | <TestCase name="nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3142 | <Section name="s1" description="doesn't equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3143 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3144 | <Original> |
| 3145 | a != b |
| 3146 | </Original> |
| 3147 | <Expanded> |
| 3148 | 1 != 2 |
| 3149 | </Expanded> |
| 3150 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3151 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3152 | <Original> |
| 3153 | b != a |
| 3154 | </Original> |
| 3155 | <Expanded> |
| 3156 | 2 != 1 |
| 3157 | </Expanded> |
| 3158 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3159 | <Section name="s2" description="not equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3160 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3161 | <Original> |
| 3162 | a != b |
| 3163 | </Original> |
| 3164 | <Expanded> |
| 3165 | 1 != 2 |
| 3166 | </Expanded> |
| 3167 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3168 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3169 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3170 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3171 | </Section> |
| 3172 | <OverallResult success="true"/> |
| 3173 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3174 | <TestCase name="more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3175 | <Section name="s1" description="doesn't equal"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3176 | <Section name="s2" description="equal"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3177 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3178 | <Original> |
| 3179 | a == b |
| 3180 | </Original> |
| 3181 | <Expanded> |
| 3182 | 1 == 2 |
| 3183 | </Expanded> |
| 3184 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3185 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3186 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3187 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3188 | </Section> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3189 | <Section name="s1" description="doesn't equal"> |
| 3190 | <Section name="s3" description="not equal"> |
| 3191 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 3192 | <Original> |
| 3193 | a != b |
| 3194 | </Original> |
| 3195 | <Expanded> |
| 3196 | 1 != 2 |
| 3197 | </Expanded> |
| 3198 | </Expression> |
| 3199 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3200 | </Section> |
| 3201 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3202 | </Section> |
| 3203 | <Section name="s1" description="doesn't equal"> |
| 3204 | <Section name="s4" description="less than"> |
| 3205 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 3206 | <Original> |
| 3207 | a < b |
| 3208 | </Original> |
| 3209 | <Expanded> |
| 3210 | 1 < 2 |
| 3211 | </Expanded> |
| 3212 | </Expression> |
| 3213 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3214 | </Section> |
| 3215 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3216 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3217 | <OverallResult success="false"/> |
| 3218 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3219 | <TestCase name="even more nested SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3220 | <Section name="c"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3221 | <Section name="d (leaf)"> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3222 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3223 | </Section> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3224 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3225 | </Section> |
| 3226 | <Section name="c"> |
| 3227 | <Section name="e (leaf)"> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3228 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3229 | </Section> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3230 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3231 | </Section> |
| 3232 | <Section name="f (leaf)"> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3233 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3234 | </Section> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3235 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3236 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3237 | <TestCase name="looped SECTION tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3238 | <Section name="s1" description="b is currently: 0"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3239 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3240 | <Original> |
| 3241 | b > a |
| 3242 | </Original> |
| 3243 | <Expanded> |
| 3244 | 0 > 1 |
| 3245 | </Expanded> |
| 3246 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3247 | <OverallResults successes="0" failures="1" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3248 | </Section> |
| 3249 | <OverallResult success="false"/> |
| 3250 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3251 | <TestCase name="looped tests"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3252 | <Info> |
| 3253 | Testing if fib[0] (1) is even |
| 3254 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3255 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3256 | <Original> |
| 3257 | ( fib[i] % 2 ) == 0 |
| 3258 | </Original> |
| 3259 | <Expanded> |
| 3260 | 1 == 0 |
| 3261 | </Expanded> |
| 3262 | </Expression> |
| 3263 | <Info> |
| 3264 | Testing if fib[1] (1) is even |
| 3265 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3266 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3267 | <Original> |
| 3268 | ( fib[i] % 2 ) == 0 |
| 3269 | </Original> |
| 3270 | <Expanded> |
| 3271 | 1 == 0 |
| 3272 | </Expanded> |
| 3273 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3274 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3275 | <Original> |
| 3276 | ( fib[i] % 2 ) == 0 |
| 3277 | </Original> |
| 3278 | <Expanded> |
| 3279 | 0 == 0 |
| 3280 | </Expanded> |
| 3281 | </Expression> |
| 3282 | <Info> |
| 3283 | Testing if fib[3] (3) is even |
| 3284 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3285 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3286 | <Original> |
| 3287 | ( fib[i] % 2 ) == 0 |
| 3288 | </Original> |
| 3289 | <Expanded> |
| 3290 | 1 == 0 |
| 3291 | </Expanded> |
| 3292 | </Expression> |
| 3293 | <Info> |
| 3294 | Testing if fib[4] (5) is even |
| 3295 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3296 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3297 | <Original> |
| 3298 | ( fib[i] % 2 ) == 0 |
| 3299 | </Original> |
| 3300 | <Expanded> |
| 3301 | 1 == 0 |
| 3302 | </Expanded> |
| 3303 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3304 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3305 | <Original> |
| 3306 | ( fib[i] % 2 ) == 0 |
| 3307 | </Original> |
| 3308 | <Expanded> |
| 3309 | 0 == 0 |
| 3310 | </Expanded> |
| 3311 | </Expression> |
| 3312 | <Info> |
| 3313 | Testing if fib[6] (13) is even |
| 3314 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3315 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3316 | <Original> |
| 3317 | ( fib[i] % 2 ) == 0 |
| 3318 | </Original> |
| 3319 | <Expanded> |
| 3320 | 1 == 0 |
| 3321 | </Expanded> |
| 3322 | </Expression> |
| 3323 | <Info> |
| 3324 | Testing if fib[7] (21) is even |
| 3325 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3326 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3327 | <Original> |
| 3328 | ( fib[i] % 2 ) == 0 |
| 3329 | </Original> |
| 3330 | <Expanded> |
| 3331 | 1 == 0 |
| 3332 | </Expanded> |
| 3333 | </Expression> |
| 3334 | <OverallResult success="false"/> |
| 3335 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3336 | <TestCase name="Sends stuff to stdout and stderr"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3337 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3338 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3339 | <TestCase name="null strings"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3340 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3341 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3342 | makeString( false ) != static_cast<char*>(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3343 | </Original> |
| 3344 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3345 | "valid string" != {null string} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3346 | </Expanded> |
| 3347 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3348 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3349 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 3350 | makeString( true ) == static_cast<char*>(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3351 | </Original> |
| 3352 | <Expanded> |
| 3353 | {null string} == {null string} |
| 3354 | </Expanded> |
| 3355 | </Expression> |
| 3356 | <OverallResult success="true"/> |
| 3357 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3358 | <TestCase name="checkedIf"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3359 | <Expression success="true" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3360 | <Original> |
| 3361 | flag |
| 3362 | </Original> |
| 3363 | <Expanded> |
| 3364 | true |
| 3365 | </Expanded> |
| 3366 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3367 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3368 | <Original> |
| 3369 | testCheckedIf( true ) |
| 3370 | </Original> |
| 3371 | <Expanded> |
| 3372 | true |
| 3373 | </Expanded> |
| 3374 | </Expression> |
| 3375 | <OverallResult success="true"/> |
| 3376 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3377 | <TestCase name="checkedIf, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3378 | <Expression success="false" type="CHECKED_IF" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3379 | <Original> |
| 3380 | flag |
| 3381 | </Original> |
| 3382 | <Expanded> |
| 3383 | false |
| 3384 | </Expanded> |
| 3385 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3386 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3387 | <Original> |
| 3388 | testCheckedIf( false ) |
| 3389 | </Original> |
| 3390 | <Expanded> |
| 3391 | false |
| 3392 | </Expanded> |
| 3393 | </Expression> |
| 3394 | <OverallResult success="false"/> |
| 3395 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3396 | <TestCase name="checkedElse"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3397 | <Expression success="true" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3398 | <Original> |
| 3399 | flag |
| 3400 | </Original> |
| 3401 | <Expanded> |
| 3402 | true |
| 3403 | </Expanded> |
| 3404 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3405 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3406 | <Original> |
| 3407 | testCheckedElse( true ) |
| 3408 | </Original> |
| 3409 | <Expanded> |
| 3410 | true |
| 3411 | </Expanded> |
| 3412 | </Expression> |
| 3413 | <OverallResult success="true"/> |
| 3414 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3415 | <TestCase name="checkedElse, failing"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3416 | <Expression success="false" type="CHECKED_ELSE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3417 | <Original> |
| 3418 | flag |
| 3419 | </Original> |
| 3420 | <Expanded> |
| 3421 | false |
| 3422 | </Expanded> |
| 3423 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3424 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3425 | <Original> |
| 3426 | testCheckedElse( false ) |
| 3427 | </Original> |
| 3428 | <Expanded> |
| 3429 | false |
| 3430 | </Expanded> |
| 3431 | </Expression> |
| 3432 | <OverallResult success="false"/> |
| 3433 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3434 | <TestCase name="xmlentitycheck"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3435 | <Section name="embedded xml" description="<test>it should be possible to embed xml characters, such as <, " or &, or even whole <xml>documents</xml> within an attribute</test>"> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3436 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3437 | </Section> |
| 3438 | <Section name="encoded chars" description="these should all be encoded: &&&"""<<<&"<<&""> |
Phil Nash | 015e071 | 2015-11-03 07:46:37 +0000 | [diff] [blame] | 3439 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3440 | </Section> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3441 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3442 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3443 | <TestCase name="send a single char to INFO"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3444 | <Info> |
| 3445 | 3 |
| 3446 | </Info> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3447 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3448 | <Original> |
| 3449 | false |
| 3450 | </Original> |
| 3451 | <Expanded> |
| 3452 | false |
| 3453 | </Expanded> |
| 3454 | </Expression> |
| 3455 | <OverallResult success="false"/> |
| 3456 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3457 | <TestCase name="atomic if"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3458 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3459 | <Original> |
| 3460 | x == 0 |
| 3461 | </Original> |
| 3462 | <Expanded> |
| 3463 | 0 == 0 |
| 3464 | </Expanded> |
| 3465 | </Expression> |
| 3466 | <OverallResult success="true"/> |
| 3467 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3468 | <TestCase name="String matchers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3469 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3470 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3471 | testStringForMatching() Contains( "string" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3472 | </Original> |
| 3473 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3474 | "this string contains 'abc' as a substring" contains: "string" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3475 | </Expanded> |
| 3476 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3477 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3478 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3479 | testStringForMatching() Contains( "abc" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3480 | </Original> |
| 3481 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3482 | "this string contains 'abc' as a substring" contains: "abc" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3483 | </Expanded> |
| 3484 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3485 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3486 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3487 | testStringForMatching() StartsWith( "this" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3488 | </Original> |
| 3489 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3490 | "this string contains 'abc' as a substring" starts with: "this" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3491 | </Expanded> |
| 3492 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3493 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3494 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3495 | testStringForMatching() EndsWith( "substring" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3496 | </Original> |
| 3497 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3498 | "this string contains 'abc' as a substring" ends with: "substring" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3499 | </Expanded> |
| 3500 | </Expression> |
| 3501 | <OverallResult success="true"/> |
| 3502 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3503 | <TestCase name="Contains string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3504 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3505 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3506 | testStringForMatching() Contains( "not there" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3507 | </Original> |
| 3508 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3509 | "this string contains 'abc' as a substring" contains: "not there" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3510 | </Expanded> |
| 3511 | </Expression> |
| 3512 | <OverallResult success="false"/> |
| 3513 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3514 | <TestCase name="StartsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3515 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3516 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3517 | testStringForMatching() StartsWith( "string" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3518 | </Original> |
| 3519 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3520 | "this string contains 'abc' as a substring" starts with: "string" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3521 | </Expanded> |
| 3522 | </Expression> |
| 3523 | <OverallResult success="false"/> |
| 3524 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3525 | <TestCase name="EndsWith string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3526 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3527 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3528 | testStringForMatching() EndsWith( "this" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3529 | </Original> |
| 3530 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3531 | "this string contains 'abc' as a substring" ends with: "this" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3532 | </Expanded> |
| 3533 | </Expression> |
| 3534 | <OverallResult success="false"/> |
| 3535 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3536 | <TestCase name="Equals string matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3537 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3538 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3539 | testStringForMatching() Equals( "something else" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3540 | </Original> |
| 3541 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3542 | "this string contains 'abc' as a substring" equals: "something else" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3543 | </Expanded> |
| 3544 | </Expression> |
| 3545 | <OverallResult success="false"/> |
| 3546 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3547 | <TestCase name="Equals string matcher, with NULL"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3548 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3549 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3550 | "" Equals(nullptr) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3551 | </Original> |
| 3552 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3553 | "" equals: "" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3554 | </Expanded> |
| 3555 | </Expression> |
| 3556 | <OverallResult success="true"/> |
| 3557 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3558 | <TestCase name="AllOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3559 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3560 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3561 | testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3562 | </Original> |
| 3563 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3564 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3565 | </Expanded> |
| 3566 | </Expression> |
| 3567 | <OverallResult success="true"/> |
| 3568 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3569 | <TestCase name="AnyOf matcher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3570 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3571 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3572 | testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3573 | </Original> |
| 3574 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3575 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3576 | </Expanded> |
| 3577 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3578 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3579 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3580 | testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3581 | </Original> |
| 3582 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3583 | "this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3584 | </Expanded> |
| 3585 | </Expression> |
| 3586 | <OverallResult success="true"/> |
| 3587 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3588 | <TestCase name="Equals"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3589 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3590 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3591 | testStringForMatching() Equals( "this string contains 'abc' as a substring" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3592 | </Original> |
| 3593 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3594 | "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3595 | </Expanded> |
| 3596 | </Expression> |
| 3597 | <OverallResult success="true"/> |
| 3598 | </TestCase> |
Phil Nash | 71fd2c2 | 2015-11-06 06:54:15 +0000 | [diff] [blame] | 3599 | <TestCase name="Matchers can be (AllOf) composed with the && operator"> |
Phil Nash | 054e3c5 | 2015-11-05 18:46:00 +0000 | [diff] [blame] | 3600 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3601 | <Original> |
| 3602 | testStringForMatching() Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) |
| 3603 | </Original> |
| 3604 | <Expanded> |
| 3605 | "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" ) |
| 3606 | </Expanded> |
| 3607 | </Expression> |
| 3608 | <OverallResult success="true"/> |
| 3609 | </TestCase> |
Phil Nash | 71fd2c2 | 2015-11-06 06:54:15 +0000 | [diff] [blame] | 3610 | <TestCase name="Matchers can be (AnyOf) composed with the || operator"> |
Phil Nash | 054e3c5 | 2015-11-05 18:46:00 +0000 | [diff] [blame] | 3611 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3612 | <Original> |
| 3613 | testStringForMatching() Contains( "string" ) || Contains( "different" ) || Contains( "random" ) |
| 3614 | </Original> |
| 3615 | <Expanded> |
| 3616 | "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) |
| 3617 | </Expanded> |
| 3618 | </Expression> |
| 3619 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3620 | <Original> |
| 3621 | testStringForMatching2() Contains( "string" ) || Contains( "different" ) || Contains( "random" ) |
| 3622 | </Original> |
| 3623 | <Expanded> |
| 3624 | "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" ) |
| 3625 | </Expanded> |
| 3626 | </Expression> |
| 3627 | <OverallResult success="true"/> |
| 3628 | </TestCase> |
Phil Nash | 71fd2c2 | 2015-11-06 06:54:15 +0000 | [diff] [blame] | 3629 | <TestCase name="Matchers can be composed with both && and ||"> |
Phil Nash | 054e3c5 | 2015-11-05 18:46:00 +0000 | [diff] [blame] | 3630 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3631 | <Original> |
| 3632 | testStringForMatching() ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) |
| 3633 | </Original> |
| 3634 | <Expanded> |
| 3635 | "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" ) |
| 3636 | </Expanded> |
| 3637 | </Expression> |
| 3638 | <OverallResult success="true"/> |
| 3639 | </TestCase> |
Phil Nash | 71fd2c2 | 2015-11-06 06:54:15 +0000 | [diff] [blame] | 3640 | <TestCase name="Matchers can be composed with both && and || - failing"> |
Phil Nash | 054e3c5 | 2015-11-05 18:46:00 +0000 | [diff] [blame] | 3641 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3642 | <Original> |
| 3643 | testStringForMatching() ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) |
| 3644 | </Original> |
| 3645 | <Expanded> |
| 3646 | "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) |
| 3647 | </Expanded> |
| 3648 | </Expression> |
| 3649 | <OverallResult success="false"/> |
| 3650 | </TestCase> |
| 3651 | <TestCase name="Matchers can be negated (Not) with the ! operator"> |
| 3652 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3653 | <Original> |
| 3654 | testStringForMatching() !Contains( "different" ) |
| 3655 | </Original> |
| 3656 | <Expanded> |
| 3657 | "this string contains 'abc' as a substring" not contains: "different" |
| 3658 | </Expanded> |
| 3659 | </Expression> |
| 3660 | <OverallResult success="true"/> |
| 3661 | </TestCase> |
| 3662 | <TestCase name="Matchers can be negated (Not) with the ! operator - failing"> |
| 3663 | <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > |
| 3664 | <Original> |
| 3665 | testStringForMatching() !Contains( "substring" ) |
| 3666 | </Original> |
| 3667 | <Expanded> |
| 3668 | "this string contains 'abc' as a substring" not contains: "substring" |
| 3669 | </Expanded> |
| 3670 | </Expression> |
| 3671 | <OverallResult success="false"/> |
| 3672 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3673 | <TestCase name="Factorials are computed"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3674 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3675 | <Original> |
| 3676 | Factorial(0) == 1 |
| 3677 | </Original> |
| 3678 | <Expanded> |
| 3679 | 1 == 1 |
| 3680 | </Expanded> |
| 3681 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3682 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3683 | <Original> |
| 3684 | Factorial(1) == 1 |
| 3685 | </Original> |
| 3686 | <Expanded> |
| 3687 | 1 == 1 |
| 3688 | </Expanded> |
| 3689 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3690 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3691 | <Original> |
| 3692 | Factorial(2) == 2 |
| 3693 | </Original> |
| 3694 | <Expanded> |
| 3695 | 2 == 2 |
| 3696 | </Expanded> |
| 3697 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3698 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3699 | <Original> |
| 3700 | Factorial(3) == 6 |
| 3701 | </Original> |
| 3702 | <Expanded> |
| 3703 | 6 == 6 |
| 3704 | </Expanded> |
| 3705 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3706 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3707 | <Original> |
| 3708 | Factorial(10) == 3628800 |
| 3709 | </Original> |
| 3710 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 3711 | 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3712 | </Expanded> |
| 3713 | </Expression> |
| 3714 | <OverallResult success="true"/> |
| 3715 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3716 | <TestCase name="An empty test with no assertions"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3717 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3718 | </TestCase> |
| 3719 | <TestCase name="Nice descriptive name"> |
| 3720 | <Warning> |
| 3721 | This one ran |
| 3722 | </Warning> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3723 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3724 | </TestCase> |
| 3725 | <TestCase name="first tag"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3726 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3727 | </TestCase> |
| 3728 | <TestCase name="second tag"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 3729 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3730 | </TestCase> |
| 3731 | <TestCase name="vectors can be sized and resized"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3732 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3733 | <Original> |
| 3734 | v.size() == 5 |
| 3735 | </Original> |
| 3736 | <Expanded> |
| 3737 | 5 == 5 |
| 3738 | </Expanded> |
| 3739 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3740 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3741 | <Original> |
| 3742 | v.capacity() >= 5 |
| 3743 | </Original> |
| 3744 | <Expanded> |
| 3745 | 5 >= 5 |
| 3746 | </Expanded> |
| 3747 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3748 | <Section name="resizing bigger changes size and capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3749 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3750 | <Original> |
| 3751 | v.size() == 10 |
| 3752 | </Original> |
| 3753 | <Expanded> |
| 3754 | 10 == 10 |
| 3755 | </Expanded> |
| 3756 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3757 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3758 | <Original> |
| 3759 | v.capacity() >= 10 |
| 3760 | </Original> |
| 3761 | <Expanded> |
| 3762 | 10 >= 10 |
| 3763 | </Expanded> |
| 3764 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3765 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3766 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3767 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3768 | <Original> |
| 3769 | v.size() == 5 |
| 3770 | </Original> |
| 3771 | <Expanded> |
| 3772 | 5 == 5 |
| 3773 | </Expanded> |
| 3774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3775 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3776 | <Original> |
| 3777 | v.capacity() >= 5 |
| 3778 | </Original> |
| 3779 | <Expanded> |
| 3780 | 5 >= 5 |
| 3781 | </Expanded> |
| 3782 | </Expression> |
| 3783 | <Section name="resizing smaller changes size but not capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3784 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3785 | <Original> |
| 3786 | v.size() == 0 |
| 3787 | </Original> |
| 3788 | <Expanded> |
| 3789 | 0 == 0 |
| 3790 | </Expanded> |
| 3791 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3792 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3793 | <Original> |
| 3794 | v.capacity() >= 5 |
| 3795 | </Original> |
| 3796 | <Expanded> |
| 3797 | 5 >= 5 |
| 3798 | </Expanded> |
| 3799 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3800 | <Section name="We can use the 'swap trick' to reset the capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3801 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3802 | <Original> |
| 3803 | v.capacity() == 0 |
| 3804 | </Original> |
| 3805 | <Expanded> |
| 3806 | 0 == 0 |
| 3807 | </Expanded> |
| 3808 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3809 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3810 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3811 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3812 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3813 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3814 | <Original> |
| 3815 | v.size() == 5 |
| 3816 | </Original> |
| 3817 | <Expanded> |
| 3818 | 5 == 5 |
| 3819 | </Expanded> |
| 3820 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3821 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3822 | <Original> |
| 3823 | v.capacity() >= 5 |
| 3824 | </Original> |
| 3825 | <Expanded> |
| 3826 | 5 >= 5 |
| 3827 | </Expanded> |
| 3828 | </Expression> |
| 3829 | <Section name="reserving bigger changes capacity but not size"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3830 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3831 | <Original> |
| 3832 | v.size() == 5 |
| 3833 | </Original> |
| 3834 | <Expanded> |
| 3835 | 5 == 5 |
| 3836 | </Expanded> |
| 3837 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3838 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3839 | <Original> |
| 3840 | v.capacity() >= 10 |
| 3841 | </Original> |
| 3842 | <Expanded> |
| 3843 | 10 >= 10 |
| 3844 | </Expanded> |
| 3845 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3846 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3847 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3848 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3849 | <Original> |
| 3850 | v.size() == 5 |
| 3851 | </Original> |
| 3852 | <Expanded> |
| 3853 | 5 == 5 |
| 3854 | </Expanded> |
| 3855 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3856 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3857 | <Original> |
| 3858 | v.capacity() >= 5 |
| 3859 | </Original> |
| 3860 | <Expanded> |
| 3861 | 5 >= 5 |
| 3862 | </Expanded> |
| 3863 | </Expression> |
| 3864 | <Section name="reserving smaller does not change size or capacity"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3865 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3866 | <Original> |
| 3867 | v.size() == 5 |
| 3868 | </Original> |
| 3869 | <Expanded> |
| 3870 | 5 == 5 |
| 3871 | </Expanded> |
| 3872 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3873 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3874 | <Original> |
| 3875 | v.capacity() >= 5 |
| 3876 | </Original> |
| 3877 | <Expanded> |
| 3878 | 5 >= 5 |
| 3879 | </Expanded> |
| 3880 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3881 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3882 | </Section> |
| 3883 | <OverallResult success="true"/> |
| 3884 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 3885 | <TestCase name="A couple of nested sections followed by a failure"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3886 | <Section name="Outer"> |
| 3887 | <Section name="Inner"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3888 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3889 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 3890 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 3891 | </Section> |
| 3892 | <Failure> |
| 3893 | to infinity and beyond |
| 3894 | </Failure> |
| 3895 | <OverallResult success="false"/> |
| 3896 | </TestCase> |
Phil Nash | 20cad7c | 2014-04-15 18:44:37 +0100 | [diff] [blame] | 3897 | <TestCase name="not allowed"> |
| 3898 | <OverallResult success="true"/> |
| 3899 | </TestCase> |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3900 | <TestCase name="Tabs and newlines show in output"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3901 | <Expression success="false" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3902 | <Original> |
| 3903 | s1 == s2 |
| 3904 | </Original> |
| 3905 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3906 | "if ($b == 10) { |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3907 | $a = 20; |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3908 | }" |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3909 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3910 | "if ($b == 10) { |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3911 | $a = 20; |
| 3912 | } |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3913 | " |
Phil Nash | 31caba4 | 2014-04-23 07:07:27 +0100 | [diff] [blame] | 3914 | </Expanded> |
| 3915 | </Expression> |
| 3916 | <OverallResult success="false"/> |
| 3917 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3918 | <TestCase name="toString on const wchar_t const pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3919 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3920 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3921 | result == "\"wide load\"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3922 | </Original> |
| 3923 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3924 | ""wide load"" == ""wide load"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3925 | </Expanded> |
| 3926 | </Expression> |
| 3927 | <OverallResult success="true"/> |
| 3928 | </TestCase> |
| 3929 | <TestCase name="toString on const wchar_t pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3930 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3931 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3932 | result == "\"wide load\"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3933 | </Original> |
| 3934 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3935 | ""wide load"" == ""wide load"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3936 | </Expanded> |
| 3937 | </Expression> |
| 3938 | <OverallResult success="true"/> |
| 3939 | </TestCase> |
| 3940 | <TestCase name="toString on wchar_t const pointer returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3941 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3942 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3943 | result == "\"wide load\"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3944 | </Original> |
| 3945 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3946 | ""wide load"" == ""wide load"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3947 | </Expanded> |
| 3948 | </Expression> |
| 3949 | <OverallResult success="true"/> |
| 3950 | </TestCase> |
| 3951 | <TestCase name="toString on wchar_t returns the string contents"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 3952 | <Expression success="true" type="CHECK" filename="projects/SelfTest/MiscTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3953 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3954 | result == "\"wide load\"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3955 | </Original> |
| 3956 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3957 | ""wide load"" == ""wide load"" |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 3958 | </Expanded> |
| 3959 | </Expression> |
| 3960 | <OverallResult success="true"/> |
| 3961 | </TestCase> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 3962 | <TestCase name="XmlEncode"> |
| 3963 | <Section name="normal string"> |
| 3964 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 3965 | <Original> |
| 3966 | encode( "normal string" ) == "normal string" |
| 3967 | </Original> |
| 3968 | <Expanded> |
| 3969 | "normal string" == "normal string" |
| 3970 | </Expanded> |
| 3971 | </Expression> |
| 3972 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3973 | </Section> |
| 3974 | <Section name="empty string"> |
| 3975 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 3976 | <Original> |
| 3977 | encode( "" ) == "" |
| 3978 | </Original> |
| 3979 | <Expanded> |
| 3980 | "" == "" |
| 3981 | </Expanded> |
| 3982 | </Expression> |
| 3983 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3984 | </Section> |
| 3985 | <Section name="string with ampersand"> |
| 3986 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 3987 | <Original> |
| 3988 | encode( "smith & jones" ) == "smith &amp; jones" |
| 3989 | </Original> |
| 3990 | <Expanded> |
| 3991 | "smith &amp; jones" == "smith &amp; jones" |
| 3992 | </Expanded> |
| 3993 | </Expression> |
| 3994 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 3995 | </Section> |
| 3996 | <Section name="string with less-than"> |
| 3997 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 3998 | <Original> |
| 3999 | encode( "smith < jones" ) == "smith &lt; jones" |
| 4000 | </Original> |
| 4001 | <Expanded> |
| 4002 | "smith &lt; jones" == "smith &lt; jones" |
| 4003 | </Expanded> |
| 4004 | </Expression> |
| 4005 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 4006 | </Section> |
| 4007 | <Section name="string with greater-than"> |
| 4008 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4009 | <Original> |
| 4010 | encode( "smith > jones" ) == "smith > jones" |
| 4011 | </Original> |
| 4012 | <Expanded> |
| 4013 | "smith > jones" == "smith > jones" |
| 4014 | </Expanded> |
| 4015 | </Expression> |
| 4016 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4017 | <Original> |
| 4018 | encode( "smith ]]> jones" ) == "smith ]]&gt; jones" |
| 4019 | </Original> |
| 4020 | <Expanded> |
| 4021 | "smith ]]&gt; jones" |
| 4022 | == |
| 4023 | "smith ]]&gt; jones" |
| 4024 | </Expanded> |
| 4025 | </Expression> |
| 4026 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4027 | </Section> |
| 4028 | <Section name="string with quotes"> |
| 4029 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4030 | <Original> |
| 4031 | encode( stringWithQuotes ) == stringWithQuotes |
| 4032 | </Original> |
| 4033 | <Expanded> |
| 4034 | "don't "quote" me on that" |
| 4035 | == |
| 4036 | "don't "quote" me on that" |
| 4037 | </Expanded> |
| 4038 | </Expression> |
| 4039 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4040 | <Original> |
| 4041 | encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" |
| 4042 | </Original> |
| 4043 | <Expanded> |
| 4044 | "don't &quot;quote&quot; me on that" |
| 4045 | == |
| 4046 | "don't &quot;quote&quot; me on that" |
| 4047 | </Expanded> |
| 4048 | </Expression> |
| 4049 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4050 | </Section> |
| 4051 | <Section name="string with control char (1)"> |
| 4052 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4053 | <Original> |
| 4054 | encode( "[\x01]" ) == "[&#x1]" |
| 4055 | </Original> |
| 4056 | <Expanded> |
| 4057 | "[&#x1]" == "[&#x1]" |
| 4058 | </Expanded> |
| 4059 | </Expression> |
| 4060 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 4061 | </Section> |
| 4062 | <Section name="string with control char (x7F)"> |
| 4063 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4064 | <Original> |
| 4065 | encode( "[\x7F]" ) == "[&#x7F]" |
| 4066 | </Original> |
| 4067 | <Expanded> |
| 4068 | "[&#x7F]" == "[&#x7F]" |
| 4069 | </Expanded> |
| 4070 | </Expression> |
| 4071 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 4072 | </Section> |
| 4073 | <OverallResult success="true"/> |
| 4074 | </TestCase> |
Phil Nash | 7097551 | 2015-07-23 23:05:52 +0100 | [diff] [blame] | 4075 | <TestCase name="long long"> |
| 4076 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/MiscTests.cpp" > |
| 4077 | <Original> |
| 4078 | l == std::numeric_limits<long long>::max() |
| 4079 | </Original> |
| 4080 | <Expanded> |
| 4081 | 9223372036854775807 (0x<hex digits>) |
| 4082 | == |
| 4083 | 9223372036854775807 (0x<hex digits>) |
| 4084 | </Expanded> |
| 4085 | </Expression> |
| 4086 | <OverallResult success="true"/> |
| 4087 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4088 | <TestCase name="Process can be configured on command line"> |
| 4089 | <Section name="default - no arguments"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4090 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4091 | <Original> |
| 4092 | parseIntoConfig( argv, config ) |
| 4093 | </Original> |
| 4094 | <Expanded> |
| 4095 | parseIntoConfig( argv, config ) |
| 4096 | </Expanded> |
| 4097 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4098 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4099 | <Original> |
| 4100 | config.shouldDebugBreak == false |
| 4101 | </Original> |
| 4102 | <Expanded> |
| 4103 | false == false |
| 4104 | </Expanded> |
| 4105 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4106 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4107 | <Original> |
| 4108 | config.abortAfter == -1 |
| 4109 | </Original> |
| 4110 | <Expanded> |
| 4111 | -1 == -1 |
| 4112 | </Expanded> |
| 4113 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4114 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4115 | <Original> |
| 4116 | config.noThrow == false |
| 4117 | </Original> |
| 4118 | <Expanded> |
| 4119 | false == false |
| 4120 | </Expanded> |
| 4121 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4122 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4123 | <Original> |
Phil Nash | 368714e | 2015-08-07 08:20:56 +0100 | [diff] [blame] | 4124 | config.reporterNames.empty() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4125 | </Original> |
| 4126 | <Expanded> |
| 4127 | true |
| 4128 | </Expanded> |
| 4129 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4130 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4131 | </Section> |
| 4132 | <Section name="test lists"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4133 | <Section name="1 test" description="Specify one test case using"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4134 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4135 | <Original> |
| 4136 | parseIntoConfig( argv, config ) |
| 4137 | </Original> |
| 4138 | <Expanded> |
| 4139 | parseIntoConfig( argv, config ) |
| 4140 | </Expanded> |
| 4141 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4142 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4143 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4144 | cfg.testSpec().matches( fakeTestCase( "notIncluded" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4145 | </Original> |
| 4146 | <Expanded> |
| 4147 | false == false |
| 4148 | </Expanded> |
| 4149 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4150 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4151 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4152 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4153 | </Original> |
| 4154 | <Expanded> |
| 4155 | true |
| 4156 | </Expanded> |
| 4157 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4158 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4159 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4160 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4161 | </Section> |
| 4162 | <Section name="test lists"> |
| 4163 | <Section name="Specify one test case exclusion using exclude:"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4164 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4165 | <Original> |
| 4166 | parseIntoConfig( argv, config ) |
| 4167 | </Original> |
| 4168 | <Expanded> |
| 4169 | parseIntoConfig( argv, config ) |
| 4170 | </Expanded> |
| 4171 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4172 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4173 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4174 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4175 | </Original> |
| 4176 | <Expanded> |
| 4177 | false == false |
| 4178 | </Expanded> |
| 4179 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4180 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4181 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4182 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4183 | </Original> |
| 4184 | <Expanded> |
| 4185 | true |
| 4186 | </Expanded> |
| 4187 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4188 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4189 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4190 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4191 | </Section> |
| 4192 | <Section name="test lists"> |
| 4193 | <Section name="Specify one test case exclusion using ~"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4194 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4195 | <Original> |
| 4196 | parseIntoConfig( argv, config ) |
| 4197 | </Original> |
| 4198 | <Expanded> |
| 4199 | parseIntoConfig( argv, config ) |
| 4200 | </Expanded> |
| 4201 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4202 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4203 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4204 | cfg.testSpec().matches( fakeTestCase( "test1" ) ) == false |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4205 | </Original> |
| 4206 | <Expanded> |
| 4207 | false == false |
| 4208 | </Expanded> |
| 4209 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4210 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4211 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4212 | cfg.testSpec().matches( fakeTestCase( "alwaysIncluded" ) ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4213 | </Original> |
| 4214 | <Expanded> |
| 4215 | true |
| 4216 | </Expanded> |
| 4217 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4218 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4219 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4220 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4221 | </Section> |
| 4222 | <Section name="reporter"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4223 | <Section name="-r/console"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4224 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4225 | <Original> |
| 4226 | parseIntoConfig( argv, config ) |
| 4227 | </Original> |
| 4228 | <Expanded> |
| 4229 | parseIntoConfig( argv, config ) |
| 4230 | </Expanded> |
| 4231 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4232 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4233 | <Original> |
Phil Nash | 368714e | 2015-08-07 08:20:56 +0100 | [diff] [blame] | 4234 | config.reporterNames[0] == "console" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4235 | </Original> |
| 4236 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4237 | "console" == "console" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4238 | </Expanded> |
| 4239 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4240 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4241 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4242 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4243 | </Section> |
| 4244 | <Section name="reporter"> |
| 4245 | <Section name="-r/xml"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4246 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4247 | <Original> |
| 4248 | parseIntoConfig( argv, config ) |
| 4249 | </Original> |
| 4250 | <Expanded> |
| 4251 | parseIntoConfig( argv, config ) |
| 4252 | </Expanded> |
| 4253 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4254 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4255 | <Original> |
Phil Nash | 368714e | 2015-08-07 08:20:56 +0100 | [diff] [blame] | 4256 | config.reporterNames[0] == "xml" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4257 | </Original> |
| 4258 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4259 | "xml" == "xml" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4260 | </Expanded> |
| 4261 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4262 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4263 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4264 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4265 | </Section> |
| 4266 | <Section name="reporter"> |
Phil Nash | 368714e | 2015-08-07 08:20:56 +0100 | [diff] [blame] | 4267 | <Section name="-r xml and junit"> |
| 4268 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4269 | <Original> |
| 4270 | parseIntoConfig( argv, config ) |
| 4271 | </Original> |
| 4272 | <Expanded> |
| 4273 | parseIntoConfig( argv, config ) |
| 4274 | </Expanded> |
| 4275 | </Expression> |
| 4276 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4277 | <Original> |
| 4278 | config.reporterNames.size() == 2 |
| 4279 | </Original> |
| 4280 | <Expanded> |
| 4281 | 2 == 2 |
| 4282 | </Expanded> |
| 4283 | </Expression> |
| 4284 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4285 | <Original> |
| 4286 | config.reporterNames[0] == "xml" |
| 4287 | </Original> |
| 4288 | <Expanded> |
| 4289 | "xml" == "xml" |
| 4290 | </Expanded> |
| 4291 | </Expression> |
| 4292 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4293 | <Original> |
| 4294 | config.reporterNames[1] == "junit" |
| 4295 | </Original> |
| 4296 | <Expanded> |
| 4297 | "junit" == "junit" |
| 4298 | </Expanded> |
| 4299 | </Expression> |
| 4300 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 4301 | </Section> |
| 4302 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 4303 | </Section> |
| 4304 | <Section name="reporter"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4305 | <Section name="--reporter/junit"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4306 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4307 | <Original> |
| 4308 | parseIntoConfig( argv, config ) |
| 4309 | </Original> |
| 4310 | <Expanded> |
| 4311 | parseIntoConfig( argv, config ) |
| 4312 | </Expanded> |
| 4313 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4314 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4315 | <Original> |
Phil Nash | 368714e | 2015-08-07 08:20:56 +0100 | [diff] [blame] | 4316 | config.reporterNames[0] == "junit" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4317 | </Original> |
| 4318 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4319 | "junit" == "junit" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4320 | </Expanded> |
| 4321 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4322 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4323 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4324 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4325 | </Section> |
| 4326 | <Section name="debugger"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4327 | <Section name="-b"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4328 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4329 | <Original> |
| 4330 | parseIntoConfig( argv, config ) |
| 4331 | </Original> |
| 4332 | <Expanded> |
| 4333 | parseIntoConfig( argv, config ) |
| 4334 | </Expanded> |
| 4335 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4336 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4337 | <Original> |
| 4338 | config.shouldDebugBreak == true |
| 4339 | </Original> |
| 4340 | <Expanded> |
| 4341 | true == true |
| 4342 | </Expanded> |
| 4343 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4344 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4345 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4346 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4347 | </Section> |
| 4348 | <Section name="debugger"> |
| 4349 | <Section name="--break"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4350 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4351 | <Original> |
| 4352 | parseIntoConfig( argv, config ) |
| 4353 | </Original> |
| 4354 | <Expanded> |
| 4355 | parseIntoConfig( argv, config ) |
| 4356 | </Expanded> |
| 4357 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4358 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4359 | <Original> |
| 4360 | config.shouldDebugBreak |
| 4361 | </Original> |
| 4362 | <Expanded> |
| 4363 | true |
| 4364 | </Expanded> |
| 4365 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4366 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4367 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4368 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4369 | </Section> |
| 4370 | <Section name="abort"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4371 | <Section name="-a aborts after first failure"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4372 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4373 | <Original> |
| 4374 | parseIntoConfig( argv, config ) |
| 4375 | </Original> |
| 4376 | <Expanded> |
| 4377 | parseIntoConfig( argv, config ) |
| 4378 | </Expanded> |
| 4379 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4380 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4381 | <Original> |
| 4382 | config.abortAfter == 1 |
| 4383 | </Original> |
| 4384 | <Expanded> |
| 4385 | 1 == 1 |
| 4386 | </Expanded> |
| 4387 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4388 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4389 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4390 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4391 | </Section> |
| 4392 | <Section name="abort"> |
| 4393 | <Section name="-x 2 aborts after two failures"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4394 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4395 | <Original> |
| 4396 | parseIntoConfig( argv, config ) |
| 4397 | </Original> |
| 4398 | <Expanded> |
| 4399 | parseIntoConfig( argv, config ) |
| 4400 | </Expanded> |
| 4401 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4402 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4403 | <Original> |
| 4404 | config.abortAfter == 2 |
| 4405 | </Original> |
| 4406 | <Expanded> |
| 4407 | 2 == 2 |
| 4408 | </Expanded> |
| 4409 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4410 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4411 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4412 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4413 | </Section> |
| 4414 | <Section name="abort"> |
| 4415 | <Section name="-x must be greater than zero"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4416 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4417 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4418 | parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4419 | </Original> |
| 4420 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4421 | "Value after -x or --abortAfter must be greater than zero |
| 4422 | - while parsing: (-x, --abortx <no. failures>)" contains: "greater than zero" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4423 | </Expanded> |
| 4424 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4425 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4426 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4427 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4428 | </Section> |
| 4429 | <Section name="abort"> |
| 4430 | <Section name="-x must be numeric"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4431 | <Expression success="true" type="REQUIRE_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4432 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4433 | parseIntoConfigAndReturnError( argv, config ) Contains( "-x" ) |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4434 | </Original> |
| 4435 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4436 | "Unable to convert oops to destination type |
| 4437 | - while parsing: (-x, --abortx <no. failures>)" contains: "-x" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4438 | </Expanded> |
| 4439 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4440 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4441 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4442 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4443 | </Section> |
| 4444 | <Section name="nothrow"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4445 | <Section name="-e"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4446 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4447 | <Original> |
| 4448 | parseIntoConfig( argv, config ) |
| 4449 | </Original> |
| 4450 | <Expanded> |
| 4451 | parseIntoConfig( argv, config ) |
| 4452 | </Expanded> |
| 4453 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4454 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4455 | <Original> |
| 4456 | config.noThrow == true |
| 4457 | </Original> |
| 4458 | <Expanded> |
| 4459 | true == true |
| 4460 | </Expanded> |
| 4461 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4462 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4463 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4464 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4465 | </Section> |
| 4466 | <Section name="nothrow"> |
| 4467 | <Section name="--nothrow"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4468 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4469 | <Original> |
| 4470 | parseIntoConfig( argv, config ) |
| 4471 | </Original> |
| 4472 | <Expanded> |
| 4473 | parseIntoConfig( argv, config ) |
| 4474 | </Expanded> |
| 4475 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4476 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4477 | <Original> |
| 4478 | config.noThrow == true |
| 4479 | </Original> |
| 4480 | <Expanded> |
| 4481 | true == true |
| 4482 | </Expanded> |
| 4483 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4484 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4485 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4486 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4487 | </Section> |
| 4488 | <Section name="output filename"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4489 | <Section name="-o filename"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4490 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4491 | <Original> |
| 4492 | parseIntoConfig( argv, config ) |
| 4493 | </Original> |
| 4494 | <Expanded> |
| 4495 | parseIntoConfig( argv, config ) |
| 4496 | </Expanded> |
| 4497 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4498 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4499 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4500 | config.outputFilename == "filename.ext" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4501 | </Original> |
| 4502 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4503 | "filename.ext" == "filename.ext" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4504 | </Expanded> |
| 4505 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4506 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4507 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4508 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4509 | </Section> |
| 4510 | <Section name="output filename"> |
| 4511 | <Section name="--out"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4512 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4513 | <Original> |
| 4514 | parseIntoConfig( argv, config ) |
| 4515 | </Original> |
| 4516 | <Expanded> |
| 4517 | parseIntoConfig( argv, config ) |
| 4518 | </Expanded> |
| 4519 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4520 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4521 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4522 | config.outputFilename == "filename.ext" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4523 | </Original> |
| 4524 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4525 | "filename.ext" == "filename.ext" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4526 | </Expanded> |
| 4527 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4528 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4529 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4530 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4531 | </Section> |
| 4532 | <Section name="combinations"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4533 | <Section name="Single character flags can be combined"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4534 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4535 | <Original> |
| 4536 | parseIntoConfig( argv, config ) |
| 4537 | </Original> |
| 4538 | <Expanded> |
| 4539 | parseIntoConfig( argv, config ) |
| 4540 | </Expanded> |
| 4541 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4542 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4543 | <Original> |
| 4544 | config.abortAfter == 1 |
| 4545 | </Original> |
| 4546 | <Expanded> |
| 4547 | 1 == 1 |
| 4548 | </Expanded> |
| 4549 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4550 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4551 | <Original> |
| 4552 | config.shouldDebugBreak |
| 4553 | </Original> |
| 4554 | <Expanded> |
| 4555 | true |
| 4556 | </Expanded> |
| 4557 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4558 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4559 | <Original> |
| 4560 | config.noThrow == true |
| 4561 | </Original> |
| 4562 | <Expanded> |
| 4563 | true == true |
| 4564 | </Expanded> |
| 4565 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4566 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4567 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4568 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4569 | </Section> |
Phil Nash | 856468c | 2015-03-04 08:22:32 +0000 | [diff] [blame] | 4570 | <Section name="force-colour"> |
| 4571 | <Section name="--force-colour"> |
| 4572 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4573 | <Original> |
| 4574 | parseIntoConfig( argv, config ) |
| 4575 | </Original> |
| 4576 | <Expanded> |
| 4577 | parseIntoConfig( argv, config ) |
| 4578 | </Expanded> |
| 4579 | </Expression> |
| 4580 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4581 | <Original> |
| 4582 | config.forceColour |
| 4583 | </Original> |
| 4584 | <Expanded> |
| 4585 | true |
| 4586 | </Expanded> |
| 4587 | </Expression> |
| 4588 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4589 | </Section> |
| 4590 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4591 | </Section> |
| 4592 | <Section name="force-colour"> |
| 4593 | <Section name="without --force-colour"> |
| 4594 | <Expression success="true" type="CHECK_NOTHROW" filename="projects/SelfTest/TestMain.cpp" > |
| 4595 | <Original> |
| 4596 | parseIntoConfig( argv, config ) |
| 4597 | </Original> |
| 4598 | <Expanded> |
| 4599 | parseIntoConfig( argv, config ) |
| 4600 | </Expanded> |
| 4601 | </Expression> |
| 4602 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
| 4603 | <Original> |
| 4604 | !config.forceColour |
| 4605 | </Original> |
| 4606 | <Expanded> |
| 4607 | true |
| 4608 | </Expanded> |
| 4609 | </Expression> |
| 4610 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4611 | </Section> |
| 4612 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 4613 | </Section> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4614 | <OverallResult success="true"/> |
| 4615 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4616 | <TestCase name="Long strings can be wrapped"> |
| 4617 | <Section name="plain string"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4618 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4619 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4620 | <Original> |
| 4621 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4622 | </Original> |
| 4623 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4624 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4625 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4626 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4627 | </Expanded> |
| 4628 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4629 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4630 | <Original> |
| 4631 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4632 | </Original> |
| 4633 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4634 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4635 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4636 | "one two three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4637 | </Expanded> |
| 4638 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4639 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4640 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4641 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4642 | </Section> |
| 4643 | <Section name="plain string"> |
| 4644 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4645 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4646 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4647 | Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4648 | </Original> |
| 4649 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4650 | "one two three |
| 4651 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4652 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4653 | "one two three |
| 4654 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4655 | </Expanded> |
| 4656 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4657 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4658 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4659 | Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4660 | </Original> |
| 4661 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4662 | "one two three |
| 4663 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4664 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4665 | "one two three |
| 4666 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4667 | </Expanded> |
| 4668 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4669 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4670 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4671 | Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4672 | </Original> |
| 4673 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4674 | "one two three |
| 4675 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4676 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4677 | "one two three |
| 4678 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4679 | </Expanded> |
| 4680 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4681 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4682 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4683 | Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4684 | </Original> |
| 4685 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4686 | "one two three |
| 4687 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4688 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4689 | "one two three |
| 4690 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4691 | </Expanded> |
| 4692 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4693 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4694 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4695 | Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4696 | </Original> |
| 4697 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4698 | "one two |
| 4699 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4700 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4701 | "one two |
| 4702 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4703 | </Expanded> |
| 4704 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4705 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4706 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4707 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4708 | </Section> |
| 4709 | <Section name="plain string"> |
| 4710 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4711 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4712 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4713 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4714 | </Original> |
| 4715 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4716 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4717 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4718 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4719 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4720 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4721 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4722 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4723 | </Expanded> |
| 4724 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4725 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4726 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4727 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4728 | </Original> |
| 4729 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4730 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4731 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4732 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4733 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4734 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4735 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4736 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4737 | </Expanded> |
| 4738 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4739 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4740 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4741 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4742 | </Original> |
| 4743 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4744 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4745 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4746 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4747 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4748 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4749 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4750 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4751 | </Expanded> |
| 4752 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4753 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4754 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4755 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4756 | </Section> |
| 4757 | <Section name="plain string"> |
| 4758 | <Section name="Wrapped three times"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4759 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4760 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4761 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4762 | </Original> |
| 4763 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4764 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4765 | two |
| 4766 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4767 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4768 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4769 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4770 | two |
| 4771 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4772 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4773 | </Expanded> |
| 4774 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4775 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4776 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4777 | Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4778 | </Original> |
| 4779 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4780 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4781 | two |
| 4782 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4783 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4784 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4785 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4786 | two |
| 4787 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4788 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4789 | </Expanded> |
| 4790 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4791 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4792 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4793 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4794 | </Section> |
| 4795 | <Section name="plain string"> |
| 4796 | <Section name="Short wrap"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4797 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4798 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4799 | Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4800 | </Original> |
| 4801 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4802 | "abc- |
| 4803 | def" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4804 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4805 | "abc- |
| 4806 | def" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4807 | </Expanded> |
| 4808 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4809 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4810 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4811 | Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4812 | </Original> |
| 4813 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4814 | "abc- |
| 4815 | defg" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4816 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4817 | "abc- |
| 4818 | defg" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4819 | </Expanded> |
| 4820 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4821 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4822 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4823 | Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4824 | </Original> |
| 4825 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4826 | "abc- |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4827 | def- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4828 | gh" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4829 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4830 | "abc- |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4831 | def- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4832 | gh" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4833 | </Expanded> |
| 4834 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4835 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4836 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4837 | Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4838 | </Original> |
| 4839 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4840 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4841 | two |
| 4842 | thr- |
| 4843 | ee |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4844 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4845 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4846 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4847 | two |
| 4848 | thr- |
| 4849 | ee |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4850 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4851 | </Expanded> |
| 4852 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4853 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4854 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4855 | Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4856 | </Original> |
| 4857 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4858 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4859 | two |
| 4860 | th- |
| 4861 | ree |
| 4862 | fo- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4863 | ur" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4864 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4865 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4866 | two |
| 4867 | th- |
| 4868 | ree |
| 4869 | fo- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4870 | ur" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4871 | </Expanded> |
| 4872 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4873 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4874 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4875 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4876 | </Section> |
| 4877 | <Section name="plain string"> |
| 4878 | <Section name="As container"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4879 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4880 | <Original> |
| 4881 | text.size() == 4 |
| 4882 | </Original> |
| 4883 | <Expanded> |
| 4884 | 4 == 4 |
| 4885 | </Expanded> |
| 4886 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4887 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4888 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4889 | text[0] == "one" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4890 | </Original> |
| 4891 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4892 | "one" == "one" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4893 | </Expanded> |
| 4894 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4895 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4896 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4897 | text[1] == "two" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4898 | </Original> |
| 4899 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4900 | "two" == "two" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4901 | </Expanded> |
| 4902 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4903 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4904 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4905 | text[2] == "three" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4906 | </Original> |
| 4907 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4908 | "three" == "three" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4909 | </Expanded> |
| 4910 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4911 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4912 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4913 | text[3] == "four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4914 | </Original> |
| 4915 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4916 | "four" == "four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4917 | </Expanded> |
| 4918 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4919 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4920 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4921 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4922 | </Section> |
| 4923 | <Section name="plain string"> |
| 4924 | <Section name="Indent first line differently"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4925 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4926 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4927 | text.toString() == " one two\n three\n four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4928 | </Original> |
| 4929 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4930 | " one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4931 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4932 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4933 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4934 | " one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4935 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4936 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4937 | </Expanded> |
| 4938 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4939 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4940 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4941 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4942 | </Section> |
| 4943 | <Section name="With newlines"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4944 | <Section name="No wrapping"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4945 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4946 | <Original> |
| 4947 | Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString |
| 4948 | </Original> |
| 4949 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4950 | "one two |
| 4951 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4952 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4953 | "one two |
| 4954 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4955 | </Expanded> |
| 4956 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4957 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4958 | <Original> |
| 4959 | Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString |
| 4960 | </Original> |
| 4961 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4962 | "one two |
| 4963 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4964 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4965 | "one two |
| 4966 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4967 | </Expanded> |
| 4968 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4969 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4970 | <Original> |
| 4971 | Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString |
| 4972 | </Original> |
| 4973 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4974 | "one two |
| 4975 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4976 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4977 | "one two |
| 4978 | three four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4979 | </Expanded> |
| 4980 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4981 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4982 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 4983 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4984 | </Section> |
| 4985 | <Section name="With newlines"> |
| 4986 | <Section name="Trailing newline"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4987 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4988 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4989 | Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4990 | </Original> |
| 4991 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4992 | "abcdef |
| 4993 | " |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4994 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 4995 | "abcdef |
| 4996 | " |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 4997 | </Expanded> |
| 4998 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 4999 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5000 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5001 | Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5002 | </Original> |
| 5003 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5004 | "abcdef" == "abcdef" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5005 | </Expanded> |
| 5006 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5007 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5008 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5009 | Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5010 | </Original> |
| 5011 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5012 | "abcdef |
| 5013 | " |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5014 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5015 | "abcdef |
| 5016 | " |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5017 | </Expanded> |
| 5018 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5019 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5020 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5021 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5022 | </Section> |
| 5023 | <Section name="With newlines"> |
| 5024 | <Section name="Wrapped once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5025 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5026 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5027 | Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5028 | </Original> |
| 5029 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5030 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5031 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5032 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5033 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5034 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5035 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5036 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5037 | </Expanded> |
| 5038 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5039 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5040 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5041 | Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5042 | </Original> |
| 5043 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5044 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5045 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5046 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5047 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5048 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5049 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5050 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5051 | </Expanded> |
| 5052 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5053 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5054 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5055 | Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5056 | </Original> |
| 5057 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5058 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5059 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5060 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5061 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5062 | "one two |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5063 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5064 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5065 | </Expanded> |
| 5066 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5067 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5068 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5069 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5070 | </Section> |
| 5071 | <Section name="With newlines"> |
| 5072 | <Section name="Wrapped twice"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5073 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5074 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5075 | Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5076 | </Original> |
| 5077 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5078 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5079 | two |
| 5080 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5081 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5082 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5083 | "one |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5084 | two |
| 5085 | three |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5086 | four" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5087 | </Expanded> |
| 5088 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5089 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5090 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5091 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5092 | </Section> |
| 5093 | <Section name="With tabs"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5094 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5095 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5096 | Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5097 | </Original> |
| 5098 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5099 | "one two three |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5100 | four |
| 5101 | five |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5102 | six" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5103 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5104 | "one two three |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5105 | four |
| 5106 | five |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5107 | six" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5108 | </Expanded> |
| 5109 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 5110 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5111 | </Section> |
| 5112 | <OverallResult success="true"/> |
| 5113 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5114 | <TestCase name="replaceInPlace"> |
| 5115 | <Section name="replace single char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5116 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5117 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5118 | replaceInPlace( letters, "b", "z" ) |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5119 | </Original> |
| 5120 | <Expanded> |
| 5121 | true |
| 5122 | </Expanded> |
| 5123 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5124 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5125 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5126 | letters == "azcdefcg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5127 | </Original> |
| 5128 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5129 | "azcdefcg" == "azcdefcg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5130 | </Expanded> |
| 5131 | </Expression> |
| 5132 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5133 | </Section> |
| 5134 | <Section name="replace two chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5135 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5136 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5137 | replaceInPlace( letters, "c", "z" ) |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5138 | </Original> |
| 5139 | <Expanded> |
| 5140 | true |
| 5141 | </Expanded> |
| 5142 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5143 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5144 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5145 | letters == "abzdefzg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5146 | </Original> |
| 5147 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5148 | "abzdefzg" == "abzdefzg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5149 | </Expanded> |
| 5150 | </Expression> |
| 5151 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5152 | </Section> |
| 5153 | <Section name="replace first char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5154 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5155 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5156 | replaceInPlace( letters, "a", "z" ) |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5157 | </Original> |
| 5158 | <Expanded> |
| 5159 | true |
| 5160 | </Expanded> |
| 5161 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5162 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5163 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5164 | letters == "zbcdefcg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5165 | </Original> |
| 5166 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5167 | "zbcdefcg" == "zbcdefcg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5168 | </Expanded> |
| 5169 | </Expression> |
| 5170 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5171 | </Section> |
| 5172 | <Section name="replace last char"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5173 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5174 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5175 | replaceInPlace( letters, "g", "z" ) |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5176 | </Original> |
| 5177 | <Expanded> |
| 5178 | true |
| 5179 | </Expanded> |
| 5180 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5181 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5182 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5183 | letters == "abcdefcz" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5184 | </Original> |
| 5185 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5186 | "abcdefcz" == "abcdefcz" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5187 | </Expanded> |
| 5188 | </Expression> |
| 5189 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5190 | </Section> |
| 5191 | <Section name="replace all chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5192 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5193 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5194 | replaceInPlace( letters, letters, "replaced" ) |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5195 | </Original> |
| 5196 | <Expanded> |
| 5197 | true |
| 5198 | </Expanded> |
| 5199 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5200 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5201 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5202 | letters == "replaced" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5203 | </Original> |
| 5204 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5205 | "replaced" == "replaced" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5206 | </Expanded> |
| 5207 | </Expression> |
| 5208 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5209 | </Section> |
| 5210 | <Section name="replace no chars"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5211 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5212 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5213 | !replaceInPlace( letters, "x", "z" ) |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5214 | </Original> |
| 5215 | <Expanded> |
| 5216 | !false |
| 5217 | </Expanded> |
| 5218 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5219 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5220 | <Original> |
| 5221 | letters == letters |
| 5222 | </Original> |
| 5223 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5224 | "abcdefcg" == "abcdefcg" |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5225 | </Expanded> |
| 5226 | </Expression> |
| 5227 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5228 | </Section> |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5229 | <Section name="escape '"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5230 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5231 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5232 | replaceInPlace( s, "'", "|'" ) |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5233 | </Original> |
| 5234 | <Expanded> |
| 5235 | true |
| 5236 | </Expanded> |
| 5237 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5238 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5239 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5240 | s == "didn|'t" |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5241 | </Original> |
| 5242 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5243 | "didn|'t" == "didn|'t" |
Phil Nash | 6817bb0 | 2014-12-30 18:24:31 +0000 | [diff] [blame] | 5244 | </Expanded> |
| 5245 | </Expression> |
| 5246 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 5247 | </Section> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 5248 | <OverallResult success="true"/> |
| 5249 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5250 | <TestCase name="Strings can be rendered with colour"> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 5251 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5252 | </TestCase> |
| 5253 | <TestCase name="Text can be formatted using the Text class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5254 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5255 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5256 | Text( "hi there" ).toString() == "hi there" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5257 | </Original> |
| 5258 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5259 | "hi there" == "hi there" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5260 | </Expanded> |
| 5261 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5262 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5263 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5264 | Text( "hi there", narrow ).toString() == "hi\nthere" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5265 | </Original> |
| 5266 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5267 | "hi |
| 5268 | there" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5269 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5270 | "hi |
| 5271 | there" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 5272 | </Expanded> |
| 5273 | </Expression> |
| 5274 | <OverallResult success="true"/> |
| 5275 | </TestCase> |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 5276 | <TestCase name="Long text is truncted"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 5277 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TestMain.cpp" > |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 5278 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5279 | t.toString() EndsWith( "... message truncated due to excessive size" ) |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 5280 | </Original> |
| 5281 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 5282 | "******************************************************************************- |
Phil Nash | 93a945c | 2013-10-23 15:35:07 +0100 | [diff] [blame] | 5283 | ******************************************************************************- |
| 5284 | ************************ |
| 5285 | ******************************************************************************- |
| 5286 | ******************************************************************************- |
| 5287 | ************************ |
| 5288 | ******************************************************************************- |
| 5289 | ******************************************************************************- |
| 5290 | ************************ |
| 5291 | ******************************************************************************- |
| 5292 | ******************************************************************************- |
| 5293 | ************************ |
| 5294 | ******************************************************************************- |
| 5295 | ******************************************************************************- |
| 5296 | ************************ |
| 5297 | ******************************************************************************- |
| 5298 | ******************************************************************************- |
| 5299 | ************************ |
| 5300 | ******************************************************************************- |
| 5301 | ******************************************************************************- |
| 5302 | ************************ |
| 5303 | ******************************************************************************- |
| 5304 | ******************************************************************************- |
| 5305 | ************************ |
| 5306 | ******************************************************************************- |
| 5307 | ******************************************************************************- |
| 5308 | ************************ |
| 5309 | ******************************************************************************- |
| 5310 | ******************************************************************************- |
| 5311 | ************************ |
| 5312 | ******************************************************************************- |
| 5313 | ******************************************************************************- |
| 5314 | ************************ |
| 5315 | ******************************************************************************- |
| 5316 | ******************************************************************************- |
| 5317 | ************************ |
| 5318 | ******************************************************************************- |
| 5319 | ******************************************************************************- |
| 5320 | ************************ |
| 5321 | ******************************************************************************- |
| 5322 | ******************************************************************************- |
| 5323 | ************************ |
| 5324 | ******************************************************************************- |
| 5325 | ******************************************************************************- |
| 5326 | ************************ |
| 5327 | ******************************************************************************- |
| 5328 | ******************************************************************************- |
| 5329 | ************************ |
| 5330 | ******************************************************************************- |
| 5331 | ******************************************************************************- |
| 5332 | ************************ |
| 5333 | ******************************************************************************- |
| 5334 | ******************************************************************************- |
| 5335 | ************************ |
| 5336 | ******************************************************************************- |
| 5337 | ******************************************************************************- |
| 5338 | ************************ |
| 5339 | ******************************************************************************- |
| 5340 | ******************************************************************************- |
| 5341 | ************************ |
| 5342 | ******************************************************************************- |
| 5343 | ******************************************************************************- |
| 5344 | ************************ |
| 5345 | ******************************************************************************- |
| 5346 | ******************************************************************************- |
| 5347 | ************************ |
| 5348 | ******************************************************************************- |
| 5349 | ******************************************************************************- |
| 5350 | ************************ |
| 5351 | ******************************************************************************- |
| 5352 | ******************************************************************************- |
| 5353 | ************************ |
| 5354 | ******************************************************************************- |
| 5355 | ******************************************************************************- |
| 5356 | ************************ |
| 5357 | ******************************************************************************- |
| 5358 | ******************************************************************************- |
| 5359 | ************************ |
| 5360 | ******************************************************************************- |
| 5361 | ******************************************************************************- |
| 5362 | ************************ |
| 5363 | ******************************************************************************- |
| 5364 | ******************************************************************************- |
| 5365 | ************************ |
| 5366 | ******************************************************************************- |
| 5367 | ******************************************************************************- |
| 5368 | ************************ |
| 5369 | ******************************************************************************- |
| 5370 | ******************************************************************************- |
| 5371 | ************************ |
| 5372 | ******************************************************************************- |
| 5373 | ******************************************************************************- |
| 5374 | ************************ |
| 5375 | ******************************************************************************- |
| 5376 | ******************************************************************************- |
| 5377 | ************************ |
| 5378 | ******************************************************************************- |
| 5379 | ******************************************************************************- |
| 5380 | ************************ |
| 5381 | ******************************************************************************- |
| 5382 | ******************************************************************************- |
| 5383 | ************************ |
| 5384 | ******************************************************************************- |
| 5385 | ******************************************************************************- |
| 5386 | ************************ |
| 5387 | ******************************************************************************- |
| 5388 | ******************************************************************************- |
| 5389 | ************************ |
| 5390 | ******************************************************************************- |
| 5391 | ******************************************************************************- |
| 5392 | ************************ |
| 5393 | ******************************************************************************- |
| 5394 | ******************************************************************************- |
| 5395 | ************************ |
| 5396 | ******************************************************************************- |
| 5397 | ******************************************************************************- |
| 5398 | ************************ |
| 5399 | ******************************************************************************- |
| 5400 | ******************************************************************************- |
| 5401 | ************************ |
| 5402 | ******************************************************************************- |
| 5403 | ******************************************************************************- |
| 5404 | ************************ |
| 5405 | ******************************************************************************- |
| 5406 | ******************************************************************************- |
| 5407 | ************************ |
| 5408 | ******************************************************************************- |
| 5409 | ******************************************************************************- |
| 5410 | ************************ |
| 5411 | ******************************************************************************- |
| 5412 | ******************************************************************************- |
| 5413 | ************************ |
| 5414 | ******************************************************************************- |
| 5415 | ******************************************************************************- |
| 5416 | ************************ |
| 5417 | ******************************************************************************- |
| 5418 | ******************************************************************************- |
| 5419 | ************************ |
| 5420 | ******************************************************************************- |
| 5421 | ******************************************************************************- |
| 5422 | ************************ |
| 5423 | ******************************************************************************- |
| 5424 | ******************************************************************************- |
| 5425 | ************************ |
| 5426 | ******************************************************************************- |
| 5427 | ******************************************************************************- |
| 5428 | ************************ |
| 5429 | ******************************************************************************- |
| 5430 | ******************************************************************************- |
| 5431 | ************************ |
| 5432 | ******************************************************************************- |
| 5433 | ******************************************************************************- |
| 5434 | ************************ |
| 5435 | ******************************************************************************- |
| 5436 | ******************************************************************************- |
| 5437 | ************************ |
| 5438 | ******************************************************************************- |
| 5439 | ******************************************************************************- |
| 5440 | ************************ |
| 5441 | ******************************************************************************- |
| 5442 | ******************************************************************************- |
| 5443 | ************************ |
| 5444 | ******************************************************************************- |
| 5445 | ******************************************************************************- |
| 5446 | ************************ |
| 5447 | ******************************************************************************- |
| 5448 | ******************************************************************************- |
| 5449 | ************************ |
| 5450 | ******************************************************************************- |
| 5451 | ******************************************************************************- |
| 5452 | ************************ |
| 5453 | ******************************************************************************- |
| 5454 | ******************************************************************************- |
| 5455 | ************************ |
| 5456 | ******************************************************************************- |
| 5457 | ******************************************************************************- |
| 5458 | ************************ |
| 5459 | ******************************************************************************- |
| 5460 | ******************************************************************************- |
| 5461 | ************************ |
| 5462 | ******************************************************************************- |
| 5463 | ******************************************************************************- |
| 5464 | ************************ |
| 5465 | ******************************************************************************- |
| 5466 | ******************************************************************************- |
| 5467 | ************************ |
| 5468 | ******************************************************************************- |
| 5469 | ******************************************************************************- |
| 5470 | ************************ |
| 5471 | ******************************************************************************- |
| 5472 | ******************************************************************************- |
| 5473 | ************************ |
| 5474 | ******************************************************************************- |
| 5475 | ******************************************************************************- |
| 5476 | ************************ |
| 5477 | ******************************************************************************- |
| 5478 | ******************************************************************************- |
| 5479 | ************************ |
| 5480 | ******************************************************************************- |
| 5481 | ******************************************************************************- |
| 5482 | ************************ |
| 5483 | ******************************************************************************- |
| 5484 | ******************************************************************************- |
| 5485 | ************************ |
| 5486 | ******************************************************************************- |
| 5487 | ******************************************************************************- |
| 5488 | ************************ |
| 5489 | ******************************************************************************- |
| 5490 | ******************************************************************************- |
| 5491 | ************************ |
| 5492 | ******************************************************************************- |
| 5493 | ******************************************************************************- |
| 5494 | ************************ |
| 5495 | ******************************************************************************- |
| 5496 | ******************************************************************************- |
| 5497 | ************************ |
| 5498 | ******************************************************************************- |
| 5499 | ******************************************************************************- |
| 5500 | ************************ |
| 5501 | ******************************************************************************- |
| 5502 | ******************************************************************************- |
| 5503 | ************************ |
| 5504 | ******************************************************************************- |
| 5505 | ******************************************************************************- |
| 5506 | ************************ |
| 5507 | ******************************************************************************- |
| 5508 | ******************************************************************************- |
| 5509 | ************************ |
| 5510 | ******************************************************************************- |
| 5511 | ******************************************************************************- |
| 5512 | ************************ |
| 5513 | ******************************************************************************- |
| 5514 | ******************************************************************************- |
| 5515 | ************************ |
| 5516 | ******************************************************************************- |
| 5517 | ******************************************************************************- |
| 5518 | ************************ |
| 5519 | ******************************************************************************- |
| 5520 | ******************************************************************************- |
| 5521 | ************************ |
| 5522 | ******************************************************************************- |
| 5523 | ******************************************************************************- |
| 5524 | ************************ |
| 5525 | ******************************************************************************- |
| 5526 | ******************************************************************************- |
| 5527 | ************************ |
| 5528 | ******************************************************************************- |
| 5529 | ******************************************************************************- |
| 5530 | ************************ |
| 5531 | ******************************************************************************- |
| 5532 | ******************************************************************************- |
| 5533 | ************************ |
| 5534 | ******************************************************************************- |
| 5535 | ******************************************************************************- |
| 5536 | ************************ |
| 5537 | ******************************************************************************- |
| 5538 | ******************************************************************************- |
| 5539 | ************************ |
| 5540 | ******************************************************************************- |
| 5541 | ******************************************************************************- |
| 5542 | ************************ |
| 5543 | ******************************************************************************- |
| 5544 | ******************************************************************************- |
| 5545 | ************************ |
| 5546 | ******************************************************************************- |
| 5547 | ******************************************************************************- |
| 5548 | ************************ |
| 5549 | ******************************************************************************- |
| 5550 | ******************************************************************************- |
| 5551 | ************************ |
| 5552 | ******************************************************************************- |
| 5553 | ******************************************************************************- |
| 5554 | ************************ |
| 5555 | ******************************************************************************- |
| 5556 | ******************************************************************************- |
| 5557 | ************************ |
| 5558 | ******************************************************************************- |
| 5559 | ******************************************************************************- |
| 5560 | ************************ |
| 5561 | ******************************************************************************- |
| 5562 | ******************************************************************************- |
| 5563 | ************************ |
| 5564 | ******************************************************************************- |
| 5565 | ******************************************************************************- |
| 5566 | ************************ |
| 5567 | ******************************************************************************- |
| 5568 | ******************************************************************************- |
| 5569 | ************************ |
| 5570 | ******************************************************************************- |
| 5571 | ******************************************************************************- |
| 5572 | ************************ |
| 5573 | ******************************************************************************- |
| 5574 | ******************************************************************************- |
| 5575 | ************************ |
| 5576 | ******************************************************************************- |
| 5577 | ******************************************************************************- |
| 5578 | ************************ |
| 5579 | ******************************************************************************- |
| 5580 | ******************************************************************************- |
| 5581 | ************************ |
| 5582 | ******************************************************************************- |
| 5583 | ******************************************************************************- |
| 5584 | ************************ |
| 5585 | ******************************************************************************- |
| 5586 | ******************************************************************************- |
| 5587 | ************************ |
| 5588 | ******************************************************************************- |
| 5589 | ******************************************************************************- |
| 5590 | ************************ |
| 5591 | ******************************************************************************- |
| 5592 | ******************************************************************************- |
| 5593 | ************************ |
| 5594 | ******************************************************************************- |
| 5595 | ******************************************************************************- |
| 5596 | ************************ |
| 5597 | ******************************************************************************- |
| 5598 | ******************************************************************************- |
| 5599 | ************************ |
| 5600 | ******************************************************************************- |
| 5601 | ******************************************************************************- |
| 5602 | ************************ |
| 5603 | ******************************************************************************- |
| 5604 | ******************************************************************************- |
| 5605 | ************************ |
| 5606 | ******************************************************************************- |
| 5607 | ******************************************************************************- |
| 5608 | ************************ |
| 5609 | ******************************************************************************- |
| 5610 | ******************************************************************************- |
| 5611 | ************************ |
| 5612 | ******************************************************************************- |
| 5613 | ******************************************************************************- |
| 5614 | ************************ |
| 5615 | ******************************************************************************- |
| 5616 | ******************************************************************************- |
| 5617 | ************************ |
| 5618 | ******************************************************************************- |
| 5619 | ******************************************************************************- |
| 5620 | ************************ |
| 5621 | ******************************************************************************- |
| 5622 | ******************************************************************************- |
| 5623 | ************************ |
| 5624 | ******************************************************************************- |
| 5625 | ******************************************************************************- |
| 5626 | ************************ |
| 5627 | ******************************************************************************- |
| 5628 | ******************************************************************************- |
| 5629 | ************************ |
| 5630 | ******************************************************************************- |
| 5631 | ******************************************************************************- |
| 5632 | ************************ |
| 5633 | ******************************************************************************- |
| 5634 | ******************************************************************************- |
| 5635 | ************************ |
| 5636 | ******************************************************************************- |
| 5637 | ******************************************************************************- |
| 5638 | ************************ |
| 5639 | ******************************************************************************- |
| 5640 | ******************************************************************************- |
| 5641 | ************************ |
| 5642 | ******************************************************************************- |
| 5643 | ******************************************************************************- |
| 5644 | ************************ |
| 5645 | ******************************************************************************- |
| 5646 | ******************************************************************************- |
| 5647 | ************************ |
| 5648 | ******************************************************************************- |
| 5649 | ******************************************************************************- |
| 5650 | ************************ |
| 5651 | ******************************************************************************- |
| 5652 | ******************************************************************************- |
| 5653 | ************************ |
| 5654 | ******************************************************************************- |
| 5655 | ******************************************************************************- |
| 5656 | ************************ |
| 5657 | ******************************************************************************- |
| 5658 | ******************************************************************************- |
| 5659 | ************************ |
| 5660 | ******************************************************************************- |
| 5661 | ******************************************************************************- |
| 5662 | ************************ |
| 5663 | ******************************************************************************- |
| 5664 | ******************************************************************************- |
| 5665 | ************************ |
| 5666 | ******************************************************************************- |
| 5667 | ******************************************************************************- |
| 5668 | ************************ |
| 5669 | ******************************************************************************- |
| 5670 | ******************************************************************************- |
| 5671 | ************************ |
| 5672 | ******************************************************************************- |
| 5673 | ******************************************************************************- |
| 5674 | ************************ |
| 5675 | ******************************************************************************- |
| 5676 | ******************************************************************************- |
| 5677 | ************************ |
| 5678 | ******************************************************************************- |
| 5679 | ******************************************************************************- |
| 5680 | ************************ |
| 5681 | ******************************************************************************- |
| 5682 | ******************************************************************************- |
| 5683 | ************************ |
| 5684 | ******************************************************************************- |
| 5685 | ******************************************************************************- |
| 5686 | ************************ |
| 5687 | ******************************************************************************- |
| 5688 | ******************************************************************************- |
| 5689 | ************************ |
| 5690 | ******************************************************************************- |
| 5691 | ******************************************************************************- |
| 5692 | ************************ |
| 5693 | ******************************************************************************- |
| 5694 | ******************************************************************************- |
| 5695 | ************************ |
| 5696 | ******************************************************************************- |
| 5697 | ******************************************************************************- |
| 5698 | ************************ |
| 5699 | ******************************************************************************- |
| 5700 | ******************************************************************************- |
| 5701 | ************************ |
| 5702 | ******************************************************************************- |
| 5703 | ******************************************************************************- |
| 5704 | ************************ |
| 5705 | ******************************************************************************- |
| 5706 | ******************************************************************************- |
| 5707 | ************************ |
| 5708 | ******************************************************************************- |
| 5709 | ******************************************************************************- |
| 5710 | ************************ |
| 5711 | ******************************************************************************- |
| 5712 | ******************************************************************************- |
| 5713 | ************************ |
| 5714 | ******************************************************************************- |
| 5715 | ******************************************************************************- |
| 5716 | ************************ |
| 5717 | ******************************************************************************- |
| 5718 | ******************************************************************************- |
| 5719 | ************************ |
| 5720 | ******************************************************************************- |
| 5721 | ******************************************************************************- |
| 5722 | ************************ |
| 5723 | ******************************************************************************- |
| 5724 | ******************************************************************************- |
| 5725 | ************************ |
| 5726 | ******************************************************************************- |
| 5727 | ******************************************************************************- |
| 5728 | ************************ |
| 5729 | ******************************************************************************- |
| 5730 | ******************************************************************************- |
| 5731 | ************************ |
| 5732 | ******************************************************************************- |
| 5733 | ******************************************************************************- |
| 5734 | ************************ |
| 5735 | ******************************************************************************- |
| 5736 | ******************************************************************************- |
| 5737 | ************************ |
| 5738 | ******************************************************************************- |
| 5739 | ******************************************************************************- |
| 5740 | ************************ |
| 5741 | ******************************************************************************- |
| 5742 | ******************************************************************************- |
| 5743 | ************************ |
| 5744 | ******************************************************************************- |
| 5745 | ******************************************************************************- |
| 5746 | ************************ |
| 5747 | ******************************************************************************- |
| 5748 | ******************************************************************************- |
| 5749 | ************************ |
| 5750 | ******************************************************************************- |
| 5751 | ******************************************************************************- |
| 5752 | ************************ |
| 5753 | ******************************************************************************- |
| 5754 | ******************************************************************************- |
| 5755 | ************************ |
| 5756 | ******************************************************************************- |
| 5757 | ******************************************************************************- |
| 5758 | ************************ |
| 5759 | ******************************************************************************- |
| 5760 | ******************************************************************************- |
| 5761 | ************************ |
| 5762 | ******************************************************************************- |
| 5763 | ******************************************************************************- |
| 5764 | ************************ |
| 5765 | ******************************************************************************- |
| 5766 | ******************************************************************************- |
| 5767 | ************************ |
| 5768 | ******************************************************************************- |
| 5769 | ******************************************************************************- |
| 5770 | ************************ |
| 5771 | ******************************************************************************- |
| 5772 | ******************************************************************************- |
| 5773 | ************************ |
| 5774 | ******************************************************************************- |
| 5775 | ******************************************************************************- |
| 5776 | ************************ |
| 5777 | ******************************************************************************- |
| 5778 | ******************************************************************************- |
| 5779 | ************************ |
| 5780 | ******************************************************************************- |
| 5781 | ******************************************************************************- |
| 5782 | ************************ |
| 5783 | ******************************************************************************- |
| 5784 | ******************************************************************************- |
| 5785 | ************************ |
| 5786 | ******************************************************************************- |
| 5787 | ******************************************************************************- |
| 5788 | ************************ |
| 5789 | ******************************************************************************- |
| 5790 | ******************************************************************************- |
| 5791 | ************************ |
| 5792 | ******************************************************************************- |
| 5793 | ******************************************************************************- |
| 5794 | ************************ |
| 5795 | ******************************************************************************- |
| 5796 | ******************************************************************************- |
| 5797 | ************************ |
| 5798 | ******************************************************************************- |
| 5799 | ******************************************************************************- |
| 5800 | ************************ |
| 5801 | ******************************************************************************- |
| 5802 | ******************************************************************************- |
| 5803 | ************************ |
| 5804 | ******************************************************************************- |
| 5805 | ******************************************************************************- |
| 5806 | ************************ |
| 5807 | ******************************************************************************- |
| 5808 | ******************************************************************************- |
| 5809 | ************************ |
| 5810 | ******************************************************************************- |
| 5811 | ******************************************************************************- |
| 5812 | ************************ |
| 5813 | ******************************************************************************- |
| 5814 | ******************************************************************************- |
| 5815 | ************************ |
| 5816 | ******************************************************************************- |
| 5817 | ******************************************************************************- |
| 5818 | ************************ |
| 5819 | ******************************************************************************- |
| 5820 | ******************************************************************************- |
| 5821 | ************************ |
| 5822 | ******************************************************************************- |
| 5823 | ******************************************************************************- |
| 5824 | ************************ |
| 5825 | ******************************************************************************- |
| 5826 | ******************************************************************************- |
| 5827 | ************************ |
| 5828 | ******************************************************************************- |
| 5829 | ******************************************************************************- |
| 5830 | ************************ |
| 5831 | ******************************************************************************- |
| 5832 | ******************************************************************************- |
| 5833 | ************************ |
| 5834 | ******************************************************************************- |
| 5835 | ******************************************************************************- |
| 5836 | ************************ |
| 5837 | ******************************************************************************- |
| 5838 | ******************************************************************************- |
| 5839 | ************************ |
| 5840 | ******************************************************************************- |
| 5841 | ******************************************************************************- |
| 5842 | ************************ |
| 5843 | ******************************************************************************- |
| 5844 | ******************************************************************************- |
| 5845 | ************************ |
| 5846 | ******************************************************************************- |
| 5847 | ******************************************************************************- |
| 5848 | ************************ |
| 5849 | ******************************************************************************- |
| 5850 | ******************************************************************************- |
| 5851 | ************************ |
| 5852 | ******************************************************************************- |
| 5853 | ******************************************************************************- |
| 5854 | ************************ |
| 5855 | ******************************************************************************- |
| 5856 | ******************************************************************************- |
| 5857 | ************************ |
| 5858 | ******************************************************************************- |
| 5859 | ******************************************************************************- |
| 5860 | ************************ |
| 5861 | ******************************************************************************- |
| 5862 | ******************************************************************************- |
| 5863 | ************************ |
| 5864 | ******************************************************************************- |
| 5865 | ******************************************************************************- |
| 5866 | ************************ |
| 5867 | ******************************************************************************- |
| 5868 | ******************************************************************************- |
| 5869 | ************************ |
| 5870 | ******************************************************************************- |
| 5871 | ******************************************************************************- |
| 5872 | ************************ |
| 5873 | ******************************************************************************- |
| 5874 | ******************************************************************************- |
| 5875 | ************************ |
| 5876 | ******************************************************************************- |
| 5877 | ******************************************************************************- |
| 5878 | ************************ |
| 5879 | ******************************************************************************- |
| 5880 | ******************************************************************************- |
| 5881 | ************************ |
| 5882 | ******************************************************************************- |
| 5883 | ******************************************************************************- |
| 5884 | ************************ |
| 5885 | ******************************************************************************- |
| 5886 | ******************************************************************************- |
| 5887 | ************************ |
| 5888 | ******************************************************************************- |
| 5889 | ******************************************************************************- |
| 5890 | ************************ |
| 5891 | ******************************************************************************- |
| 5892 | ******************************************************************************- |
| 5893 | ************************ |
| 5894 | ******************************************************************************- |
| 5895 | ******************************************************************************- |
| 5896 | ************************ |
| 5897 | ******************************************************************************- |
| 5898 | ******************************************************************************- |
| 5899 | ************************ |
| 5900 | ******************************************************************************- |
| 5901 | ******************************************************************************- |
| 5902 | ************************ |
| 5903 | ******************************************************************************- |
| 5904 | ******************************************************************************- |
| 5905 | ************************ |
| 5906 | ******************************************************************************- |
| 5907 | ******************************************************************************- |
| 5908 | ************************ |
| 5909 | ******************************************************************************- |
| 5910 | ******************************************************************************- |
| 5911 | ************************ |
| 5912 | ******************************************************************************- |
| 5913 | ******************************************************************************- |
| 5914 | ************************ |
| 5915 | ******************************************************************************- |
| 5916 | ******************************************************************************- |
| 5917 | ************************ |
| 5918 | ******************************************************************************- |
| 5919 | ******************************************************************************- |
| 5920 | ************************ |
| 5921 | ******************************************************************************- |
| 5922 | ******************************************************************************- |
| 5923 | ************************ |
| 5924 | ******************************************************************************- |
| 5925 | ******************************************************************************- |
| 5926 | ************************ |
| 5927 | ******************************************************************************- |
| 5928 | ******************************************************************************- |
| 5929 | ************************ |
| 5930 | ******************************************************************************- |
| 5931 | ******************************************************************************- |
| 5932 | ************************ |
| 5933 | ******************************************************************************- |
| 5934 | ******************************************************************************- |
| 5935 | ************************ |
| 5936 | ******************************************************************************- |
| 5937 | ******************************************************************************- |
| 5938 | ************************ |
| 5939 | ******************************************************************************- |
| 5940 | ******************************************************************************- |
| 5941 | ************************ |
| 5942 | ******************************************************************************- |
| 5943 | ******************************************************************************- |
| 5944 | ************************ |
| 5945 | ******************************************************************************- |
| 5946 | ******************************************************************************- |
| 5947 | ************************ |
| 5948 | ******************************************************************************- |
| 5949 | ******************************************************************************- |
| 5950 | ************************ |
| 5951 | ******************************************************************************- |
| 5952 | ******************************************************************************- |
| 5953 | ************************ |
| 5954 | ******************************************************************************- |
| 5955 | ******************************************************************************- |
| 5956 | ************************ |
| 5957 | ******************************************************************************- |
| 5958 | ******************************************************************************- |
| 5959 | ************************ |
| 5960 | ******************************************************************************- |
| 5961 | ******************************************************************************- |
| 5962 | ************************ |
| 5963 | ******************************************************************************- |
| 5964 | ******************************************************************************- |
| 5965 | ************************ |
| 5966 | ******************************************************************************- |
| 5967 | ******************************************************************************- |
| 5968 | ************************ |
| 5969 | ******************************************************************************- |
| 5970 | ******************************************************************************- |
| 5971 | ************************ |
| 5972 | ******************************************************************************- |
| 5973 | ******************************************************************************- |
| 5974 | ************************ |
| 5975 | ******************************************************************************- |
| 5976 | ******************************************************************************- |
| 5977 | ************************ |
| 5978 | ******************************************************************************- |
| 5979 | ******************************************************************************- |
| 5980 | ************************ |
| 5981 | ******************************************************************************- |
| 5982 | ******************************************************************************- |
| 5983 | ************************ |
| 5984 | ******************************************************************************- |
| 5985 | ******************************************************************************- |
| 5986 | ************************ |
| 5987 | ******************************************************************************- |
| 5988 | ******************************************************************************- |
| 5989 | ************************ |
| 5990 | ******************************************************************************- |
| 5991 | ******************************************************************************- |
| 5992 | ************************ |
| 5993 | ******************************************************************************- |
| 5994 | ******************************************************************************- |
| 5995 | ************************ |
| 5996 | ******************************************************************************- |
| 5997 | ******************************************************************************- |
| 5998 | ************************ |
| 5999 | ******************************************************************************- |
| 6000 | ******************************************************************************- |
| 6001 | ************************ |
| 6002 | ******************************************************************************- |
| 6003 | ******************************************************************************- |
| 6004 | ************************ |
| 6005 | ******************************************************************************- |
| 6006 | ******************************************************************************- |
| 6007 | ************************ |
| 6008 | ******************************************************************************- |
| 6009 | ******************************************************************************- |
| 6010 | ************************ |
| 6011 | ******************************************************************************- |
| 6012 | ******************************************************************************- |
| 6013 | ************************ |
| 6014 | ******************************************************************************- |
| 6015 | ******************************************************************************- |
| 6016 | ************************ |
| 6017 | ******************************************************************************- |
| 6018 | ******************************************************************************- |
| 6019 | ************************ |
| 6020 | ******************************************************************************- |
| 6021 | ******************************************************************************- |
| 6022 | ************************ |
| 6023 | ******************************************************************************- |
| 6024 | ******************************************************************************- |
| 6025 | ************************ |
| 6026 | ******************************************************************************- |
| 6027 | ******************************************************************************- |
| 6028 | ************************ |
| 6029 | ******************************************************************************- |
| 6030 | ******************************************************************************- |
| 6031 | ************************ |
| 6032 | ******************************************************************************- |
| 6033 | ******************************************************************************- |
| 6034 | ************************ |
| 6035 | ******************************************************************************- |
| 6036 | ******************************************************************************- |
| 6037 | ************************ |
| 6038 | ******************************************************************************- |
| 6039 | ******************************************************************************- |
| 6040 | ************************ |
| 6041 | ******************************************************************************- |
| 6042 | ******************************************************************************- |
| 6043 | ************************ |
| 6044 | ******************************************************************************- |
| 6045 | ******************************************************************************- |
| 6046 | ************************ |
| 6047 | ******************************************************************************- |
| 6048 | ******************************************************************************- |
| 6049 | ************************ |
| 6050 | ******************************************************************************- |
| 6051 | ******************************************************************************- |
| 6052 | ************************ |
| 6053 | ******************************************************************************- |
| 6054 | ******************************************************************************- |
| 6055 | ************************ |
| 6056 | ******************************************************************************- |
| 6057 | ******************************************************************************- |
| 6058 | ************************ |
| 6059 | ******************************************************************************- |
| 6060 | ******************************************************************************- |
| 6061 | ************************ |
| 6062 | ******************************************************************************- |
| 6063 | ******************************************************************************- |
| 6064 | ************************ |
| 6065 | ******************************************************************************- |
| 6066 | ******************************************************************************- |
| 6067 | ************************ |
| 6068 | ******************************************************************************- |
| 6069 | ******************************************************************************- |
| 6070 | ************************ |
| 6071 | ******************************************************************************- |
| 6072 | ******************************************************************************- |
| 6073 | ************************ |
| 6074 | ******************************************************************************- |
| 6075 | ******************************************************************************- |
| 6076 | ************************ |
| 6077 | ******************************************************************************- |
| 6078 | ******************************************************************************- |
| 6079 | ************************ |
| 6080 | ******************************************************************************- |
| 6081 | ******************************************************************************- |
| 6082 | ************************ |
| 6083 | ******************************************************************************- |
| 6084 | ******************************************************************************- |
| 6085 | ************************ |
| 6086 | ******************************************************************************- |
| 6087 | ******************************************************************************- |
| 6088 | ************************ |
| 6089 | ******************************************************************************- |
| 6090 | ******************************************************************************- |
| 6091 | ************************ |
| 6092 | ******************************************************************************- |
| 6093 | ******************************************************************************- |
| 6094 | ************************ |
| 6095 | ******************************************************************************- |
| 6096 | ******************************************************************************- |
| 6097 | ************************ |
| 6098 | ******************************************************************************- |
| 6099 | ******************************************************************************- |
| 6100 | ************************ |
| 6101 | ******************************************************************************- |
| 6102 | ******************************************************************************- |
| 6103 | ************************ |
| 6104 | ******************************************************************************- |
| 6105 | ******************************************************************************- |
| 6106 | ************************ |
| 6107 | ******************************************************************************- |
| 6108 | ******************************************************************************- |
| 6109 | ************************ |
| 6110 | ******************************************************************************- |
| 6111 | ******************************************************************************- |
| 6112 | ************************ |
| 6113 | ******************************************************************************- |
| 6114 | ******************************************************************************- |
| 6115 | ************************ |
| 6116 | ******************************************************************************- |
| 6117 | ******************************************************************************- |
| 6118 | ************************ |
| 6119 | ******************************************************************************- |
| 6120 | ******************************************************************************- |
| 6121 | ************************ |
| 6122 | ******************************************************************************- |
| 6123 | ******************************************************************************- |
| 6124 | ************************ |
| 6125 | ******************************************************************************- |
| 6126 | ******************************************************************************- |
| 6127 | ************************ |
| 6128 | ******************************************************************************- |
| 6129 | ******************************************************************************- |
| 6130 | ************************ |
| 6131 | ******************************************************************************- |
| 6132 | ******************************************************************************- |
| 6133 | ************************ |
| 6134 | ******************************************************************************- |
| 6135 | ******************************************************************************- |
| 6136 | ************************ |
| 6137 | ******************************************************************************- |
| 6138 | ******************************************************************************- |
| 6139 | ************************ |
| 6140 | ******************************************************************************- |
| 6141 | ******************************************************************************- |
| 6142 | ************************ |
| 6143 | ******************************************************************************- |
| 6144 | ******************************************************************************- |
| 6145 | ************************ |
| 6146 | ******************************************************************************- |
| 6147 | ******************************************************************************- |
| 6148 | ************************ |
| 6149 | ******************************************************************************- |
| 6150 | ******************************************************************************- |
| 6151 | ************************ |
| 6152 | ******************************************************************************- |
| 6153 | ******************************************************************************- |
| 6154 | ************************ |
| 6155 | ******************************************************************************- |
| 6156 | ******************************************************************************- |
| 6157 | ************************ |
| 6158 | ******************************************************************************- |
| 6159 | ******************************************************************************- |
| 6160 | ************************ |
| 6161 | ******************************************************************************- |
| 6162 | ******************************************************************************- |
| 6163 | ************************ |
| 6164 | ******************************************************************************- |
| 6165 | ******************************************************************************- |
| 6166 | ************************ |
| 6167 | ******************************************************************************- |
| 6168 | ******************************************************************************- |
| 6169 | ************************ |
| 6170 | ******************************************************************************- |
| 6171 | ******************************************************************************- |
| 6172 | ************************ |
| 6173 | ******************************************************************************- |
| 6174 | ******************************************************************************- |
| 6175 | ************************ |
| 6176 | ******************************************************************************- |
| 6177 | ******************************************************************************- |
| 6178 | ************************ |
| 6179 | ******************************************************************************- |
| 6180 | ******************************************************************************- |
| 6181 | ************************ |
| 6182 | ******************************************************************************- |
| 6183 | ******************************************************************************- |
| 6184 | ************************ |
| 6185 | ******************************************************************************- |
| 6186 | ******************************************************************************- |
| 6187 | ************************ |
| 6188 | ******************************************************************************- |
| 6189 | ******************************************************************************- |
| 6190 | ************************ |
| 6191 | ******************************************************************************- |
| 6192 | ******************************************************************************- |
| 6193 | ************************ |
| 6194 | ******************************************************************************- |
| 6195 | ******************************************************************************- |
| 6196 | ************************ |
| 6197 | ******************************************************************************- |
| 6198 | ******************************************************************************- |
| 6199 | ************************ |
| 6200 | ******************************************************************************- |
| 6201 | ******************************************************************************- |
| 6202 | ************************ |
| 6203 | ******************************************************************************- |
| 6204 | ******************************************************************************- |
| 6205 | ************************ |
| 6206 | ******************************************************************************- |
| 6207 | ******************************************************************************- |
| 6208 | ************************ |
| 6209 | ******************************************************************************- |
| 6210 | ******************************************************************************- |
| 6211 | ************************ |
| 6212 | ******************************************************************************- |
| 6213 | ******************************************************************************- |
| 6214 | ************************ |
| 6215 | ******************************************************************************- |
| 6216 | ******************************************************************************- |
| 6217 | ************************ |
| 6218 | ******************************************************************************- |
| 6219 | ******************************************************************************- |
| 6220 | ************************ |
| 6221 | ******************************************************************************- |
| 6222 | ******************************************************************************- |
| 6223 | ************************ |
| 6224 | ******************************************************************************- |
| 6225 | ******************************************************************************- |
| 6226 | ************************ |
| 6227 | ******************************************************************************- |
| 6228 | ******************************************************************************- |
| 6229 | ************************ |
| 6230 | ******************************************************************************- |
| 6231 | ******************************************************************************- |
| 6232 | ************************ |
| 6233 | ******************************************************************************- |
| 6234 | ******************************************************************************- |
| 6235 | ************************ |
| 6236 | ******************************************************************************- |
| 6237 | ******************************************************************************- |
| 6238 | ************************ |
| 6239 | ******************************************************************************- |
| 6240 | ******************************************************************************- |
| 6241 | ************************ |
| 6242 | ******************************************************************************- |
| 6243 | ******************************************************************************- |
| 6244 | ************************ |
| 6245 | ******************************************************************************- |
| 6246 | ******************************************************************************- |
| 6247 | ************************ |
| 6248 | ******************************************************************************- |
| 6249 | ******************************************************************************- |
| 6250 | ************************ |
| 6251 | ******************************************************************************- |
| 6252 | ******************************************************************************- |
| 6253 | ************************ |
| 6254 | ******************************************************************************- |
| 6255 | ******************************************************************************- |
| 6256 | ************************ |
| 6257 | ******************************************************************************- |
| 6258 | ******************************************************************************- |
| 6259 | ************************ |
| 6260 | ******************************************************************************- |
| 6261 | ******************************************************************************- |
| 6262 | ************************ |
| 6263 | ******************************************************************************- |
| 6264 | ******************************************************************************- |
| 6265 | ************************ |
| 6266 | ******************************************************************************- |
| 6267 | ******************************************************************************- |
| 6268 | ************************ |
| 6269 | ******************************************************************************- |
| 6270 | ******************************************************************************- |
| 6271 | ************************ |
| 6272 | ******************************************************************************- |
| 6273 | ******************************************************************************- |
| 6274 | ************************ |
| 6275 | ******************************************************************************- |
| 6276 | ******************************************************************************- |
| 6277 | ************************ |
| 6278 | ******************************************************************************- |
| 6279 | ******************************************************************************- |
| 6280 | ************************ |
| 6281 | ******************************************************************************- |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6282 | ... 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] | 6283 | </Expanded> |
| 6284 | </Expression> |
| 6285 | <OverallResult success="true"/> |
| 6286 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6287 | <TestCase name="Parsing a std::pair"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6288 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6289 | <Original> |
| 6290 | (std::pair<int, int>( 1, 2 )) == aNicePair |
| 6291 | </Original> |
| 6292 | <Expanded> |
| 6293 | std::pair( 1, 2 ) == std::pair( 1, 2 ) |
| 6294 | </Expanded> |
| 6295 | </Expression> |
| 6296 | <OverallResult success="true"/> |
| 6297 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 6298 | <TestCase name="Where there is more to the expression after the RHS"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6299 | <Warning> |
| 6300 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 6301 | </Warning> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 6302 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6303 | </TestCase> |
Phil Nash | 3c8c9b2 | 2014-12-22 20:17:50 +0000 | [diff] [blame] | 6304 | <TestCase name="Where the LHS is not a simple value"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6305 | <Warning> |
| 6306 | Uncomment the code in this test to check that it gives a sensible compiler error |
| 6307 | </Warning> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 6308 | <OverallResult success="true"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6309 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 6310 | <TestCase name="A failing expression with a non streamable type is still captured"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6311 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6312 | <Original> |
| 6313 | &o1 == &o2 |
| 6314 | </Original> |
| 6315 | <Expanded> |
| 6316 | 0x<hex digits> == 0x<hex digits> |
| 6317 | </Expanded> |
| 6318 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6319 | <Expression success="false" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6320 | <Original> |
| 6321 | o1 == o2 |
| 6322 | </Original> |
| 6323 | <Expanded> |
| 6324 | {?} == {?} |
| 6325 | </Expanded> |
| 6326 | </Expression> |
| 6327 | <OverallResult success="false"/> |
| 6328 | </TestCase> |
Phil Nash | 3dc3763 | 2014-12-21 00:20:09 +0000 | [diff] [blame] | 6329 | <TestCase name="string literals of different sizes can be compared"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6330 | <Expression success="false" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6331 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6332 | std::string( "first" ) == "second" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6333 | </Original> |
| 6334 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6335 | "first" == "second" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6336 | </Expanded> |
| 6337 | </Expression> |
| 6338 | <OverallResult success="false"/> |
| 6339 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6340 | <TestCase name="An expression with side-effects should only be evaluated once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6341 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6342 | <Original> |
| 6343 | i++ == 7 |
| 6344 | </Original> |
| 6345 | <Expanded> |
| 6346 | 7 == 7 |
| 6347 | </Expanded> |
| 6348 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6349 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6350 | <Original> |
| 6351 | i++ == 8 |
| 6352 | </Original> |
| 6353 | <Expanded> |
| 6354 | 8 == 8 |
| 6355 | </Expanded> |
| 6356 | </Expression> |
| 6357 | <OverallResult success="true"/> |
| 6358 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6359 | <TestCase name="Operators at different namespace levels not hijacked by Koenig lookup"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6360 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6361 | <Original> |
| 6362 | 0x<hex digits> == o |
| 6363 | </Original> |
| 6364 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6365 | 3221225472 (0x<hex digits>) == {?} |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6366 | </Expanded> |
| 6367 | </Expression> |
| 6368 | <OverallResult success="true"/> |
| 6369 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6370 | <TestCase name="Demonstrate that a non-const == is not used"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6371 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6372 | <Original> |
| 6373 | t == 1u |
| 6374 | </Original> |
| 6375 | <Expanded> |
| 6376 | {?} == 1 |
| 6377 | </Expanded> |
| 6378 | </Expression> |
| 6379 | <OverallResult success="true"/> |
| 6380 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6381 | <TestCase name="Test enum bit values"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6382 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6383 | <Original> |
| 6384 | 0x<hex digits> == bit30and31 |
| 6385 | </Original> |
| 6386 | <Expanded> |
Phil Nash | 6ed74b5 | 2015-05-20 18:28:22 +0100 | [diff] [blame] | 6387 | 3221225472 (0x<hex digits>) == 3221225472 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6388 | </Expanded> |
| 6389 | </Expression> |
| 6390 | <OverallResult success="true"/> |
| 6391 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6392 | <TestCase name="boolean member"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6393 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6394 | <Original> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6395 | obj.prop != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6396 | </Original> |
| 6397 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6398 | 0x<hex digits> != nullptr |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6399 | </Expanded> |
| 6400 | </Expression> |
| 6401 | <OverallResult success="true"/> |
| 6402 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6403 | <TestCase name="(unimplemented) static bools can be evaluated"> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6404 | <Section name="compare to true"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6405 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6406 | <Original> |
| 6407 | is_true<true>::value == true |
| 6408 | </Original> |
| 6409 | <Expanded> |
| 6410 | true == true |
| 6411 | </Expanded> |
| 6412 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6413 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6414 | <Original> |
| 6415 | true == is_true<true>::value |
| 6416 | </Original> |
| 6417 | <Expanded> |
| 6418 | true == true |
| 6419 | </Expanded> |
| 6420 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6421 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6422 | </Section> |
| 6423 | <Section name="compare to false"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6424 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6425 | <Original> |
| 6426 | is_true<false>::value == false |
| 6427 | </Original> |
| 6428 | <Expanded> |
| 6429 | false == false |
| 6430 | </Expanded> |
| 6431 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6432 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6433 | <Original> |
| 6434 | false == is_true<false>::value |
| 6435 | </Original> |
| 6436 | <Expanded> |
| 6437 | false == false |
| 6438 | </Expanded> |
| 6439 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6440 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6441 | </Section> |
| 6442 | <Section name="negation"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6443 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6444 | <Original> |
| 6445 | !is_true<false>::value |
| 6446 | </Original> |
| 6447 | <Expanded> |
| 6448 | true |
| 6449 | </Expanded> |
| 6450 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6451 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6452 | </Section> |
| 6453 | <Section name="double negation"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6454 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6455 | <Original> |
| 6456 | !!is_true<true>::value |
| 6457 | </Original> |
| 6458 | <Expanded> |
| 6459 | true |
| 6460 | </Expanded> |
| 6461 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6462 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6463 | </Section> |
| 6464 | <Section name="direct"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6465 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6466 | <Original> |
| 6467 | is_true<true>::value |
| 6468 | </Original> |
| 6469 | <Expanded> |
| 6470 | true |
| 6471 | </Expanded> |
| 6472 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6473 | <Expression success="true" type="REQUIRE_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6474 | <Original> |
| 6475 | !is_true<false>::value |
| 6476 | </Original> |
| 6477 | <Expanded> |
| 6478 | !false |
| 6479 | </Expanded> |
| 6480 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6481 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6482 | </Section> |
| 6483 | <OverallResult success="true"/> |
| 6484 | </TestCase> |
Phil Nash | 337dc25 | 2013-11-19 07:21:03 +0000 | [diff] [blame] | 6485 | <TestCase name="Objects that evaluated in boolean contexts can be checked"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6486 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6487 | <Original> |
| 6488 | True |
| 6489 | </Original> |
| 6490 | <Expanded> |
| 6491 | true |
| 6492 | </Expanded> |
| 6493 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6494 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6495 | <Original> |
| 6496 | !False |
| 6497 | </Original> |
| 6498 | <Expanded> |
| 6499 | true |
| 6500 | </Expanded> |
| 6501 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6502 | <Expression success="true" type="CHECK_FALSE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6503 | <Original> |
| 6504 | !False |
| 6505 | </Original> |
| 6506 | <Expanded> |
| 6507 | !false |
| 6508 | </Expanded> |
| 6509 | </Expression> |
| 6510 | <OverallResult success="true"/> |
| 6511 | </TestCase> |
| 6512 | <TestCase name="Assertions then sections"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6513 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6514 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6515 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6516 | </Original> |
| 6517 | <Expanded> |
| 6518 | true |
| 6519 | </Expanded> |
| 6520 | </Expression> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6521 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6522 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6523 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6524 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6525 | </Original> |
| 6526 | <Expanded> |
| 6527 | true |
| 6528 | </Expanded> |
| 6529 | </Expression> |
| 6530 | <Section name="Another section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6531 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6532 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6533 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6534 | </Original> |
| 6535 | <Expanded> |
| 6536 | true |
| 6537 | </Expanded> |
| 6538 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6539 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6540 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6541 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6542 | </Section> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6543 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6544 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6545 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6546 | </Original> |
| 6547 | <Expanded> |
| 6548 | true |
| 6549 | </Expanded> |
| 6550 | </Expression> |
| 6551 | <Section name="A section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6552 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6553 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6554 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6555 | </Original> |
| 6556 | <Expanded> |
| 6557 | true |
| 6558 | </Expanded> |
| 6559 | </Expression> |
| 6560 | <Section name="Another other section"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6561 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6562 | <Original> |
Phil Nash | 9438a03 | 2014-05-28 18:53:01 +0100 | [diff] [blame] | 6563 | Catch::alwaysTrue() |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6564 | </Original> |
| 6565 | <Expanded> |
| 6566 | true |
| 6567 | </Expanded> |
| 6568 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6569 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6570 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 6571 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6572 | </Section> |
| 6573 | <OverallResult success="true"/> |
| 6574 | </TestCase> |
| 6575 | <TestCase name="non streamable - with conv. op"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6576 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6577 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6578 | s == "7" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6579 | </Original> |
| 6580 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6581 | "7" == "7" |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6582 | </Expanded> |
| 6583 | </Expression> |
| 6584 | <OverallResult success="true"/> |
| 6585 | </TestCase> |
| 6586 | <TestCase name="Comparing function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6587 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6588 | <Original> |
| 6589 | a |
| 6590 | </Original> |
| 6591 | <Expanded> |
| 6592 | true |
| 6593 | </Expanded> |
| 6594 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6595 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6596 | <Original> |
| 6597 | a == &foo |
| 6598 | </Original> |
| 6599 | <Expanded> |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6600 | 0x<hex digits> == 0x<hex digits> |
| 6601 | </Expanded> |
| 6602 | </Expression> |
| 6603 | <OverallResult success="true"/> |
| 6604 | </TestCase> |
| 6605 | <TestCase name="Comparing member function pointers"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6606 | <Expression success="true" type="CHECK" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | e091018 | 2014-01-07 17:25:27 +0000 | [diff] [blame] | 6607 | <Original> |
| 6608 | m == &S::f |
| 6609 | </Original> |
| 6610 | <Expanded> |
Phil Nash | 0edebf4 | 2015-07-28 18:24:20 +0100 | [diff] [blame] | 6611 | 0x<hex digits> |
| 6612 | == |
| 6613 | 0x<hex digits> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6614 | </Expanded> |
| 6615 | </Expression> |
| 6616 | <OverallResult success="true"/> |
| 6617 | </TestCase> |
| 6618 | <TestCase name="pointer to class"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6619 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6620 | <Original> |
| 6621 | p == 0 |
| 6622 | </Original> |
| 6623 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6624 | NULL == 0 |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6625 | </Expanded> |
| 6626 | </Expression> |
| 6627 | <OverallResult success="true"/> |
| 6628 | </TestCase> |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6629 | <TestCase name="null_ptr"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6630 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/TrickyTests.cpp" > |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6631 | <Original> |
| 6632 | ptr.get() == nullptr |
| 6633 | </Original> |
| 6634 | <Expanded> |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 6635 | NULL == nullptr |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 6636 | </Expanded> |
| 6637 | </Expression> |
| 6638 | <OverallResult success="true"/> |
| 6639 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 6640 | <TestCase name="X/level/0/a"> |
| 6641 | <OverallResult success="true"/> |
| 6642 | </TestCase> |
| 6643 | <TestCase name="X/level/0/b"> |
| 6644 | <OverallResult success="true"/> |
| 6645 | </TestCase> |
| 6646 | <TestCase name="X/level/1/a"> |
| 6647 | <OverallResult success="true"/> |
| 6648 | </TestCase> |
| 6649 | <TestCase name="X/level/1/b"> |
| 6650 | <OverallResult success="true"/> |
| 6651 | </TestCase> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6652 | <TestCase name="toString( has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6653 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6654 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6655 | Catch::toString( item ) == "toString( has_toString )" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6656 | </Original> |
| 6657 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6658 | "toString( has_toString )" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6659 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6660 | "toString( has_toString )" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6661 | </Expanded> |
| 6662 | </Expression> |
| 6663 | <OverallResult success="true"/> |
| 6664 | </TestCase> |
| 6665 | <TestCase name="toString( has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6666 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6667 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6668 | Catch::toString( item ) == "StringMaker<has_maker>" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6669 | </Original> |
| 6670 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6671 | "StringMaker<has_maker>" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6672 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6673 | "StringMaker<has_maker>" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6674 | </Expanded> |
| 6675 | </Expression> |
| 6676 | <OverallResult success="true"/> |
| 6677 | </TestCase> |
| 6678 | <TestCase name="toString( has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6679 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6680 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6681 | Catch::toString( item ) == "toString( has_maker_and_toString )" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6682 | </Original> |
| 6683 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6684 | "toString( has_maker_and_toString )" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6685 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6686 | "toString( has_maker_and_toString )" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6687 | </Expanded> |
| 6688 | </Expression> |
| 6689 | <OverallResult success="true"/> |
| 6690 | </TestCase> |
| 6691 | <TestCase name="toString( vectors<has_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6692 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6693 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6694 | Catch::toString( v ) == "{ {?} }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6695 | </Original> |
| 6696 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6697 | "{ {?} }" == "{ {?} }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6698 | </Expanded> |
| 6699 | </Expression> |
| 6700 | <OverallResult success="true"/> |
| 6701 | </TestCase> |
| 6702 | <TestCase name="toString( vectors<has_maker )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6703 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6704 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6705 | Catch::toString( v ) == "{ StringMaker<has_maker> }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6706 | </Original> |
| 6707 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6708 | "{ StringMaker<has_maker> }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6709 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6710 | "{ StringMaker<has_maker> }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6711 | </Expanded> |
| 6712 | </Expression> |
| 6713 | <OverallResult success="true"/> |
| 6714 | </TestCase> |
| 6715 | <TestCase name="toString( vectors<has_maker_and_toString )"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 6716 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringWhich.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6717 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6718 | Catch::toString( v ) == "{ StringMaker<has_maker_and_toString> }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6719 | </Original> |
| 6720 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6721 | "{ StringMaker<has_maker_and_toString> }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6722 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 6723 | "{ StringMaker<has_maker_and_toString> }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 6724 | </Expanded> |
| 6725 | </Expression> |
| 6726 | <OverallResult success="true"/> |
| 6727 | </TestCase> |
Phil Nash | 471bd25 | 2015-11-03 07:33:43 +0000 | [diff] [blame] | 6728 | <TestCase name="Tracker"> |
| 6729 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6730 | <Original> |
| 6731 | testCase.isOpen() |
| 6732 | </Original> |
| 6733 | <Expanded> |
| 6734 | true |
| 6735 | </Expanded> |
| 6736 | </Expression> |
| 6737 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6738 | <Original> |
| 6739 | s1.isOpen() |
| 6740 | </Original> |
| 6741 | <Expanded> |
| 6742 | true |
| 6743 | </Expanded> |
| 6744 | </Expression> |
| 6745 | <Section name="successfully close one section"> |
| 6746 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6747 | <Original> |
| 6748 | s1.isSuccessfullyCompleted() |
| 6749 | </Original> |
| 6750 | <Expanded> |
| 6751 | true |
| 6752 | </Expanded> |
| 6753 | </Expression> |
| 6754 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6755 | <Original> |
| 6756 | testCase.isComplete() == false |
| 6757 | </Original> |
| 6758 | <Expanded> |
| 6759 | false == false |
| 6760 | </Expanded> |
| 6761 | </Expression> |
| 6762 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6763 | <Original> |
| 6764 | ctx.completedCycle() |
| 6765 | </Original> |
| 6766 | <Expanded> |
| 6767 | true |
| 6768 | </Expanded> |
| 6769 | </Expression> |
| 6770 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6771 | <Original> |
| 6772 | testCase.isSuccessfullyCompleted() |
| 6773 | </Original> |
| 6774 | <Expanded> |
| 6775 | true |
| 6776 | </Expanded> |
| 6777 | </Expression> |
| 6778 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 6779 | </Section> |
| 6780 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6781 | <Original> |
| 6782 | testCase.isOpen() |
| 6783 | </Original> |
| 6784 | <Expanded> |
| 6785 | true |
| 6786 | </Expanded> |
| 6787 | </Expression> |
| 6788 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6789 | <Original> |
| 6790 | s1.isOpen() |
| 6791 | </Original> |
| 6792 | <Expanded> |
| 6793 | true |
| 6794 | </Expanded> |
| 6795 | </Expression> |
| 6796 | <Section name="fail one section"> |
| 6797 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6798 | <Original> |
| 6799 | s1.isComplete() |
| 6800 | </Original> |
| 6801 | <Expanded> |
| 6802 | true |
| 6803 | </Expanded> |
| 6804 | </Expression> |
| 6805 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6806 | <Original> |
| 6807 | s1.isSuccessfullyCompleted() == false |
| 6808 | </Original> |
| 6809 | <Expanded> |
| 6810 | false == false |
| 6811 | </Expanded> |
| 6812 | </Expression> |
| 6813 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6814 | <Original> |
| 6815 | testCase.isComplete() == false |
| 6816 | </Original> |
| 6817 | <Expanded> |
| 6818 | false == false |
| 6819 | </Expanded> |
| 6820 | </Expression> |
| 6821 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6822 | <Original> |
| 6823 | ctx.completedCycle() |
| 6824 | </Original> |
| 6825 | <Expanded> |
| 6826 | true |
| 6827 | </Expanded> |
| 6828 | </Expression> |
| 6829 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6830 | <Original> |
| 6831 | testCase.isSuccessfullyCompleted() == false |
| 6832 | </Original> |
| 6833 | <Expanded> |
| 6834 | false == false |
| 6835 | </Expanded> |
| 6836 | </Expression> |
| 6837 | <Section name="re-enter after failed section"> |
| 6838 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6839 | <Original> |
| 6840 | testCase2.isOpen() |
| 6841 | </Original> |
| 6842 | <Expanded> |
| 6843 | true |
| 6844 | </Expanded> |
| 6845 | </Expression> |
| 6846 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6847 | <Original> |
| 6848 | s1b.isOpen() == false |
| 6849 | </Original> |
| 6850 | <Expanded> |
| 6851 | false == false |
| 6852 | </Expanded> |
| 6853 | </Expression> |
| 6854 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6855 | <Original> |
| 6856 | ctx.completedCycle() |
| 6857 | </Original> |
| 6858 | <Expanded> |
| 6859 | true |
| 6860 | </Expanded> |
| 6861 | </Expression> |
| 6862 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6863 | <Original> |
| 6864 | testCase.isComplete() |
| 6865 | </Original> |
| 6866 | <Expanded> |
| 6867 | true |
| 6868 | </Expanded> |
| 6869 | </Expression> |
| 6870 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6871 | <Original> |
| 6872 | testCase.isSuccessfullyCompleted() |
| 6873 | </Original> |
| 6874 | <Expanded> |
| 6875 | true |
| 6876 | </Expanded> |
| 6877 | </Expression> |
| 6878 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
| 6879 | </Section> |
| 6880 | <OverallResults successes="10" failures="0" expectedFailures="0"/> |
| 6881 | </Section> |
| 6882 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6883 | <Original> |
| 6884 | testCase.isOpen() |
| 6885 | </Original> |
| 6886 | <Expanded> |
| 6887 | true |
| 6888 | </Expanded> |
| 6889 | </Expression> |
| 6890 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6891 | <Original> |
| 6892 | s1.isOpen() |
| 6893 | </Original> |
| 6894 | <Expanded> |
| 6895 | true |
| 6896 | </Expanded> |
| 6897 | </Expression> |
| 6898 | <Section name="fail one section"> |
| 6899 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6900 | <Original> |
| 6901 | s1.isComplete() |
| 6902 | </Original> |
| 6903 | <Expanded> |
| 6904 | true |
| 6905 | </Expanded> |
| 6906 | </Expression> |
| 6907 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6908 | <Original> |
| 6909 | s1.isSuccessfullyCompleted() == false |
| 6910 | </Original> |
| 6911 | <Expanded> |
| 6912 | false == false |
| 6913 | </Expanded> |
| 6914 | </Expression> |
| 6915 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6916 | <Original> |
| 6917 | testCase.isComplete() == false |
| 6918 | </Original> |
| 6919 | <Expanded> |
| 6920 | false == false |
| 6921 | </Expanded> |
| 6922 | </Expression> |
| 6923 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6924 | <Original> |
| 6925 | ctx.completedCycle() |
| 6926 | </Original> |
| 6927 | <Expanded> |
| 6928 | true |
| 6929 | </Expanded> |
| 6930 | </Expression> |
| 6931 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6932 | <Original> |
| 6933 | testCase.isSuccessfullyCompleted() == false |
| 6934 | </Original> |
| 6935 | <Expanded> |
| 6936 | false == false |
| 6937 | </Expanded> |
| 6938 | </Expression> |
| 6939 | <Section name="re-enter after failed section and find next section"> |
| 6940 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6941 | <Original> |
| 6942 | testCase2.isOpen() |
| 6943 | </Original> |
| 6944 | <Expanded> |
| 6945 | true |
| 6946 | </Expanded> |
| 6947 | </Expression> |
| 6948 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6949 | <Original> |
| 6950 | s1b.isOpen() == false |
| 6951 | </Original> |
| 6952 | <Expanded> |
| 6953 | false == false |
| 6954 | </Expanded> |
| 6955 | </Expression> |
| 6956 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6957 | <Original> |
| 6958 | s2.isOpen() |
| 6959 | </Original> |
| 6960 | <Expanded> |
| 6961 | true |
| 6962 | </Expanded> |
| 6963 | </Expression> |
| 6964 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6965 | <Original> |
| 6966 | ctx.completedCycle() |
| 6967 | </Original> |
| 6968 | <Expanded> |
| 6969 | true |
| 6970 | </Expanded> |
| 6971 | </Expression> |
| 6972 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6973 | <Original> |
| 6974 | testCase.isComplete() |
| 6975 | </Original> |
| 6976 | <Expanded> |
| 6977 | true |
| 6978 | </Expanded> |
| 6979 | </Expression> |
| 6980 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6981 | <Original> |
| 6982 | testCase.isSuccessfullyCompleted() |
| 6983 | </Original> |
| 6984 | <Expanded> |
| 6985 | true |
| 6986 | </Expanded> |
| 6987 | </Expression> |
| 6988 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
| 6989 | </Section> |
| 6990 | <OverallResults successes="11" failures="0" expectedFailures="0"/> |
| 6991 | </Section> |
| 6992 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 6993 | <Original> |
| 6994 | testCase.isOpen() |
| 6995 | </Original> |
| 6996 | <Expanded> |
| 6997 | true |
| 6998 | </Expanded> |
| 6999 | </Expression> |
| 7000 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7001 | <Original> |
| 7002 | s1.isOpen() |
| 7003 | </Original> |
| 7004 | <Expanded> |
| 7005 | true |
| 7006 | </Expanded> |
| 7007 | </Expression> |
| 7008 | <Section name="successfully close one section, then find another"> |
| 7009 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7010 | <Original> |
| 7011 | s2.isOpen() == false |
| 7012 | </Original> |
| 7013 | <Expanded> |
| 7014 | false == false |
| 7015 | </Expanded> |
| 7016 | </Expression> |
| 7017 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7018 | <Original> |
| 7019 | testCase.isComplete() == false |
| 7020 | </Original> |
| 7021 | <Expanded> |
| 7022 | false == false |
| 7023 | </Expanded> |
| 7024 | </Expression> |
| 7025 | <Section name="Re-enter - skips S1 and enters S2"> |
| 7026 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7027 | <Original> |
| 7028 | testCase2.isOpen() |
| 7029 | </Original> |
| 7030 | <Expanded> |
| 7031 | true |
| 7032 | </Expanded> |
| 7033 | </Expression> |
| 7034 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7035 | <Original> |
| 7036 | s1b.isOpen() == false |
| 7037 | </Original> |
| 7038 | <Expanded> |
| 7039 | false == false |
| 7040 | </Expanded> |
| 7041 | </Expression> |
| 7042 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7043 | <Original> |
| 7044 | s2b.isOpen() |
| 7045 | </Original> |
| 7046 | <Expanded> |
| 7047 | true |
| 7048 | </Expanded> |
| 7049 | </Expression> |
| 7050 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7051 | <Original> |
| 7052 | ctx.completedCycle() == false |
| 7053 | </Original> |
| 7054 | <Expanded> |
| 7055 | false == false |
| 7056 | </Expanded> |
| 7057 | </Expression> |
| 7058 | <Section name="Successfully close S2"> |
| 7059 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7060 | <Original> |
| 7061 | ctx.completedCycle() |
| 7062 | </Original> |
| 7063 | <Expanded> |
| 7064 | true |
| 7065 | </Expanded> |
| 7066 | </Expression> |
| 7067 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7068 | <Original> |
| 7069 | s2b.isSuccessfullyCompleted() |
| 7070 | </Original> |
| 7071 | <Expanded> |
| 7072 | true |
| 7073 | </Expanded> |
| 7074 | </Expression> |
| 7075 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7076 | <Original> |
| 7077 | testCase2.isComplete() == false |
| 7078 | </Original> |
| 7079 | <Expanded> |
| 7080 | false == false |
| 7081 | </Expanded> |
| 7082 | </Expression> |
| 7083 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7084 | <Original> |
| 7085 | testCase2.isSuccessfullyCompleted() |
| 7086 | </Original> |
| 7087 | <Expanded> |
| 7088 | true |
| 7089 | </Expanded> |
| 7090 | </Expression> |
| 7091 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
| 7092 | </Section> |
| 7093 | <OverallResults successes="8" failures="0" expectedFailures="0"/> |
| 7094 | </Section> |
| 7095 | <OverallResults successes="10" failures="0" expectedFailures="0"/> |
| 7096 | </Section> |
| 7097 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7098 | <Original> |
| 7099 | testCase.isOpen() |
| 7100 | </Original> |
| 7101 | <Expanded> |
| 7102 | true |
| 7103 | </Expanded> |
| 7104 | </Expression> |
| 7105 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7106 | <Original> |
| 7107 | s1.isOpen() |
| 7108 | </Original> |
| 7109 | <Expanded> |
| 7110 | true |
| 7111 | </Expanded> |
| 7112 | </Expression> |
| 7113 | <Section name="successfully close one section, then find another"> |
| 7114 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7115 | <Original> |
| 7116 | s2.isOpen() == false |
| 7117 | </Original> |
| 7118 | <Expanded> |
| 7119 | false == false |
| 7120 | </Expanded> |
| 7121 | </Expression> |
| 7122 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7123 | <Original> |
| 7124 | testCase.isComplete() == false |
| 7125 | </Original> |
| 7126 | <Expanded> |
| 7127 | false == false |
| 7128 | </Expanded> |
| 7129 | </Expression> |
| 7130 | <Section name="Re-enter - skips S1 and enters S2"> |
| 7131 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7132 | <Original> |
| 7133 | testCase2.isOpen() |
| 7134 | </Original> |
| 7135 | <Expanded> |
| 7136 | true |
| 7137 | </Expanded> |
| 7138 | </Expression> |
| 7139 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7140 | <Original> |
| 7141 | s1b.isOpen() == false |
| 7142 | </Original> |
| 7143 | <Expanded> |
| 7144 | false == false |
| 7145 | </Expanded> |
| 7146 | </Expression> |
| 7147 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7148 | <Original> |
| 7149 | s2b.isOpen() |
| 7150 | </Original> |
| 7151 | <Expanded> |
| 7152 | true |
| 7153 | </Expanded> |
| 7154 | </Expression> |
| 7155 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7156 | <Original> |
| 7157 | ctx.completedCycle() == false |
| 7158 | </Original> |
| 7159 | <Expanded> |
| 7160 | false == false |
| 7161 | </Expanded> |
| 7162 | </Expression> |
| 7163 | <Section name="fail S2"> |
| 7164 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7165 | <Original> |
| 7166 | ctx.completedCycle() |
| 7167 | </Original> |
| 7168 | <Expanded> |
| 7169 | true |
| 7170 | </Expanded> |
| 7171 | </Expression> |
| 7172 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7173 | <Original> |
| 7174 | s2b.isComplete() |
| 7175 | </Original> |
| 7176 | <Expanded> |
| 7177 | true |
| 7178 | </Expanded> |
| 7179 | </Expression> |
| 7180 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7181 | <Original> |
| 7182 | s2b.isSuccessfullyCompleted() == false |
| 7183 | </Original> |
| 7184 | <Expanded> |
| 7185 | false == false |
| 7186 | </Expanded> |
| 7187 | </Expression> |
| 7188 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7189 | <Original> |
| 7190 | testCase2.isSuccessfullyCompleted() == false |
| 7191 | </Original> |
| 7192 | <Expanded> |
| 7193 | false == false |
| 7194 | </Expanded> |
| 7195 | </Expression> |
| 7196 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7197 | <Original> |
| 7198 | testCase3.isOpen() |
| 7199 | </Original> |
| 7200 | <Expanded> |
| 7201 | true |
| 7202 | </Expanded> |
| 7203 | </Expression> |
| 7204 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7205 | <Original> |
| 7206 | s1c.isOpen() == false |
| 7207 | </Original> |
| 7208 | <Expanded> |
| 7209 | false == false |
| 7210 | </Expanded> |
| 7211 | </Expression> |
| 7212 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7213 | <Original> |
| 7214 | s2c.isOpen() == false |
| 7215 | </Original> |
| 7216 | <Expanded> |
| 7217 | false == false |
| 7218 | </Expanded> |
| 7219 | </Expression> |
| 7220 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7221 | <Original> |
| 7222 | testCase3.isSuccessfullyCompleted() |
| 7223 | </Original> |
| 7224 | <Expanded> |
| 7225 | true |
| 7226 | </Expanded> |
| 7227 | </Expression> |
| 7228 | <OverallResults successes="8" failures="0" expectedFailures="0"/> |
| 7229 | </Section> |
| 7230 | <OverallResults successes="12" failures="0" expectedFailures="0"/> |
| 7231 | </Section> |
| 7232 | <OverallResults successes="14" failures="0" expectedFailures="0"/> |
| 7233 | </Section> |
| 7234 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7235 | <Original> |
| 7236 | testCase.isOpen() |
| 7237 | </Original> |
| 7238 | <Expanded> |
| 7239 | true |
| 7240 | </Expanded> |
| 7241 | </Expression> |
| 7242 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7243 | <Original> |
| 7244 | s1.isOpen() |
| 7245 | </Original> |
| 7246 | <Expanded> |
| 7247 | true |
| 7248 | </Expanded> |
| 7249 | </Expression> |
| 7250 | <Section name="open a nested section"> |
| 7251 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7252 | <Original> |
| 7253 | s2.isOpen() |
| 7254 | </Original> |
| 7255 | <Expanded> |
| 7256 | true |
| 7257 | </Expanded> |
| 7258 | </Expression> |
| 7259 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7260 | <Original> |
| 7261 | s2.isComplete() |
| 7262 | </Original> |
| 7263 | <Expanded> |
| 7264 | true |
| 7265 | </Expanded> |
| 7266 | </Expression> |
| 7267 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7268 | <Original> |
| 7269 | s1.isComplete() == false |
| 7270 | </Original> |
| 7271 | <Expanded> |
| 7272 | false == false |
| 7273 | </Expanded> |
| 7274 | </Expression> |
| 7275 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7276 | <Original> |
| 7277 | s1.isComplete() |
| 7278 | </Original> |
| 7279 | <Expanded> |
| 7280 | true |
| 7281 | </Expanded> |
| 7282 | </Expression> |
| 7283 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7284 | <Original> |
| 7285 | testCase.isComplete() == false |
| 7286 | </Original> |
| 7287 | <Expanded> |
| 7288 | false == false |
| 7289 | </Expanded> |
| 7290 | </Expression> |
| 7291 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7292 | <Original> |
| 7293 | testCase.isComplete() |
| 7294 | </Original> |
| 7295 | <Expanded> |
| 7296 | true |
| 7297 | </Expanded> |
| 7298 | </Expression> |
| 7299 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
| 7300 | </Section> |
| 7301 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7302 | <Original> |
| 7303 | testCase.isOpen() |
| 7304 | </Original> |
| 7305 | <Expanded> |
| 7306 | true |
| 7307 | </Expanded> |
| 7308 | </Expression> |
| 7309 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7310 | <Original> |
| 7311 | s1.isOpen() |
| 7312 | </Original> |
| 7313 | <Expanded> |
| 7314 | true |
| 7315 | </Expanded> |
| 7316 | </Expression> |
| 7317 | <Section name="start a generator"> |
| 7318 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7319 | <Original> |
| 7320 | g1.isOpen() |
| 7321 | </Original> |
| 7322 | <Expanded> |
| 7323 | true |
| 7324 | </Expanded> |
| 7325 | </Expression> |
| 7326 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7327 | <Original> |
| 7328 | g1.index() == 0 |
| 7329 | </Original> |
| 7330 | <Expanded> |
| 7331 | 0 == 0 |
| 7332 | </Expanded> |
| 7333 | </Expression> |
| 7334 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7335 | <Original> |
| 7336 | g1.isComplete() == false |
| 7337 | </Original> |
| 7338 | <Expanded> |
| 7339 | false == false |
| 7340 | </Expanded> |
| 7341 | </Expression> |
| 7342 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7343 | <Original> |
| 7344 | s1.isComplete() == false |
| 7345 | </Original> |
| 7346 | <Expanded> |
| 7347 | false == false |
| 7348 | </Expanded> |
| 7349 | </Expression> |
| 7350 | <Section name="close outer section"> |
| 7351 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7352 | <Original> |
| 7353 | s1.isComplete() == false |
| 7354 | </Original> |
| 7355 | <Expanded> |
| 7356 | false == false |
| 7357 | </Expanded> |
| 7358 | </Expression> |
| 7359 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7360 | <Original> |
| 7361 | testCase.isSuccessfullyCompleted() == false |
| 7362 | </Original> |
| 7363 | <Expanded> |
| 7364 | false == false |
| 7365 | </Expanded> |
| 7366 | </Expression> |
| 7367 | <Section name="Re-enter for second generation"> |
| 7368 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7369 | <Original> |
| 7370 | testCase2.isOpen() |
| 7371 | </Original> |
| 7372 | <Expanded> |
| 7373 | true |
| 7374 | </Expanded> |
| 7375 | </Expression> |
| 7376 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7377 | <Original> |
| 7378 | s1b.isOpen() |
| 7379 | </Original> |
| 7380 | <Expanded> |
| 7381 | true |
| 7382 | </Expanded> |
| 7383 | </Expression> |
| 7384 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7385 | <Original> |
| 7386 | g1b.isOpen() |
| 7387 | </Original> |
| 7388 | <Expanded> |
| 7389 | true |
| 7390 | </Expanded> |
| 7391 | </Expression> |
| 7392 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7393 | <Original> |
| 7394 | g1b.index() == 1 |
| 7395 | </Original> |
| 7396 | <Expanded> |
| 7397 | 1 == 1 |
| 7398 | </Expanded> |
| 7399 | </Expression> |
| 7400 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7401 | <Original> |
| 7402 | s1.isComplete() == false |
| 7403 | </Original> |
| 7404 | <Expanded> |
| 7405 | false == false |
| 7406 | </Expanded> |
| 7407 | </Expression> |
| 7408 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7409 | <Original> |
| 7410 | s1b.isComplete() |
| 7411 | </Original> |
| 7412 | <Expanded> |
| 7413 | true |
| 7414 | </Expanded> |
| 7415 | </Expression> |
| 7416 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7417 | <Original> |
| 7418 | g1b.isComplete() |
| 7419 | </Original> |
| 7420 | <Expanded> |
| 7421 | true |
| 7422 | </Expanded> |
| 7423 | </Expression> |
| 7424 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7425 | <Original> |
| 7426 | testCase2.isComplete() |
| 7427 | </Original> |
| 7428 | <Expanded> |
| 7429 | true |
| 7430 | </Expanded> |
| 7431 | </Expression> |
| 7432 | <OverallResults successes="8" failures="0" expectedFailures="0"/> |
| 7433 | </Section> |
| 7434 | <OverallResults successes="10" failures="0" expectedFailures="0"/> |
| 7435 | </Section> |
| 7436 | <OverallResults successes="14" failures="0" expectedFailures="0"/> |
| 7437 | </Section> |
| 7438 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7439 | <Original> |
| 7440 | testCase.isOpen() |
| 7441 | </Original> |
| 7442 | <Expanded> |
| 7443 | true |
| 7444 | </Expanded> |
| 7445 | </Expression> |
| 7446 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7447 | <Original> |
| 7448 | s1.isOpen() |
| 7449 | </Original> |
| 7450 | <Expanded> |
| 7451 | true |
| 7452 | </Expanded> |
| 7453 | </Expression> |
| 7454 | <Section name="start a generator"> |
| 7455 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7456 | <Original> |
| 7457 | g1.isOpen() |
| 7458 | </Original> |
| 7459 | <Expanded> |
| 7460 | true |
| 7461 | </Expanded> |
| 7462 | </Expression> |
| 7463 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7464 | <Original> |
| 7465 | g1.index() == 0 |
| 7466 | </Original> |
| 7467 | <Expanded> |
| 7468 | 0 == 0 |
| 7469 | </Expanded> |
| 7470 | </Expression> |
| 7471 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7472 | <Original> |
| 7473 | g1.isComplete() == false |
| 7474 | </Original> |
| 7475 | <Expanded> |
| 7476 | false == false |
| 7477 | </Expanded> |
| 7478 | </Expression> |
| 7479 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7480 | <Original> |
| 7481 | s1.isComplete() == false |
| 7482 | </Original> |
| 7483 | <Expanded> |
| 7484 | false == false |
| 7485 | </Expanded> |
| 7486 | </Expression> |
| 7487 | <Section name="Start a new inner section"> |
| 7488 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7489 | <Original> |
| 7490 | s2.isOpen() |
| 7491 | </Original> |
| 7492 | <Expanded> |
| 7493 | true |
| 7494 | </Expanded> |
| 7495 | </Expression> |
| 7496 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7497 | <Original> |
| 7498 | s2.isComplete() |
| 7499 | </Original> |
| 7500 | <Expanded> |
| 7501 | true |
| 7502 | </Expanded> |
| 7503 | </Expression> |
| 7504 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7505 | <Original> |
| 7506 | s1.isComplete() == false |
| 7507 | </Original> |
| 7508 | <Expanded> |
| 7509 | false == false |
| 7510 | </Expanded> |
| 7511 | </Expression> |
| 7512 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7513 | <Original> |
| 7514 | testCase.isComplete() == false |
| 7515 | </Original> |
| 7516 | <Expanded> |
| 7517 | false == false |
| 7518 | </Expanded> |
| 7519 | </Expression> |
| 7520 | <Section name="Re-enter for second generation"> |
| 7521 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7522 | <Original> |
| 7523 | testCase2.isOpen() |
| 7524 | </Original> |
| 7525 | <Expanded> |
| 7526 | true |
| 7527 | </Expanded> |
| 7528 | </Expression> |
| 7529 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7530 | <Original> |
| 7531 | s1b.isOpen() |
| 7532 | </Original> |
| 7533 | <Expanded> |
| 7534 | true |
| 7535 | </Expanded> |
| 7536 | </Expression> |
| 7537 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7538 | <Original> |
| 7539 | g1b.isOpen() |
| 7540 | </Original> |
| 7541 | <Expanded> |
| 7542 | true |
| 7543 | </Expanded> |
| 7544 | </Expression> |
| 7545 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7546 | <Original> |
| 7547 | g1b.index() == 1 |
| 7548 | </Original> |
| 7549 | <Expanded> |
| 7550 | 1 == 1 |
| 7551 | </Expanded> |
| 7552 | </Expression> |
| 7553 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7554 | <Original> |
| 7555 | s2b.isOpen() |
| 7556 | </Original> |
| 7557 | <Expanded> |
| 7558 | true |
| 7559 | </Expanded> |
| 7560 | </Expression> |
| 7561 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7562 | <Original> |
| 7563 | s2b.isComplete() |
| 7564 | </Original> |
| 7565 | <Expanded> |
| 7566 | true |
| 7567 | </Expanded> |
| 7568 | </Expression> |
| 7569 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7570 | <Original> |
| 7571 | g1b.isComplete() |
| 7572 | </Original> |
| 7573 | <Expanded> |
| 7574 | true |
| 7575 | </Expanded> |
| 7576 | </Expression> |
| 7577 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7578 | <Original> |
| 7579 | s1b.isComplete() |
| 7580 | </Original> |
| 7581 | <Expanded> |
| 7582 | true |
| 7583 | </Expanded> |
| 7584 | </Expression> |
| 7585 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7586 | <Original> |
| 7587 | testCase2.isComplete() |
| 7588 | </Original> |
| 7589 | <Expanded> |
| 7590 | true |
| 7591 | </Expanded> |
| 7592 | </Expression> |
| 7593 | <OverallResults successes="9" failures="0" expectedFailures="0"/> |
| 7594 | </Section> |
| 7595 | <OverallResults successes="13" failures="0" expectedFailures="0"/> |
| 7596 | </Section> |
| 7597 | <OverallResults successes="17" failures="0" expectedFailures="0"/> |
| 7598 | </Section> |
| 7599 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7600 | <Original> |
| 7601 | testCase.isOpen() |
| 7602 | </Original> |
| 7603 | <Expanded> |
| 7604 | true |
| 7605 | </Expanded> |
| 7606 | </Expression> |
| 7607 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7608 | <Original> |
| 7609 | s1.isOpen() |
| 7610 | </Original> |
| 7611 | <Expanded> |
| 7612 | true |
| 7613 | </Expanded> |
| 7614 | </Expression> |
| 7615 | <Section name="start a generator"> |
| 7616 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7617 | <Original> |
| 7618 | g1.isOpen() |
| 7619 | </Original> |
| 7620 | <Expanded> |
| 7621 | true |
| 7622 | </Expanded> |
| 7623 | </Expression> |
| 7624 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7625 | <Original> |
| 7626 | g1.index() == 0 |
| 7627 | </Original> |
| 7628 | <Expanded> |
| 7629 | 0 == 0 |
| 7630 | </Expanded> |
| 7631 | </Expression> |
| 7632 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7633 | <Original> |
| 7634 | g1.isComplete() == false |
| 7635 | </Original> |
| 7636 | <Expanded> |
| 7637 | false == false |
| 7638 | </Expanded> |
| 7639 | </Expression> |
| 7640 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7641 | <Original> |
| 7642 | s1.isComplete() == false |
| 7643 | </Original> |
| 7644 | <Expanded> |
| 7645 | false == false |
| 7646 | </Expanded> |
| 7647 | </Expression> |
| 7648 | <Section name="Fail an inner section"> |
| 7649 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7650 | <Original> |
| 7651 | s2.isOpen() |
| 7652 | </Original> |
| 7653 | <Expanded> |
| 7654 | true |
| 7655 | </Expanded> |
| 7656 | </Expression> |
| 7657 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7658 | <Original> |
| 7659 | s2.isComplete() |
| 7660 | </Original> |
| 7661 | <Expanded> |
| 7662 | true |
| 7663 | </Expanded> |
| 7664 | </Expression> |
| 7665 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7666 | <Original> |
| 7667 | s2.isSuccessfullyCompleted() == false |
| 7668 | </Original> |
| 7669 | <Expanded> |
| 7670 | false == false |
| 7671 | </Expanded> |
| 7672 | </Expression> |
| 7673 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7674 | <Original> |
| 7675 | s1.isComplete() == false |
| 7676 | </Original> |
| 7677 | <Expanded> |
| 7678 | false == false |
| 7679 | </Expanded> |
| 7680 | </Expression> |
| 7681 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7682 | <Original> |
| 7683 | testCase.isComplete() == false |
| 7684 | </Original> |
| 7685 | <Expanded> |
| 7686 | false == false |
| 7687 | </Expanded> |
| 7688 | </Expression> |
| 7689 | <Section name="Re-enter for second generation"> |
| 7690 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7691 | <Original> |
| 7692 | testCase2.isOpen() |
| 7693 | </Original> |
| 7694 | <Expanded> |
| 7695 | true |
| 7696 | </Expanded> |
| 7697 | </Expression> |
| 7698 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7699 | <Original> |
| 7700 | s1b.isOpen() |
| 7701 | </Original> |
| 7702 | <Expanded> |
| 7703 | true |
| 7704 | </Expanded> |
| 7705 | </Expression> |
| 7706 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7707 | <Original> |
| 7708 | g1b.isOpen() |
| 7709 | </Original> |
| 7710 | <Expanded> |
| 7711 | true |
| 7712 | </Expanded> |
| 7713 | </Expression> |
| 7714 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7715 | <Original> |
| 7716 | g1b.index() == 0 |
| 7717 | </Original> |
| 7718 | <Expanded> |
| 7719 | 0 == 0 |
| 7720 | </Expanded> |
| 7721 | </Expression> |
| 7722 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7723 | <Original> |
| 7724 | s2b.isOpen() == false |
| 7725 | </Original> |
| 7726 | <Expanded> |
| 7727 | false == false |
| 7728 | </Expanded> |
| 7729 | </Expression> |
| 7730 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7731 | <Original> |
| 7732 | g1b.isComplete() == false |
| 7733 | </Original> |
| 7734 | <Expanded> |
| 7735 | false == false |
| 7736 | </Expanded> |
| 7737 | </Expression> |
| 7738 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7739 | <Original> |
| 7740 | s1b.isComplete() == false |
| 7741 | </Original> |
| 7742 | <Expanded> |
| 7743 | false == false |
| 7744 | </Expanded> |
| 7745 | </Expression> |
| 7746 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7747 | <Original> |
| 7748 | testCase2.isComplete() == false |
| 7749 | </Original> |
| 7750 | <Expanded> |
| 7751 | false == false |
| 7752 | </Expanded> |
| 7753 | </Expression> |
| 7754 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7755 | <Original> |
| 7756 | testCase3.isOpen() |
| 7757 | </Original> |
| 7758 | <Expanded> |
| 7759 | true |
| 7760 | </Expanded> |
| 7761 | </Expression> |
| 7762 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7763 | <Original> |
| 7764 | s1c.isOpen() |
| 7765 | </Original> |
| 7766 | <Expanded> |
| 7767 | true |
| 7768 | </Expanded> |
| 7769 | </Expression> |
| 7770 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7771 | <Original> |
| 7772 | g1c.isOpen() |
| 7773 | </Original> |
| 7774 | <Expanded> |
| 7775 | true |
| 7776 | </Expanded> |
| 7777 | </Expression> |
| 7778 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7779 | <Original> |
| 7780 | g1c.index() == 1 |
| 7781 | </Original> |
| 7782 | <Expanded> |
| 7783 | 1 == 1 |
| 7784 | </Expanded> |
| 7785 | </Expression> |
| 7786 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7787 | <Original> |
| 7788 | s2c.isOpen() |
| 7789 | </Original> |
| 7790 | <Expanded> |
| 7791 | true |
| 7792 | </Expanded> |
| 7793 | </Expression> |
| 7794 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7795 | <Original> |
| 7796 | s2c.isComplete() |
| 7797 | </Original> |
| 7798 | <Expanded> |
| 7799 | true |
| 7800 | </Expanded> |
| 7801 | </Expression> |
| 7802 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7803 | <Original> |
| 7804 | g1c.isComplete() |
| 7805 | </Original> |
| 7806 | <Expanded> |
| 7807 | true |
| 7808 | </Expanded> |
| 7809 | </Expression> |
| 7810 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7811 | <Original> |
| 7812 | s1c.isComplete() |
| 7813 | </Original> |
| 7814 | <Expanded> |
| 7815 | true |
| 7816 | </Expanded> |
| 7817 | </Expression> |
| 7818 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/PartTrackerTests.cpp" > |
| 7819 | <Original> |
| 7820 | testCase3.isComplete() |
| 7821 | </Original> |
| 7822 | <Expanded> |
| 7823 | true |
| 7824 | </Expanded> |
| 7825 | </Expression> |
| 7826 | <OverallResults successes="17" failures="0" expectedFailures="0"/> |
| 7827 | </Section> |
| 7828 | <OverallResults successes="22" failures="0" expectedFailures="0"/> |
| 7829 | </Section> |
| 7830 | <OverallResults successes="26" failures="0" expectedFailures="0"/> |
| 7831 | </Section> |
| 7832 | <OverallResult success="true"/> |
| 7833 | </TestCase> |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7834 | <TestCase name="std::pair<int,std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7835 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7836 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7837 | Catch::toString( value ) == "{ 34, \"xyzzy\" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7838 | </Original> |
| 7839 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7840 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7841 | </Expanded> |
| 7842 | </Expression> |
| 7843 | <OverallResult success="true"/> |
| 7844 | </TestCase> |
| 7845 | <TestCase name="std::pair<int,const std::string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7846 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7847 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7848 | Catch::toString(value) == "{ 34, \"xyzzy\" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7849 | </Original> |
| 7850 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7851 | "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7852 | </Expanded> |
| 7853 | </Expression> |
| 7854 | <OverallResult success="true"/> |
| 7855 | </TestCase> |
| 7856 | <TestCase name="std::vector<std::pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7857 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7858 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7859 | Catch::toString( pr ) == "{ { \"green\", 55 } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7860 | </Original> |
| 7861 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7862 | "{ { "green", 55 } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7863 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7864 | "{ { "green", 55 } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7865 | </Expanded> |
| 7866 | </Expression> |
| 7867 | <OverallResult success="true"/> |
| 7868 | </TestCase> |
| 7869 | <TestCase name="pair<pair<int,const char *,pair<std::string,int> > -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7870 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringPair.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7871 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7872 | Catch::toString( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7873 | </Original> |
| 7874 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7875 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7876 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7877 | "{ { 42, "Arthur" }, { "Ford", 24 } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7878 | </Expanded> |
| 7879 | </Expression> |
| 7880 | <OverallResult success="true"/> |
| 7881 | </TestCase> |
| 7882 | <TestCase name="vector<int> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7883 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7884 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7885 | Catch::toString(vv) == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7886 | </Original> |
| 7887 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7888 | "{ }" == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7889 | </Expanded> |
| 7890 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7891 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7892 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7893 | Catch::toString(vv) == "{ 42 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7894 | </Original> |
| 7895 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7896 | "{ 42 }" == "{ 42 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7897 | </Expanded> |
| 7898 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7899 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7900 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7901 | Catch::toString(vv) == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7902 | </Original> |
| 7903 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7904 | "{ 42, 250 }" == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7905 | </Expanded> |
| 7906 | </Expression> |
| 7907 | <OverallResult success="true"/> |
| 7908 | </TestCase> |
| 7909 | <TestCase name="vector<string> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7910 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7911 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7912 | Catch::toString(vv) == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7913 | </Original> |
| 7914 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7915 | "{ }" == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7916 | </Expanded> |
| 7917 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7918 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7919 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7920 | Catch::toString(vv) == "{ \"hello\" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7921 | </Original> |
| 7922 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7923 | "{ "hello" }" == "{ "hello" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7924 | </Expanded> |
| 7925 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7926 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7927 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7928 | Catch::toString(vv) == "{ \"hello\", \"world\" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7929 | </Original> |
| 7930 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7931 | "{ "hello", "world" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7932 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7933 | "{ "hello", "world" }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7934 | </Expanded> |
| 7935 | </Expression> |
| 7936 | <OverallResult success="true"/> |
| 7937 | </TestCase> |
| 7938 | <TestCase name="vector<int,allocator> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7939 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7940 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7941 | Catch::toString(vv) == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7942 | </Original> |
| 7943 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7944 | "{ }" == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7945 | </Expanded> |
| 7946 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7947 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7948 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7949 | Catch::toString(vv) == "{ 42 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7950 | </Original> |
| 7951 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7952 | "{ 42 }" == "{ 42 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7953 | </Expanded> |
| 7954 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7955 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7956 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7957 | Catch::toString(vv) == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7958 | </Original> |
| 7959 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7960 | "{ 42, 250 }" == "{ 42, 250 }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7961 | </Expanded> |
| 7962 | </Expression> |
| 7963 | <OverallResult success="true"/> |
| 7964 | </TestCase> |
| 7965 | <TestCase name="vec<vec<string,alloc>> -> toString"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7966 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7967 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7968 | Catch::toString(v) == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7969 | </Original> |
| 7970 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7971 | "{ }" == "{ }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7972 | </Expanded> |
| 7973 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7974 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" > |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7975 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7976 | Catch::toString(v) == "{ { \"hello\" }, { \"world\" } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7977 | </Original> |
| 7978 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7979 | "{ { "hello" }, { "world" } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7980 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 7981 | "{ { "hello" }, { "world" } }" |
Phil Nash | 5ea3266 | 2014-09-03 19:22:47 +0100 | [diff] [blame] | 7982 | </Expanded> |
| 7983 | </Expression> |
| 7984 | <OverallResult success="true"/> |
| 7985 | </TestCase> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7986 | <TestCase name="Parse test names and tags"> |
| 7987 | <Section name="Empty test spec should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7988 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7989 | <Original> |
| 7990 | spec.hasFilters() == false |
| 7991 | </Original> |
| 7992 | <Expanded> |
| 7993 | false == false |
| 7994 | </Expanded> |
| 7995 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 7996 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 7997 | <Original> |
| 7998 | spec.matches( tcA ) == false |
| 7999 | </Original> |
| 8000 | <Expanded> |
| 8001 | false == false |
| 8002 | </Expanded> |
| 8003 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8004 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8005 | <Original> |
| 8006 | spec.matches( tcB ) == false |
| 8007 | </Original> |
| 8008 | <Expanded> |
| 8009 | false == false |
| 8010 | </Expanded> |
| 8011 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8012 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8013 | </Section> |
| 8014 | <Section name="Test spec from empty string should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8015 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8016 | <Original> |
| 8017 | spec.hasFilters() == false |
| 8018 | </Original> |
| 8019 | <Expanded> |
| 8020 | false == false |
| 8021 | </Expanded> |
| 8022 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8023 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8024 | <Original> |
| 8025 | spec.matches(tcA ) == false |
| 8026 | </Original> |
| 8027 | <Expanded> |
| 8028 | false == false |
| 8029 | </Expanded> |
| 8030 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8031 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8032 | <Original> |
| 8033 | spec.matches( tcB ) == false |
| 8034 | </Original> |
| 8035 | <Expanded> |
| 8036 | false == false |
| 8037 | </Expanded> |
| 8038 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8039 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8040 | </Section> |
| 8041 | <Section name="Test spec from just a comma should have no filters"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8042 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8043 | <Original> |
| 8044 | spec.hasFilters() == false |
| 8045 | </Original> |
| 8046 | <Expanded> |
| 8047 | false == false |
| 8048 | </Expanded> |
| 8049 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8050 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8051 | <Original> |
| 8052 | spec.matches( tcA ) == false |
| 8053 | </Original> |
| 8054 | <Expanded> |
| 8055 | false == false |
| 8056 | </Expanded> |
| 8057 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8058 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8059 | <Original> |
| 8060 | spec.matches( tcB ) == false |
| 8061 | </Original> |
| 8062 | <Expanded> |
| 8063 | false == false |
| 8064 | </Expanded> |
| 8065 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8066 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8067 | </Section> |
| 8068 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8069 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8070 | <Original> |
| 8071 | spec.hasFilters() == true |
| 8072 | </Original> |
| 8073 | <Expanded> |
| 8074 | true == true |
| 8075 | </Expanded> |
| 8076 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8077 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8078 | <Original> |
| 8079 | spec.matches( tcA ) == false |
| 8080 | </Original> |
| 8081 | <Expanded> |
| 8082 | false == false |
| 8083 | </Expanded> |
| 8084 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8085 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8086 | <Original> |
| 8087 | spec.matches( tcB ) == true |
| 8088 | </Original> |
| 8089 | <Expanded> |
| 8090 | true == true |
| 8091 | </Expanded> |
| 8092 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8093 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8094 | </Section> |
| 8095 | <Section name="Test spec from quoted name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8096 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8097 | <Original> |
| 8098 | spec.hasFilters() == true |
| 8099 | </Original> |
| 8100 | <Expanded> |
| 8101 | true == true |
| 8102 | </Expanded> |
| 8103 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8104 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8105 | <Original> |
| 8106 | spec.matches( tcA ) == false |
| 8107 | </Original> |
| 8108 | <Expanded> |
| 8109 | false == false |
| 8110 | </Expanded> |
| 8111 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8112 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8113 | <Original> |
| 8114 | spec.matches( tcB ) == true |
| 8115 | </Original> |
| 8116 | <Expanded> |
| 8117 | true == true |
| 8118 | </Expanded> |
| 8119 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8120 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8121 | </Section> |
| 8122 | <Section name="Test spec from name should have one filter"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8123 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8124 | <Original> |
| 8125 | spec.hasFilters() == true |
| 8126 | </Original> |
| 8127 | <Expanded> |
| 8128 | true == true |
| 8129 | </Expanded> |
| 8130 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8131 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8132 | <Original> |
| 8133 | spec.matches( tcA ) == false |
| 8134 | </Original> |
| 8135 | <Expanded> |
| 8136 | false == false |
| 8137 | </Expanded> |
| 8138 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8139 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8140 | <Original> |
| 8141 | spec.matches( tcB ) == true |
| 8142 | </Original> |
| 8143 | <Expanded> |
| 8144 | true == true |
| 8145 | </Expanded> |
| 8146 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8147 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8148 | <Original> |
| 8149 | spec.matches( tcC ) == false |
| 8150 | </Original> |
| 8151 | <Expanded> |
| 8152 | false == false |
| 8153 | </Expanded> |
| 8154 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8155 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8156 | </Section> |
| 8157 | <Section name="Wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8158 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8159 | <Original> |
| 8160 | spec.hasFilters() == true |
| 8161 | </Original> |
| 8162 | <Expanded> |
| 8163 | true == true |
| 8164 | </Expanded> |
| 8165 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8166 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8167 | <Original> |
| 8168 | spec.matches( tcA ) == false |
| 8169 | </Original> |
| 8170 | <Expanded> |
| 8171 | false == false |
| 8172 | </Expanded> |
| 8173 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8174 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8175 | <Original> |
| 8176 | spec.matches( tcB ) == false |
| 8177 | </Original> |
| 8178 | <Expanded> |
| 8179 | false == false |
| 8180 | </Expanded> |
| 8181 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8182 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8183 | <Original> |
| 8184 | spec.matches( tcC ) == true |
| 8185 | </Original> |
| 8186 | <Expanded> |
| 8187 | true == true |
| 8188 | </Expanded> |
| 8189 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8190 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8191 | <Original> |
| 8192 | spec.matches( tcD ) == false |
| 8193 | </Original> |
| 8194 | <Expanded> |
| 8195 | false == false |
| 8196 | </Expanded> |
| 8197 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8198 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8199 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 8200 | parseTestSpec( "*a" ).matches( tcA ) == true |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8201 | </Original> |
| 8202 | <Expanded> |
| 8203 | true == true |
| 8204 | </Expanded> |
| 8205 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8206 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8207 | </Section> |
| 8208 | <Section name="Wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8209 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8210 | <Original> |
| 8211 | spec.hasFilters() == true |
| 8212 | </Original> |
| 8213 | <Expanded> |
| 8214 | true == true |
| 8215 | </Expanded> |
| 8216 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8217 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8218 | <Original> |
| 8219 | spec.matches( tcA ) == false |
| 8220 | </Original> |
| 8221 | <Expanded> |
| 8222 | false == false |
| 8223 | </Expanded> |
| 8224 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8225 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8226 | <Original> |
| 8227 | spec.matches( tcB ) == false |
| 8228 | </Original> |
| 8229 | <Expanded> |
| 8230 | false == false |
| 8231 | </Expanded> |
| 8232 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8233 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8234 | <Original> |
| 8235 | spec.matches( tcC ) == true |
| 8236 | </Original> |
| 8237 | <Expanded> |
| 8238 | true == true |
| 8239 | </Expanded> |
| 8240 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8241 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8242 | <Original> |
| 8243 | spec.matches( tcD ) == false |
| 8244 | </Original> |
| 8245 | <Expanded> |
| 8246 | false == false |
| 8247 | </Expanded> |
| 8248 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8249 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8250 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 8251 | parseTestSpec( "a*" ).matches( tcA ) == true |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8252 | </Original> |
| 8253 | <Expanded> |
| 8254 | true == true |
| 8255 | </Expanded> |
| 8256 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8257 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8258 | </Section> |
| 8259 | <Section name="Wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8260 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8261 | <Original> |
| 8262 | spec.hasFilters() == true |
| 8263 | </Original> |
| 8264 | <Expanded> |
| 8265 | true == true |
| 8266 | </Expanded> |
| 8267 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8268 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8269 | <Original> |
| 8270 | spec.matches( tcA ) == false |
| 8271 | </Original> |
| 8272 | <Expanded> |
| 8273 | false == false |
| 8274 | </Expanded> |
| 8275 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8276 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8277 | <Original> |
| 8278 | spec.matches( tcB ) == false |
| 8279 | </Original> |
| 8280 | <Expanded> |
| 8281 | false == false |
| 8282 | </Expanded> |
| 8283 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8284 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8285 | <Original> |
| 8286 | spec.matches( tcC ) == true |
| 8287 | </Original> |
| 8288 | <Expanded> |
| 8289 | true == true |
| 8290 | </Expanded> |
| 8291 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8292 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8293 | <Original> |
| 8294 | spec.matches( tcD ) == true |
| 8295 | </Original> |
| 8296 | <Expanded> |
| 8297 | true == true |
| 8298 | </Expanded> |
| 8299 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8300 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8301 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 8302 | parseTestSpec( "*a*" ).matches( tcA ) == true |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8303 | </Original> |
| 8304 | <Expanded> |
| 8305 | true == true |
| 8306 | </Expanded> |
| 8307 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8308 | <OverallResults successes="6" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8309 | </Section> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8310 | <Section name="Redundant wildcard at the start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8311 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8312 | <Original> |
| 8313 | spec.hasFilters() == true |
| 8314 | </Original> |
| 8315 | <Expanded> |
| 8316 | true == true |
| 8317 | </Expanded> |
| 8318 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8319 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8320 | <Original> |
| 8321 | spec.matches( tcA ) == true |
| 8322 | </Original> |
| 8323 | <Expanded> |
| 8324 | true == true |
| 8325 | </Expanded> |
| 8326 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8327 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8328 | <Original> |
| 8329 | spec.matches( tcB ) == false |
| 8330 | </Original> |
| 8331 | <Expanded> |
| 8332 | false == false |
| 8333 | </Expanded> |
| 8334 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8335 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8336 | </Section> |
| 8337 | <Section name="Redundant wildcard at the end"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8338 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8339 | <Original> |
| 8340 | spec.hasFilters() == true |
| 8341 | </Original> |
| 8342 | <Expanded> |
| 8343 | true == true |
| 8344 | </Expanded> |
| 8345 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8346 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8347 | <Original> |
| 8348 | spec.matches( tcA ) == true |
| 8349 | </Original> |
| 8350 | <Expanded> |
| 8351 | true == true |
| 8352 | </Expanded> |
| 8353 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8354 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8355 | <Original> |
| 8356 | spec.matches( tcB ) == false |
| 8357 | </Original> |
| 8358 | <Expanded> |
| 8359 | false == false |
| 8360 | </Expanded> |
| 8361 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8362 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8363 | </Section> |
| 8364 | <Section name="Redundant wildcard at both ends"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8365 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8366 | <Original> |
| 8367 | spec.hasFilters() == true |
| 8368 | </Original> |
| 8369 | <Expanded> |
| 8370 | true == true |
| 8371 | </Expanded> |
| 8372 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8373 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8374 | <Original> |
| 8375 | spec.matches( tcA ) == true |
| 8376 | </Original> |
| 8377 | <Expanded> |
| 8378 | true == true |
| 8379 | </Expanded> |
| 8380 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8381 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8382 | <Original> |
| 8383 | spec.matches( tcB ) == false |
| 8384 | </Original> |
| 8385 | <Expanded> |
| 8386 | false == false |
| 8387 | </Expanded> |
| 8388 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8389 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8390 | </Section> |
| 8391 | <Section name="Wildcard at both ends, redundant at start"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8392 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8393 | <Original> |
| 8394 | spec.hasFilters() == true |
| 8395 | </Original> |
| 8396 | <Expanded> |
| 8397 | true == true |
| 8398 | </Expanded> |
| 8399 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8400 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8401 | <Original> |
| 8402 | spec.matches( tcA ) == false |
| 8403 | </Original> |
| 8404 | <Expanded> |
| 8405 | false == false |
| 8406 | </Expanded> |
| 8407 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8408 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8409 | <Original> |
| 8410 | spec.matches( tcB ) == false |
| 8411 | </Original> |
| 8412 | <Expanded> |
| 8413 | false == false |
| 8414 | </Expanded> |
| 8415 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8416 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8417 | <Original> |
| 8418 | spec.matches( tcC ) == true |
| 8419 | </Original> |
| 8420 | <Expanded> |
| 8421 | true == true |
| 8422 | </Expanded> |
| 8423 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8424 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8425 | <Original> |
| 8426 | spec.matches( tcD ) == true |
| 8427 | </Original> |
| 8428 | <Expanded> |
| 8429 | true == true |
| 8430 | </Expanded> |
| 8431 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8432 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 7139035 | 2014-05-19 18:21:01 +0100 | [diff] [blame] | 8433 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8434 | <Section name="Just wildcard"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8435 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8436 | <Original> |
| 8437 | spec.hasFilters() == true |
| 8438 | </Original> |
| 8439 | <Expanded> |
| 8440 | true == true |
| 8441 | </Expanded> |
| 8442 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8443 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8444 | <Original> |
| 8445 | spec.matches( tcA ) == true |
| 8446 | </Original> |
| 8447 | <Expanded> |
| 8448 | true == true |
| 8449 | </Expanded> |
| 8450 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8451 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8452 | <Original> |
| 8453 | spec.matches( tcB ) == true |
| 8454 | </Original> |
| 8455 | <Expanded> |
| 8456 | true == true |
| 8457 | </Expanded> |
| 8458 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8459 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8460 | <Original> |
| 8461 | spec.matches( tcC ) == true |
| 8462 | </Original> |
| 8463 | <Expanded> |
| 8464 | true == true |
| 8465 | </Expanded> |
| 8466 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8467 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8468 | <Original> |
| 8469 | spec.matches( tcD ) == true |
| 8470 | </Original> |
| 8471 | <Expanded> |
| 8472 | true == true |
| 8473 | </Expanded> |
| 8474 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8475 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8476 | </Section> |
| 8477 | <Section name="Single tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8478 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8479 | <Original> |
| 8480 | spec.hasFilters() == true |
| 8481 | </Original> |
| 8482 | <Expanded> |
| 8483 | true == true |
| 8484 | </Expanded> |
| 8485 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8486 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8487 | <Original> |
| 8488 | spec.matches( tcA ) == false |
| 8489 | </Original> |
| 8490 | <Expanded> |
| 8491 | false == false |
| 8492 | </Expanded> |
| 8493 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8494 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8495 | <Original> |
| 8496 | spec.matches( tcB ) == true |
| 8497 | </Original> |
| 8498 | <Expanded> |
| 8499 | true == true |
| 8500 | </Expanded> |
| 8501 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8502 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8503 | <Original> |
| 8504 | spec.matches( tcC ) == false |
| 8505 | </Original> |
| 8506 | <Expanded> |
| 8507 | false == false |
| 8508 | </Expanded> |
| 8509 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8510 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8511 | </Section> |
| 8512 | <Section name="Single tag, two matches"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8513 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8514 | <Original> |
| 8515 | spec.hasFilters() == true |
| 8516 | </Original> |
| 8517 | <Expanded> |
| 8518 | true == true |
| 8519 | </Expanded> |
| 8520 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8521 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8522 | <Original> |
| 8523 | spec.matches( tcA ) == false |
| 8524 | </Original> |
| 8525 | <Expanded> |
| 8526 | false == false |
| 8527 | </Expanded> |
| 8528 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8529 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8530 | <Original> |
| 8531 | spec.matches( tcB ) == true |
| 8532 | </Original> |
| 8533 | <Expanded> |
| 8534 | true == true |
| 8535 | </Expanded> |
| 8536 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8537 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8538 | <Original> |
| 8539 | spec.matches( tcC ) == true |
| 8540 | </Original> |
| 8541 | <Expanded> |
| 8542 | true == true |
| 8543 | </Expanded> |
| 8544 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8545 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8546 | </Section> |
| 8547 | <Section name="Two tags"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8548 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8549 | <Original> |
| 8550 | spec.hasFilters() == true |
| 8551 | </Original> |
| 8552 | <Expanded> |
| 8553 | true == true |
| 8554 | </Expanded> |
| 8555 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8556 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8557 | <Original> |
| 8558 | spec.matches( tcA ) == false |
| 8559 | </Original> |
| 8560 | <Expanded> |
| 8561 | false == false |
| 8562 | </Expanded> |
| 8563 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8564 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8565 | <Original> |
| 8566 | spec.matches( tcB ) == false |
| 8567 | </Original> |
| 8568 | <Expanded> |
| 8569 | false == false |
| 8570 | </Expanded> |
| 8571 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8572 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8573 | <Original> |
| 8574 | spec.matches( tcC ) == true |
| 8575 | </Original> |
| 8576 | <Expanded> |
| 8577 | true == true |
| 8578 | </Expanded> |
| 8579 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8580 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8581 | </Section> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 8582 | <Section name="Two tags, spare separated"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8583 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 8584 | <Original> |
| 8585 | spec.hasFilters() == true |
| 8586 | </Original> |
| 8587 | <Expanded> |
| 8588 | true == true |
| 8589 | </Expanded> |
| 8590 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8591 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 8592 | <Original> |
| 8593 | spec.matches( tcA ) == false |
| 8594 | </Original> |
| 8595 | <Expanded> |
| 8596 | false == false |
| 8597 | </Expanded> |
| 8598 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8599 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 8600 | <Original> |
| 8601 | spec.matches( tcB ) == false |
| 8602 | </Original> |
| 8603 | <Expanded> |
| 8604 | false == false |
| 8605 | </Expanded> |
| 8606 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8607 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 8608 | <Original> |
| 8609 | spec.matches( tcC ) == true |
| 8610 | </Original> |
| 8611 | <Expanded> |
| 8612 | true == true |
| 8613 | </Expanded> |
| 8614 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8615 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | a2d8f77 | 2014-05-20 18:28:48 +0100 | [diff] [blame] | 8616 | </Section> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8617 | <Section name="Wildcarded name and tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8618 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8619 | <Original> |
| 8620 | spec.hasFilters() == true |
| 8621 | </Original> |
| 8622 | <Expanded> |
| 8623 | true == true |
| 8624 | </Expanded> |
| 8625 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8626 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8627 | <Original> |
| 8628 | spec.matches( tcA ) == false |
| 8629 | </Original> |
| 8630 | <Expanded> |
| 8631 | false == false |
| 8632 | </Expanded> |
| 8633 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8634 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8635 | <Original> |
| 8636 | spec.matches( tcB ) == false |
| 8637 | </Original> |
| 8638 | <Expanded> |
| 8639 | false == false |
| 8640 | </Expanded> |
| 8641 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8642 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8643 | <Original> |
| 8644 | spec.matches( tcC ) == true |
| 8645 | </Original> |
| 8646 | <Expanded> |
| 8647 | true == true |
| 8648 | </Expanded> |
| 8649 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8650 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8651 | <Original> |
| 8652 | spec.matches( tcD ) == false |
| 8653 | </Original> |
| 8654 | <Expanded> |
| 8655 | false == false |
| 8656 | </Expanded> |
| 8657 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8658 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8659 | </Section> |
| 8660 | <Section name="Single tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8661 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8662 | <Original> |
| 8663 | spec.hasFilters() == true |
| 8664 | </Original> |
| 8665 | <Expanded> |
| 8666 | true == true |
| 8667 | </Expanded> |
| 8668 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8669 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8670 | <Original> |
| 8671 | spec.matches( tcA ) == true |
| 8672 | </Original> |
| 8673 | <Expanded> |
| 8674 | true == true |
| 8675 | </Expanded> |
| 8676 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8677 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8678 | <Original> |
| 8679 | spec.matches( tcB ) == false |
| 8680 | </Original> |
| 8681 | <Expanded> |
| 8682 | false == false |
| 8683 | </Expanded> |
| 8684 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8685 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8686 | <Original> |
| 8687 | spec.matches( tcC ) == true |
| 8688 | </Original> |
| 8689 | <Expanded> |
| 8690 | true == true |
| 8691 | </Expanded> |
| 8692 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8693 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8694 | </Section> |
| 8695 | <Section name="One tag exclusion and one tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8696 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8697 | <Original> |
| 8698 | spec.hasFilters() == true |
| 8699 | </Original> |
| 8700 | <Expanded> |
| 8701 | true == true |
| 8702 | </Expanded> |
| 8703 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8704 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8705 | <Original> |
| 8706 | spec.matches( tcA ) == false |
| 8707 | </Original> |
| 8708 | <Expanded> |
| 8709 | false == false |
| 8710 | </Expanded> |
| 8711 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8712 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8713 | <Original> |
| 8714 | spec.matches( tcB ) == true |
| 8715 | </Original> |
| 8716 | <Expanded> |
| 8717 | true == true |
| 8718 | </Expanded> |
| 8719 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8720 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8721 | <Original> |
| 8722 | spec.matches( tcC ) == false |
| 8723 | </Original> |
| 8724 | <Expanded> |
| 8725 | false == false |
| 8726 | </Expanded> |
| 8727 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8728 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8729 | </Section> |
| 8730 | <Section name="One tag exclusion and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8731 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8732 | <Original> |
| 8733 | spec.hasFilters() == true |
| 8734 | </Original> |
| 8735 | <Expanded> |
| 8736 | true == true |
| 8737 | </Expanded> |
| 8738 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8739 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8740 | <Original> |
| 8741 | spec.matches( tcA ) == false |
| 8742 | </Original> |
| 8743 | <Expanded> |
| 8744 | false == false |
| 8745 | </Expanded> |
| 8746 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8747 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8748 | <Original> |
| 8749 | spec.matches( tcB ) == false |
| 8750 | </Original> |
| 8751 | <Expanded> |
| 8752 | false == false |
| 8753 | </Expanded> |
| 8754 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8755 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8756 | <Original> |
| 8757 | spec.matches( tcC ) == false |
| 8758 | </Original> |
| 8759 | <Expanded> |
| 8760 | false == false |
| 8761 | </Expanded> |
| 8762 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8763 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8764 | <Original> |
| 8765 | spec.matches( tcD ) == true |
| 8766 | </Original> |
| 8767 | <Expanded> |
| 8768 | true == true |
| 8769 | </Expanded> |
| 8770 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8771 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8772 | </Section> |
| 8773 | <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8774 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8775 | <Original> |
| 8776 | spec.hasFilters() == true |
| 8777 | </Original> |
| 8778 | <Expanded> |
| 8779 | true == true |
| 8780 | </Expanded> |
| 8781 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8782 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8783 | <Original> |
| 8784 | spec.matches( tcA ) == false |
| 8785 | </Original> |
| 8786 | <Expanded> |
| 8787 | false == false |
| 8788 | </Expanded> |
| 8789 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8790 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8791 | <Original> |
| 8792 | spec.matches( tcB ) == false |
| 8793 | </Original> |
| 8794 | <Expanded> |
| 8795 | false == false |
| 8796 | </Expanded> |
| 8797 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8798 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8799 | <Original> |
| 8800 | spec.matches( tcC ) == false |
| 8801 | </Original> |
| 8802 | <Expanded> |
| 8803 | false == false |
| 8804 | </Expanded> |
| 8805 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8806 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8807 | <Original> |
| 8808 | spec.matches( tcD ) == true |
| 8809 | </Original> |
| 8810 | <Expanded> |
| 8811 | true == true |
| 8812 | </Expanded> |
| 8813 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8814 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8815 | </Section> |
| 8816 | <Section name="name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8817 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8818 | <Original> |
| 8819 | spec.hasFilters() == true |
| 8820 | </Original> |
| 8821 | <Expanded> |
| 8822 | true == true |
| 8823 | </Expanded> |
| 8824 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8825 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8826 | <Original> |
| 8827 | spec.matches( tcA ) == true |
| 8828 | </Original> |
| 8829 | <Expanded> |
| 8830 | true == true |
| 8831 | </Expanded> |
| 8832 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8833 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8834 | <Original> |
| 8835 | spec.matches( tcB ) == false |
| 8836 | </Original> |
| 8837 | <Expanded> |
| 8838 | false == false |
| 8839 | </Expanded> |
| 8840 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8841 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8842 | <Original> |
| 8843 | spec.matches( tcC ) == true |
| 8844 | </Original> |
| 8845 | <Expanded> |
| 8846 | true == true |
| 8847 | </Expanded> |
| 8848 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8849 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8850 | <Original> |
| 8851 | spec.matches( tcD ) == true |
| 8852 | </Original> |
| 8853 | <Expanded> |
| 8854 | true == true |
| 8855 | </Expanded> |
| 8856 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8857 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8858 | </Section> |
| 8859 | <Section name="wildcarded name exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8860 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8861 | <Original> |
| 8862 | spec.hasFilters() == true |
| 8863 | </Original> |
| 8864 | <Expanded> |
| 8865 | true == true |
| 8866 | </Expanded> |
| 8867 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8868 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8869 | <Original> |
| 8870 | spec.matches( tcA ) == true |
| 8871 | </Original> |
| 8872 | <Expanded> |
| 8873 | true == true |
| 8874 | </Expanded> |
| 8875 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8876 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8877 | <Original> |
| 8878 | spec.matches( tcB ) == true |
| 8879 | </Original> |
| 8880 | <Expanded> |
| 8881 | true == true |
| 8882 | </Expanded> |
| 8883 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8884 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8885 | <Original> |
| 8886 | spec.matches( tcC ) == false |
| 8887 | </Original> |
| 8888 | <Expanded> |
| 8889 | false == false |
| 8890 | </Expanded> |
| 8891 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8892 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8893 | <Original> |
| 8894 | spec.matches( tcD ) == false |
| 8895 | </Original> |
| 8896 | <Expanded> |
| 8897 | false == false |
| 8898 | </Expanded> |
| 8899 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8900 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8901 | </Section> |
| 8902 | <Section name="wildcarded name exclusion with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8903 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8904 | <Original> |
| 8905 | spec.hasFilters() == true |
| 8906 | </Original> |
| 8907 | <Expanded> |
| 8908 | true == true |
| 8909 | </Expanded> |
| 8910 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8911 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8912 | <Original> |
| 8913 | spec.matches( tcA ) == true |
| 8914 | </Original> |
| 8915 | <Expanded> |
| 8916 | true == true |
| 8917 | </Expanded> |
| 8918 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8919 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8920 | <Original> |
| 8921 | spec.matches( tcB ) == true |
| 8922 | </Original> |
| 8923 | <Expanded> |
| 8924 | true == true |
| 8925 | </Expanded> |
| 8926 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8927 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8928 | <Original> |
| 8929 | spec.matches( tcC ) == true |
| 8930 | </Original> |
| 8931 | <Expanded> |
| 8932 | true == true |
| 8933 | </Expanded> |
| 8934 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8935 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8936 | <Original> |
| 8937 | spec.matches( tcD ) == false |
| 8938 | </Original> |
| 8939 | <Expanded> |
| 8940 | false == false |
| 8941 | </Expanded> |
| 8942 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8943 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8944 | </Section> |
| 8945 | <Section name="wildcarded name exclusion, using exclude:, with tag inclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8946 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8947 | <Original> |
| 8948 | spec.hasFilters() == true |
| 8949 | </Original> |
| 8950 | <Expanded> |
| 8951 | true == true |
| 8952 | </Expanded> |
| 8953 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8954 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8955 | <Original> |
| 8956 | spec.matches( tcA ) == true |
| 8957 | </Original> |
| 8958 | <Expanded> |
| 8959 | true == true |
| 8960 | </Expanded> |
| 8961 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8962 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8963 | <Original> |
| 8964 | spec.matches( tcB ) == true |
| 8965 | </Original> |
| 8966 | <Expanded> |
| 8967 | true == true |
| 8968 | </Expanded> |
| 8969 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8970 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8971 | <Original> |
| 8972 | spec.matches( tcC ) == true |
| 8973 | </Original> |
| 8974 | <Expanded> |
| 8975 | true == true |
| 8976 | </Expanded> |
| 8977 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8978 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8979 | <Original> |
| 8980 | spec.matches( tcD ) == false |
| 8981 | </Original> |
| 8982 | <Expanded> |
| 8983 | false == false |
| 8984 | </Expanded> |
| 8985 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 8986 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8987 | </Section> |
| 8988 | <Section name="two wildcarded names"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8989 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8990 | <Original> |
| 8991 | spec.hasFilters() == true |
| 8992 | </Original> |
| 8993 | <Expanded> |
| 8994 | true == true |
| 8995 | </Expanded> |
| 8996 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 8997 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 8998 | <Original> |
| 8999 | spec.matches( tcA ) == false |
| 9000 | </Original> |
| 9001 | <Expanded> |
| 9002 | false == false |
| 9003 | </Expanded> |
| 9004 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9005 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9006 | <Original> |
| 9007 | spec.matches( tcB ) == false |
| 9008 | </Original> |
| 9009 | <Expanded> |
| 9010 | false == false |
| 9011 | </Expanded> |
| 9012 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9013 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9014 | <Original> |
| 9015 | spec.matches( tcC ) == true |
| 9016 | </Original> |
| 9017 | <Expanded> |
| 9018 | true == true |
| 9019 | </Expanded> |
| 9020 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9021 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9022 | <Original> |
| 9023 | spec.matches( tcD ) == false |
| 9024 | </Original> |
| 9025 | <Expanded> |
| 9026 | false == false |
| 9027 | </Expanded> |
| 9028 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9029 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9030 | </Section> |
| 9031 | <Section name="empty tag"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9032 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9033 | <Original> |
| 9034 | spec.hasFilters() == false |
| 9035 | </Original> |
| 9036 | <Expanded> |
| 9037 | false == false |
| 9038 | </Expanded> |
| 9039 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9040 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9041 | <Original> |
| 9042 | spec.matches( tcA ) == false |
| 9043 | </Original> |
| 9044 | <Expanded> |
| 9045 | false == false |
| 9046 | </Expanded> |
| 9047 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9048 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9049 | <Original> |
| 9050 | spec.matches( tcB ) == false |
| 9051 | </Original> |
| 9052 | <Expanded> |
| 9053 | false == false |
| 9054 | </Expanded> |
| 9055 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9056 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9057 | <Original> |
| 9058 | spec.matches( tcC ) == false |
| 9059 | </Original> |
| 9060 | <Expanded> |
| 9061 | false == false |
| 9062 | </Expanded> |
| 9063 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9064 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9065 | <Original> |
| 9066 | spec.matches( tcD ) == false |
| 9067 | </Original> |
| 9068 | <Expanded> |
| 9069 | false == false |
| 9070 | </Expanded> |
| 9071 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9072 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9073 | </Section> |
| 9074 | <Section name="empty quoted name"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9075 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9076 | <Original> |
| 9077 | spec.hasFilters() == false |
| 9078 | </Original> |
| 9079 | <Expanded> |
| 9080 | false == false |
| 9081 | </Expanded> |
| 9082 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9083 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9084 | <Original> |
| 9085 | spec.matches( tcA ) == false |
| 9086 | </Original> |
| 9087 | <Expanded> |
| 9088 | false == false |
| 9089 | </Expanded> |
| 9090 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9091 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9092 | <Original> |
| 9093 | spec.matches( tcB ) == false |
| 9094 | </Original> |
| 9095 | <Expanded> |
| 9096 | false == false |
| 9097 | </Expanded> |
| 9098 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9099 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9100 | <Original> |
| 9101 | spec.matches( tcC ) == false |
| 9102 | </Original> |
| 9103 | <Expanded> |
| 9104 | false == false |
| 9105 | </Expanded> |
| 9106 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9107 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9108 | <Original> |
| 9109 | spec.matches( tcD ) == false |
| 9110 | </Original> |
| 9111 | <Expanded> |
| 9112 | false == false |
| 9113 | </Expanded> |
| 9114 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9115 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9116 | </Section> |
| 9117 | <Section name="quoted string followed by tag exclusion"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9118 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9119 | <Original> |
| 9120 | spec.hasFilters() == true |
| 9121 | </Original> |
| 9122 | <Expanded> |
| 9123 | true == true |
| 9124 | </Expanded> |
| 9125 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9126 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9127 | <Original> |
| 9128 | spec.matches( tcA ) == false |
| 9129 | </Original> |
| 9130 | <Expanded> |
| 9131 | false == false |
| 9132 | </Expanded> |
| 9133 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9134 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9135 | <Original> |
| 9136 | spec.matches( tcB ) == false |
| 9137 | </Original> |
| 9138 | <Expanded> |
| 9139 | false == false |
| 9140 | </Expanded> |
| 9141 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9142 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9143 | <Original> |
| 9144 | spec.matches( tcC ) == false |
| 9145 | </Original> |
| 9146 | <Expanded> |
| 9147 | false == false |
| 9148 | </Expanded> |
| 9149 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9150 | <Expression success="true" type="CHECK" filename="projects/SelfTest/CmdLineTests.cpp" > |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9151 | <Original> |
| 9152 | spec.matches( tcD ) == true |
| 9153 | </Original> |
| 9154 | <Expanded> |
| 9155 | true == true |
| 9156 | </Expanded> |
| 9157 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9158 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 766491a | 2014-05-16 18:31:15 +0100 | [diff] [blame] | 9159 | </Section> |
| 9160 | <OverallResult success="true"/> |
| 9161 | </TestCase> |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9162 | <TestCase name="tuple<>"> |
| 9163 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9164 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9165 | "{ }" == Catch::toString(type{}) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9166 | </Original> |
| 9167 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9168 | "{ }" == "{ }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9169 | </Expanded> |
| 9170 | </Expression> |
| 9171 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9172 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9173 | "{ }" == Catch::toString(value) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9174 | </Original> |
| 9175 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9176 | "{ }" == "{ }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9177 | </Expanded> |
| 9178 | </Expression> |
| 9179 | <OverallResult success="true"/> |
| 9180 | </TestCase> |
| 9181 | <TestCase name="tuple<int>"> |
| 9182 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9183 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9184 | "{ 0 }" == Catch::toString(type{0}) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9185 | </Original> |
| 9186 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9187 | "{ 0 }" == "{ 0 }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9188 | </Expanded> |
| 9189 | </Expression> |
| 9190 | <OverallResult success="true"/> |
| 9191 | </TestCase> |
| 9192 | <TestCase name="tuple<float,int>"> |
| 9193 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9194 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9195 | "1.2f" == Catch::toString(float(1.2)) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9196 | </Original> |
| 9197 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9198 | "1.2f" == "1.2f" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9199 | </Expanded> |
| 9200 | </Expression> |
| 9201 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9202 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9203 | "{ 1.2f, 0 }" == Catch::toString(type{1.2,0}) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9204 | </Original> |
| 9205 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9206 | "{ 1.2f, 0 }" == "{ 1.2f, 0 }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9207 | </Expanded> |
| 9208 | </Expression> |
| 9209 | <OverallResult success="true"/> |
| 9210 | </TestCase> |
| 9211 | <TestCase name="tuple<string,string>"> |
| 9212 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9213 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9214 | "{ \"hello\", \"world\" }" == Catch::toString(type{"hello","world"}) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9215 | </Original> |
| 9216 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9217 | "{ "hello", "world" }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9218 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9219 | "{ "hello", "world" }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9220 | </Expanded> |
| 9221 | </Expression> |
| 9222 | <OverallResult success="true"/> |
| 9223 | </TestCase> |
| 9224 | <TestCase name="tuple<tuple<int>,tuple<>,float>"> |
| 9225 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9226 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9227 | "{ { 42 }, { }, 1.2f }" == Catch::toString(value) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9228 | </Original> |
| 9229 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9230 | "{ { 42 }, { }, 1.2f }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9231 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9232 | "{ { 42 }, { }, 1.2f }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9233 | </Expanded> |
| 9234 | </Expression> |
| 9235 | <OverallResult success="true"/> |
| 9236 | </TestCase> |
| 9237 | <TestCase name="tuple<nullptr,int,const char *>"> |
| 9238 | <Expression success="true" type="CHECK" filename="projects/SelfTest/ToStringTuple.cpp" > |
| 9239 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9240 | "{ nullptr, 42, \"Catch me\" }" == Catch::toString(value) |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9241 | </Original> |
| 9242 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9243 | "{ nullptr, 42, "Catch me" }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9244 | == |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9245 | "{ nullptr, 42, "Catch me" }" |
Phil Nash | 5018320 | 2014-12-30 18:47:01 +0000 | [diff] [blame] | 9246 | </Expanded> |
| 9247 | </Expression> |
| 9248 | <OverallResult success="true"/> |
| 9249 | </TestCase> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9250 | <TestCase name="Tag alias can be registered against tag patterns"> |
| 9251 | <Section name="The same tag alias can only be registered once"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9252 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9253 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9254 | what Contains( "[@zzz]" ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9255 | </Original> |
| 9256 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9257 | "error: tag alias, "[@zzz]" already registered. |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9258 | First seen at file:2 |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9259 | Redefined at file:10" contains: "[@zzz]" |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9260 | </Expanded> |
| 9261 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9262 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9263 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9264 | what Contains( "file" ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9265 | </Original> |
| 9266 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9267 | "error: tag alias, "[@zzz]" already registered. |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9268 | First seen at file:2 |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9269 | Redefined at file:10" contains: "file" |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9270 | </Expanded> |
| 9271 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9272 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9273 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9274 | what Contains( "2" ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9275 | </Original> |
| 9276 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9277 | "error: tag alias, "[@zzz]" already registered. |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9278 | First seen at file:2 |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9279 | Redefined at file:10" contains: "2" |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9280 | </Expanded> |
| 9281 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9282 | <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9283 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9284 | what Contains( "10" ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9285 | </Original> |
| 9286 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9287 | "error: tag alias, "[@zzz]" already registered. |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9288 | First seen at file:2 |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9289 | Redefined at file:10" contains: "10" |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9290 | </Expanded> |
| 9291 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9292 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9293 | </Section> |
| 9294 | <Section name="Tag aliases must be of the form [@name]"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9295 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9296 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9297 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9298 | </Original> |
| 9299 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9300 | registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9301 | </Expanded> |
| 9302 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9303 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9304 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9305 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9306 | </Original> |
| 9307 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9308 | registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9309 | </Expanded> |
| 9310 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9311 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9312 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9313 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9314 | </Original> |
| 9315 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9316 | registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9317 | </Expanded> |
| 9318 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9319 | <Expression success="true" type="CHECK_THROWS" filename="projects/SelfTest/TagAliasTests.cpp" > |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9320 | <Original> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9321 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9322 | </Original> |
| 9323 | <Expanded> |
Phil Nash | d6e59cd | 2015-07-23 18:45:31 +0100 | [diff] [blame] | 9324 | registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9325 | </Expanded> |
| 9326 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9327 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 061861d | 2014-06-30 07:34:27 +0100 | [diff] [blame] | 9328 | </Section> |
| 9329 | <OverallResult success="true"/> |
| 9330 | </TestCase> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9331 | <TestCase name="Anonymous test case 1"> |
| 9332 | <OverallResult success="true"/> |
| 9333 | </TestCase> |
| 9334 | <TestCase name="Test case with one argument"> |
| 9335 | <OverallResult success="true"/> |
| 9336 | </TestCase> |
| 9337 | <TestCase name="Variadic macros"> |
| 9338 | <Section name="Section with one argument"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9339 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9340 | </Section> |
| 9341 | <OverallResult success="true"/> |
| 9342 | </TestCase> |
| 9343 | <TestCase name="Scenario: Do that thing with the thing"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9344 | <Section name="Given: This stuff exists"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9345 | <Section name="When: I do this"> |
| 9346 | <Section name="Then: it should do this"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9347 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9348 | <Original> |
| 9349 | itDoesThis() |
| 9350 | </Original> |
| 9351 | <Expanded> |
| 9352 | true |
| 9353 | </Expanded> |
| 9354 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9355 | <Section name="And: do that"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9356 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9357 | <Original> |
| 9358 | itDoesThat() |
| 9359 | </Original> |
| 9360 | <Expanded> |
| 9361 | true |
| 9362 | </Expanded> |
| 9363 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9364 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9365 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9366 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9367 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9368 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9369 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9370 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9371 | </Section> |
| 9372 | <OverallResult success="true"/> |
| 9373 | </TestCase> |
| 9374 | <TestCase name="Scenario: Vector resizing affects size and capacity"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9375 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9376 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9377 | <Original> |
| 9378 | v.size() == 0 |
| 9379 | </Original> |
| 9380 | <Expanded> |
| 9381 | 0 == 0 |
| 9382 | </Expanded> |
| 9383 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9384 | <Section name="When: it is made larger"> |
| 9385 | <Section name="Then: the size and capacity go up"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9386 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9387 | <Original> |
| 9388 | v.size() == 10 |
| 9389 | </Original> |
| 9390 | <Expanded> |
| 9391 | 10 == 10 |
| 9392 | </Expanded> |
| 9393 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9394 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9395 | <Original> |
| 9396 | v.capacity() >= 10 |
| 9397 | </Original> |
| 9398 | <Expanded> |
| 9399 | 10 >= 10 |
| 9400 | </Expanded> |
| 9401 | </Expression> |
| 9402 | <Section name="And when: it is made smaller again"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9403 | <Section name="Then: the size goes down but the capacity stays the same"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9404 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9405 | <Original> |
| 9406 | v.size() == 5 |
| 9407 | </Original> |
| 9408 | <Expanded> |
| 9409 | 5 == 5 |
| 9410 | </Expanded> |
| 9411 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9412 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9413 | <Original> |
| 9414 | v.capacity() >= 10 |
| 9415 | </Original> |
| 9416 | <Expanded> |
| 9417 | 10 >= 10 |
| 9418 | </Expanded> |
| 9419 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9420 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9421 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9422 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9423 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9424 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9425 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9426 | <OverallResults successes="4" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9427 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9428 | <OverallResults successes="5" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9429 | </Section> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9430 | <Section name="Given: an empty vector"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9431 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9432 | <Original> |
| 9433 | v.size() == 0 |
| 9434 | </Original> |
| 9435 | <Expanded> |
| 9436 | 0 == 0 |
| 9437 | </Expanded> |
| 9438 | </Expression> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9439 | <Section name="When: we reserve more space"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9440 | <Section name="Then: The capacity is increased but the size remains the same"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9441 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9442 | <Original> |
| 9443 | v.capacity() >= 10 |
| 9444 | </Original> |
| 9445 | <Expanded> |
| 9446 | 10 >= 10 |
| 9447 | </Expanded> |
| 9448 | </Expression> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9449 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9450 | <Original> |
| 9451 | v.size() == 0 |
| 9452 | </Original> |
| 9453 | <Expanded> |
| 9454 | 0 == 0 |
| 9455 | </Expanded> |
| 9456 | </Expression> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9457 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9458 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9459 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9460 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9461 | <OverallResults successes="3" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9462 | </Section> |
| 9463 | <OverallResult success="true"/> |
| 9464 | </TestCase> |
| 9465 | <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9466 | <Section name="Given: A section name that is so long that it cannot fit in a single console width"> |
Phil Nash | a1e87a4 | 2013-12-10 08:20:46 +0000 | [diff] [blame] | 9467 | <Section name="When: The test headers are printed as part of the normal running of the scenario"> |
| 9468 | <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent"> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9469 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9470 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9471 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9472 | </Section> |
Phil Nash | 9c1f9a8 | 2014-07-03 08:09:57 +0100 | [diff] [blame] | 9473 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9474 | </Section> |
| 9475 | <OverallResult success="true"/> |
| 9476 | </TestCase> |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 9477 | <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods"> |
| 9478 | <Section name="Given: No operations precede me"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9479 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 9480 | <Original> |
| 9481 | before == 0 |
| 9482 | </Original> |
| 9483 | <Expanded> |
| 9484 | 0 == 0 |
| 9485 | </Expanded> |
| 9486 | </Expression> |
| 9487 | <Section name="When: We get the count"> |
| 9488 | <Section name="Then: Subsequently values are higher"> |
Phil Nash | c6635a7 | 2014-12-30 18:25:27 +0000 | [diff] [blame] | 9489 | <Expression success="true" type="REQUIRE" filename="projects/SelfTest/BDDTests.cpp" > |
Phil Nash | 8b5a4e9 | 2014-08-20 08:08:13 +0100 | [diff] [blame] | 9490 | <Original> |
| 9491 | after > before |
| 9492 | </Original> |
| 9493 | <Expanded> |
| 9494 | 1 > 0 |
| 9495 | </Expanded> |
| 9496 | </Expression> |
| 9497 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 9498 | </Section> |
| 9499 | <OverallResults successes="1" failures="0" expectedFailures="0"/> |
| 9500 | </Section> |
| 9501 | <OverallResults successes="2" failures="0" expectedFailures="0"/> |
| 9502 | </Section> |
| 9503 | <OverallResult success="true"/> |
| 9504 | </TestCase> |
Phil Nash | a49f088 | 2015-11-18 08:39:21 +0000 | [diff] [blame^] | 9505 | <OverallResults successes="817" failures="85" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9506 | </Group> |
Phil Nash | a49f088 | 2015-11-18 08:39:21 +0000 | [diff] [blame^] | 9507 | <OverallResults successes="817" failures="85" expectedFailures="13"/> |
Phil Nash | 2f7a296 | 2013-09-27 19:01:14 +0100 | [diff] [blame] | 9508 | </Catch> |