Skip to content

Commit 5e22ddc

Browse files
committed
try being more tolerant in full framrwork
1 parent a764edb commit 5e22ddc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/ImageSharp.Drawing.Tests/Shapes/Scan/RasterizerExtensionsTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ public void AntialiasingIsAntialiased<TPixel>(TestImageProvider<TPixel> provider
4343
Origin = new PointF(0, 0)
4444
};
4545

46-
provider.RunValidatingProcessorTest(x => x
46+
var comparer = ImageComparer.TolerantPercentage(0.001f);
47+
#if !NETCOREAPP
48+
comparer = ImageComparer.TolerantPercentage(0.002f);
49+
#endif
50+
provider.RunValidatingProcessorTest(
51+
x => x
4752
.SetGraphicsOptions(o => o.Antialias = false)
48-
.DrawText(textOpt, "Hello, World!", Color.Black));
53+
.DrawText(textOpt, "Hello, World!", Color.Black),
54+
comparer: comparer);
4955
}
5056
}
5157
}

0 commit comments

Comments
 (0)