From: Steinar H. Gunderson Date: Mon, 21 Jan 2013 21:44:24 +0000 (+0100) Subject: Loosen up a boundary in DitherEffectTest by 10%. X-Git-Tag: 1.0~149^2~3 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=e22b57d30085d193da7829e0bc082ad1a310963e Loosen up a boundary in DitherEffectTest by 10%. Seemingly needed on my nVidia machine with the newest drivers. --- diff --git a/dither_effect_test.cpp b/dither_effect_test.cpp index 81f6a24..bdba121 100644 --- a/dither_effect_test.cpp +++ b/dither_effect_test.cpp @@ -50,5 +50,5 @@ TEST(DitherEffectTest, SinusoidBelowOneLevelComesThrough) { sum += 2.0 * (int(out_data[i]) - 0.2*255.0) * sin(i * frequency); } - EXPECT_NEAR(amplitude, sum / (size * 255.0f), 1e-5); + EXPECT_NEAR(amplitude, sum / (size * 255.0f), 1.1e-5); }