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