added constexpr to unit tests

This commit is contained in:
2024-09-03 21:37:27 +03:00
parent 8e836a6d2d
commit 2947bbd95a
3 changed files with 4 additions and 3 deletions

View File

@@ -14,7 +14,8 @@ protected:
Matrix m1; Matrix m1;
Matrix m2; Matrix m2;
void SetUp() override { constexpr void SetUp() override
{
m1 = Matrix(2, 2); m1 = Matrix(2, 2);
m2 = Matrix{{1.0f, 2.0f}, {3.0f, 4.0f}}; m2 = Matrix{{1.0f, 2.0f}, {3.0f, 4.0f}};
} }

View File

@@ -15,7 +15,7 @@ protected:
Vector2 v1; Vector2 v1;
Vector2 v2; Vector2 v2;
void SetUp() override constexpr void SetUp() override
{ {
v1 = Vector2(1.0f, 2.0f); v1 = Vector2(1.0f, 2.0f);
v2 = Vector2(4.0f, 5.0f); v2 = Vector2(4.0f, 5.0f);

View File

@@ -13,7 +13,7 @@ protected:
Vector3 v1; Vector3 v1;
Vector3 v2; Vector3 v2;
void SetUp() override constexpr void SetUp() override
{ {
v1 = Vector3(1.0f, 2.0f, 3.0f); v1 = Vector3(1.0f, 2.0f, 3.0f);
v2 = Vector3(4.0f, 5.0f, 6.0f); v2 = Vector3(4.0f, 5.0f, 6.0f);