From b1a991c6c3fb99325ab1b2c04e239eac3721d76b Mon Sep 17 00:00:00 2001 From: John Van Enk Date: Wed, 3 Oct 2012 13:47:18 -0400 Subject: [PATCH] Use a better message and change the test name. --- test/testunity.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/testunity.c b/test/testunity.c index 568234f..d435f95 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) -- GitLab