From b6bb688199abc342a6e85f80859c8cbb5a41b58a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 23 Jan 2023 20:34:03 +0100 Subject: Add some tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libglitter_get_colour_space_conversion_matrix_double.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libglitter_get_colour_space_conversion_matrix_double.c') diff --git a/libglitter_get_colour_space_conversion_matrix_double.c b/libglitter_get_colour_space_conversion_matrix_double.c index e0f6aa1..285f625 100644 --- a/libglitter_get_colour_space_conversion_matrix_double.c +++ b/libglitter_get_colour_space_conversion_matrix_double.c @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ #include "common.h" +#ifndef TEST + #define X(x, y) ((x) / (y)) #define Z(x, y) ((1 - (x)) / (y) - 1) @@ -96,3 +98,16 @@ libglitter_get_colour_space_conversion_matrix_double(double matrix[3][3], double matrix[0][2] = z1, matrix[1][2] = z2, matrix[2][2] = z3; } } + + +#else + + +int +main(void) +{ + return 0; /* TODO add test */ +} + + +#endif -- cgit v1.2.3-70-g09d2