summaryrefslogtreecommitdiffstats
path: root/tests/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-07 10:21:19 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-07 10:51:47 -0500
commit2898d6b79d15c984f95977f7385dd4273087c61b (patch)
treee436af4a2a1fc627b2b48a2e93cc77b27f7130b3 /tests/trie.c
parentd1e532ed839c1b2be093c88006fcf4cd3d11805d (diff)
downloadbfs-2898d6b79d15c984f95977f7385dd4273087c61b.tar.xz
config: New BFS_COUNTOF macro
Diffstat (limited to 'tests/trie.c')
-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;