|
@@ -342,6 +342,12 @@ class ErrorTypeTests: XCTestCase {
|
|
|
XCTAssertEqual(status, .Decode)
|
|
|
XCTAssertEqual(status?.description, "Unable to decode the provided data.")
|
|
|
}
|
|
|
+ do {
|
|
|
+ let errSecInternal: OSStatus = -26276
|
|
|
+ let status = Status(rawValue: errSecInternal)
|
|
|
+ XCTAssertEqual(status, .Internal)
|
|
|
+ XCTAssertEqual(status?.description, "An internal error occured in the Security framework.")
|
|
|
+ }
|
|
|
#if os(OSX)
|
|
|
do {
|
|
|
let status = Status(rawValue: errSecServiceNotAvailable)
|