- changed lap_counter to int type
- extent circulator unittests for endings testing now the cases: (--endIter).is_valid and (++(--startIter)).is_valid git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1226 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -259,6 +259,13 @@ TEST_F(OpenMeshTrimeshCirculatorVertexEdge, VertexEdgeIterCheckInvalidationAtEnd
|
||||
++endIter ;
|
||||
EXPECT_FALSE(endIter.is_valid()) << "EndIter is not invalid after increment";
|
||||
|
||||
// Check if the end iterators becomes valid after decrement
|
||||
endIter = mesh_.ve_end(vhandle[1]);
|
||||
EXPECT_FALSE(endIter.is_valid()) << "EndIter is not invalid";
|
||||
--endIter;
|
||||
EXPECT_TRUE(endIter.is_valid()) << "EndIter is invalid after decrement";
|
||||
EXPECT_EQ(1,endIter->idx()) << "EndIter points on the wrong element";
|
||||
|
||||
|
||||
// Check if the start iterator decrement is invalid
|
||||
Mesh::VertexEdgeIter startIter = mesh_.ve_begin(vhandle[1]);
|
||||
@@ -266,6 +273,11 @@ TEST_F(OpenMeshTrimeshCirculatorVertexEdge, VertexEdgeIterCheckInvalidationAtEnd
|
||||
--startIter;
|
||||
EXPECT_FALSE(startIter.is_valid()) << "StartIter decrement is not invalid";
|
||||
|
||||
// Check if the start iterator becomes valid
|
||||
++startIter;
|
||||
EXPECT_TRUE(startIter.is_valid()) << "StarIter is invalid after re-incrementing";
|
||||
EXPECT_EQ(startIter->idx(), mesh_.ve_begin(vhandle[1])->idx()) << "StartIter points on the wrong element";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user