summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/features/prod_features.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-05-07 15:58:11 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-05-07 16:22:34 +0000
commitdfbaedb2ac336035ddc5dc259a6af5f2567f061f (patch)
treeb0dbc5eba871ff8df82a55d8a9b2b8e5fcc4ca5c /searchlib/src/tests/features/prod_features.cpp
parent6903dc2689554a60702d6fb02f9558c265fe76a2 (diff)
Also make a faster DotproductExecutor when using enumerated values.
Diffstat (limited to 'searchlib/src/tests/features/prod_features.cpp')
-rw-r--r--searchlib/src/tests/features/prod_features.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/searchlib/src/tests/features/prod_features.cpp b/searchlib/src/tests/features/prod_features.cpp
index 1d9433c739f..ce2260e1681 100644
--- a/searchlib/src/tests/features/prod_features.cpp
+++ b/searchlib/src/tests/features/prod_features.cpp
@@ -1217,9 +1217,7 @@ Test::testDotProduct()
vespalib::Stash stash;
FeatureExecutor &exc = bp.createExecutor(ft.getQueryEnv(), stash);
// check that we have the optimized enum version
- dotproduct::wset::DotProductExecutorByCopy<dotproduct::wset::EnumVector, WeightedEnumContent> * myExc =
- dynamic_cast<dotproduct::wset::DotProductExecutorByCopy<dotproduct::wset::EnumVector, WeightedEnumContent> *>(&exc);
- EXPECT_TRUE(myExc != nullptr);
+ EXPECT_EQUAL("search::features::dotproduct::wset::(anonymous namespace)::DotProductExecutorByEnum", exc.getClassName());
EXPECT_EQUAL(1u, deps.output.size());
}
}