diff --git a/test/core/core_type_vec2.cpp b/test/core/core_type_vec2.cpp index bbfd2e5b..80bdb79c 100644 --- a/test/core/core_type_vec2.cpp +++ b/test/core/core_type_vec2.cpp @@ -9,6 +9,7 @@ #include #include +#include int test_vec2_operators() { @@ -199,6 +200,24 @@ int test_vec2_ctor() { int Error = 0; +#if(GLM_HAS_INITIALIZER_LISTS) + { + glm::vec2 a{ 0, 1 }; + std::vector v = { + {0, 1}, + {4, 5}, + {8, 9}}; + } + + { + glm::dvec2 a{ 0, 1 }; + std::vector v = { + {0, 1}, + {4, 5}, + {8, 9}}; + } +#endif + { glm::vec2 A = glm::vec2(2.0f); glm::vec2 B = glm::vec2(2.0f, 3.0f); diff --git a/test/core/core_type_vec3.cpp b/test/core/core_type_vec3.cpp index 7e8a1556..050cbbea 100644 --- a/test/core/core_type_vec3.cpp +++ b/test/core/core_type_vec3.cpp @@ -20,6 +20,24 @@ int test_vec3_ctor() { int Error = 0; +#if(GLM_HAS_INITIALIZER_LISTS) + { + glm::vec3 a{ 0, 1, 2 }; + std::vector v = { + {0, 1, 2}, + {4, 5, 6}, + {8, 9, 0}}; + } + + { + glm::dvec3 a{ 0, 1, 2 }; + std::vector v = { + {0, 1, 2}, + {4, 5, 6}, + {8, 9, 0}}; + } +#endif + { glm::vec3 A(1); glm::vec3 B(1, 1, 1); diff --git a/test/core/core_type_vec4.cpp b/test/core/core_type_vec4.cpp index f63b689b..88c7e24b 100644 --- a/test/core/core_type_vec4.cpp +++ b/test/core/core_type_vec4.cpp @@ -49,6 +49,14 @@ int test_vec4_ctor() {4, 5, 6, 7}, {8, 9, 0, 1}}; } + + { + glm::dvec4 a{ 0, 1, 2, 3 }; + std::vector v = { + {0, 1, 2, 3}, + {4, 5, 6, 7}, + {8, 9, 0, 1}}; + } #endif {