def testSameMulti(self): list = [5, 5, 5, 1, 1, 1, 10, 10, 10] mo3_quickSort(list) self.assertEqual(list, [1, 1, 1, 5, 5, 5, 10, 10, 10])
def testNormal(self): list = [5, 4, 3, 2, 1] mo3_quickSort(list) self.assertEqual(list, [1, 2, 3, 4, 5])
def testSame(self): list = [2, 2, 2] mo3_quickSort(list) self.assertEqual(list, [2, 2, 2])
def testEmpty(self): list = [] mo3_quickSort(list) self.assertEqual(list, [])
def testOne(self): list = [1] mo3_quickSort(list) self.assertEqual(list, [1])
def test_size(self): alist = [54,26,93,17,77,31,44,55,20] mo3_quickSort(alist) result = len(alist) self.assertEqual(result, 9)
def test_sort3(self): alist = [22,33,54,26,93,17,77,31,44,55,20] mo3_quickSort(alist) result = alist self.assertEqual(result, [17, 20,22, 26, 31, 33, 44, 54, 55, 77, 93])