示例#1
0
        public void TestFindMinRight()
        {
            RBTree <int> tree = new RBTree <int>();

            tree.Insert(5);
            tree.Insert(3);
            tree.Insert(6);
            tree.Insert(4);
            tree.Insert(1);
            Assert.AreEqual(6, tree.FindMin(tree.Root.RightChild).Data);
        }