From 379dbb3ed97c214b2f045f5efd69a893089d4a40 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Tue, 15 Nov 2016 01:34:57 +0100 Subject: [PATCH] test class cleanup --- .../Formats/Jpg/Block8x8FTests.cs | 27 +------------------ .../Formats/Jpg/JpegTests.cs | 2 +- .../Formats/Jpg/ReferenceImplementations.cs | 4 +-- 3 files changed, 4 insertions(+), 29 deletions(-) diff --git a/tests/ImageSharp.Tests46/Formats/Jpg/Block8x8FTests.cs b/tests/ImageSharp.Tests46/Formats/Jpg/Block8x8FTests.cs index 814eafd87..07b926f08 100644 --- a/tests/ImageSharp.Tests46/Formats/Jpg/Block8x8FTests.cs +++ b/tests/ImageSharp.Tests46/Formats/Jpg/Block8x8FTests.cs @@ -207,32 +207,7 @@ namespace ImageSharp.Tests.Formats.Jpg Assert.Equal(expected, actual); } - - [Fact] - public void TransposeInto_CodeGeneratorTest() - { - char[] coordz = new[] {'X', 'Y', 'Z', 'W'}; - StringBuilder bld = new StringBuilder(); - - for (int i = 0; i < 8; i++) - { - char destCoord = coordz[i%4]; - char destSide = (i/4)%2 == 0 ? 'L' : 'R'; - - for (int j = 0; j < 8; j++) - { - char srcCoord = coordz[j%4]; - char srcSide = (j/4)%2 == 0 ? 'L' : 'R'; - - string expression = $"d.V{j}{destSide}.{destCoord} = V{i}{srcSide}.{srcCoord}; "; - bld.Append(expression); - } - bld.AppendLine(); - } - - Output.WriteLine(bld.ToString()); - } - + [Fact] public unsafe void TransposeInto_WithPointers() diff --git a/tests/ImageSharp.Tests46/Formats/Jpg/JpegTests.cs b/tests/ImageSharp.Tests46/Formats/Jpg/JpegTests.cs index 1177b57ab..57bce1504 100644 --- a/tests/ImageSharp.Tests46/Formats/Jpg/JpegTests.cs +++ b/tests/ImageSharp.Tests46/Formats/Jpg/JpegTests.cs @@ -63,7 +63,7 @@ namespace ImageSharp.Tests.Formats.Jpg } public static IEnumerable AllBmpFiles - => TestImages.Bmp.All.Select(fn => new object[] {fn}); + => TestImages.Jpeg.All.Select(fn => new object[] {fn}); [Theory] [MemberData(nameof(AllBmpFiles))] diff --git a/tests/ImageSharp.Tests46/Formats/Jpg/ReferenceImplementations.cs b/tests/ImageSharp.Tests46/Formats/Jpg/ReferenceImplementations.cs index 8cbc267af..cf965e1ba 100644 --- a/tests/ImageSharp.Tests46/Formats/Jpg/ReferenceImplementations.cs +++ b/tests/ImageSharp.Tests46/Formats/Jpg/ReferenceImplementations.cs @@ -9,10 +9,10 @@ using ImageSharp.Formats; namespace ImageSharp.Tests.Formats.Jpg { /// - /// This class contains simplified (unefficient) reference implementations so we can verify actual ones in unit tests + /// This class contains simplified (unefficient) reference implementations to produce verification data for unit tests /// DCT code Ported from https://github.com/norishigefukushima/dct_simd /// - public static class ReferenceImplementations + internal static class ReferenceImplementations { internal static void Transpose8x8(MutableSpan data) {