aboutsummaryrefslogtreecommitdiff
path: root/test/lib/color.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/color.c')
-rw-r--r--test/lib/color.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/lib/color.c b/test/lib/color.c
index 69ce97b..e791d95 100644
--- a/test/lib/color.c
+++ b/test/lib/color.c
@@ -1,12 +1,12 @@
#include <test/lib/color.h>
-const uint8_t test_rgba[4] = {0,0,0,0};
-const uint8_t test_Rgba[4] = {1,0,0,0};
-const uint8_t test_rGba[4] = {0,1,0,0};
-const uint8_t test_rgBa[4] = {0,0,1,0};
-const uint8_t test_rgbA[4] = {0,0,0,1};
+const ImageData_t test_rgba[4] = {0,0,0,0};
+const ImageData_t test_Rgba[4] = {1,0,0,0};
+const ImageData_t test_rGba[4] = {0,1,0,0};
+const ImageData_t test_rgBa[4] = {0,0,1,0};
+const ImageData_t test_rgbA[4] = {0,0,0,1};
-bool_t test_color_zero(const uint8_t* color1, size_t channels, bool_t result)
+bool_t test_color_zero(const ImageData_t* color1, size_t channels, bool_t result)
{
bool_t fcall_result = color_zero(color1, channels);
if (fcall_result == result) {
@@ -15,7 +15,7 @@ bool_t test_color_zero(const uint8_t* color1, size_t channels, bool_t result)
return FALSE;
}
-void _TEST_color_zero(bool_t* result, uint16_t* test_count, uint16_t* test_pass)
+void _TEST_color_zero(bool_t* result, TestCount_t* test_count, TestCount_t* test_pass)
{
bool_t sub_result;
// Test 1: 1 channel zero color
@@ -73,7 +73,7 @@ void _TEST_color_zero(bool_t* result, uint16_t* test_count, uint16_t* test_pass)
TEST_RESULT("COLOR_ZERO",sub_result, *test_count, (*test_pass));
}
-bool_t test_color_equal(const uint8_t* color1, const uint8_t* color2, size_t channels, bool_t result)
+bool_t test_color_equal(const ImageData_t* color1, const ImageData_t* color2, size_t channels, bool_t result)
{
bool_t fcall_result = color_equal(color1, color2, channels);
if (fcall_result == result) {
@@ -82,7 +82,7 @@ bool_t test_color_equal(const uint8_t* color1, const uint8_t* color2, size_t cha
return FALSE;
}
-void _TEST_color_equal(bool_t* result, uint16_t* test_count, uint16_t* test_pass)
+void _TEST_color_equal(bool_t* result, TestCount_t* test_count, TestCount_t* test_pass)
{
bool_t sub_result;
// Test 1: 1 channel equal (zero)
@@ -161,8 +161,8 @@ void _TEST_color_equal(bool_t* result, uint16_t* test_count, uint16_t* test_pass
// Meta test function
bool_t TEST_lib_color()
{
- uint16_t test_count = 0;
- uint16_t test_pass = 0;
+ TestCount_t test_count = 0;
+ TestCount_t test_pass = 0;
bool_t result = TRUE;
// Testing color_zero