示例#1
0
 def test_mergesort_alphabetical_single(self):
     sortedList = sortUrls.mergesort_alphabetical(self.singleUrl).sort()
     self.assertEquals(sortedList, self.singleUrl)
示例#2
0
 def test_mergesort_alphabetical_empty(self):
     sortedList = sortUrls.mergesort_alphabetical(self.emptyUrls).sort()
     self.assertEquals(sortedList, self.emptyUrls)
示例#3
0
 def test_mergesort_alphabetical(self):
     sortedList = sortUrls.mergesort_alphabetical(self.urls).sort()
     self.assertEquals(sortedList, self.sortedByAlphabetical)
示例#4
0
 def test_mergesort_alphabetical_single(self):
     sortedList = sortUrls.mergesort_alphabetical(self.singleUrl).sort()
     self.assertEquals(sortedList, self.singleUrl)
示例#5
0
 def test_mergesort_alphabetical_empty(self):
     sortedList = sortUrls.mergesort_alphabetical(self.emptyUrls).sort()
     self.assertEquals(sortedList, self.emptyUrls)
示例#6
0
 def test_mergesort_alphabetical(self):
     sortedList = sortUrls.mergesort_alphabetical(self.urls).sort()
     self.assertEquals(sortedList, self.sortedByAlphabetical)