| 266 | } |
| 267 | |
| 268 | UnsignedLongsEqualFailure::UnsignedLongsEqualFailure(UtestShell* test, const char* fileName, size_t lineNumber, unsigned long expected, unsigned long actual, const SimpleString& text) |
| 269 | : TestFailure(test, fileName, lineNumber) |
| 270 | { |
| 271 | message_ = createUserText(text); |
| 272 | |
| 273 | SimpleString aDecimal = StringFrom(actual); |
| 274 | SimpleString eDecimal = StringFrom(expected); |
| 275 | |
| 276 | SimpleString::padStringsToSameLength(aDecimal, eDecimal, ' '); |
| 277 | |
| 278 | SimpleString actualReported = aDecimal + " " + BracketsFormattedHexStringFrom(actual); |
| 279 | SimpleString expectedReported = eDecimal + " " + BracketsFormattedHexStringFrom(expected); |
| 280 | |
| 281 | message_ += createButWasString(expectedReported, actualReported); |
| 282 | } |
| 283 | |
| 284 | LongLongsEqualFailure::LongLongsEqualFailure(UtestShell* test, const char* fileName, size_t lineNumber, cpputest_longlong expected, cpputest_longlong actual, const SimpleString& text) |
| 285 | : TestFailure(test, fileName, lineNumber) |
nothing calls this directly
no test coverage detected