Browse Source

Log expected ICC conversion output earlier

pull/1567/head
Wacton 10 months ago
parent
commit
131c2cda23
  1. 4
      tests/ImageSharp.Tests/ColorProfiles/Icc/ColorProfileConverterTests.Icc.cs

4
tests/ImageSharp.Tests/ColorProfiles/Icc/ColorProfileConverterTests.Icc.cs

@ -47,9 +47,9 @@ public class ColorProfileConverterTests(ITestOutputHelper testOutputHelper)
foreach (float[] input in inputs)
{
double[] expectedTargetValues = GetExpectedTargetValues(sourceProfile, targetProfile, input);
Vector4 actualTargetValues = GetActualTargetValues(input, sourceProfile, targetProfile);
testOutputHelper.WriteLine($"Input {string.Join(", ", input)} · Expected output {string.Join(", ", expectedTargetValues)}");
Vector4 actualTargetValues = GetActualTargetValues(input, sourceProfile, targetProfile);
for (int i = 0; i < expectedTargetValues.Length; i++)
{
Assert.Equal(expectedTargetValues[i], actualTargetValues[i], tolerance);

Loading…
Cancel
Save