[libc-commits] [libc] [libc][tsearch] add tsearch functions (PR #172625)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Jan 30 11:01:19 PST 2026
================
@@ -0,0 +1,137 @@
+//===-- Unittests for tsearch ---------------------------------------------===//
----------------
michaelrj-google wrote:
ideally there would be unit tests for eac specific function. Since this is effectively one large data structure I don't think they need to be in separate files, but they should all be thoroughly checked. Currently destroy doesn't have its own test and the delete test is mixed with the search test. Consider the debugging experience: If someone not familiar with these functions sees a test failure, ideally they should immediately know which function has a problem, just from which tests are failing.
https://github.com/llvm/llvm-project/pull/172625
More information about the libc-commits
mailing list