diff options
Diffstat (limited to 'searchcommon/src/tests/attribute/config/attribute_config_test.cpp')
-rw-r--r-- | searchcommon/src/tests/attribute/config/attribute_config_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searchcommon/src/tests/attribute/config/attribute_config_test.cpp b/searchcommon/src/tests/attribute/config/attribute_config_test.cpp index 98b2bfe5c90..12a9837629d 100644 --- a/searchcommon/src/tests/attribute/config/attribute_config_test.cpp +++ b/searchcommon/src/tests/attribute/config/attribute_config_test.cpp @@ -111,10 +111,18 @@ TEST("Test GrowStrategy consistency") { TEST("DictionaryConfig") { using Type = DictionaryConfig::Type; + using Match = DictionaryConfig::Match; EXPECT_EQUAL(Type::BTREE, DictionaryConfig().getType()); + EXPECT_EQUAL(Match::UNCASED, DictionaryConfig().getMatch()); + EXPECT_EQUAL(Type::BTREE, DictionaryConfig(Type::BTREE).getType()); + EXPECT_EQUAL(Match::UNCASED, DictionaryConfig(Type::BTREE).getMatch()); + EXPECT_EQUAL(Match::UNCASED, DictionaryConfig(Type::BTREE, Match::UNCASED).getMatch()); + EXPECT_EQUAL(Match::CASED, DictionaryConfig(Type::BTREE, Match::CASED).getMatch()); + EXPECT_EQUAL(Type::HASH, DictionaryConfig(Type::HASH).getType()); EXPECT_EQUAL(Type::BTREE_AND_HASH, DictionaryConfig(Type::BTREE_AND_HASH).getType()); + EXPECT_EQUAL(DictionaryConfig(Type::BTREE), DictionaryConfig(Type::BTREE)); EXPECT_EQUAL(DictionaryConfig(Type::HASH), DictionaryConfig(Type::HASH)); EXPECT_EQUAL(DictionaryConfig(Type::BTREE_AND_HASH), DictionaryConfig(Type::BTREE_AND_HASH)); |