mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
tests: add some tests for vec4
This commit is contained in:
@@ -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