From 38195a70192301e7df5b69bf2266a04a0b90a532 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 9 Jan 2018 16:14:18 +0100 Subject: Update report, add authorship to C files Signed-off-by: pacien --- test/common/geom.c | 7 +++++++ test/morpher/matrix.c | 7 +++++++ test/morpher/quadrilateral.c | 7 +++++++ test/morpher/trianglemap.c | 7 +++++++ test/painter/color.c | 7 +++++++ test/painter/rasterizer.c | 7 +++++++ 6 files changed, 42 insertions(+) (limited to 'test') 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 @@ #include "common/geom.h" #include +/** + * File: geom.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static void test_square_area() { assert(square_area(v(0, 0), v(10, 0), v(10, 10)) == 100); assert(square_area(v(0, 0), v(0, 10), v(10, 10)) == -100); diff --git a/test/morpher/matrix.c b/test/morpher/matrix.c index 0c96fab..42bb34b 100644 --- a/test/morpher/matrix.c +++ b/test/morpher/matrix.c @@ -1,6 +1,13 @@ #include "morpher/matrix.h" #include +/** + * File: matrix.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static void test_matrix_int_det2() { assert(matrix_int_det2(5, 7, 2, 3) == 1); diff --git a/test/morpher/quadrilateral.c b/test/morpher/quadrilateral.c index c632b82..b2c9a21 100644 --- a/test/morpher/quadrilateral.c +++ b/test/morpher/quadrilateral.c @@ -2,6 +2,13 @@ #include #include +/** + * File: quadrilateral.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static inline bool neighbors_equals(TriangleMap *neighbors[], TriangleMap *n1, TriangleMap *n2, TriangleMap *n3) { return neighbors[0] == n1 && neighbors[1] == n2 && neighbors[2] == n3; diff --git a/test/morpher/trianglemap.c b/test/morpher/trianglemap.c index 986e406..55f5746 100644 --- a/test/morpher/trianglemap.c +++ b/test/morpher/trianglemap.c @@ -3,6 +3,13 @@ #include #include "morpher/quadrilateral.h" +/** + * File: trianglemap.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static inline bool neighbors_equals(TriangleMap *neighbors[], TriangleMap *n1, TriangleMap *n2, TriangleMap *n3) { return neighbors[0] == n1 && neighbors[1] == n2 && neighbors[2] == n3; diff --git a/test/painter/color.c b/test/painter/color.c index bdfe9b3..b1b1501 100644 --- a/test/painter/color.c +++ b/test/painter/color.c @@ -1,6 +1,13 @@ #include "painter/color.h" #include +/** + * File: color.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static void test_color_blend() { Color a = {{1, 10, 100, 200}}, b = {{100, 1, 200, 10}}; assert(color_equals(color_blend(a, b, TIME_ORIGIN), a)); diff --git a/test/painter/rasterizer.c b/test/painter/rasterizer.c index 99a70b4..a16fa19 100644 --- a/test/painter/rasterizer.c +++ b/test/painter/rasterizer.c @@ -1,6 +1,13 @@ #include "painter/rasterizer.h" #include +/** + * File: rasterizer.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static void test_rasterize() { Morphing *morphing; Canvas *origin, *target, *result; -- cgit v1.2.3