mirror of
https://github.com/recp/cglm.git
synced 2025-12-25 04:44:58 +00:00
add missing mat2x# test and mat2x3 window headers
Missing tests where * MACRO_GLM_MAT2X3_ZERO_INIT * MACRO_GLM_MAT2X3_ZERO * mat2x3s_zero_init * mat2x3s_zero * mat2x4s_zero_init * mat2x4s_zero Commit: * removes (mat2x3) from ((mat2x3)GLM_MAT2X3_ZERO_INIT) to fix error: array initialized from non-constant array expression * removes test_assert_mat2x3_eq_zero from test/src/test_struct.c * adds TEST_IMPL(mat2x3s_zero) to test/src/test_struct.c Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -9,8 +9,12 @@
|
||||
|
||||
TEST_IMPL(mat2x3s_zero_init) {
|
||||
mat2x3s mat2x3_zero = GLMS_MAT2X3_ZERO_INIT;
|
||||
mat2x3 mat2x3_zero_a = GLM_MAT2X3_ZERO_INIT;
|
||||
test_assert_mat2x3_eq_zero(mat2x3_zero_a);
|
||||
test_assert_mat2x3_eq_zero(mat2x3_zero.raw);
|
||||
TEST_SUCCESS
|
||||
}
|
||||
|
||||
TEST_IMPL(mat2x3s_zero) {
|
||||
mat2x3s mat2x3_zero = GLMS_MAT2X3_ZERO;
|
||||
test_assert_mat2x3_eq_zero(mat2x3_zero.raw);
|
||||
TEST_SUCCESS
|
||||
}
|
||||
@@ -21,6 +25,12 @@ TEST_IMPL(mat2x4s_zero_init) {
|
||||
TEST_SUCCESS
|
||||
}
|
||||
|
||||
TEST_IMPL(mat2x4s_zero) {
|
||||
mat2x4s mat2x4_zero = GLMS_MAT2X4_ZERO;
|
||||
test_assert_mat2x4_eq_zero(mat2x4_zero.raw);
|
||||
TEST_SUCCESS
|
||||
}
|
||||
|
||||
TEST_IMPL(mat3s_identity_init) {
|
||||
mat3s mat3_identity = GLMS_MAT3_IDENTITY_INIT;
|
||||
mat3 mat3_identity_a = GLM_MAT3_IDENTITY_INIT;
|
||||
|
||||
Reference in New Issue
Block a user