Skip to content

Commit

Permalink
Use tolerant comparer for .NET FX
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed May 25, 2022
1 parent f5000de commit 4a42893
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ public void TiffDecoder_CanDecode_YCbCr_24Bit<TPixel>(TestImageProvider<TPixel>
// converting the pixel data from Magick.NET to our format with YCbCr?
using Image<TPixel> image = provider.GetImage();
image.DebugSave(provider);

#if NETCOREAPP
image.CompareToReferenceOutput(ImageComparer.Exact, provider);
#else
image.CompareToReferenceOutput(TolerantImageComparer.TolerantPercentage(0.0002F), provider);
#endif
}

[Theory]
Expand Down

0 comments on commit 4a42893

Please sign in to comment.