Added test for abs function

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@774 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-12-05 16:34:15 +00:00
parent 7540cfabca
commit ac94d92a8e

View File

@@ -56,6 +56,16 @@ TEST_F(OpenMeshVectorTest, ComputeTriangleSurfaceWithCrossProduct) {
} }
/* Check OpenMesh Vector type abs function
*/
TEST_F(OpenMeshVectorTest, AbsTest) {
OpenMesh::Vec3d vec1(0.5,0.5,-0.5);
EXPECT_EQ( vec1.l8_norm() , 0.5f ) << "Wrong l8norm computation";
}