APM:Libraries
test_vector2.cpp
Go to the documentation of this file.
1 #include <AP_gtest.h>
2 
3 #include <AP_Math/AP_Math.h>
4 
5 TEST(Vector2Test, IsEqual)
6 {
7  Vector2l v_int1(1, 1);
8  Vector2l v_int2(1, 0);
9  Vector2f v_float1(1.0f, 1.0f);
10  Vector2f v_float2(1.0f, 0.0f);
11 
12  EXPECT_FALSE(v_int1 == v_int2);
13  EXPECT_TRUE(v_int1 == v_int1);
14  EXPECT_FALSE(v_float1 == v_float2);
15  EXPECT_TRUE(v_float1 == v_float1);
16 }
17 
18 AP_GTEST_MAIN()
#define f(i)
TEST(Vector2Test, IsEqual)
Definition: test_vector2.cpp:5