예제 #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)