mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 02:17:13 -06:00
tests: add some tests for vec4
This commit is contained in:
1 parent
f2073b2277
commit
ce09e543ef
4 files changed
+829
-224
No files matched your search
@@ -315,10 +315,10 @@ TEST_IMPL(GLM_PREFIX, vec3_norm_inf) {
|
||||
n1 = GLM(vec3_norm_inf)(a);
|
||||
n2 = fabsf(a[0]);
|
||||
|
||||
if (fabsf(a[0]) < fabsf(a[1]))
|
||||
if (n2 < fabsf(a[1]))
|
||||
n2 = fabsf(a[1]);
|
||||
|
||||
if (fabsf(a[1]) < fabsf(a[2]))
|
||||
if (n2 < fabsf(a[2]))
|
||||
n2 = fabsf(a[2]);
|
||||
|
||||
ASSERT(test_eq(n1, n2))
|
||||
|
||||
Reference in new issue
Block a user