cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b5e672aad883143184e61efe4a9a0df1110e3be1

commit b5e672aad883143184e61efe4a9a0df1110e3be1
Author: Vivek Ellur <vivek.el...@samsung.com>
Date:   Mon Nov 9 16:16:05 2015 -0800

    eina: added test case for matrix4 transpose function
    
    Summary:
    Added test case for eina_matrix4_transpose function
    
    Signed-off-by: Vivek Ellur <vivek.el...@samsung.com>
    
    Reviewers: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D3279
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/tests/eina/eina_test_matrix.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/tests/eina/eina_test_matrix.c 
b/src/tests/eina/eina_test_matrix.c
index 11cc2c6..50323fb 100644
--- a/src/tests/eina/eina_test_matrix.c
+++ b/src/tests/eina/eina_test_matrix.c
@@ -167,6 +167,18 @@ START_TEST(eina_matrix4)
            wy != wz ||
            wz != 0);
 
+   eina_matrix4_values_set(&m,
+                           1, 2, 3, 4,
+                           5, 6, 7, 8,
+                           9, 10, 11, 12,
+                           13, 14, 15, 16);
+
+   eina_matrix4_transpose(&n, &m);
+   fail_if(n.xx != 1 || n.xy != 5 || n.xz != 9 || n.xw != 13 ||
+           n.yx != 2 || n.yy != 6 || n.yz != 10 || n.yw != 14 ||
+           n.zx != 3 || n.zy != 7 || n.zz != 11 || n.zw != 15 ||
+           n.wx != 4 || n.wy != 8 || n.wz != 12 || n.ww != 16);
+
    eina_shutdown();
 }
 END_TEST

-- 


Reply via email to