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