added new function which replaces EXPECT_NE from gtest
bk: 5580535aj-T_dALHNRy4XieqdNTHng
RUN_TEST(test_ScopedIPv6AddressWithPort, 40);
RUN_TEST(test_HashEqual, 65);
RUN_TEST(test_HashNotEqual, 73);
- RUN_TEST(test_IgnoreIPv6Fields, 82);
+ RUN_TEST(test_IgnoreIPv6Fields, 84);
return (UnityEnd());
}
TEST_ASSERT_FALSE(IsEqual(input1, input2));
//TODO : EXPECT_NE(sock_hash(&input1), sock_hash(&input2));
+ //Damir's suggestion below:
+ TEST_ASSERT_FALSE(sock_hash(&input1) == sock_hash(&input2));
+ //NOTE: sock_hash returns u_short, so you can compare it with ==
+ //for complex structures you have to write an additional function like bool compare(a,b)
}
void test_IgnoreIPv6Fields(void) {