From c9e2b81e99141e7e9f679bb8871acd4ecaca367d Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sat, 24 Feb 2024 06:55:45 +0300 Subject: [PATCH] test: fix ivec2 and ivec3 comparison and suppress warnings --- include/cglm/aabb2d.h | 2 +- test/src/test_ivec2.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cglm/aabb2d.h b/include/cglm/aabb2d.h index 8693ac0..b50430c 100644 --- a/include/cglm/aabb2d.h +++ b/include/cglm/aabb2d.h @@ -18,7 +18,7 @@ /*! * @brief make [aabb] zero * - * @param[in, out] aabb + * @param[in, out] aabb aabb */ CGLM_INLINE void diff --git a/test/src/test_ivec2.h b/test/src/test_ivec2.h index 9709e21..9e32d71 100644 --- a/test/src/test_ivec2.h +++ b/test/src/test_ivec2.h @@ -62,7 +62,7 @@ TEST_IMPL(GLM_PREFIX, ivec2_dot) { dot1 = GLM(ivec2_dot)(a, b); dot2 = a[0] * b[0] + a[1] * b[1]; - ASSERT(dot1, dot2) + ASSERT(dot1 == dot2) ASSERT(dot1 == 20) TEST_SUCCESS @@ -76,7 +76,7 @@ TEST_IMPL(GLM_PREFIX, ivec2_cross) { cross1 = GLM(ivec2_cross)(a, b); cross2 = a[0] * b[1] - a[1] * b[0]; - ASSERT(cross1, cross2) + ASSERT(cross1 == cross2) ASSERT(cross1 == 11) TEST_SUCCESS