Ejemplo n.º 1
0
    def test_quick_sort_2(self):
        array = [1,7,5,8,9,3,1,5,6]
        expected_array = [1,1,3,5,5,6,7,8,9]

        quick = QuickSort()
        ordered_array = quick.sort(array)

        self.assertEquals(expected_array,ordered_array)
Ejemplo n.º 2
0
    def test_quick_sort(self):
        quick = QuickSort()
        ordered_array = quick.sort(default_array)

        self.assertEquals(default_expected_array,ordered_array)