diff --git a/test/Test_Core.ml b/test/Test_Core.ml index a739adf5..c25f38bc 100644 --- a/test/Test_Core.ml +++ b/test/Test_Core.ml @@ -8,8 +8,8 @@ let test_antialiasing () = let diffPixels, diffPercentage, _ = PNG_Diff.compare img1 img2 ~antialiasing:true () in - check int "diffPixels" 46 diffPixels; - check (float 0.001) "diffPercentage" 0.115 diffPercentage + check int "diffPixels" 38 diffPixels; + check (float 0.001) "diffPercentage" 0.095 diffPercentage let test_different_sized_aa_images () = let img1 = Png.IO.loadImage "test-images/aa/antialiasing-on.png" in @@ -17,8 +17,8 @@ let test_different_sized_aa_images () = let diffPixels, diffPercentage, _ = PNG_Diff.compare img1 img2 ~antialiasing:true () in - check int "diffPixels" 417 diffPixels; - check (float 0.01) "diffPercentage" 1.0425 diffPercentage + check int "diffPixels" 0 diffPixels; + check (float 0.01) "diffPercentage" 0.0 diffPercentage let test_threshold () = let img1 = Png.IO.loadImage "test-images/png/orange.png" in