def delete_first(): list = LinkedList() list.append(1) list.append(2) list.append(3) list.deleteValue(1) assert list.head.value == 2
def delete_last(): list = LinkedList() list.append(1) list.append(2) list.append(3) list.deleteValue(1) assert list.head.next.next.value == None
def delete_middle(): list = LinkedList() list.append(1) list.append(2) list.append(3) list.deleteValue(2) assert list.head.next.value == 3