X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=dither_effect_test.cpp;h=bdba1212c76eaca680e3eabe6763cc6831c1b140;hp=81f6a2402d6d677e25c2e22727308ead45c491fd;hb=e22b57d30085d193da7829e0bc082ad1a310963e;hpb=ff9e68a3f5abb179bd7bf9fb84df48327f148583 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); }