H A D | quickSort.cpp | 98 int* test_array = NULL; local 100 assert(sort_and_compare(test_array, expected_array, 0, test_comparator), "Empty array not handled"); 103 int test_array[] = {3}; local 105 assert(sort_and_compare(test_array, expected_array, 1, test_comparator), "Single value array not handled"); 108 int test_array[] = {3,2}; local 110 assert(sort_and_compare(test_array, expected_array, 2, test_comparator), "Array with 2 values not correctly sorted"); 113 int test_array[] = {3,2,1}; local 115 assert(sort_and_compare(test_array, expected_array, 3, test_comparator), "Array with 3 values not correctly sorted"); 118 int test_array[] = {4,3,2,1}; local 120 assert(sort_and_compare(test_array, expected_arra 123 int test_array[] = {7,1,5,3,6,9,8,2,4,0}; local 128 int test_array[] = {4,4,1,4}; local 133 int test_array[] = {0,1,2,3,4,5,6,7,8,9}; local 139 int test_array[] = {76,46,81,8,64,56,75,11,51,55,11,71,59,27,9,64,69,75,21,25,39,40,44,32,7,8,40,41,24,78,24,74,9,65,28,6,40,31,22,13,27,82}; local 144 int test_array[] = {2,8,1,4}; local 151 int test_array[] = {1,4,8}; local 156 int test_array[] = {1,7,9,4,8,2}; local 161 int test_array[] = {1,9,7,4,2,8}; local 166 int test_array[] = {7,9,1,2,8,4}; local 171 int test_array[] = {7,1,9,2,4,8}; local 176 int test_array[] = {9,1,7,4,8,2}; local 181 int test_array[] = {9,7,1,4,2,8}; local 190 int* test_array = new int[length]; local [all...] |