summaryrefslogtreecommitdiffstats
path: root/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2018-03-05 12:47:59 +0000
committerHåvard Pettersen <havardpe@oath.com>2018-03-05 12:47:59 +0000
commitb77dcb0c7b6b174b50a2ff48c938096e4bd8937c (patch)
treec9e177af3c619b1a07e505fc91ad2d08f8d7f19e /eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp
parent5e956d22f53842b1b56322a6bd7ec8f6b183730b (diff)
test result mutability of optimized operations
also clean up vector from doubles test using eval fixture
Diffstat (limited to 'eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp')
-rw-r--r--eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp b/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp
index fb48e445180..37f9602565d 100644
--- a/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp
+++ b/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp
@@ -131,7 +131,8 @@ void assertOptimized(const vespalib::string &expr) {
EvalFixture fixture(prod_engine, expr, param_repo, true);
EXPECT_EQUAL(fixture.result(), EvalFixture::ref(expr, param_repo));
auto info = fixture.find_all<DenseDotProductFunction>();
- EXPECT_EQUAL(info.size(), 1u);
+ ASSERT_EQUAL(info.size(), 1u);
+ EXPECT_TRUE(info[0]->result_is_mutable());
}
void assertNotOptimized(const vespalib::string &expr) {