def test_LinkedListT_remove_dup2(self): l1 = LinkedListT(list_length=10) for i in range(0, 5): l1.append(i) soln = LinkedListT(list_length=10) l1.remove_duplicates2() self.assertTrue(l1.compare(soln)) self.assertTrue(l1.length, 10)
def test_LinkedListT_compare(self): l1 = LinkedListT(list_length=10) l2 = LinkedListT(list_length=10) self.assertTrue(l1.compare(l2))