From d656658849356c6aff457ea0c50636b08d6a94f3 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Mon, 30 Sep 2013 03:17:54 +0200 Subject: [PATCH] Added initializer_list contructor test --- test/core/core_type_mat4x4.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/core/core_type_mat4x4.cpp b/test/core/core_type_mat4x4.cpp index 2b443756..1bc2aa86 100644 --- a/test/core/core_type_mat4x4.cpp +++ b/test/core/core_type_mat4x4.cpp @@ -129,13 +129,19 @@ int test_ctr() #if(GLM_HAS_INITIALIZER_LISTS) glm::mat4 m1{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; - + glm::mat4 m2{ glm::vec4{0, 1, 2, 3}, glm::vec4{4, 5, 6, 7}, glm::vec4{8, 9, 10, 11}, glm::vec4{12, 13, 14, 15}}; + std::vector m3{ + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}}; + /* std::initializer_list m3{ {0, 1, 2, 3},