Skip to content

[test] Protect OptionSet.remove test with future availability #28715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/stdlib/OptionSetTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ tests.test("set algebra") {
expectEqual(P(), p)

p = P.BoxOrBag
expectEqual(P.Bag, p.remove(P.SatchelOrBag))
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
// https://github.com/apple/swift/pull/28378
expectEqual(P.Bag, p.remove(P.SatchelOrBag))
}
expectEqual(P.Box, p)

// insert
Expand Down