Skip to content
Snippets Groups Projects
Commit 01e9b2cd authored by Matthias Grob's avatar Matthias Grob
Browse files

AttitudeControlTest: compare vectors, not every element

parent f5f95635
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,5 @@ TEST(AttitudeControlTest, AllZeroCase) ...@@ -7,7 +7,5 @@ TEST(AttitudeControlTest, AllZeroCase)
{ {
AttitudeControl attitude_control; AttitudeControl attitude_control;
matrix::Vector3f rate_setpoint = attitude_control.update(Quatf(), Quatf(), 0.f); matrix::Vector3f rate_setpoint = attitude_control.update(Quatf(), Quatf(), 0.f);
EXPECT_EQ(rate_setpoint(0), 0.f); EXPECT_EQ(rate_setpoint, Vector3f());
EXPECT_EQ(rate_setpoint(1), 0.f);
EXPECT_EQ(rate_setpoint(2), 0.f);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment