diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-02-21 14:30:31 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-02-21 14:30:31 +0000 |
commit | 051dac70f4c54e0bef7d24c21be7751eb334c0b0 (patch) | |
tree | dc6c4586c742dba430bb7bfe5146d22a60007467 /document/src/tests | |
parent | 5d79269b8f6f74286436f09d9bdc2d3c2c38a41d (diff) |
Implement applyTo() for TensorRemoveUpdate.
Diffstat (limited to 'document/src/tests')
-rw-r--r-- | document/src/tests/documentupdatetestcase.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/document/src/tests/documentupdatetestcase.cpp b/document/src/tests/documentupdatetestcase.cpp index c74c211756f..017d83893f0 100644 --- a/document/src/tests/documentupdatetestcase.cpp +++ b/document/src/tests/documentupdatetestcase.cpp @@ -922,6 +922,17 @@ TEST(DocumentUpdateTest, tensor_add_update_can_be_applied) .add({{"x", "c"}}, 7)); } +TEST(DocumentUpdateTest, tensor_remove_update_can_be_applied) +{ + TensorUpdateFixture f; + f.assertApplyUpdate(f.spec().add({{"x", "a"}}, 2) + .add({{"x", "b"}}, 3), + + TensorRemoveUpdate(f.makeTensor(f.spec().add({{"x", "b"}}, 1))), + + f.spec().add({{"x", "a"}}, 2)); +} + TEST(DocumentUpdateTest, tensor_modify_update_can_be_applied) { TensorUpdateFixture f; |