mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Math: add test for is_equal for int
This commit is contained in:
parent
da49149d19
commit
eae093cd2a
@ -74,6 +74,8 @@ TEST(MathTest, IsZero)
|
||||
|
||||
TEST(MathTest, IsEqual)
|
||||
{
|
||||
EXPECT_FALSE(is_equal(1, 0));
|
||||
EXPECT_TRUE(is_equal(1, 1));
|
||||
EXPECT_FALSE(is_equal(0.1, 0.10001));
|
||||
EXPECT_FALSE(is_equal(0.1, -0.1001));
|
||||
EXPECT_TRUE(is_equal(0.f, 0.0f));
|
||||
|
Loading…
Reference in New Issue
Block a user