diff --git a/test/testunity.c b/test/testunity.c index 568234f077db0df31d501737ec86ac6f1f8cba4a..d435f956acfb5bca4c7d65380f5bffa6cc5eb548 100644 --- a/test/testunity.c +++ b/test/testunity.c @@ -50,12 +50,15 @@ void tearDown(void) } } -void testBreadCrumbs(void) +void testUnitySizeInitializationReminder(void) { + char * message = "Unexpected size for _Unity struct. Please check that " + "the initialization of the Unity symbol in unity.c is " + "still correct."; /* 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)); + TEST_ASSERT_EQUAL_MESSAGE(104, sizeof(Unity), message); } void testTrue(void)