Skip to content

Commit

Permalink
Corrected unit tests due to changes in ImageMagick.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 22, 2019
1 parent ea6c24b commit 846b844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/Magick.NET.Tests/Shared/MagickImageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ public void Test_Emboss()
ColorAssert.AreEqual(new MagickColor("#ffff597e4397"), image, 325, 175);
ColorAssert.AreEqual(new MagickColor("#431f43f0ffff"), image, 99, 270);
#elif Q16HDRI
ColorAssert.AreEqual(new MagickColor("#ffff59624391"), image, 325, 175);
ColorAssert.AreEqual(new MagickColor("#431843e8ffff"), image, 99, 270);
ColorAssert.AreEqual(new MagickColor("#ffff59664396"), image, 325, 175);
ColorAssert.AreEqual(new MagickColor("#431c43edffff"), image, 99, 270);
#else
#error Not implemented!
#endif
Expand Down Expand Up @@ -3185,7 +3185,7 @@ public void Test_UnsharpMask()
#if Q8 || Q16
Assert.AreEqual(0.06476, original.Compare(image, ErrorMetric.RootMeanSquared), 0.00002);
#elif Q16HDRI
Assert.AreEqual(0.10234, original.Compare(image, ErrorMetric.RootMeanSquared), 0.00001);
Assert.AreEqual(0.08438, original.Compare(image, ErrorMetric.RootMeanSquared), 0.00001);
#else
#error Not implemented!
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ public void ShouldTrimTheBackgroundWithThePercentage()
image.Rotate(10);

image.Trim(new Percentage(5));
#if Q16HDRI
Assert.AreEqual(560, image.Width);
Assert.AreEqual(320, image.Height);
#else
Assert.AreEqual(558, image.Width);
Assert.AreEqual(318, image.Height);
#endif
}
}
}
Expand Down

0 comments on commit 846b844

Please sign in to comment.