소스 검색

Tests using tuples require default value

Rich Lowenberg 10 년 전
부모
커밋
b3c09a2ed2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      CryptoSwiftTests/HashTests.swift

+ 2 - 2
CryptoSwiftTests/HashTests.swift

@@ -119,11 +119,11 @@ final class CryptoSwiftTests: XCTestCase {
     
     func testCRC32() {
         let data:NSData = NSData(bytes: [49, 50, 51] as [UInt8], length: 3)
-        if let crc = data.crc32() {
+        if let crc = data.crc32(nil) {
             XCTAssertEqual(crc.toHexString(), "884863d2", "CRC32 calculation failed");
         }
         
-        XCTAssertEqual("".crc32(), "00000000", "CRC32 calculation failed");
+        XCTAssertEqual("".crc32(nil), "00000000", "CRC32 calculation failed");
     }
     
     func testCRC16() {