diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-03-11 12:09:32 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-03-11 12:09:32 +0000 |
commit | f565dcf49af74f734c6bf8ce76713f39029ece73 (patch) | |
tree | b71e9bceac2a2206c63a8675e5a3b741cbeffedf /eval/src/tests | |
parent | 4e0b5bd07f3f49bb66ce60d50cbc5b06bb45c2ae (diff) |
collapse tests cases to make this more readable
Diffstat (limited to 'eval/src/tests')
-rw-r--r-- | eval/src/tests/instruction/mixed_map_function/mixed_map_function_test.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/eval/src/tests/instruction/mixed_map_function/mixed_map_function_test.cpp b/eval/src/tests/instruction/mixed_map_function/mixed_map_function_test.cpp index 6cf1a0c6f3a..6a6d569e8a4 100644 --- a/eval/src/tests/instruction/mixed_map_function/mixed_map_function_test.cpp +++ b/eval/src/tests/instruction/mixed_map_function/mixed_map_function_test.cpp @@ -48,12 +48,9 @@ void verify_not_optimized(const vespalib::string &expr) { EXPECT_TRUE(!(fixture.get_param(0) == fixture.result())); } -TEST(MapTest, dense_map_not_inplace) { +TEST(MapTest, dense_map_can_be_optimized) { verify_not_optimized("map(x5y3,f(x)(x+10))"); verify_not_optimized("map(x5y3_f,f(x)(x+10))"); -} - -TEST(MapTest, simple_dense_map_can_be_inplace) { verify_optimized("map(@x5y3,f(x)(x+10))"); verify_optimized("map(@x5y3_f,f(x)(x+10))"); } @@ -63,19 +60,13 @@ TEST(MapTest, scalar_map_is_not_optimized) { verify_not_optimized("map(@a,f(x)(x+10))"); } -TEST(MapTest, sparse_map_not_inplace) { +TEST(MapTest, sparse_map_can_be_optimized) { verify_not_optimized("map(sparse,f(x)(x+10))"); -} - -TEST(MapTest, sparse_map_can_be_inplace) { verify_optimized("map(@sparse,f(x)(x+10))"); } -TEST(MapTest, mixed_map_not_inplace) { +TEST(MapTest, mixed_map_can_be_optimized) { verify_not_optimized("map(mixed,f(x)(x+10))"); -} - -TEST(MapTest, mixed_map_can_be_inplace) { verify_optimized("map(@mixed,f(x)(x+10))"); } |