fix "relink failed" condition

closes #1244

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1220 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2015-02-10 14:15:25 +00:00
parent 81a7ee7341
commit 74942b5eb7
2 changed files with 9 additions and 6 deletions

View File

@@ -296,11 +296,12 @@ TEST_F(OpenMeshAddFaceTriangleMesh, CreateStrangeConfig) {
mesh_.add_face( vh[0], vh[5], vh[6] );
// non-manifold!
mesh_.add_face( vh[3], vh[0], vh[4] );
Mesh::FaceHandle invalidFH = mesh_.add_face( vh[3], vh[0], vh[4] );
// Check setup
EXPECT_EQ(7u, mesh_.n_vertices() ) << "Wrong number of vertices";
EXPECT_EQ(4u, mesh_.n_faces() ) << "Wrong number of faces";
EXPECT_EQ(3u, mesh_.n_faces() ) << "Wrong number of faces";
EXPECT_EQ(invalidFH, Mesh::InvalidFaceHandle ) << "non manifold face is valid";
}