diff options
Diffstat (limited to 'test/common/matrix.c')
-rw-r--r-- | test/common/matrix.c | 21 |
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 | |||
4 | static 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 | |||
18 | int main(int argc, char **argv) { | ||
19 | test_matrix_int_det(); | ||
20 | return 0; | ||
21 | } | ||