Skip to content

Commit 4a42893

Browse files
Use tolerant comparer for .NET FX
1 parent f5000de commit 4a42893

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ public void TiffDecoder_CanDecode_YCbCr_24Bit<TPixel>(TestImageProvider<TPixel>
315315
// converting the pixel data from Magick.NET to our format with YCbCr?
316316
using Image<TPixel> image = provider.GetImage();
317317
image.DebugSave(provider);
318+
319+
#if NETCOREAPP
318320
image.CompareToReferenceOutput(ImageComparer.Exact, provider);
321+
#else
322+
image.CompareToReferenceOutput(TolerantImageComparer.TolerantPercentage(0.0002F), provider);
323+
#endif
319324
}
320325

321326
[Theory]

0 commit comments

Comments
 (0)