diff --git a/sorting/cycle_sort.cpp b/sorting/cycle_sort.cpp index b8f522b19fd..ae64893e413 100644 --- a/sorting/cycle_sort.cpp +++ b/sorting/cycle_sort.cpp @@ -91,9 +91,9 @@ std::vector cycleSort(const std::vector &in_arr) { static void test() { // Test 1 // [4, 3, 2, 1] return [1, 2, 3, 4] - std::vector array1 = {4, 3, 2, 1}; + std::vector array1 = {4, 3, 2, 1}; std::cout << "Test 1... "; - std::vector arr1 = sorting::cycle_sort::cycleSort(array1); + std::vector arr1 = sorting::cycle_sort::cycleSort(array1); assert(std::is_sorted(std::begin(arr1), std::end(arr1))); std::cout << "passed" << std::endl; @@ -106,16 +106,16 @@ static void test() { // Test 3 // [3, 3, 3, 3] return [3, 3, 3, 3] - std::vector array3 = {3, 3, 3, 3}; + std::vector array3 = {3, 3, 3, 3}; std::cout << "Test 3... "; - std::vector arr3 = sorting::cycle_sort::cycleSort(array3); + std::vector arr3 = sorting::cycle_sort::cycleSort(array3); assert(std::is_sorted(std::begin(arr3), std::end(arr3))); std::cout << "passed" << std::endl; // [9, 4, 6, 8, 14, 3] return [9, 4, 6, 8, 14, 3] - std::vector array4 = {3, 4, 6, 8, 9, 14}; + std::vector array4 = {3, 4, 6, 8, 9, 14}; std::cout << "Test 4... "; - std::vector arr4 = sorting::cycle_sort::cycleSort(array4); + std::vector arr4 = sorting::cycle_sort::cycleSort(array4); assert(std::is_sorted(std::begin(arr4), std::end(arr4))); std::cout << "passed" << std::endl; }