summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-06-24 17:23:43 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-08-21 16:40:31 +0200
commit57def1eed069a8d45929af82d0ed3eff12c371b9 (patch)
treea0cdc93c98bfb0cdb1017e473c9e7d238654b624
parent694149c773af18b5d5a3abb883cf7d521bb4cf56 (diff)
eina: test eina_matrix4_normalized.
-rw-r--r--src/tests/eina/eina_test_matrix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/eina/eina_test_matrix.c b/src/tests/eina/eina_test_matrix.c
index 51cf9d8205..6808aadf0e 100644
--- a/src/tests/eina/eina_test_matrix.c
+++ b/src/tests/eina/eina_test_matrix.c
@@ -29,6 +29,7 @@
29START_TEST(eina_matrix4) 29START_TEST(eina_matrix4)
30{ 30{
31 Eina_Matrix4 m; 31 Eina_Matrix4 m;
32 Eina_Matrix4 n;
32 double xx, xy, xz, xw, 33 double xx, xy, xz, xw,
33 yx, yy, yz, yw, 34 yx, yy, yz, yw,
34 zx, zy, zz, zw, 35 zx, zy, zz, zw,
@@ -43,6 +44,9 @@ START_TEST(eina_matrix4)
43 0, 0, 0, 1); 44 0, 0, 0, 1);
44 fail_if(eina_matrix4_type_get(&m) != EINA_MATRIX_TYPE_IDENTITY); 45 fail_if(eina_matrix4_type_get(&m) != EINA_MATRIX_TYPE_IDENTITY);
45 46
47 fail_if(!eina_matrix4_normalized(&n, &m));
48 fail_if(eina_matrix4_type_get(&n) != EINA_MATRIX_TYPE_IDENTITY);
49
46 eina_matrix4_values_get(&m, 50 eina_matrix4_values_get(&m,
47 &xx, &xy, &xz, &xw, 51 &xx, &xy, &xz, &xw,
48 &yx, &yy, &yz, &yw, 52 &yx, &yy, &yz, &yw,