public void FindLargestBelowTestFail() { tree = new SplayTree <int> { 5, 11, 8, 13, 3, 7, 12 }; tree.LargestBelow(3); }
public void FindLargestBelowTest() { tree = new SplayTree <int> { 5, 11, 8, 13, 3, 7, 12 }; Assert.AreEqual(8, tree.LargestBelow(10)); }
public KeyValuePair <K, V> LargestBelow(K key) { return(tree.LargestBelow(DefaultValue(key))); }