We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31bd9b6 commit 08ccfbeCopy full SHA for 08ccfbe
.gitignore
@@ -4,6 +4,8 @@
4
5
## User settings
6
xcuserdata/
7
+.DS_Store
8
+.swiftpm
9
10
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
11
*.xcscmblueprint
Tests/CryptoOfficeTests/CryptoOfficeTests.swift
@@ -29,7 +29,9 @@ final class CryptoOfficeTests: XCTestCase {
29
)
30
31
let data = try file.decrypt(password: "pass")
32
- let archive = try XCTUnwrap(Archive(data: data, accessMode: .read))
+ guard let archive = Archive(data: data, accessMode: .read)
33
+ else { return XCTFail("archive could not be created from the decrypted file") }
34
+
35
XCTAssertEqual(Array(archive).count, 10)
36
}
37
0 commit comments