Home
last modified time | relevance | path

Searched refs:node_cmp (Results 1 – 1 of 1) sorted by relevance

/bionic/tests/
Dsearch_test.cpp57 static int node_cmp(const void* lhs, const void* rhs) { in node_cmp() function
86 ASSERT_EQ(nullptr, tfind(&n1, &root, node_cmp)); in TEST()
87 ASSERT_EQ(nullptr, tfind(&n2, &root, node_cmp)); in TEST()
88 ASSERT_EQ(nullptr, tfind(&n3, &root, node_cmp)); in TEST()
91 void* i1 = tsearch(&n1, &root, node_cmp); in TEST()
95 ASSERT_EQ(i1, tfind(&n1, &root, node_cmp)); in TEST()
96 ASSERT_EQ(nullptr, tfind(&n2, &root, node_cmp)); in TEST()
97 ASSERT_EQ(nullptr, tfind(&n3, &root, node_cmp)); in TEST()
100 ASSERT_NE(nullptr, tsearch(&n2, &root, node_cmp)); in TEST()
101 ASSERT_NE(nullptr, tsearch(&n3, &root, node_cmp)); in TEST()