示例#1
0
def test_indexerror_insert():
    ll = LinkedList()
    ll.dump(5, 3, 1)

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