mirror of
https://github.com/g-truc/glm.git
synced 2025-04-05 21:45:02 +00:00
Merge pull request #964 from tnixeu/use_all_variables
Use all variables in core_func_common test #964
This commit is contained in:
commit
1e971676ca
1 changed files with 5 additions and 0 deletions
|
@ -276,6 +276,8 @@ namespace min_
|
|||
int Error = 0;
|
||||
|
||||
glm::vec1 A0 = glm::min(glm::vec1(1), glm::vec1(1));
|
||||
bool A1 = glm::all(glm::equal(A0, glm::vec1(1), glm::epsilon<float>()));
|
||||
Error += A1 ? 0 : 1;
|
||||
|
||||
glm::vec2 B0 = glm::min(glm::vec2(1), glm::vec2(1));
|
||||
glm::vec2 B1 = glm::min(glm::vec2(1), 1.0f);
|
||||
|
@ -359,6 +361,9 @@ namespace max_
|
|||
int Error = 0;
|
||||
|
||||
glm::vec1 A0 = glm::max(glm::vec1(1), glm::vec1(1));
|
||||
bool A1 = glm::all(glm::equal(A0, glm::vec1(1), glm::epsilon<float>()));
|
||||
Error += A1 ? 0 : 1;
|
||||
|
||||
|
||||
glm::vec2 B0 = glm::max(glm::vec2(1), glm::vec2(1));
|
||||
glm::vec2 B1 = glm::max(glm::vec2(1), 1.0f);
|
||||
|
|
Loading…
Add table
Reference in a new issue