Commit 6054d6c9 authored by Mike Kremer's avatar Mike Kremer

Fixed issue with crashing unit tests in debug build mode.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@258 66977474-1d4b-4f09-8fe9-267525286df2
parent 749ae1d0
......@@ -137,7 +137,7 @@ TEST_F(PolyhedralMeshBase, SaveFileWithVectorProps) {
hfprop[i] = Vec3d((double)i/2.0, (double)i/2.0, (double)i/2.0);
}
for(unsigned int i = 0; i < mesh_.n_vertices(); ++i) {
vprop[i] = Vec2i(i, i, i);
vprop[i] = Vec2i(i, i);
}
mesh_.set_persistent(hfprop);
......@@ -191,7 +191,7 @@ TEST_F(PolyhedralMeshBase, SerializeVectorValuedProperties) {
hfprop[i] = Vec3d((double)i/2.0, (double)i/2.0, (double)i/2.0);
}
for(unsigned int i = 0; i < mesh_.n_vertices(); ++i) {
vprop[i] = Vec2i(i, i, i);
vprop[i] = Vec2i(i, i);
}
mesh_.set_persistent(hfprop);
......@@ -214,7 +214,7 @@ TEST_F(PolyhedralMeshBase, SerializeVectorValuedProperties) {
}
for(unsigned int i = 0; i < mesh_.n_vertices(); ++i) {
vprop[i] = Vec2i(2*i, 2*i, 2*i);
vprop[i] = Vec2i(2*i, 2*i);
}
std::ifstream ifs1("hfVecPropTest");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment