Debian Codegraph @

src/test/modules/test_rbtree/README

raw
1 test_rbtree is a test module for checking the correctness of red-black
2 tree operations.
3
4 These tests are performed on red-black trees that store integers.
5 Since the rbtree logic treats the comparison function as a black
6 box, it shouldn't be important exactly what the key type is.
7
8 Checking the correctness of traversals is based on the fact that a red-black
9 tree is a binary search tree, so the elements should be visited in increasing
10 (for Left-Current-Right) or decreasing (for Right-Current-Left) order.
11
12 Also, this module does some checks of the correctness of the find, delete
13 and leftmost operations.