def test_partition(self):
        test = self.unordered
        ans = [4, 5, 6, 21, 11, 9, 7, 14]
        pivot_ans = 1

        pivot = sorting.partition(test, 0, 1-len(test))

        self.assertEqual(ans, test)
        self.assertEqual(pivot, pivot_ans)
dataset/ETHPy150Open QuantumFractal/Data-Structure-Zoo/2-Sorting/test.py/TestSortingMethods.test_partition/swapped operands of `-`