| 511 | *-----------------------------------------------*/ |
| 512 | |
| 513 | void UnityAssertBits(const UNITY_INT mask, |
| 514 | const UNITY_INT expected, |
| 515 | const UNITY_INT actual, |
| 516 | const char* msg, |
| 517 | const UNITY_LINE_TYPE lineNumber) |
| 518 | { |
| 519 | RETURN_IF_FAIL_OR_IGNORE; |
| 520 | |
| 521 | if ((mask & expected) != (mask & actual)) |
| 522 | { |
| 523 | UnityTestResultsFailBegin(lineNumber); |
| 524 | UnityPrint(UnityStrExpected); |
| 525 | UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)expected); |
| 526 | UnityPrint(UnityStrWas); |
| 527 | UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)actual); |
| 528 | UnityAddMsgIfSpecified(msg); |
| 529 | UNITY_FAIL_AND_BAIL; |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | /*-----------------------------------------------*/ |
| 534 | void UnityAssertEqualNumber(const UNITY_INT expected, |
nothing calls this directly
no test coverage detected
searching dependent graphs…