unit-tests: Let identity equality test fail if a->equals(b) != b->equals(a)
This commit is contained in:
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);
|
b = identification_create_from_string(b_str);
|
||||||
equals = a->equals(a, b);
|
equals = a->equals(a, b);
|
||||||
equals = equals && b->equals(b, a);
|
ck_assert_int_eq(equals, b->equals(b, a));
|
||||||
b->destroy(b);
|
b->destroy(b);
|
||||||
return equals;
|
return equals;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user