Пример #1
0
 def test_bucketsort_single(self):
     sortedList = sortUrls.bucketsort(self.singleUrl).sort()
     self.assertEquals(sortedList, self.singleUrl)
Пример #2
0
 def test_bucketsort_empty(self):
     sortedList = sortUrls.bucketsort(self.emptyUrls).sort()
     self.assertEquals(sortedList, self.emptyUrls)
Пример #3
0
 def test_bucketsort(self):
     sortedList = sortUrls.bucketsort(self.urls).sort()
     self.assertEquals(sortedList, self.sortedByLength)
Пример #4
0
 def test_bucketsort_single(self):
     sortedList = sortUrls.bucketsort(self.singleUrl).sort()
     self.assertEquals(sortedList, self.singleUrl)
Пример #5
0
 def test_bucketsort_empty(self):
     sortedList = sortUrls.bucketsort(self.emptyUrls).sort()
     self.assertEquals(sortedList, self.emptyUrls)
Пример #6
0
 def test_bucketsort(self):
     sortedList = sortUrls.bucketsort(self.urls).sort()
     self.assertEquals(sortedList, self.sortedByLength)