"...model_executor/git@developer.sourcefind.cn:norm/vllm.git" did not exist on "9f88db35da012544a9cd9450c68b8df2e6509b92"
Commit 32e1d0b6 authored by Davis King's avatar Davis King
Browse files

Added more tests

parent ed3c2522
...@@ -433,6 +433,29 @@ namespace ...@@ -433,6 +433,29 @@ namespace
DLIB_TEST(get_pixel_intensity(p_rgb) == 0); DLIB_TEST(get_pixel_intensity(p_rgb) == 0);
DLIB_TEST(get_pixel_intensity(p_gray16) == 0); DLIB_TEST(get_pixel_intensity(p_gray16) == 0);
p_rgb.red = 100;
p_rgb.green = 100;
p_rgb.blue = 100;
DLIB_TEST(get_pixel_intensity(p_rgb) == 100);
p_rgb.red = 1;
p_rgb.green = 2;
p_rgb.blue = 3;
DLIB_TEST(get_pixel_intensity(p_rgb) == 2);
p_rgba.alpha = 100;
p_rgba.red = 100;
p_rgba.green = 100;
p_rgba.blue = 100;
DLIB_TEST(get_pixel_intensity(p_rgba) == 100);
p_rgba.red = 1;
p_rgba.green = 2;
p_rgba.blue = 3;
p_rgba.alpha = 0;
DLIB_TEST(get_pixel_intensity(p_rgba) == 2);
p_hsi.h = 123;
p_hsi.s = 100;
p_hsi.i = 84;
DLIB_TEST(get_pixel_intensity(p_hsi) == 84);
p_float = 54.25; p_float = 54.25;
DLIB_TEST(get_pixel_intensity(p_float) == 54.25); DLIB_TEST(get_pixel_intensity(p_float) == 54.25);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment