示例#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)
示例#2
0
 def test_WideAllNodesEmpty(self):
     tree = BST(None)
     result = tree.WideAllNodes()
     correct_answer = tuple()
     self.assertEqual(result, correct_answer)