mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Fixed vec1 test
This commit is contained in:
parent
9443d8d9ca
commit
f2cb4a3fdf
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user