Exemple #1
0
def test_zip_nums1():
    num1 = LinkedList()
    num1.append('5')
    num1.append('2')
 
    num2 = LinkedList()
    num2.append('7')
    
    lst = zipLists(num1,num2)
    assert lst.__str__() == '5->7->2-> NULL'
Exemple #2
0
def test_zip1():
    fruits = LinkedList()
    fruits.append('apple')
    fruits.append('berries')
 
    veggies = LinkedList()
    veggies.append('Carrots')
    veggies.append('Broccoli')
    veggies.append('Mushrooms')

    lst = zipLists(fruits,veggies)
    assert lst.__str__() == 'apple->Carrots->berries->Broccoli->Mushrooms-> NULL'
Exemple #3
0
def test_zip_null():
    num1 = LinkedList() 
    num2 = LinkedList()    
    lst = zipLists(num1,num2)
    assert lst.__str__() == ' NULL'