From d68b92db8557f1aed608106e5d6ae8826ce3afac Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 23 Aug 2024 10:23:09 +0800 Subject: [PATCH] Update the test case --- Tests/Tests/SDImageCoderTests.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Tests/SDImageCoderTests.m b/Tests/Tests/SDImageCoderTests.m index 6fe24aff..126c0e4e 100644 --- a/Tests/Tests/SDImageCoderTests.m +++ b/Tests/Tests/SDImageCoderTests.m @@ -562,12 +562,12 @@ UIImage *systemImage = [[UIImage alloc] initWithData:data]; #if SD_UIKIT - orientation = image.imageOrientation; + orientation = systemImage.imageOrientation; expect(orientation).equal(UIImageOrientationDown); #endif - // Check bitmap color equal, between our usage of ImageIO decoder and Apple system inernal - // So, this means, even Apple has bugs, we have bugs too :) + // Check bitmap color equal, between our usage of ImageIO decoder and Apple system API behavior + // So, this means, if Apple has bugs, we have bugs too, it's not our fault :) UIColor *testColor1 = [image sd_colorAtPoint:CGPointMake(1, 1)]; UIColor *testColor2 = [systemImage sd_colorAtPoint:CGPointMake(1, 1)]; CGFloat r1, g1, b1, a1;