add 15/16-bit version
This commit is contained in:
parent
da5097baee
commit
2955cab72c
10 changed files with 358 additions and 9 deletions
|
|
@ -7,7 +7,7 @@ add_test(test_compact_vector test_compact_vector)
|
|||
add_executable(test_tail_vector test_tail_vector.cpp)
|
||||
add_test(test_tail_vector test_tail_vector)
|
||||
|
||||
set(BC_OPTIONS "7" "8")
|
||||
set(BC_OPTIONS "7" "8" "15" "16")
|
||||
|
||||
foreach(BC_OPTION ${BC_OPTIONS})
|
||||
set(TEST_SRC_NAME test_bc_vector_${BC_OPTION})
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "doctest/doctest.h"
|
||||
#include "test_common.hpp"
|
||||
#include "xcdat/bc_vector_15.hpp"
|
||||
#include "xcdat/bc_vector_16.hpp"
|
||||
#include "xcdat/bc_vector_7.hpp"
|
||||
#include "xcdat/bc_vector_8.hpp"
|
||||
|
||||
|
|
@ -12,6 +14,10 @@
|
|||
using bc_vector_type = xcdat::bc_vector_7;
|
||||
#elif BC_VECTOR_8
|
||||
using bc_vector_type = xcdat::bc_vector_8;
|
||||
#elif BC_VECTOR_15
|
||||
using bc_vector_type = xcdat::bc_vector_15;
|
||||
#elif BC_VECTOR_16
|
||||
using bc_vector_type = xcdat::bc_vector_16;
|
||||
#endif
|
||||
|
||||
struct bc_unit {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,10 @@
|
|||
using trie_type = xcdat::trie_7_type;
|
||||
#elif TRIE_8
|
||||
using trie_type = xcdat::trie_8_type;
|
||||
#elif TRIE_15
|
||||
using trie_type = xcdat::trie_15_type;
|
||||
#elif TRIE_16
|
||||
using trie_type = xcdat::trie_16_type;
|
||||
#endif
|
||||
|
||||
void test_basic_operations(const trie_type& trie, const std::vector<std::string>& keys,
|
||||
|
|
|
|||
Loading…
Reference in a new issue