| 312 | } |
| 313 | |
| 314 | SignedBytesEqualFailure::SignedBytesEqualFailure (UtestShell* test, const char* fileName, size_t lineNumber, signed char expected, signed char actual, const SimpleString& text) |
| 315 | : TestFailure(test, fileName, lineNumber) |
| 316 | { |
| 317 | message_ = createUserText(text); |
| 318 | |
| 319 | SimpleString aDecimal = StringFrom((int)actual); |
| 320 | SimpleString eDecimal = StringFrom((int)expected); |
| 321 | |
| 322 | SimpleString::padStringsToSameLength(aDecimal, eDecimal, ' '); |
| 323 | |
| 324 | SimpleString actualReported = aDecimal + " " + BracketsFormattedHexStringFrom(actual); |
| 325 | SimpleString expectedReported = eDecimal + " " + BracketsFormattedHexStringFrom(expected); |
| 326 | message_ += createButWasString(expectedReported, actualReported); |
| 327 | } |
| 328 | |
| 329 | StringEqualFailure::StringEqualFailure(UtestShell* test, const char* fileName, size_t lineNumber, const char* expected, const char* actual, const SimpleString& text) |
| 330 | : TestFailure(test, fileName, lineNumber) |
nothing calls this directly
no test coverage detected