unit-tests: Let identity equality test fail if a->equals(b) != b->equals(a)

This commit is contained in:
Martin Willi
2013-10-31 21:57:07 +01:00
committed by Andreas Steffen
parent 2590cd20d3
commit c409be2506
@@ -360,7 +360,7 @@ static bool id_equals(identification_t *a, char *b_str)
b = identification_create_from_string(b_str);
equals = a->equals(a, b);
equals = equals && b->equals(b, a);
ck_assert_int_eq(equals, b->equals(b, a));
b->destroy(b);
return equals;
}