diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-10-14 14:29:16 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-10-14 15:05:32 +0000 |
commit | 3d2645d8593874be4da8e5f73cd5a7e2cecfd399 (patch) | |
tree | 4cc3248c65d6abe0a56b06d71ed345ededda16c3 /document/src/tests/documentupdatetestcase.cpp | |
parent | 5ab1a8b97842b3a87fc0d3fec5cb631b1d356ab9 (diff) |
getAsTensorPtr() method can return "pointer to tensor"
Diffstat (limited to 'document/src/tests/documentupdatetestcase.cpp')
-rw-r--r-- | document/src/tests/documentupdatetestcase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/document/src/tests/documentupdatetestcase.cpp b/document/src/tests/documentupdatetestcase.cpp index 18001c35da5..9d2567e93ed 100644 --- a/document/src/tests/documentupdatetestcase.cpp +++ b/document/src/tests/documentupdatetestcase.cpp @@ -789,7 +789,7 @@ makeTensorFieldValue(const TensorSpec &spec, const TensorDataType &dataType) const Tensor &asTensor(const FieldValue &fieldValue) { auto &tensorFieldValue = dynamic_cast<const TensorFieldValue &>(fieldValue); - auto &tensor = tensorFieldValue.getAsTensorPtr(); + auto tensor = tensorFieldValue.getAsTensorPtr(); assert(tensor); return *tensor; } @@ -876,7 +876,7 @@ struct TensorUpdateFixture { auto field = getTensor(); auto tensor_field = dynamic_cast<TensorFieldValue*>(field.get()); ASSERT_TRUE(tensor_field); - EXPECT_TRUE(tensor_field->getAsTensorPtr().get() == nullptr); + EXPECT_TRUE(tensor_field->getAsTensorPtr() == nullptr); } void assertTensor(const TensorSpec &expSpec) { |