win: suppress warnings for tests

This commit is contained in:
Recep Aslantas
2022-08-23 18:01:05 +03:00
parent 073a11a6b8
commit 2238fd127c
4 changed files with 10 additions and 10 deletions

View File

@@ -598,7 +598,7 @@ TEST_IMPL(GLM_PREFIX, vec2_lerp) {
TEST_IMPL(GLM_PREFIX, vec2_complex_mul) {
vec2 v1 = { 3.0f, 5.0f },
v2 = { 7.0f, 11.0f },
v3 = { cosf(M_PI/4.0f), sinf(M_PI/4.0f) };
v3 = { cosf(GLM_PIf/4.0f), sinf(GLM_PIf/4.0f) };
GLM(vec2_complex_mul)(v1, v2, v2);
ASSERTIFY(test_assert_vec2_eq(v2, (vec2){ -34, 68 }))
@@ -612,8 +612,8 @@ TEST_IMPL(GLM_PREFIX, vec2_complex_mul) {
TEST_IMPL(GLM_PREFIX, vec2_complex_div) {
vec2 v1 = { -34.0f, 68.0f },
v2 = { 3.0f, 5.0f },
v3 = { cosf(M_PI/4.0f), sinf(M_PI/4.0f) },
v4 = { cosf(M_PI/4.0f), -sinf(M_PI/4.0f) };
v3 = { cosf(GLM_PIf/4.0f), sinf(GLM_PIf/4.0f) },
v4 = { cosf(GLM_PIf/4.0f), -sinf(GLM_PIf/4.0f) };
GLM(vec2_complex_div)(v1, v2, v2);
ASSERTIFY(test_assert_vec2_eq(v2, (vec2){ 7.0f, 11.0f }))