From e22b57d30085d193da7829e0bc082ad1a310963e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 21 Jan 2013 22:44:24 +0100 Subject: [PATCH 1/1] Loosen up a boundary in DitherEffectTest by 10%. Seemingly needed on my nVidia machine with the newest drivers. --- dither_effect_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2