Skip to content

Commit 0e8714e

Browse files
committed
SixLabors#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.
1 parent f89f184 commit 0e8714e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void HorizontalLinearGradientBrushReturnsUnicolorColumns()
8787
public void LinearGradientsWithDoubledStopsProduceDashedPatterns(
8888
float[] pattern)
8989
{
90-
int width = 20;
90+
int width = 200;
9191
int height = 10;
9292

9393
// ensure the input data is valid

0 commit comments

Comments
 (0)