Commit c8b5dea2 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

C++11: Made a unit test C++98 compatible.

parent 8d24e6bb
Pipeline #50 passed with stage
......@@ -203,7 +203,11 @@ TEST_F(OpenMeshVectorTest, BasicLinearAlgebra) {
TEST_F(OpenMeshVectorTest, normalized_cond) {
OpenMesh::Vec3d v1(1, -2, 3), v2(0, 0, 0);
EXPECT_EQ(OpenMesh::Vec3d(0, 0, 0), v2.normalize_cond());
const auto r1 = OpenMesh::Vec3d(0.2672612419124244, -0.5345224838248488, 0.8017837257372732) - v1.normalize_cond();
const OpenMesh::Vec3d r1 =
OpenMesh::Vec3d(
0.2672612419124244,
-0.5345224838248488,
0.8017837257372732) - v1.normalize_cond();
EXPECT_NEAR(r1[0], 0.0, 1e-12);
EXPECT_NEAR(r1[1], 0.0, 1e-12);
EXPECT_NEAR(r1[2], 0.0, 1e-12);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment