mirror of
https://github.com/recp/cglm.git
synced 2025-12-25 12:55:04 +00:00
vec: add one and zero helpers for vectors
This commit is contained in:
21
test/src/test_vec3.c
Normal file
21
test/src/test_vec3.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c), Recep Aslantas.
|
||||
*
|
||||
* MIT License (MIT), http://opensource.org/licenses/MIT
|
||||
* Full license can be found in the LICENSE file
|
||||
*/
|
||||
|
||||
#include "test_common.h"
|
||||
|
||||
void
|
||||
test_vec3(void **state) {
|
||||
vec3 v;
|
||||
|
||||
/* test zero */
|
||||
glm_vec_zero(v);
|
||||
test_assert_vec3_eq(GLM_VEC3_ZERO, v);
|
||||
|
||||
/* test one */
|
||||
glm_vec_one(v);
|
||||
test_assert_vec3_eq(GLM_VEC3_ONE, v);
|
||||
}
|
||||
Reference in New Issue
Block a user