mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10.50 was once greater than any real macOS version, but now it compares less than real released versions, which makes these tests depend on the deployment target unnecessarily. Update these tests to use even larger numbers to hopefully keep them independent a little longer.
34 lines
589 B
Swift
34 lines
589 B
Swift
|
|
|
|
public func isMacOSAfterFarFutureOriOSAfterFarFuture() -> Bool {
|
|
if #available(macOS 50, iOS 50.0, *) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
public func isMacOSAfterFarFutureOriOSAfterDistantPast() -> Bool {
|
|
if #available(macOS 50, iOS 1.0, *) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
public func isMacOSAfterDistantPastOriOSAfterFarFuture() -> Bool {
|
|
if #available(macOS 1.0, iOS 50.0, *) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
public func isMacOSAfterDistantPastOriOSAfterDistantPast() -> Bool {
|
|
if #available(macOS 1.0, iOS 1.0, *) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|