mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
22 lines
412 B
C
22 lines
412 B
C
/*
|
|
* 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"
|
|
|
|
TEST_IMPL(GLM_PREFIX, ivec4) {
|
|
ivec3 v3 = {2, 3, 5};
|
|
ivec4 v4;
|
|
|
|
GLM(ivec4)(v3, 7, v4);
|
|
ASSERT(test_eq(v4[0], v3[0]))
|
|
ASSERT(test_eq(v4[1], v3[1]))
|
|
ASSERT(test_eq(v4[2], v3[2]))
|
|
ASSERT(test_eq(v4[3], 7))
|
|
|
|
TEST_SUCCESS
|
|
}
|