diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-01-29 23:50:56 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-01-29 23:50:56 +0100 |
commit | fe020efb759fd50cd6f3301095adc0be1c07c59f (patch) | |
tree | 5842b0eeb89cd6813e4cdbb4d6432b34dd18ddf1 /document/src/tests | |
parent | fe5ffac7434bae9605fc3b481510efc5448b31d6 (diff) |
Use TensorFieldValue to store tensor in TensorModifyUpdate.
Diffstat (limited to 'document/src/tests')
-rw-r--r-- | document/src/tests/documentupdatetestcase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/document/src/tests/documentupdatetestcase.cpp b/document/src/tests/documentupdatetestcase.cpp index a36c0210758..e0c6f8572e0 100644 --- a/document/src/tests/documentupdatetestcase.cpp +++ b/document/src/tests/documentupdatetestcase.cpp @@ -177,8 +177,9 @@ FieldValue::UP createTensorFieldValueWith2Cells() { } std::unique_ptr<TensorModifyUpdate> createTensorModifyUpdate() { - auto tensor = createTensor({ {{{"x", "8"}, {"y", "9"}}, 2} }, {"x", "y"}); - auto update = std::make_unique<TensorModifyUpdate>(TensorModifyUpdate::Operation::REPLACE, std::move(tensor)); + auto tensorFieldValue(std::make_unique<TensorFieldValue>()); + *tensorFieldValue = createTensor({ {{{"x", "8"}, {"y", "9"}}, 2} }, {"x", "y"}); + auto update = std::make_unique<TensorModifyUpdate>(TensorModifyUpdate::Operation::REPLACE, std::move(tensorFieldValue)); return update; } |