QuickSort example with automated tests