You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nimble code went into infinite loop on stringify(_ value: T?) -> String
public func stringify<T>(_ value: T?) -> String {
guard let unboxed = value else {
return "nil"
}
}
The following change fixes the problem.
public func stringify<T>(_ value: T?) -> String {
guard let unboxed = value else {
return "nil"
}
if let value = value as? TestOutputStringConvertible {
return value.testDescription
}
if let value = value as? CustomDebugStringConvertible {
return value.debugDescription
}
return String(describing: unboxed)
}
Apparently something changed in how generic optionals are mapped to functions.
Environment
List the software versions you're using:
Quick: 1.3.0
Nimble: 7.1.1
Xcode Version: 10.0 beta
Swift Version: 4.1
Cocoapods: 1.5.0
The text was updated successfully, but these errors were encountered:
What did you do?
Ran test using Nimble using Xcode 10 beta.
What did you expect to happen?
Test to succeed.
What actually happened instead?
Nimble code went into infinite loop on stringify(_ value: T?) -> String
The following change fixes the problem.
Apparently something changed in how generic optionals are mapped to functions.
Environment
List the software versions you're using:
The text was updated successfully, but these errors were encountered: