Exemple #1
0
def test_double_insert_exception():
    tree = AVLTree([5])
    with pytest.raises(ValueError):
        tree.insert(5)
Exemple #2
0
def test_tree_insert():
    tree = AVLTree()
    tree.insert(5)
    assert 5 in tree