forked from enlightenment/efl
Eina matrix/vector tests: pass correct pointers to arrays.
Clang (rightfully) complained about passing double ** where we should have passed a double *.
This commit is contained in:
parent
1d71d21d35
commit
de1a7759fa
|
@ -83,7 +83,7 @@ START_TEST(eina_matrix2_operation)
|
||||||
xy != yx ||
|
xy != yx ||
|
||||||
xy != 0);
|
xy != 0);
|
||||||
|
|
||||||
eina_matrix2_array_set(&m1, &arr);
|
eina_matrix2_array_set(&m1, arr);
|
||||||
eina_matrix2_values_get(&m1,
|
eina_matrix2_values_get(&m1,
|
||||||
&xx, &xy,
|
&xx, &xy,
|
||||||
&yx, &yy);
|
&yx, &yy);
|
||||||
|
@ -260,7 +260,7 @@ START_TEST(eina_matrix4_operation)
|
||||||
wx != xx ||
|
wx != xx ||
|
||||||
ww != zy);
|
ww != zy);
|
||||||
|
|
||||||
eina_matrix4_array_set(&m1, &arr);
|
eina_matrix4_array_set(&m1, arr);
|
||||||
eina_matrix4_values_get(&m1,
|
eina_matrix4_values_get(&m1,
|
||||||
&xx, &xy, &xz, &xw,
|
&xx, &xy, &xz, &xw,
|
||||||
&yx, &yy, &yz, &yw,
|
&yx, &yy, &yz, &yw,
|
||||||
|
@ -575,7 +575,7 @@ START_TEST(eina_matrix3_operations)
|
||||||
yx != 1 || yy != 1 || yz != 1 ||
|
yx != 1 || yy != 1 || yz != 1 ||
|
||||||
zx != 0 || zy != 0 || zz != 0);
|
zx != 0 || zy != 0 || zz != 0);
|
||||||
|
|
||||||
eina_matrix3_array_set(&m1, &arr);
|
eina_matrix3_array_set(&m1, arr);
|
||||||
eina_matrix3_values_get(&m1,
|
eina_matrix3_values_get(&m1,
|
||||||
&xx, &xy, &xz,
|
&xx, &xy, &xz,
|
||||||
&yx, &yy, &yz,
|
&yx, &yy, &yz,
|
||||||
|
|
|
@ -45,7 +45,7 @@ START_TEST(eina_test_vector2_operations)
|
||||||
eina_vector2_set(&v1, x, y);
|
eina_vector2_set(&v1, x, y);
|
||||||
fail_if((v1.x != 1) || (v1.y != 2));
|
fail_if((v1.x != 1) || (v1.y != 2));
|
||||||
|
|
||||||
eina_vector2_array_set(&v2, &arr);
|
eina_vector2_array_set(&v2, arr);
|
||||||
fail_if((v2.x != 5) || (v2.y != 5));
|
fail_if((v2.x != 5) || (v2.y != 5));
|
||||||
|
|
||||||
eina_vector2_copy(&v1, &v2);
|
eina_vector2_copy(&v1, &v2);
|
||||||
|
@ -131,7 +131,7 @@ START_TEST(eina_test_vector3_operations)
|
||||||
eina_vector3_set(&v1, x, y, z);
|
eina_vector3_set(&v1, x, y, z);
|
||||||
fail_if((v1.x != 1) || (v1.y != 2) || (v1.z != 3));
|
fail_if((v1.x != 1) || (v1.y != 2) || (v1.z != 3));
|
||||||
|
|
||||||
eina_vector3_array_set(&v2, &arr);
|
eina_vector3_array_set(&v2, arr);
|
||||||
fail_if((v2.x != 5) || (v2.y != 5) || (v2.z != 5));
|
fail_if((v2.x != 5) || (v2.y != 5) || (v2.z != 5));
|
||||||
|
|
||||||
eina_vector3_copy(&v1, &v2);
|
eina_vector3_copy(&v1, &v2);
|
||||||
|
|
Loading…
Reference in New Issue