Commit 3e5cce7d authored by Mike Kremer's avatar Mike Kremer
Browse files

Really clear props when performing clear() on mesh, added another unit test

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@64 66977474-1d4b-4f09-8fe9-267525286df2
parent 7105f0b3
......@@ -165,6 +165,7 @@ public:
// }
std::for_each(properties_.begin(), properties_.end(), ClearAll());
properties_.clear();
}
//---------------------------------------------------- synchronize properties
......
......@@ -96,19 +96,19 @@ TEST_F(PolyhedralMeshBase, SaveFileWithProps) {
mesh_.clear();
// ASSERT_TRUE(fileManager.readFile("Cube_with_props.copy.ovm", mesh_));
//
// EXPECT_EQ(8u, mesh_.n_vertices());
// EXPECT_EQ(12u, mesh_.n_edges());
// EXPECT_EQ(6u, mesh_.n_faces());
// EXPECT_EQ(1u, mesh_.n_cells());
//
// EXPECT_EQ(1u, mesh_.n_vprops());
// EXPECT_EQ(1u, mesh_.n_eprops());
// EXPECT_EQ(0u, mesh_.n_heprops());
// EXPECT_EQ(1u, mesh_.n_fprops());
// EXPECT_EQ(1u, mesh_.n_hfprops());
// EXPECT_EQ(0u, mesh_.n_cprops());
ASSERT_TRUE(fileManager.readFile("Cube_with_props.copy.ovm", mesh_));
EXPECT_EQ(8u, mesh_.n_vertices());
EXPECT_EQ(12u, mesh_.n_edges());
EXPECT_EQ(6u, mesh_.n_faces());
EXPECT_EQ(1u, mesh_.n_cells());
EXPECT_EQ(1u, mesh_.n_vprops());
EXPECT_EQ(1u, mesh_.n_eprops());
EXPECT_EQ(0u, mesh_.n_heprops());
EXPECT_EQ(1u, mesh_.n_fprops());
EXPECT_EQ(1u, mesh_.n_hfprops());
EXPECT_EQ(0u, mesh_.n_cprops());
}
#endif // INCLUDE GUARD
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