def test_indexerror_insert(): ll = LinkedList() ll.dump(5, 3, 1) with pytest.raises(IndexError): ll.insert(6, 2)
def test_insert(): ll = LinkedList() ll.dump(5, 3, 1) ll.insert(0, 0)
def test_indexerror_insert(): ll = LinkedList() ll.dump(5, 3, 1) with pytest.raises(IndexError): ll.insert(6, 2)
def test_insert(): ll = LinkedList() ll.dump(5, 3, 1) ll.insert(0, 0)