summaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
authorpacien2017-12-22 01:53:55 +0100
committerpacien2017-12-22 01:55:25 +0100
commita767c658cb603de9ec9f0577627b9b32cbf82b2b (patch)
tree084b023cf34a60e4cbbc79053723bf23c96fa678 /test/common
parent7af561eccb7b4210e4e8233d53876b7af5607234 (diff)
downloadmorpher-a767c658cb603de9ec9f0577627b9b32cbf82b2b.tar.gz
Simplify and add geom. and matrix utility functions
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'test/common')
-rw-r--r--test/common/matrix.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/common/matrix.c b/test/common/matrix.c
deleted file mode 100644
index 6d85304..0000000
--- a/test/common/matrix.c
+++ /dev/null
@@ -1,21 +0,0 @@
1#include "common/matrix.h"
2#include <assert.h>
3
4static void test_matrix_int_det() {
5 IntSquareMatrix matrix;
6 IntVector *elements[3];
7
8 matrix_reshape(elements, (IntVector[]) {-2, +2, -3,
9 -1, +1, +3,
10 +2, +0, -1}, 3, 3);
11
12 matrix.dim = 3;
13 matrix.elements = elements;
14
15 assert(matrix_int_det(&matrix) == 18);
16}
17
18int main(int argc, char **argv) {
19 test_matrix_int_det();
20 return 0;
21}