mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-08-06 13:50:49 +08:00
Make testunity.c printing uniform during failure, delete word "Previous"
This commit is contained in:
@ -30,7 +30,7 @@ static const _UD d_zero = 0.0;
|
|||||||
UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \
|
UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \
|
||||||
UNITY_OUTPUT_CHAR(':'); \
|
UNITY_OUTPUT_CHAR(':'); \
|
||||||
UnityPrint(Unity.CurrentTestName); \
|
UnityPrint(Unity.CurrentTestName); \
|
||||||
UnityPrint("[[[[ Previous Test Should Have Failed But Did Not ]]]]"); \
|
UnityPrint(":FAIL: [[[[ Test Should Have Failed But Did Not ]]]]"); \
|
||||||
UNITY_OUTPUT_CHAR('\n'); \
|
UNITY_OUTPUT_CHAR('\n'); \
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,10 @@ static const _UD d_zero = 0.0;
|
|||||||
Unity.CurrentTestIgnored = 0; \
|
Unity.CurrentTestIgnored = 0; \
|
||||||
if (Unity.CurrentTestFailed == 1) { \
|
if (Unity.CurrentTestFailed == 1) { \
|
||||||
SetToOneMeanWeAlreadyCheckedThisGuy = 1; \
|
SetToOneMeanWeAlreadyCheckedThisGuy = 1; \
|
||||||
UnityPrint("[[[[ Previous Test Should Have Ignored But Did Not ]]]]"); \
|
UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \
|
||||||
|
UNITY_OUTPUT_CHAR(':'); \
|
||||||
|
UnityPrint(Unity.CurrentTestName); \
|
||||||
|
UnityPrint(":FAIL: [[[[ Test Should Have Ignored But Did Not ]]]]"); \
|
||||||
UNITY_OUTPUT_CHAR('\n'); \
|
UNITY_OUTPUT_CHAR('\n'); \
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +62,7 @@ void tearDown(void)
|
|||||||
TEST_FAIL_MESSAGE("<= Failed in tearDown");
|
TEST_FAIL_MESSAGE("<= Failed in tearDown");
|
||||||
if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
|
if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
|
||||||
{
|
{
|
||||||
UnityPrint("[[[[ Previous Test Should Have Passed But Did Not ]]]]");
|
UnityPrint(": [[[[ Test Should Have Passed But Did Not ]]]]");
|
||||||
UNITY_OUTPUT_CHAR('\n');
|
UNITY_OUTPUT_CHAR('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user