summaryrefslogtreecommitdiff
path: root/testcases.h
blob: fc2ffd9eb1abf434d89d6312257fa5b992cdf64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stddef.h>

#include "sorters.h"

#define MIN_SIZE 10000
#define MAX_SIZE 10000000

extern int buffer[MAX_SIZE];
extern unsigned long comparisons;

void assert_sorted(size_t size, cmpfun cmp);

typedef void (*testinit)(size_t);

extern const struct testcase {
	const char *name;
	testinit init;
	cmpfun   cmp;
} testcases[];