def test_quicksort_4(self):
     self.assertEquals(mergesort_3.mergesort(self.test4),
                       [17, 20, 26, 31, 44, 54, 55, 77, 93])
 def test_quicksort_2(self):
     self.assertEquals(mergesort_3.mergesort(self.test2),
                       [2, 4, 4, 8, 11, 13, 14, 14, 17, 18, 18, 19, 19])
 def test_quicksort_3(self):
     self.assertEquals(mergesort_3.mergesort(self.test3),
                       [3, 7, 11, 12, 29, 43])
 def test_quicksort_1(self):
     self.assertEquals(mergesort_3.mergesort(self.test1),
                       [11, 12, 22, 25, 64])
Exemple #5
0
 def test_quicksort_4(self):
     self.assertEquals(mergesort_3.mergesort(self.test4),
                       [17, 20, 26, 31, 44, 54, 55, 77, 93])
Exemple #6
0
 def test_quicksort_3(self):
     self.assertEquals(mergesort_3.mergesort(self.test3),
                       [3, 7, 11, 12, 29, 43])
Exemple #7
0
 def test_quicksort_2(self):
     self.assertEquals(mergesort_3.mergesort(self.test2),
                       [2, 4, 4, 8, 11, 13, 14, 14, 17, 18, 18, 19, 19])
Exemple #8
0
 def test_quicksort_1(self):
     self.assertEquals(mergesort_3.mergesort(self.test1),
                       [11, 12, 22, 25, 64])