示例#1
0
 def test_quicksort_empty(self):
     sortedList = sortUrls.quicksort(self.emptyUrls).sort()
     self.assertEquals(sortedList, self.emptyUrls)
示例#2
0
 def test_quicksort_single(self):
     sortedList = sortUrls.quicksort(self.singleUrl).sort()
     self.assertEquals(sortedList, self.singleUrl)
示例#3
0
 def test_quicksort(self):
     sortedList = sortUrls.quicksort(self.urls).sort()
     self.assertEquals(sortedList, self.sortedByLength)
示例#4
0
 def test_quicksort_single(self):
     sortedList = sortUrls.quicksort(self.singleUrl).sort()
     self.assertEquals(sortedList, self.singleUrl)
示例#5
0
 def test_quicksort_empty(self):
     sortedList = sortUrls.quicksort(self.emptyUrls).sort()
     self.assertEquals(sortedList, self.emptyUrls)
示例#6
0
 def test_quicksort(self):
     sortedList = sortUrls.quicksort(self.urls).sort()
     self.assertEquals(sortedList, self.sortedByLength)
示例#7
0
 def test_quicksort(self):
     sortedList = sortUrls.quicksort(self.urls, length).sort()
     self.assertEquals(sortedList, self.sortedByLength)
     
     sortedList = sortUrls.quicksort(self.urls, alpha).sort()
     self.assertEquals(sortedList, self.sortedByAlphabetical)