def test_list_zip_not_equal_length():
    li = LinkedList()
    li2 = LinkedList()
    li.insert(1)
    li.insert(2)
    li.insert(8)
    li2.insert(3)
    li2.insert(4)
    assert str(zipLists(li, li2)) == '{8} -> {4} -> {2} -> {3} -> {1} -> None'
    assert len(li) + len(li2) == len(zipLists(li, li2))
def test_not_equal_list_2():
    test1 = LinkedList()
    test2 = LinkedList()

    test1.append(1)
    test1.append(3)
    test1.append(2)

    test2.append(5)
    test2.append(9)

    zipLists(test1, test2)
    expected = "{ 1 } -> { 5 } -> { 3 } -> { 9 } -> { 2 } -> { Null } -> "
    actual = test1.__str__()
    assert expected == actual
def test_not_equal_second_list():
    First_test = LinkedList()
    Second_test = LinkedList()

    First_test.append(1)
    First_test.append(3)
    First_test.append(2)

    Second_test.append(5)
    Second_test.append(9)

    zipLists(First_test, Second_test)
    expected = "{1} -> {5} -> {3} -> {9} -> {2} -> NULL"
    actual = First_test.__str__()
    assert expected == actual