Skip to content

Commit 840f1a4

Browse files
authored
Merge pull request #34203 from apple/data-test-availability
[test] Don’t check for new behavior on older systems that don’t include the change
2 parents 245ace3 + d5652fa commit 840f1a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/stdlib/TestData.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,8 @@ class TestData : TestDataSuper {
10791079

10801080
func test_rangeOfDataProtocol() {
10811081
// https://bugs.swift.org/browse/SR-10689
1082-
1082+
guard #available(macOS 11, iOS 14, watchOS 7, tvOS 14, *) else { return }
1083+
10831084
let base = Data([0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03,
10841085
0x00, 0x01, 0x02, 0x03, 0x00, 0x01, 0x02, 0x03])
10851086
let subdata = base[10..<13] // [0x02, 0x03, 0x00]

0 commit comments

Comments
 (0)