Skip to content

Commit b31c55b

Browse files
committed
[test] Protect OptionSet.remove test with future availability
1 parent 16b9611 commit b31c55b

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)