eina: add tests for eina_matrix4_inverse.
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 24 Jun 2015 16:58:00 +0000 (18:58 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 21 Aug 2015 14:40:31 +0000 (16:40 +0200)
src/tests/eina/eina_test_matrix.c

index 6808aad..fcee52f 100644 (file)
@@ -47,6 +47,9 @@ START_TEST(eina_matrix4)
    fail_if(!eina_matrix4_normalized(&n, &m));
    fail_if(eina_matrix4_type_get(&n) != EINA_MATRIX_TYPE_IDENTITY);
 
+   fail_if(!eina_matrix4_inverse(&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,