void selection_sort_tests(void) { int foo[5] = {3, 5, 4, 8, 7}; int foo_sorted[5] = {3, 4, 5, 7, 8}; selection_sort_test(foo, foo_sorted, 5); int bar[3] = {5, 3, 1}; int bar_sorted[3] = {1, 3, 5}; selection_sort_test(bar, bar_sorted, 3); }
int main(int argc, char *argv[]) { bubble_sort_test(); insertion_sort_test(); selection_sort_test(); merge_sort_test(); quick_sort_test(); heap_sort_test(); shell_sort_test(); return 0; }