summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLode <lvandeve@gmail.com>2017-09-27 00:20:46 +0200
committerLode <lvandeve@gmail.com>2017-09-27 00:20:46 +0200
commit8d6b3a35c3f63d2bdd1545de971803dd957e4a9b (patch)
tree758f34fc57a0bac785724a8c1579f8fb5f14228a
parent70d38b84d9028e560dd89997b7bea0c4c721aa0c (diff)
fix wrong bit depth in unittest
-rw-r--r--lodepng_unittest.cpp3
1 files changed, 2 insertions, 1 deletions
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