Skip to content

Commit 05081ee

Browse files
authored
Merge pull request swiftlang#28715 from lorentey/OptionSet-remove-back-deployment
[test] Protect OptionSet.remove test with future availability
2 parents 3d1ab4d + b31c55b commit 05081ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/stdlib/OptionSetTest.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ tests.test("set algebra") {
9595
expectEqual(P(), p)
9696

9797
p = P.BoxOrBag
98-
expectEqual(P.Bag, p.remove(P.SatchelOrBag))
98+
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
99+
// https://github.com/apple/swift/pull/28378
100+
expectEqual(P.Bag, p.remove(P.SatchelOrBag))
101+
}
99102
expectEqual(P.Box, p)
100103

101104
// insert

0 commit comments

Comments
 (0)