Implementations of cool data structures.
To run tests:
make test
To run tests with valgrind:
make memtest
To run tests with inverted expect
and fail_test
macros:
make invtest
In this mode, every test should fail. If a test does not fail, then it is a good indication that
nothing is actually being tested there (given that every test passes with make test
).
To run only tests matching a specific name, set the PATTERN
environment variable. Only tests having
${PATTERN}
as a substring in either the suite or case names will be run. Example:
PATTERN=radix make test
This will only run radix trie tests, because "radix" is a substring of "radix trie".
I use YouCompleteMe for code completion with Bear to generate a compilation database. To generate the compilation database for yourself, install Bear and run
bear -- make <something>