Skip to content

Commit

Permalink
Add new unit test for HexQuality skew
Browse files Browse the repository at this point in the history
  • Loading branch information
claireroche authored and nicolaslg committed Jul 4, 2024
1 parent 75cedb9 commit 1655c31
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions quality/tst/HexEvalTestSuite.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@ TEST(HexQualityTestClass, test2)
ASSERT_NEAR(he.taper(), 0, 0.01);

}
/*----------------------------------------------------------------------------*/
TEST(HexQualityTestClass, test3)
{
HexQuality he = HexQuality::build(math::Point(188,28,29),
math::Point(191,28,29),
math::Point(191,31,26),
math::Point(188,31,26),
math::Point(188,27,28),
math::Point(191,27,28),
math::Point(191,29,25),
math::Point(188,29,25));

ASSERT_NEAR(he.skew(), 0.106, 0.01);

}

0 comments on commit 1655c31

Please sign in to comment.