DistDir
|
Functions | |
static void | sorting_test01 (void **state __attribute__((unused))) |
Test01 of sorting functions. More... | |
static void | sorting_test02 (void **state __attribute__((unused))) |
Test02 of sorting functions. More... | |
static void | sorting_test03 (void **state __attribute__((unused))) |
Test03 of sorting functions. More... | |
Tests of the sorting module
|
static |
Test01 of sorting functions.
Create an ordered array and shuffle it. Then use mergesort, timsort and quicksort to rebuild the original sorted array.
|
static |
Test02 of sorting functions.
Create an unordered array. Then use mergesort, timsort and quicksort to sort the array and keep track of the indices.
|
static |
Test03 of sorting functions.
Create an unordered array. Then use mergesort, timsort and quicksort to sort the array and keep track of two associated index lists.