Files
swift-mirror/test/Interpreter/Inputs/availability_zippered.swift
Ben Langmuir fd1875dcfb [test] Move availability tests to later fake OS versions
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.
2024-08-21 11:38:54 -07:00

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
}