diff --git a/Sources/String+MD5.swift b/Sources/String+MD5.swift index 3d0e3a886..1006384c0 100644 --- a/Sources/String+MD5.swift +++ b/Sources/String+MD5.swift @@ -163,10 +163,10 @@ class MD5: HashProtocol { } /** specifies the per-round shift amounts */ - private let shifts: [UInt32] = [7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, - 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, - 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, - 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21] + private let shifts: [UInt32] = [7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, + 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, + 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, + 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21] /** binary integer part of the sines of integers (Radians) */ private let sines: [UInt32] = [0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, diff --git a/Tests/KingfisherTests/KingfisherTestHelper.swift b/Tests/KingfisherTests/KingfisherTestHelper.swift index a4635ecae..9884cdad8 100644 --- a/Tests/KingfisherTests/KingfisherTestHelper.swift +++ b/Tests/KingfisherTests/KingfisherTestHelper.swift @@ -40,7 +40,7 @@ let testImageJEPGData = ImageJPEGRepresentation(testImage, 1.0)! let testImageGIFData = NSData(contentsOfFile: NSBundle(forClass: ImageExtensionTests.self).pathForResource("dancing-banana", ofType: "gif")!)! let testImageSingleFrameGIFData = NSData(contentsOfFile: NSBundle(forClass: ImageExtensionTests.self).pathForResource("single-frame", ofType: "gif")!)! -let testKeys = ["http://stackoverflow.com/questions/11251340/convert-image-to-base64-string-in-ios-swift","https://onevcat.com","http://onevcat.com/content/images/2014/May/200.jpg","http://onevcat.com/content/images/2014/May/200.jpg?fads#kj1asf"] +let testKeys = ["http://stackoverflow.com/questions/11251340/convert-image-to-base64-string-in-ios-swift", "https://onevcat.com", "http://onevcat.com/content/images/2014/May/200.jpg", "http://onevcat.com/content/images/2014/May/200.jpg?fads#kj1asf"] func == (left: Image, right: Image) -> Bool { return ImagePNGRepresentation(left) == ImagePNGRepresentation(right)