From 933bb466cea8ee71e7daf07fdd485a15cf8621a4 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 18 Dec 2020 11:35:46 +0000 Subject: [PATCH] Alter 32bit test environment accuracy check. --- .../PixelFormats/PixelOperations/PixelOperationsTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs b/tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs index ebb974777..a6596d988 100644 --- a/tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs +++ b/tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs @@ -1152,7 +1152,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations { Span expected = MemoryMarshal.Cast(this.ExpectedDestBuffer.AsSpan()); Span actual = MemoryMarshal.Cast(this.ActualDestBuffer.GetSpan()); - var comparer = new ApproximateFloatComparer(0.0001F); + var comparer = new ApproximateFloatComparer(TestEnvironment.Is64BitProcess ? 0.0001F : 0.001F); for (int i = 0; i < count; i++) { @@ -1163,7 +1163,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations { Span expected = this.ExpectedDestBuffer.AsSpan(); Span actual = this.ActualDestBuffer.GetSpan(); - var comparer = new ApproximateFloatComparer(0.0001F); + var comparer = new ApproximateFloatComparer(TestEnvironment.Is64BitProcess ? 0.0001F : 0.001F); for (int i = 0; i < count; i++) {