def test_quicksort_empty(self): sortedList = sortUrls.quicksort(self.emptyUrls).sort() self.assertEquals(sortedList, self.emptyUrls)
def test_quicksort_single(self): sortedList = sortUrls.quicksort(self.singleUrl).sort() self.assertEquals(sortedList, self.singleUrl)
def test_quicksort(self): sortedList = sortUrls.quicksort(self.urls).sort() self.assertEquals(sortedList, self.sortedByLength)
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)