diff options
Diffstat (limited to 'tests/ColorTest.cpp')
-rw-r--r-- | tests/ColorTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ColorTest.cpp b/tests/ColorTest.cpp index c10897f173..ef4b0b6a48 100644 --- a/tests/ColorTest.cpp +++ b/tests/ColorTest.cpp @@ -14,6 +14,11 @@ static void test_premul(skiatest::Reporter* reporter) { // we can't promise that c0 == c1, since c0 -> p0 is a many to one // function, however, we can promise that p0 -> c1 -> p1 : p0 == p1 REPORTER_ASSERT(reporter, p0 == p1); + + { + int ax = SkMulDiv255Ceiling(x, a); + REPORTER_ASSERT(reporter, ax <= a); + } } } } |