From 0dd0b5cd83ab441466e5567186a99d7183c4abc4 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 12 Apr 2018 10:40:07 +1000 Subject: [PATCH] Unskip test --- .../Formats/Jpg/SpectralJpegTests.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs index 6816b84656..f1ec4af8be 100644 --- a/tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs +++ b/tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs @@ -31,7 +31,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg TestImages.Jpeg.Baseline.MultiScanBaselineCMYK }; - public static readonly string[] ProgressiveTestJpegs = + public static readonly string[] ProgressiveTestJpegs = { TestImages.Jpeg.Progressive.Fb, TestImages.Jpeg.Progressive.Progress, TestImages.Jpeg.Progressive.Festzug, TestImages.Jpeg.Progressive.Bad.BadEOF, @@ -39,7 +39,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg }; public static readonly string[] AllTestJpegs = BaselineTestJpegs.Concat(ProgressiveTestJpegs).ToArray(); - + [Theory] [WithFileCollection(nameof(AllTestJpegs), PixelTypes.Rgba32)] public void PdfJsDecoder_ParseStream_SaveSpectralResult(TestImageProvider provider) @@ -94,7 +94,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg double averageDifference = 0; double totalDifference = 0; - double tolerance = 0; + double tolerance = 0; this.Output.WriteLine("*** Differences ***"); for (int i = 0; i < componentCount; i++) @@ -116,11 +116,11 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg this.Output.WriteLine($"AVERAGE: {averageDifference}"); this.Output.WriteLine($"TOTAL: {totalDifference}"); this.Output.WriteLine($"TOLERANCE = totalNumOfBlocks / 64 = {tolerance}"); - + Assert.True(totalDifference < tolerance); } - [Theory(Skip = "Debug/Comparison only")] + [Theory] [WithFileCollection(nameof(AllTestJpegs), PixelTypes.Rgba32)] public void VerifySpectralCorrectness_PdfJs(TestImageProvider provider) where TPixel : struct, IPixel @@ -138,7 +138,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg { decoder.ParseStream(ms); var imageSharpData = LibJpegTools.SpectralData.LoadFromImageSharpDecoder(decoder); - + this.VerifySpectralCorrectness(provider, imageSharpData); } }