In the current testing setup for tree_search(), the case for
non-existent key is not exercised. Improve this by adding a
test-case for the same.
Mentored-by: Patrick Steinhardt <redacted>
Mentored-by: Christian Couder <redacted>
Signed-off-by: Chandra Pratap <redacted>
Signed-off-by: Junio C Hamano <redacted>
check_pointer_eq(nodes[i], tree_search(&values[i], &root, &t_compare, 0));
}
+ check(!tree_search(values, &root, t_compare, 0));
tree_free(root);
}