mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 02:17:13 -06:00
tests: add more tests for vec3
This commit is contained in:
1 parent
378e26140e
commit
3a48e4cd84
2 files changed
+9
-1
No files matched your search
@@ -934,7 +934,7 @@ TEST_IMPL(GLM_PREFIX, vec3_distance2) {
|
||||
float d;
|
||||
|
||||
d = GLM(vec3_distance2)(v1, v2);
|
||||
ASSERT(test_eq(d, 30.0f))
|
||||
ASSERT(test_eq(d, 30.0f * 30.0f))
|
||||
|
||||
d = GLM(vec3_distance2)(v3, v4);
|
||||
ASSERT(test_eq(powf(v3[0] - v4[0], 2.0f)
|
||||
|
||||
Reference in new issue
Block a user