Ejemplo n.º 1
0
 def test_WideAllNodesOneNode(self):
     node = BSTNode(1, 1, None)
     tree = BST(node)
     result = tree.WideAllNodes()
     correct_answer = tuple([node])
     self.assertEqual(result, correct_answer)
Ejemplo n.º 2
0
 def test_WideAllNodesEmpty(self):
     tree = BST(None)
     result = tree.WideAllNodes()
     correct_answer = tuple()
     self.assertEqual(result, correct_answer)