Skip to content

Commit b3c09a2

Browse files
committed
Tests using tuples require default value
1 parent 4e47769 commit b3c09a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CryptoSwiftTests/HashTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ final class CryptoSwiftTests: XCTestCase {
119119

120120
func testCRC32() {
121121
let data:NSData = NSData(bytes: [49, 50, 51] as [UInt8], length: 3)
122-
if let crc = data.crc32() {
122+
if let crc = data.crc32(nil) {
123123
XCTAssertEqual(crc.toHexString(), "884863d2", "CRC32 calculation failed");
124124
}
125125

126-
XCTAssertEqual("".crc32(), "00000000", "CRC32 calculation failed");
126+
XCTAssertEqual("".crc32(nil), "00000000", "CRC32 calculation failed");
127127
}
128128

129129
func testCRC16() {

0 commit comments

Comments
 (0)