Browse Source

Fix failing MatrixCalculator test

pull/1567/head
Brian Popow 5 years ago
parent
commit
759f053ac9
  1. 8
      tests/ImageSharp.Tests/TestDataIcc/Conversion/IccConversionDataMatrix.cs

8
tests/ImageSharp.Tests/TestDataIcc/Conversion/IccConversionDataMatrix.cs

@ -7,6 +7,8 @@ namespace SixLabors.ImageSharp.Tests.TestDataIcc.Conversion
{
public class IccConversionDataMatrix
{
private static readonly Vector3 Vector3Zero = new Vector3(0.0f, 0.0f, 0.0f);
public static float[,] Matrix3x3Random =
{
{ 0.1f, 0.2f, 0.3f },
@ -23,11 +25,11 @@ namespace SixLabors.ImageSharp.Tests.TestDataIcc.Conversion
public static object[][] MatrixConversionTestData =
{
new object[] { CreateMatrix(Matrix3x3Identity), Vector3.Zero, new Vector4(0.5f, 0.5f, 0.5f, 0), new Vector4(0.5f, 0.5f, 0.5f, 0) },
new object[] { CreateMatrix(Matrix3x3Identity), Vector3Zero, new Vector4(0.5f, 0.5f, 0.5f, 0), new Vector4(0.5f, 0.5f, 0.5f, 0) },
new object[] { CreateMatrix(Matrix3x3Identity), new Vector3(0.2f, 0.2f, 0.2f), new Vector4(0.5f, 0.5f, 0.5f, 0), new Vector4(0.7f, 0.7f, 0.7f, 0) },
new object[] { CreateMatrix(Matrix3x3Random), Vector3.Zero, new Vector4(0.5f, 0.5f, 0.5f, 0), new Vector4(0.6f, 0.75f, 0.9f, 0) },
new object[] { CreateMatrix(Matrix3x3Random), Vector3Zero, new Vector4(0.5f, 0.5f, 0.5f, 0), new Vector4(0.6f, 0.75f, 0.9f, 0) },
new object[] { CreateMatrix(Matrix3x3Random), new Vector3(0.1f, 0.2f, 0.3f), new Vector4(0.5f, 0.5f, 0.5f, 0), new Vector4(0.7f, 0.95f, 1.2f, 0) },
new object[] { CreateMatrix(Matrix3x3Random), Vector3.Zero, new Vector4(0.2f, 0.4f, 0.7f, 0), new Vector4(0.67f, 0.8f, 0.93f, 0) },
new object[] { CreateMatrix(Matrix3x3Random), Vector3Zero, new Vector4(0.2f, 0.4f, 0.7f, 0), new Vector4(0.67f, 0.8f, 0.93f, 0) },
new object[] { CreateMatrix(Matrix3x3Random), new Vector3(0.1f, 0.2f, 0.3f), new Vector4(0.2f, 0.4f, 0.7f, 0), new Vector4(0.77f, 1, 1.23f, 0) },
};

Loading…
Cancel
Save