]> git.sesse.net Git - movit/commitdiff
Loosen up a boundary in DitherEffectTest by 10%.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 21:44:24 +0000 (22:44 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 21:44:24 +0000 (22:44 +0100)
Seemingly needed on my nVidia machine with the newest drivers.

dither_effect_test.cpp

index 81f6a2402d6d677e25c2e22727308ead45c491fd..bdba1212c76eaca680e3eabe6763cc6831c1b140 100644 (file)
@@ -50,5 +50,5 @@ TEST(DitherEffectTest, SinusoidBelowOneLevelComesThrough) {
                sum += 2.0 * (int(out_data[i]) - 0.2*255.0) * sin(i * frequency);
        }
 
                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);
 }
 }