From: Steinar H. Gunderson Date: Tue, 23 Feb 2016 21:41:33 +0000 (+0100) Subject: Make the sRGB intermediate test slightly more stringent (so that e.g. 0.0 will not... X-Git-Tag: 1.4.0~18 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=009c7510df1ac1b70662b0085ebaf1a619dd761a;ds=sidebyside Make the sRGB intermediate test slightly more stringent (so that e.g. 0.0 will not work). --- diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index a9c06ba..adf832a 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -1315,6 +1315,8 @@ TEST(EffectChainTest, sRGBIntermediate) { EXPECT_GE(fabs(out_data[1] - data[1]), 1e-3) << "Expected sRGB not to be able to represent 0.5 exactly (got " << out_data[1] << ")"; + EXPECT_LT(fabs(out_data[1] - data[1]), 0.1f) + << "Expected sRGB to be able to represent 0.5 approximately (got " << out_data[1] << ")"; } } // namespace movit