1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Improved tests.

This commit is contained in:
mikeller 2019-11-20 00:29:07 +13:00
parent c1b9e927a6
commit 5808bfd6f3
11 changed files with 158 additions and 154 deletions

View file

@ -175,7 +175,11 @@ TEST(FlightImuTest, TestSmallAngle)
imuComputeRotationMatrix();
// expect
<<<<<<< HEAD
EXPECT_EQ(false, isUpright());
=======
EXPECT_TRUE(isUpright());
>>>>>>> Improved tests.
// given
rMat[0][0] = r1;
@ -187,7 +191,7 @@ TEST(FlightImuTest, TestSmallAngle)
imuComputeRotationMatrix();
// expect
EXPECT_EQ(false, isUpright());
EXPECT_FALSE(isUpright());
// given
memset(rMat, 0.0, sizeof(float) * 9);
@ -196,7 +200,7 @@ TEST(FlightImuTest, TestSmallAngle)
imuComputeRotationMatrix();
// expect
EXPECT_EQ(false, isUpright());
EXPECT_FALSE(isUpright());
}
// STUBS