From 47f532b80e51a00209cad2a8d848aa21aeebc9e9 Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Wed, 8 Mar 2023 08:10:25 +0100 Subject: [PATCH] Apply suggestions from code review --- .../Formats/Tiff/TiffDecoderTests.cs | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs index 34ce4c79ce..72b87bcf02 100644 --- a/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs @@ -364,13 +364,6 @@ public class TiffDecoderTests : TiffDecoderBaseTester public void TiffDecoder_CanDecode_32Bit_WithAssociatedAlpha(TestImageProvider provider) where TPixel : unmanaged, IPixel { - // if (TestEnvironment.IsMacOS) - // { - // // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though. - // using Image image = provider.GetImage(TiffDecoder.Instance); - // image.DebugSave(provider); - // return; - // } // Note: Using tolerant comparer here, because there is a small difference to the reference decoder probably due to floating point rounding issues. TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.004F); @@ -404,13 +397,6 @@ public class TiffDecoderTests : TiffDecoderBaseTester public void TiffDecoder_CanDecode_40Bit_WithAssociatedAlpha(TestImageProvider provider) where TPixel : unmanaged, IPixel { - // if (TestEnvironment.IsMacOS) - // { - // // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though. - // using Image image = provider.GetImage(TiffDecoder.Instance); - // image.DebugSave(provider); - // return; - // } TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.247F); } @@ -442,13 +428,6 @@ public class TiffDecoderTests : TiffDecoderBaseTester public void TiffDecoder_CanDecode_48Bit_WithAssociatedAlpha(TestImageProvider provider) where TPixel : unmanaged, IPixel { - // if (TestEnvironment.IsMacOS) - // { - // // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though. - // using Image image = provider.GetImage(TiffDecoder.Instance); - // image.DebugSave(provider); - // return; - // } TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.118F); } @@ -471,13 +450,6 @@ public class TiffDecoderTests : TiffDecoderBaseTester public void TiffDecoder_CanDecode_56Bit_WithAssociatedAlpha(TestImageProvider provider) where TPixel : unmanaged, IPixel { - // if (TestEnvironment.IsMacOS) - // { - // // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though. - // using Image image = provider.GetImage(TiffDecoder.Instance); - // image.DebugSave(provider); - // return; - // } TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.075F); }