8#include <gtest/gtest.h>
10#include "arcane/utils/Vector2.h"
17TEST(TestVector2, Misc)
35 std::cout <<
"V0=" << v0 <<
"\n";
36 std::cout <<
"V1=" << v1 <<
"\n";
37 std::cout <<
"V2=" << v2 <<
"\n";
61 Int64x2 sum_v1_v2(4, 3);
62 Int64x2 mul_v1_4(4, -8);
63 ASSERT_EQ((v1 + 7), Int64x2(8, 5));
64 ASSERT_EQ((7 + v1), Int64x2(8, 5));
65 ASSERT_EQ((v1 - 9), Int64x2(-8, -11));
66 ASSERT_EQ((v1 + v2), sum_v1_v2);
69 ASSERT_EQ(v3, sum_v1_v2);
73 ASSERT_EQ(v3, (v1 + 5));
74 Int64x2 v4 = (v1 * 4);
75 ASSERT_EQ(v4, mul_v1_4);
76 ASSERT_EQ((4 * v1), mul_v1_4);
77 ASSERT_EQ((v4 / 4), v1);
82 ASSERT_EQ(v6, Int64x2(-1, 2));
#define ASSERT_FALSE(condition)
Vérifie que condition est faux.
#define ASSERT_TRUE(condition)
Vérifie que condition est vrai.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-