예제 #1
0
 def test_CountOneNode(self):
     node = BSTNode(1, 1, None)
     tree = BST(node)
     self.assertEqual(tree.Count(), 1)
예제 #2
0
 def test_CountEmpty(self):
     tree = BST(None)
     self.assertEqual(tree.Count(), 0)