From f07937bb63ed12a50a203c3f8015649f37bc73e5 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 3 Aug 2014 12:47:33 -0500 Subject: Rename generators to testcases This is in preparation for adding an implementation of the quicksort-killer test case, which requires a custom comparison function rather than just a custom imput-generation function. --- testcases.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testcases.h (limited to 'testcases.h') diff --git a/testcases.h b/testcases.h new file mode 100644 index 0000000..036fe5d --- /dev/null +++ b/testcases.h @@ -0,0 +1,17 @@ +#include + +#include "sorters.h" + +#define MIN_SIZE 10000 +#define MAX_SIZE 10000000 + +extern int buffer[MAX_SIZE]; +extern unsigned long comparisons; + +typedef void (*testinit)(int *, size_t); + +extern const struct testcase { + const char *name; + testinit init; + cmpfun cmp; +} testcases[]; -- cgit v1.2.3