mirror of
https://github.com/recp/cglm.git
synced 2026-01-01 13:16:11 +00:00
test: fix comparing two float values in tests
This commit is contained in:
@@ -24,9 +24,9 @@ test_mat4(void **state) {
|
||||
for (i = 0; i < m; i++) {
|
||||
for (j = 0; j < n; j++) {
|
||||
if (i == j)
|
||||
assert_true(m3[i][j] == 1.0f);
|
||||
assert_true(glm_eq(m3[i][j], 1.0f));
|
||||
else
|
||||
assert_true(m3[i][j] == 0.0f);
|
||||
assert_true(glm_eq(m3[i][j], 0.0f));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user