Beispiel #1
0
def test_1(Tree):
    node1 = TNode(1)
    binary_tree = BinaryTree(node1)
    list = binary_tree.breadth_first_traversal()
    actual = list.__str__()
    expected = '1-'
    assert actual == expected
Beispiel #2
0
def test_2(Tree):
    binary_tree = BinaryTree()
    list = binary_tree.breadth_first_traversal()
    actual = list.__str__()
    expected = ''
    assert actual == expected