diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-03-19 11:29:08 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-03-19 11:29:08 +0000 |
commit | bc760707c802f98d8a4c2a2814604ddc94c035b4 (patch) | |
tree | f88e0420174d1271ae264ef2af53d549bee71673 | |
parent | e349ad115e423bde38ae1894d9fcb290655b20c7 (diff) |
check inplace better
-rw-r--r-- | eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp b/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp index 7b297db3d3e..a2f18d7f7f7 100644 --- a/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp +++ b/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp @@ -34,10 +34,15 @@ struct FunInfo { using LookFor = JoinWithNumberFunction; Primary primary; bool inplace; - void verify(const LookFor &fun) const { + void verify(const EvalFixture &fixture, const LookFor &fun) const { EXPECT_TRUE(fun.result_is_mutable()); EXPECT_EQUAL(fun.primary(), primary); EXPECT_EQUAL(fun.inplace(), inplace); + if (inplace) { + size_t idx = (fun.primary() == Primary::LHS) ? 0 : 1; + EXPECT_EQUAL(fixture.result_value().cells().data, + fixture.param_value(idx).cells().data); + } } }; |