From 8d6b3a35c3f63d2bdd1545de971803dd957e4a9b Mon Sep 17 00:00:00 2001 From: Lode Date: Wed, 27 Sep 2017 00:20:46 +0200 Subject: fix wrong bit depth in unittest --- lodepng_unittest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lodepng_unittest.cpp b/lodepng_unittest.cpp index 5fb9c60..5d11b2d 100644 --- a/lodepng_unittest.cpp +++ b/lodepng_unittest.cpp @@ -762,7 +762,8 @@ void testColorConvert() colorConvertTest("1011010110110101", LCT_GREY, 16, "10110101", LCT_GREY, 8); //others - colorConvertTest("11111111 11111111 11111111 00000000 00000000 00000000", LCT_RGB, 1, "10", LCT_GREY, 1); + colorConvertTest("11111111 11111111 11111111 00000000 00000000 00000000", LCT_RGB, 8, "10", LCT_GREY, 1); + colorConvertTest("11111111 11111111 11111111 11111111 11111111 11111111 00000000 00000000 00000000 00000000 00000000 00000000", LCT_RGB, 16, "10", LCT_GREY, 1); } //This tests color conversions from any color model to any color model, with any bit depth -- cgit v1.2.3