Added test for quat type component length() static #565

This commit is contained in:
Christophe Riccio
2016-11-01 09:14:28 +01:00
parent f3fc2b2862
commit c4f52dc98f
3 changed files with 33 additions and 3 deletions

View File

@@ -174,15 +174,30 @@ int test_dual_quat_ctr()
return Error;
}
int test_size()
{
int Error = 0;
Error += 32 == sizeof(glm::dualquat) ? 0 : 1;
Error += 64 == sizeof(glm::ddualquat) ? 0 : 1;
Error += glm::dualquat().length() == 2 ? 0 : 1;
Error += glm::ddualquat().length() == 2 ? 0 : 1;
Error += glm::dualquat::length() == 2 ? 0 : 1;
Error += glm::ddualquat::length() == 2 ? 0 : 1;
return Error;
}
int main()
{
int Error(0);
int Error = 0;
Error += test_dual_quat_ctr();
Error += test_dquat_type();
Error += test_scalars();
Error += test_inverse();
Error += test_mul();
Error += test_size();
return Error;
}