Skip to content

Commit

Permalink
Revert "Fix test due to change of default constructor of qua"
Browse files Browse the repository at this point in the history
This reverts commit e800c41.
  • Loading branch information
blurgyy committed May 6, 2021
1 parent e800c41 commit 43b81f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/core/core_cpp_constexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ static int test_quat()
{
static_assert(glm::quat::length() == 4, "GLM: Failed constexpr");
static_assert(glm::quat(1.0f, glm::vec3(0.0f)).w > 0.0f, "GLM: Failed constexpr");
static_assert(glm::quat(0.0f, 0.0f, 0.0f, 1.0f).w > 0.0f, "GLM: Failed constexpr");
static_assert(glm::quat(1.0f, 0.0f, 0.0f, 0.0f).w > 0.0f, "GLM: Failed constexpr");

glm::quat constexpr Q = glm::identity<glm::quat>();
static_assert(Q.x - glm::quat(1.0f, glm::vec3(0.0f)).x <= glm::epsilon<float>(), "GLM: Failed constexpr");
Expand Down

0 comments on commit 43b81f4

Please sign in to comment.