Explorar o código

Adding missing forced unwrap in test

Mattt Thompson %!s(int64=11) %!d(string=hai) anos
pai
achega
9016949899
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Tests/DownloadTests.swift

+ 1 - 1
Tests/DownloadTests.swift

@@ -68,7 +68,7 @@ class AlamofireDownloadResponseTestCase: XCTestCase {
                 XCTAssertEqual(filteredContents.count, 1, "should have one file in Documents")
 
                 let file = filteredContents.first as NSURL
-                XCTAssertEqual(file.lastPathComponent, "\(numberOfLines)", "filename should be \(numberOfLines)")
+                XCTAssertEqual(file.lastPathComponent!, "\(numberOfLines)", "filename should be \(numberOfLines)")
 
                 if let data = NSData(contentsOfURL: file) {
                     XCTAssertGreaterThan(data.length, 0, "data length should be non-zero")