diff options
Diffstat (limited to 'test/painter')
-rw-r--r-- | test/painter/color.c | 7 | ||||
-rw-r--r-- | test/painter/rasterizer.c | 7 |
2 files changed, 14 insertions, 0 deletions
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 @@ | |||
1 | #include "painter/color.h" | 1 | #include "painter/color.h" |
2 | #include <assert.h> | 2 | #include <assert.h> |
3 | 3 | ||
4 | /** | ||
5 | * File: color.c | ||
6 | * | ||
7 | * Author: | ||
8 | * Pacien TRAN-GIRARD | ||
9 | */ | ||
10 | |||
4 | static void test_color_blend() { | 11 | static void test_color_blend() { |
5 | Color a = {{1, 10, 100, 200}}, b = {{100, 1, 200, 10}}; | 12 | Color a = {{1, 10, 100, 200}}, b = {{100, 1, 200, 10}}; |
6 | assert(color_equals(color_blend(a, b, TIME_ORIGIN), a)); | 13 | 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 @@ | |||
1 | #include "painter/rasterizer.h" | 1 | #include "painter/rasterizer.h" |
2 | #include <assert.h> | 2 | #include <assert.h> |
3 | 3 | ||
4 | /** | ||
5 | * File: rasterizer.c | ||
6 | * | ||
7 | * Author: | ||
8 | * Pacien TRAN-GIRARD | ||
9 | */ | ||
10 | |||
4 | static void test_rasterize() { | 11 | static void test_rasterize() { |
5 | Morphing *morphing; | 12 | Morphing *morphing; |
6 | Canvas *origin, *target, *result; | 13 | Canvas *origin, *target, *result; |