forked from enlightenment/efl
eina: added test case for matrix4 transpose function
Summary: Added test case for eina_matrix4_transpose function Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3279 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
a605bd8498
commit
b5e672aad8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue