summaryrefslogtreecommitdiffstats
path: root/tests/include/testing.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-03-22 14:04:40 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2024-03-22 14:04:40 -0400
commit147f0df58e1ff4973bffb7e4628e6b2fdc20eb57 (patch)
treefac1c176f59d0c0428cce2b3b514c2708829985d /tests/include/testing.h
parent10c2348664a0341764b6a773aaa58f2af93075ad (diff)
downloaddynamic-extension-147f0df58e1ff4973bffb7e4628e6b2fdc20eb57.tar.gz
FSTrie testing and debugging
Diffstat (limited to 'tests/include/testing.h')
-rw-r--r--tests/include/testing.h6
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>) {