Skip to content

Commit

Permalink
fix(core): use quaternion constructor in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Sep 28, 2023
1 parent f5cceef commit 6ec40f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/tests/reflection/external/glm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <glm/glm.hpp>
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/type_ptr.hpp>

#include <cubos/core/reflection/external/glm.hpp>
#include <cubos/core/reflection/traits/fields.hpp>
Expand Down Expand Up @@ -168,6 +169,6 @@ TEST_CASE("reflection::reflect<(glm)>()")
testVec("glm::dvec4", glm::dvec4{1.2, 3.4, 5.6, 7.8});
testVec("glm::ivec4", glm::ivec4{4, 3, 2, 1});

testQuat("glm::quat", glm::quat{0.1F, 0.05F, 0.025F, 0.0125F});
testQuat("glm::dquat", glm::dquat{1.0, 0.5, 0.25, 0.125});
testQuat("glm::quat", glm::quat(0.1F, 0.05F, 0.025F, 0.0125F));
testQuat("glm::dquat", glm::dquat(1.0, 0.5, 0.25, 0.125));
}

0 comments on commit 6ec40f3

Please sign in to comment.