mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
test/vector3: Add test for scalar +/- operators
This commit is contained in:
committed by
Julian Kent
parent
158409abce
commit
ea43303c1c
@@ -50,6 +50,11 @@ int main()
|
|||||||
Vector3f k_test(1,2,3);
|
Vector3f k_test(1,2,3);
|
||||||
TEST(isEqual(k,k_test));
|
TEST(isEqual(k,k_test));
|
||||||
|
|
||||||
|
Vector3f m1(1, 2, 3);
|
||||||
|
Vector3f m2(3.1f, 4.1f, 5.1f);
|
||||||
|
TEST(isEqual(m2, m1 + 2.1f));
|
||||||
|
TEST(isEqual(m2 - 2.1f, m1));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user