Skip to content

Commit

Permalink
improve EdgeSetTest coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dsieger committed Oct 1, 2017
1 parent 1c5a1b4 commit eaadf79
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/EdgeSetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,36 @@ TEST_F(EdgeSetTest, read)
EXPECT_EQ(es.nEdges(), size_t(36));
}

TEST_F(EdgeSetTest, isBoundary)
{
es.read("pmp-data/knt/3rings.knt");
bool boundary = false;
for (auto v : es.vertices())
{
if (es.isBoundary(v))
{
boundary = true;
break;
}
}
EXPECT_FALSE(boundary);
}

TEST_F(EdgeSetTest, isManifold)
{
es.read("pmp-data/knt/3rings.knt");
bool nonManifold = false;
for (auto v : es.vertices())
{
if (!es.isManifold(v))
{
nonManifold = true;
break;
}
}
EXPECT_FALSE(nonManifold);
}



//=============================================================================

0 comments on commit eaadf79

Please sign in to comment.