summaryrefslogtreecommitdiffstats
path: root/tests/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-12 12:01:07 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-12 12:01:07 -0500
commita9c9fc392bf2c3803251e5f63c944cd221a1ca67 (patch)
treef6074e70120eda712b96027835c9c799a561e4a4 /tests/trie.c
parent67eebd6fd514ede9e10cd4639b8d0cce690513f4 (diff)
downloadbfs-a9c9fc392bf2c3803251e5f63c944cd221a1ca67.tar.xz
tests: Merge unit test executables into one
Diffstat (limited to 'tests/trie.c')
-rw-r--r--tests/trie.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/trie.c b/tests/trie.c
index 656fd85..f94d7c8 100644
--- a/tests/trie.c
+++ b/tests/trie.c
@@ -1,6 +1,7 @@
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD
+#include "tests.h"
#include "../src/trie.h"
#include "../src/config.h"
#include "../src/diag.h"
@@ -38,7 +39,7 @@ const char *keys[] = {
const size_t nkeys = countof(keys);
-int main(void) {
+bool check_trie(void) {
struct trie trie;
trie_init(&trie);
@@ -130,5 +131,5 @@ int main(void) {
free(longstr);
trie_destroy(&trie);
- return EXIT_SUCCESS;
+ return true;
}