Beispiel #1
0
 def test_balance_neutral(self):
     #Balanced Tree
     Tree = bst.create_balanced_tree(7)
     self.assertEqual(Tree.balance(), 0)
Beispiel #2
0
 def test_depth_balanced(self):
     #Balanced Tree
     Tree = bst.create_balanced_tree(7)
     self.assertEqual(Tree.depth(), 2)