APM:Libraries
libraries
AP_Math
tests
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.0
f
, 1.0
f
);
10
Vector2f
v_float2(1.0
f
, 0.0
f
);
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()
f
#define f(i)
Vector2< int32_t >
AP_Math.h
TEST
TEST(Vector2Test, IsEqual)
Definition:
test_vector2.cpp:5
Generated on Sun Jun 17 2018 14:18:50 for APM:Libraries by
1.8.13