Skip to content

Commit d854a85

Browse files
authored
Update RotationSpline_TEST.cc
Changed one test as it was too brittle Signed-off-by: Sammit Dhar <sammit.dhar.2004@gmail.com>
1 parent 1399fd2 commit d854a85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/RotationSpline_TEST.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ TEST(RotationSplineTest, RotationSpline)
5151
s.AutoCalculate(true);
5252

5353
// ::Interpolate
54-
EXPECT_TRUE(s.Interpolate(0.5) ==
55-
math::Quaterniond(0.999181, 0.0184352, 0.030948, 0.0184352));
54+
math::Quaterniond expected(0.999181, 0.0184352, 0.030948, 0.0184352);
55+
EXPECT_TRUE(s.Interpolate(0.5).Equal(expected, 1e-6));
5656

5757
// ::Interpolate
5858
s.AddPoint(math::Quaterniond(.4, .4, .4));

0 commit comments

Comments
 (0)