summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/trie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/trie.c b/tests/trie.c
index 6bc7549..88e92da 100644
--- a/tests/trie.c
+++ b/tests/trie.c
@@ -17,6 +17,7 @@
#undef NDEBUG
#include "../src/trie.h"
+#include "../src/config.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -50,7 +51,7 @@ const char *keys[] = {
">>>",
};
-const size_t nkeys = sizeof(keys) / sizeof(keys[0]);
+const size_t nkeys = BFS_COUNTOF(keys);
int main(void) {
struct trie trie;