diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-03-22 14:04:40 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-03-22 14:04:40 -0400 |
| commit | 147f0df58e1ff4973bffb7e4628e6b2fdc20eb57 (patch) | |
| tree | fac1c176f59d0c0428cce2b3b514c2708829985d /tests/include/testing.h | |
| parent | 10c2348664a0341764b6a773aaa58f2af93075ad (diff) | |
| download | dynamic-extension-147f0df58e1ff4973bffb7e4628e6b2fdc20eb57.tar.gz | |
FSTrie testing and debugging
Diffstat (limited to 'tests/include/testing.h')
| -rw-r--r-- | tests/include/testing.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/include/testing.h b/tests/include/testing.h index a3c54c0..2315daa 100644 --- a/tests/include/testing.h +++ b/tests/include/testing.h @@ -51,7 +51,7 @@ static std::vector<StringRec> read_string_data(std::string fname, size_t n) { r.value = atol(field.c_str()); std::getline(ls, field, '\n'); r.key = std::string(field); - + vec.push_back(r); } @@ -116,8 +116,8 @@ static de::MutableBuffer<R> *create_test_mbuffer(size_t cnt) auto buffer = new de::MutableBuffer<R>(cnt/2, cnt); R rec; - if constexpr (de::KVPInterface<R>) { - if constexpr (std::is_same_v<R, StringRec>) { + if constexpr (de::KVPInterface<R>){ + if constexpr (std::is_same_v<decltype(R::key), std::string>) { auto records = read_string_data(kjv_wordlist, cnt); for (size_t i=0; i<cnt; i++) { if constexpr (de::WeightedRecordInterface<R>) { |