Skip to content

Commit f3ba373

Browse files
Use tolerant comparer
1 parent 09ea9fe commit f3ba373

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ public void TiffDecoder_CanDecode_YccK_ICC<TPixel>(TestImageProvider<TPixel> pro
376376

377377
using Image<TPixel> image = provider.GetImage(TiffDecoder.Instance, options);
378378
image.DebugSave(provider);
379-
image.CompareToReferenceOutput(ImageComparer.Exact, provider);
379+
380+
// Linux reports a 0.0000% difference, so we use a tolerant comparer here.
381+
image.CompareToReferenceOutput(ImageComparer.TolerantPercentage(0.0001F), provider);
380382
}
381383

382384
[Theory]

0 commit comments

Comments
 (0)