From 1cd8656b468df3857878c0f356fbf5d493fc420c Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 21 Apr 2018 22:43:25 +0200 Subject: [PATCH] #542: use bigger files for the tests to "hide" rounding issues: The current implementation lacks accurrancy and prefers to be fast. For usual color gradients that shouldn't matter: They're quite smooth, for the black-white gradient on very small length's it's easy to spot these rounding errors as they affect whole pixels one can count manually. --- tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs b/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs index 89ea8c1fe7..caece97b9c 100644 --- a/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs +++ b/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs @@ -87,7 +87,7 @@ namespace SixLabors.ImageSharp.Tests.Drawing public void LinearGradientsWithDoubledStopsProduceDashedPatterns( float[] pattern) { - int width = 20; + int width = 200; int height = 10; // ensure the input data is valid