diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2015-06-24 17:23:43 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-08-21 16:40:31 +0200 |
commit | 57def1eed069a8d45929af82d0ed3eff12c371b9 (patch) | |
tree | a0cdc93c98bfb0cdb1017e473c9e7d238654b624 | |
parent | 694149c773af18b5d5a3abb883cf7d521bb4cf56 (diff) | |
download | efl-57def1eed069a8d45929af82d0ed3eff12c371b9.tar.gz |
eina: test eina_matrix4_normalized.
-rw-r--r-- | src/tests/eina/eina_test_matrix.c | 4 |
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 @@ START_TEST(eina_matrix4) { Eina_Matrix4 m; + Eina_Matrix4 n; double xx, xy, xz, xw, yx, yy, yz, yw, zx, zy, zz, zw, @@ -43,6 +44,9 @@ START_TEST(eina_matrix4) 0, 0, 0, 1); fail_if(eina_matrix4_type_get(&m) != EINA_MATRIX_TYPE_IDENTITY); + fail_if(!eina_matrix4_normalized(&n, &m)); + fail_if(eina_matrix4_type_get(&n) != EINA_MATRIX_TYPE_IDENTITY); + eina_matrix4_values_get(&m, &xx, &xy, &xz, &xw, &yx, &yy, &yz, &yw, |