Skip to content

Commit 54c7f71

Browse files
committed
[test] apply the correct availability check
- these tests check for a fix that was released in Swift 5.2
1 parent 8e4054f commit 54c7f71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/stdlib/Diffing.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ if #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) {
628628
expectEqual(a, b.applying(diff.inverse())!)
629629
}}}}}}
630630
}
631+
}
632+
633+
if #available(macOS 10.15.4, iOS 13.4, tvOS 13.4, watchOS 6.2, *) {
631634

632635
suite.test("Fast applicator error condition") {
633636
let bear = "bear"
@@ -690,6 +693,9 @@ if #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) {
690693
.insert(offset: base.count, element: 4, associatedWith: nil)
691694
])!))
692695
}
696+
}
697+
698+
if #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) {
693699

694700
suite.test("Fast applicator fuzzer") {
695701
func makeArray() -> [Int] {

0 commit comments

Comments
 (0)