diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-12 12:01:07 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-12 12:01:07 -0500 |
commit | a9c9fc392bf2c3803251e5f63c944cd221a1ca67 (patch) | |
tree | f6074e70120eda712b96027835c9c799a561e4a4 /tests/tests.h | |
parent | 67eebd6fd514ede9e10cd4639b8d0cce690513f4 (diff) | |
download | bfs-a9c9fc392bf2c3803251e5f63c944cd221a1ca67.tar.xz |
tests: Merge unit test executables into one
Diffstat (limited to 'tests/tests.h')
-rw-r--r-- | tests/tests.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/tests.h b/tests/tests.h new file mode 100644 index 0000000..34c58b7 --- /dev/null +++ b/tests/tests.h @@ -0,0 +1,26 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +/** + * Unit tests. + */ + +#include "../src/config.h" + +/** Unit test function type. */ +typedef bool test_fn(void); + +/** Memory allocation tests. */ +bool check_alloc(void); + +/** Standard library wrapper tests. */ +bool check_bfstd(void); + +/** Bit manipulation tests. */ +bool check_bit(void); + +/** Trie tests. */ +bool check_trie(void); + +/** Time tests. */ +bool check_xtime(void); |