From 677bdacb992dc24071fc950c4bb908660f4562bb Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Tue, 2 Mar 2021 02:11:35 +0100 Subject: [PATCH] add test for property type vector> --- src/Unittests/unittests_read_write_OM.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Unittests/unittests_read_write_OM.cc b/src/Unittests/unittests_read_write_OM.cc index dccc0013..fdd37f90 100644 --- a/src/Unittests/unittests_read_write_OM.cc +++ b/src/Unittests/unittests_read_write_OM.cc @@ -1541,12 +1541,12 @@ T get_value(int seed, T, int seed2 = 0) } template -std::vector get_value(int seed, const std::vector&) +std::vector get_value(int seed, const std::vector&, int _offset = 0) { int size = get_value(seed, 3); std::vector res(size); for (int i = 0; i < size; ++i) - res[i] = get_value(seed, T(), i); + res[i] = get_value(seed, T(), i + _offset); return res; } @@ -1653,6 +1653,8 @@ void do_all_property_types(MeshT& _mesh, PropertyAction action, int version) do_property> (_mesh, action); do_property> (_mesh, action); do_property> (_mesh, action); + + do_property>> (_mesh, action); //do_property> (_mesh, action); } @@ -1875,4 +1877,5 @@ TEST_F(OpenMeshReadWriteOM, WriteAndLoadBoolCheckSpaces) { } OM_REGISTER_PROPERTY_TYPE(std::vector) +OM_REGISTER_PROPERTY_TYPE(std::vector>) OM_REGISTER_PROPERTY_TYPE(RegisteredDataType)