You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
376 B
18 lines
376 B
#include <AP_gtest.h> |
|
|
|
#include <AP_Math/AP_Math.h> |
|
|
|
TEST(Vector2Test, IsEqual) |
|
{ |
|
Vector2l v_int1(1, 1); |
|
Vector2l v_int2(1, 0); |
|
Vector2f v_float1(1.0f, 1.0f); |
|
Vector2f v_float2(1.0f, 0.0f); |
|
|
|
EXPECT_FALSE(v_int1 == v_int2); |
|
EXPECT_TRUE(v_int1 == v_int1); |
|
EXPECT_FALSE(v_float1 == v_float2); |
|
EXPECT_TRUE(v_float1 == v_float1); |
|
} |
|
|
|
AP_GTEST_MAIN()
|
|
|