Skip to content

Commit

Permalink
Even more tolerance.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshier committed Aug 4, 2023
1 parent 0b95d21 commit d278600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/UIImageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class UIImageTestCase: BaseTestCase {

XCTAssertTrue(scaledAppleImage.af.isEqualToImage(expectedAppleImage, withinTolerance: 53), "scaled apple image pixels do not match")
XCTAssertTrue(scaledPirateImage.af.isEqualToImage(expectedPirateImage), "scaled pirate image pixels do not match")
XCTAssertTrue(scaledRainbowImage.af.isEqualToImage(expectedRainbowImage, withinTolerance: 156), "scaled rainbow image pixels do not match")
XCTAssertTrue(scaledRainbowImage.af.isEqualToImage(expectedRainbowImage, withinTolerance: 157), "scaled rainbow image pixels do not match")
XCTAssertTrue(scaledUnicornImage.af.isEqualToImage(expectedUnicornImage, withinTolerance: 26), "scaled unicorn image pixels do not match")

XCTAssertEqual(scaledAppleImage.scale, CGFloat(scale), "image scale should be equal to screen scale")
Expand Down

0 comments on commit d278600

Please sign in to comment.