diff -r 7345ee0a0301 -r 35b2b99ee523 tests/test_list.cpp --- a/tests/test_list.cpp Sat Apr 22 14:09:46 2023 +0200 +++ b/tests/test_list.cpp Sat Apr 22 14:21:02 2023 +0200 @@ -177,9 +177,9 @@ s = 8; EXPECT_EQ(cx_linked_list_find(list, loc_next, loc_data, cx_cmp_int, &s), 3); s = 10; - EXPECT_EQ(cx_linked_list_find(list, loc_next, loc_data, cx_cmp_int, &s), 4); + EXPECT_LT(cx_linked_list_find(list, loc_next, loc_data, cx_cmp_int, &s), 0); s = -2; - EXPECT_EQ(cx_linked_list_find(list, loc_next, loc_data, cx_cmp_int, &s), 4); + EXPECT_LT(cx_linked_list_find(list, loc_next, loc_data, cx_cmp_int, &s), 0); } TEST(LinkedList_LowLevel, cx_linked_list_compare) { @@ -837,7 +837,7 @@ } int notinlist = -1; - EXPECT_EQ(cxListSize(list), cxListFind(list, ¬inlist)); + EXPECT_LT(cxListFind(list, ¬inlist), 0); } void verifySort(CxList *list) const {