summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/searchcommon
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-26 13:19:04 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-05-26 13:23:23 +0000
commit9b7fbd40636763509335a93df7d9611441b1ceaf (patch)
tree33aeaa67e495ee42ae29ccbabb72d1e3b604b655 /searchlib/src/tests/searchcommon
parentfd13f73b5ef66dcc81f60a6319be4f01b5e1d68e (diff)
Inherit from vespalib::GrowStrategy
Diffstat (limited to 'searchlib/src/tests/searchcommon')
-rw-r--r--searchlib/src/tests/searchcommon/attribute/config/attribute_config_test.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/searchlib/src/tests/searchcommon/attribute/config/attribute_config_test.cpp b/searchlib/src/tests/searchcommon/attribute/config/attribute_config_test.cpp
index 8abe5dcc414..f9e77376b25 100644
--- a/searchlib/src/tests/searchcommon/attribute/config/attribute_config_test.cpp
+++ b/searchlib/src/tests/searchcommon/attribute/config/attribute_config_test.cpp
@@ -102,11 +102,10 @@ TEST("test operator== on attribute config for tensor type")
TEST("Test GrowStrategy consistency") {
GrowStrategy g(1024, 0.5, 17, 3, 0.4f);
- EXPECT_EQUAL(1024u, g.getDocsInitialCapacity());
- EXPECT_EQUAL(50u, g.getDocsGrowPercent());
- EXPECT_EQUAL(0.5, g.getDocsGrowFactor());
- EXPECT_EQUAL(17u, g.getDocsGrowDelta());
- EXPECT_EQUAL(3u, g.getDocsMinimumCapacity());
+ EXPECT_EQUAL(1024u, g.getInitialCapacity());
+ EXPECT_EQUAL(0.5, g.getGrowFactor());
+ EXPECT_EQUAL(17u, g.getGrowDelta());
+ EXPECT_EQUAL(3u, g.getMinimumCapacity());
EXPECT_EQUAL(0.4f, g.getMultiValueAllocGrowFactor());
}