Skip to content

Commit

Permalink
Fixed unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 15, 2023
1 parent 40f1730 commit 2e0128a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tests/Magick.NET.Tests/MagickImageTests/TheModulateMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public void ShouldModulateImage()
ColorAssert.Equal(new MagickColor("#3e3e74"), image, 125, 70);
ColorAssert.Equal(new MagickColor("#a8a8a8"), image, 125, 40);
#else
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#72803da83da8", "#747a3eb83eb8")), image, 25, 70);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#0b2d0b2d0b2d", "#0b5f0b5f0b5f")), image, 25, 40);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#1ef3397a1ef3", "#1f7c3a781f7c")), image, 75, 70);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#592d592d592d", "#5ab75ab75ab7")), image, 75, 40);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#3da83da87280", "#3eb83eb8747a")), image, 125, 70);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#a5aea5aea5ae", "#a88ba88ba88b")), image, 125, 40);
ColorAssert.Equal(new MagickColor("#747a3eb83eb8"), image, 25, 70);
ColorAssert.Equal(new MagickColor("#0b5f0b5f0b5f"), image, 25, 40);
ColorAssert.Equal(new MagickColor("#1f7c3a781f7c"), image, 75, 70);
ColorAssert.Equal(new MagickColor("#5ab75ab75ab7"), image, 75, 40);
ColorAssert.Equal(new MagickColor("#3eb83eb8747a"), image, 125, 70);
ColorAssert.Equal(new MagickColor("#a88ba88ba88b"), image, 125, 40);
#endif
}
}
Expand Down
12 changes: 6 additions & 6 deletions tests/Magick.NET.Tests/MagickImageTests/TheSepiaToneMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public void ShouldApplySpecialEffect()
ColorAssert.Equal(new MagickColor("#522e00"), image, 394, 394);
ColorAssert.Equal(new MagickColor("#e4bb7c"), image, 477, 373);
#elif Q16
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#45be23e80000", "#475f24bf0000")), image, 243, 45);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#50852d680000", "#52672e770000")), image, 394, 394);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#e273b8c17a35", "#e5adbb627bf2")), image, 477, 373);
ColorAssert.Equal(new MagickColor("#475f24bf0000"), image, 243, 45);
ColorAssert.Equal(new MagickColor("#52672e770000"), image, 394, 394);
ColorAssert.Equal(new MagickColor("#e5adbb627bf2"), image, 477, 373);
#else
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#45be23e90001", "#475f24bf0000")), image, 243, 45);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#50862d690001", "#52672e770000")), image, 394, 394);
ColorAssert.Equal(new MagickColor(OpenCLValue.Get("#e274b8c17a35", "#e5adbb627bf2")), image, 477, 373);
ColorAssert.Equal(new MagickColor("#475f24bf0000"), image, 243, 45);
ColorAssert.Equal(new MagickColor("#52672e770000"), image, 394, 394);
ColorAssert.Equal(new MagickColor("#e5adbb627bf2"), image, 477, 373);
#endif
}
}
Expand Down

0 comments on commit 2e0128a

Please sign in to comment.