aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/instruction/inplace_map_function
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-03-17 14:03:44 +0000
committerArne Juul <arnej@verizonmedia.com>2021-03-23 16:57:41 +0000
commite60e7dd7ca8df92da82ae92e4e17b31da36b221a (patch)
treee1b62391ccf1100a499e574bb1761eaf8bc52e72 /eval/src/tests/instruction/inplace_map_function
parenta851a849bab624a7a1fdc221332b5bb4c69aadd0 (diff)
handle new cell types in optimizer tests
Diffstat (limited to 'eval/src/tests/instruction/inplace_map_function')
-rw-r--r--eval/src/tests/instruction/inplace_map_function/inplace_map_function_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/eval/src/tests/instruction/inplace_map_function/inplace_map_function_test.cpp b/eval/src/tests/instruction/inplace_map_function/inplace_map_function_test.cpp
index 0983f84a4af..414613a062d 100644
--- a/eval/src/tests/instruction/inplace_map_function/inplace_map_function_test.cpp
+++ b/eval/src/tests/instruction/inplace_map_function/inplace_map_function_test.cpp
@@ -27,8 +27,10 @@ struct FunInfo {
void verify_optimized(const vespalib::string &expr) {
SCOPED_TRACE(expr.c_str());
- CellTypeSpace all_types(CellTypeUtils::list_types(), 1);
- EvalFixture::verify<FunInfo>(expr, {FunInfo{false}}, all_types);
+ auto stable_types = CellTypeSpace({CellType::FLOAT, CellType::DOUBLE}, 1);
+ auto unstable_types = CellTypeSpace({CellType::BFLOAT16, CellType::INT8}, 1);
+ EvalFixture::verify<FunInfo>(expr, {FunInfo{false}}, stable_types);
+ EvalFixture::verify<FunInfo>(expr, {}, unstable_types);
}
void verify_not_optimized(const vespalib::string &expr) {