Skip to content

Commit

Permalink
All stable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swenson committed Feb 13, 2024
1 parent bf259a8 commit 068637d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
run: ls
- shell: bash
name: stresstest
run: gdb -batch -ex "run" -ex "bt" ./stresstest.exe 2>&1 | grep -v ^"No stack."$
run: ./stresstest.exe
32 changes: 16 additions & 16 deletions stresstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,22 +397,22 @@ void stable_tests(void) {
int size = 100000;
int num_values = 1000;
check_stable("binary insertion sort", stable_binary_insertion_sort, size, num_values);
// #ifdef SET_SORT_EXTRA
// check_stable("selection sort", stable_selection_sort, size, num_values);
// check_stable("bubble sort", stable_bubble_sort, size, num_values);
// #endif
// check_stable("quick sort", stable_quick_sort, size, num_values);
// check_stable("merge sort", stable_merge_sort, size, num_values);
// check_stable("heap sort", stable_heap_sort, size, num_values);
// check_stable("shell sort", stable_shell_sort, size, num_values);
// check_stable("tim sort", stable_tim_sort, size, num_values);
// check_stable("merge (in-place) sort", stable_merge_sort_in_place, size, num_values);
// #ifdef SET_SORT_EXTRA
// check_stable("grail sort", stable_grail_sort, size, num_values);
// check_stable("sqrt sort", stable_sqrt_sort, size, num_values);
// check_stable("rec stable sort", stable_rec_stable_sort, size, num_values);
// check_stable("grail sort dyn byffer", stable_grail_sort_dyn_buffer, size, num_values);
// #endif
#ifdef SET_SORT_EXTRA
check_stable("selection sort", stable_selection_sort, size, num_values);
check_stable("bubble sort", stable_bubble_sort, size, num_values);
#endif
check_stable("quick sort", stable_quick_sort, size, num_values);
check_stable("merge sort", stable_merge_sort, size, num_values);
check_stable("heap sort", stable_heap_sort, size, num_values);
check_stable("shell sort", stable_shell_sort, size, num_values);
check_stable("tim sort", stable_tim_sort, size, num_values);
check_stable("merge (in-place) sort", stable_merge_sort_in_place, size, num_values);
#ifdef SET_SORT_EXTRA
check_stable("grail sort", stable_grail_sort, size, num_values);
check_stable("sqrt sort", stable_sqrt_sort, size, num_values);
check_stable("rec stable sort", stable_rec_stable_sort, size, num_values);
check_stable("grail sort dyn byffer", stable_grail_sort_dyn_buffer, size, num_values);
#endif
}

int main(void) {
Expand Down

0 comments on commit 068637d

Please sign in to comment.