X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain_test.cpp;h=adf832ac61e4ad445f115a72b83f324352f78812;hp=a9c06bad0e4f0c2bee5da217aed37f0a0b9b382e;hb=9c6b86affb570a2e2d18c6da795c359da393f9a3;hpb=9a945c3c5c62e0250015e69b5b091a849bd11c10 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