提交 d6779b76 编写于 作者: J John Van Enk 提交者: Alex Rodriguez

Add test that will break if the _Unity struct ever changes.

上级 aac87e01
......@@ -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);
......@@ -2526,4 +2534,4 @@ void testNotEqualDoubleArraysNegative3(void)
VERIFY_FAILS_END
#endif
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册