Ejemplo n.º 1
0
 def testSortedList_clean_Full(self):
     test_list=[1,1,2,3,5,5,10]
     sortedList = SortedList()
     for i in test_list:
         sortedList.insert(i)
     sortedList.clean()
     
     clean_list=[1,2,3,5,10]
     
     for expected in clean_list:
         actual = sortedList.remove(expected)
         self.assertEqual(expected, actual)
     return
Ejemplo n.º 2
0
	def testSortedList_clean_Empty(self):
        test_list=[]
        sortedList = SortedList()
        for i in test_list:
            sortedList.insert(i)
        sortedList.clean()
        
        clean_list=[]
        
        for expected in clean_list:
            actual = sortedList.remove(expected)
            self.assertEqual(expected, actual)
        return