Fixed vec1 test

This commit is contained in:
Christophe Riccio 2017-07-25 21:23:25 +02:00
parent 9443d8d9ca
commit f2cb4a3fdf

View File

@ -107,7 +107,7 @@ int test_vec1_size()
Error += glm::dvec1::length() == 1 ? 0 : 1; Error += glm::dvec1::length() == 1 ? 0 : 1;
# if GLM_HAS_CONSTEXPR_PARTIAL # if GLM_HAS_CONSTEXPR_PARTIAL
constexpr std::size_t Length = glm::vec2::length(); constexpr std::size_t Length = glm::vec1::length();
Error += Length == 1 ? 0 : 1; Error += Length == 1 ? 0 : 1;
# endif # endif
@ -145,9 +145,6 @@ int main()
{ {
int Error = 0; int Error = 0;
glm::vec1 v;
assert(v.length() == 1);
Error += test_vec1_size(); Error += test_vec1_size();
Error += test_vec1_ctor(); Error += test_vec1_ctor();
Error += test_vec1_operators(); Error += test_vec1_operators();