diff options
Diffstat (limited to 'testcases.c')
-rw-r--r-- | testcases.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testcases.c b/testcases.c index 1a50632..a41cd89 100644 --- a/testcases.c +++ b/testcases.c @@ -3,9 +3,10 @@ #include <stdlib.h> #include "testcases.h" +#include "common.h" +#include "counts.h" int buffer[MAX_SIZE]; -unsigned long comparisons; void assert_sorted(size_t size, cmpfun cmp) { @@ -19,7 +20,7 @@ static int compare(const void *a, const void *b) const int *aa = a; const int *bb = b; - comparisons++; + counts[CURRENT].compare++; if (*aa < *bb) return -1; else if (*aa > *bb) |