Fixing equals functions of list and intervalheap
This commit is contained in:
1 parent
0c8e12ce30
commit
101b839801
3 files changed
+12
-4
No files matched your search
@@ -485,7 +485,15 @@ CMC_CREATE_UNIT(list_test, true, {
|
||||
cmc_assert_equals(int32_t, cmc_flags.OK, l_flag(l));
|
||||
cmc_assert_equals(int32_t, cmc_flags.OK, l_flag(l3));
|
||||
|
||||
// equals
|
||||
l->flag = cmc_flags.ERROR;
|
||||
l3->flag = cmc_flags.ERROR;
|
||||
cmc_assert(l_equals(l, l3));
|
||||
cmc_assert_equals(int32_t, cmc_flags.OK, l_flag(l));
|
||||
cmc_assert_equals(int32_t, cmc_flags.OK, l_flag(l3));
|
||||
|
||||
l_free(l);
|
||||
l_free(l2);
|
||||
l_free(l3);
|
||||
});
|
||||
})
|
||||
Reference in new issue
Block a user