mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-08-06 13:50:49 +08:00
expliticly show test failures of unequal strings
This commit is contained in:
@ -1852,6 +1852,20 @@ void testNotEqualStringLen_ActualStringIsNull(void)
|
|||||||
VERIFY_FAILS_END
|
VERIFY_FAILS_END
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void testNotEqualString_ExpectedStringIsLonger(void)
|
||||||
|
{
|
||||||
|
EXPECT_ABORT_BEGIN
|
||||||
|
TEST_ASSERT_EQUAL_STRING("foo2", "foo");
|
||||||
|
VERIFY_FAILS_END
|
||||||
|
}
|
||||||
|
|
||||||
|
void testNotEqualString_ActualStringIsLonger(void)
|
||||||
|
{
|
||||||
|
EXPECT_ABORT_BEGIN
|
||||||
|
TEST_ASSERT_EQUAL_STRING("foo", "foo2");
|
||||||
|
VERIFY_FAILS_END
|
||||||
|
}
|
||||||
|
|
||||||
void testEqualStringArrays(void)
|
void testEqualStringArrays(void)
|
||||||
{
|
{
|
||||||
const char *testStrings[] = { "foo", "boo", "woo", "moo" };
|
const char *testStrings[] = { "foo", "boo", "woo", "moo" };
|
||||||
|
Reference in New Issue
Block a user