Exemple #1
0
def testManyInsert():
    _tree = BST()
    _tree.insert(25)
    _tree.insert(10)
    _tree.insert(30)
    _tree.insert(35)

    assert _tree.exists(10)
    assert _tree.exists(25)
    assert _tree.exists(30)
    assert _tree.exists(35)
Exemple #2
0
def testOneInsert():
    _tree = BST()
    _tree.insert(30)

    assert _tree.exists(30)