DistDir
Functions
Sorting_tests

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...
 

Detailed Description

Tests of the sorting module

Function Documentation

◆ sorting_test01()

static void sorting_test01 ( void **state   __attribute__(unused))
static

Test01 of sorting functions.

Create an ordered array and shuffle it. Then use mergesort, timsort and quicksort to rebuild the original sorted array.

◆ sorting_test02()

static void sorting_test02 ( void **state   __attribute__(unused))
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.

◆ sorting_test03()

static void sorting_test03 ( void **state   __attribute__(unused))
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.