Skip to content

Commit 7f1c139

Browse files
committed
[test] Add availability guards on Foundation hashing tests
1 parent f776a38 commit 7f1c139

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

test/stdlib/TestAffineTransform.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ class TestAffineTransform : TestAffineTransformSuper {
316316
}
317317

318318
func test_hashing() {
319+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
320+
319321
// the transforms are made up and the values don't matter
320322
let a = AffineTransform(m11: 1.0, m12: 2.5, m21: 66.2, m22: 40.2, tX: -5.5, tY: 3.7)
321323
let b = AffineTransform(m11: -55.66, m12: 22.7, m21: 1.5, m22: 0.0, tX: -22, tY: -33)

test/stdlib/TestDateInterval.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class TestDateInterval : TestDateIntervalSuper {
6666
}
6767

6868
func test_hashing() {
69-
guard #available(iOS 10.10, OSX 10.12, tvOS 10.0, watchOS 3.0, *) else { return }
69+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
7070

7171
let start1a = dateWithString("2019-04-04 17:09:23 -0700")
7272
let start1b = dateWithString("2019-04-04 17:09:23 -0700")

test/stdlib/TestIndexPath.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ class TestIndexPath: TestIndexPathSuper {
222222
}
223223

224224
func testHashing() {
225+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
225226
let samples: [IndexPath] = [
226227
[],
227228
[1],

test/stdlib/TestMeasurement.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class TestMeasurement : TestMeasurementSuper {
155155
}
156156

157157
func testHashing() {
158+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
158159
let lengths: [[Measurement<UnitLength>]] = [
159160
[
160161
Measurement(value: 5, unit: UnitLength.kilometers),

test/stdlib/TestUUID.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class TestUUID : TestUUIDSuper {
8585
}
8686

8787
func test_hash() {
88+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
8889
let values: [UUID] = [
8990
// This list takes a UUID and tweaks every byte while
9091
// leaving the version/variant intact.

0 commit comments

Comments
 (0)