Skip to content

Commit 47f532b

Browse files
Apply suggestions from code review
1 parent 075e8a4 commit 47f532b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,6 @@ public void TiffDecoder_CanDecode_32Bit_WithUnassociatedAlpha<TPixel>(TestImageP
364364
public void TiffDecoder_CanDecode_32Bit_WithAssociatedAlpha<TPixel>(TestImageProvider<TPixel> provider)
365365
where TPixel : unmanaged, IPixel<TPixel>
366366
{
367-
// if (TestEnvironment.IsMacOS)
368-
// {
369-
// // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though.
370-
// using Image<TPixel> image = provider.GetImage(TiffDecoder.Instance);
371-
// image.DebugSave(provider);
372-
// return;
373-
// }
374367

375368
// Note: Using tolerant comparer here, because there is a small difference to the reference decoder probably due to floating point rounding issues.
376369
TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.004F);
@@ -404,13 +397,6 @@ public void TiffDecoder_CanDecode_40Bit_WithUnassociatedAlpha<TPixel>(TestImageP
404397
public void TiffDecoder_CanDecode_40Bit_WithAssociatedAlpha<TPixel>(TestImageProvider<TPixel> provider)
405398
where TPixel : unmanaged, IPixel<TPixel>
406399
{
407-
// if (TestEnvironment.IsMacOS)
408-
// {
409-
// // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though.
410-
// using Image<TPixel> image = provider.GetImage(TiffDecoder.Instance);
411-
// image.DebugSave(provider);
412-
// return;
413-
// }
414400

415401
TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.247F);
416402
}
@@ -442,13 +428,6 @@ public void TiffDecoder_CanDecode_48Bit_WithUnassociatedAlpha<TPixel>(TestImageP
442428
public void TiffDecoder_CanDecode_48Bit_WithAssociatedAlpha<TPixel>(TestImageProvider<TPixel> provider)
443429
where TPixel : unmanaged, IPixel<TPixel>
444430
{
445-
// if (TestEnvironment.IsMacOS)
446-
// {
447-
// // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though.
448-
// using Image<TPixel> image = provider.GetImage(TiffDecoder.Instance);
449-
// image.DebugSave(provider);
450-
// return;
451-
// }
452431

453432
TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.118F);
454433
}
@@ -471,13 +450,6 @@ public void TiffDecoder_CanDecode_56Bit_WithUnassociatedAlpha<TPixel>(TestImageP
471450
public void TiffDecoder_CanDecode_56Bit_WithAssociatedAlpha<TPixel>(TestImageProvider<TPixel> provider)
472451
where TPixel : unmanaged, IPixel<TPixel>
473452
{
474-
// if (TestEnvironment.IsMacOS)
475-
// {
476-
// // Only debug save on OSX: For some reason the reference image has a difference of 50%. The imagesharp output file looks ok though.
477-
// using Image<TPixel> image = provider.GetImage(TiffDecoder.Instance);
478-
// image.DebugSave(provider);
479-
// return;
480-
// }
481453

482454
TestTiffDecoder(provider, useExactComparer: false, compareTolerance: 0.075F);
483455
}

0 commit comments

Comments
 (0)