summaryrefslogtreecommitdiff
path: root/testcases.h
diff options
context:
space:
mode:
Diffstat (limited to 'testcases.h')
-rw-r--r--testcases.h17
1 files changed, 17 insertions, 0 deletions
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 <stddef.h>
+
+#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[];