|
@@ -166,6 +166,18 @@ int test_vec1_operator_increment()
|
|
|
return Error;
|
|
return Error;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+int test_vec1_static_const() {
|
|
|
|
|
+ int Error = 0;
|
|
|
|
|
+
|
|
|
|
|
+ Error += (glm::vec1(1.0f) == glm::vec1::X) ? 0 : 1;
|
|
|
|
|
+ Error += (glm::ivec1(1) == glm::ivec1::X) ? 0 : 1;
|
|
|
|
|
+ Error += (glm::dvec1(1.0) == glm::dvec1::X) ? 0 : 1;
|
|
|
|
|
+ Error += (glm::bvec1(false) == glm::bvec1::ZERO) ? 0 : 1;
|
|
|
|
|
+ Error += (glm::uvec1(0) == glm::uvec1::ZERO) ? 0 : 1;
|
|
|
|
|
+
|
|
|
|
|
+ return Error;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int main()
|
|
int main()
|
|
|
{
|
|
{
|
|
|
int Error = 0;
|
|
int Error = 0;
|
|
@@ -178,6 +190,7 @@ int main()
|
|
|
assert(glm::vec1::components == 1);
|
|
assert(glm::vec1::components == 1);
|
|
|
# endif
|
|
# endif
|
|
|
|
|
|
|
|
|
|
+ Error += test_vec1_static_const();
|
|
|
Error += test_vec1_size();
|
|
Error += test_vec1_size();
|
|
|
Error += test_vec1_ctor();
|
|
Error += test_vec1_ctor();
|
|
|
Error += test_vec1_operators();
|
|
Error += test_vec1_operators();
|