Skip to content

Commit c4cc31e

Browse files
Merge pull request #300 from stephentyrone/more-availability-fixes
Fix-up availability for Float16 in tests for tvOS and watchOS.
2 parents e30276b + 7b1e0db commit c4cc31e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/RealTests/ElementaryFunctionChecks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ final class ElementaryFunctionChecks: XCTestCase {
148148

149149
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
150150
func testFloat16() {
151-
if #available(macOS 11.0, iOS 14.0, watchOS 14.0, tvOS 7.0, *) {
151+
if #available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) {
152152
Float16.elementaryFunctionChecks()
153153
Float16.realFunctionChecks()
154154
Float16.powZeroChecks()

Tests/RealTests/IntegerExponentTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ internal extension Real where Self: FixedWidthFloatingPoint {
7878
}
7979

8080
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
81-
@available(macOS 11.0, iOS 14.0, watchOS 14.0, tvOS 7.0, *)
81+
@available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *)
8282
extension Float16 {
8383
static func testIntegerExponent() {
8484
testIntegerExponentCommon()
@@ -176,7 +176,7 @@ final class IntegerExponentTests: XCTestCase {
176176

177177
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
178178
func testFloat16() {
179-
if #available(macOS 11.0, iOS 14.0, watchOS 14.0, tvOS 7.0, *) {
179+
if #available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) {
180180
Float16.testIntegerExponent()
181181
}
182182
}

0 commit comments

Comments
 (0)