summaryrefslogtreecommitdiff
path: root/test/common/geom.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/geom.c')
-rw-r--r--test/common/geom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/common/geom.c b/test/common/geom.c
index f05e0a1..1775315 100644
--- a/test/common/geom.c
+++ b/test/common/geom.c
@@ -1,6 +1,13 @@
1#include "common/geom.h" 1#include "common/geom.h"
2#include <assert.h> 2#include <assert.h>
3 3
4/**
5 * File: geom.c
6 *
7 * Author:
8 * Pacien TRAN-GIRARD
9 */
10
4static void test_square_area() { 11static void test_square_area() {
5 assert(square_area(v(0, 0), v(10, 0), v(10, 10)) == 100); 12 assert(square_area(v(0, 0), v(10, 0), v(10, 10)) == 100);
6 assert(square_area(v(0, 0), v(0, 10), v(10, 10)) == -100); 13 assert(square_area(v(0, 0), v(0, 10), v(10, 10)) == -100);