Skip to content

Commit f5b9ed6

Browse files
authored
Merge pull request #28755 from lorentey/OptionSet-remove-back-deployment
[test] OptionSetTest: fix elementary logic error
2 parents dcd164f + 0f5b983 commit f5b9ed6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/stdlib/OptionSetTest.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ tests.test("set algebra") {
9393
expectEqual(P(), p)
9494

9595
p = P.boxOrBag
96+
let removed = p.remove(P.satchelOrBag)
9697
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
9798
// https://github.com/apple/swift/pull/28378
98-
expectEqual(P.bag, p.remove(P.satchelOrBag))
99+
expectEqual(P.bag, removed)
99100
}
100101
expectEqual(P.box, p)
101102

0 commit comments

Comments
 (0)