1 ;;; Regression testing for red-black trees.
4 :;; `rbtree_join' could look for a sibling node's colour without checking
5 :;; that it actually existed.
11 :;; In `rbtree_split' with an empty path, the root of the initial tree
12 :;; wasn't forcibly blackened. Make sure this is done and that the
13 :;; black heights are correctly tracked. This causes all manner of
14 :;; trouble otherwise, including leaking nodes because `rbtree_join'
15 :;; assumes that a tree with zero black-height must be empty -- which
35 :;; The hairy test case which found both of these bugs.
93 :;; `rbtree_splitroot' just could not track subtree heights correctly.