mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-19 05:18:01 +08:00
Add test that will break if the _Unity struct ever changes.
This commit is contained in:
@ -50,6 +50,14 @@ void tearDown(void)
|
||||
}
|
||||
}
|
||||
|
||||
void testBreadCrumbs(void)
|
||||
{
|
||||
/* This test ensures that sizeof(struct _Unity) doesn't change. If this
|
||||
* test breaks, go look at the initialization of the Unity global variable
|
||||
* in unity.c and make sure we're filling in the proper fields. */
|
||||
TEST_ASSERT_EQUAL(104, sizeof(Unity));
|
||||
}
|
||||
|
||||
void testTrue(void)
|
||||
{
|
||||
TEST_ASSERT(1);
|
||||
@ -2021,4 +2029,4 @@ void testNotEqualDoubleArraysNegative3(void)
|
||||
VERIFY_FAILS_END
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user