diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-04-19 14:40:19 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-04-19 14:40:19 -0400 |
| commit | 34fd8ad935e6359d20a5d6c949e67495d0842f8f (patch) | |
| tree | 234994ef2753bb78c5e619070415415b53d37348 /tests/louds_tests.cpp | |
| parent | 7c2f43ff039795576bc0014c367b893fbbaceca4 (diff) | |
| download | dynamic-extension-34fd8ad935e6359d20a5d6c949e67495d0842f8f.tar.gz | |
More trie baseline tests
Diffstat (limited to 'tests/louds_tests.cpp')
| -rw-r--r-- | tests/louds_tests.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/louds_tests.cpp b/tests/louds_tests.cpp new file mode 100644 index 0000000..7eed54a --- /dev/null +++ b/tests/louds_tests.cpp @@ -0,0 +1,55 @@ +/* + * tests/isam_tests.cpp + * + * Unit tests for ISAM Tree shard + * + * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu> + * Dong Xie <dongx@psu.edu> + * + * Distributed under the Modified BSD License. + * + */ + +#include "shard/LoudsPatricia.h" +#include "include/testing.h" +#include <check.h> + +using namespace de; + +typedef StringRec R; +typedef LoudsPatricia<R> Shard; + +#include "include/shard_string.h" +#include "include/pointlookup.h" + +Suite *unit_testing() +{ + Suite *unit = suite_create("Fast-succinct Trie Shard Unit Testing"); + + inject_shard_tests(unit); + inject_pointlookup_tests(unit); + + return unit; +} + + +int shard_unit_tests() +{ + int failed = 0; + Suite *unit = unit_testing(); + SRunner *unit_shardner = srunner_create(unit); + + srunner_run_all(unit_shardner, CK_NORMAL); + failed = srunner_ntests_failed(unit_shardner); + srunner_free(unit_shardner); + + return failed; +} + + +int main() +{ + int unit_failed = shard_unit_tests(); + + return (unit_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; +} |