1
0
mirror of https://github.com/ThrowTheSwitch/Unity synced 2025-05-31 03:49:33 -04:00

Merge pull request from art-of-dom/str-cmp-tests

Expliticly show test failures of unequal strings
This commit is contained in:
Mark VanderVoord 2019-04-13 14:53:27 -04:00 committed by GitHub
commit 480d505cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1852,6 +1852,20 @@ void testNotEqualStringLen_ActualStringIsNull(void)
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)
{
const char *testStrings[] = { "foo", "boo", "woo", "moo" };