mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Added ability to finish test immediately with a pass condition by using TEST_PASS
This commit is contained in:
@@ -110,6 +110,12 @@ void testUnitySizeInitializationReminder(void)
|
||||
TEST_ASSERT_EQUAL_MESSAGE(sizeof(_Expected_Unity), sizeof(Unity), message);
|
||||
}
|
||||
|
||||
void testPassShouldEndImmediatelyWithPass(void)
|
||||
{
|
||||
TEST_PASS();
|
||||
TEST_FAIL_MESSAGE("We should have passed already and finished this test");
|
||||
}
|
||||
|
||||
void testTrue(void)
|
||||
{
|
||||
TEST_ASSERT(1);
|
||||
|
||||
Reference in New Issue
Block a user