From a883d95a4dc9ac4892349f64cfb462f1b56b58ae Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Thu, 16 May 2024 15:50:32 -0400 Subject: [PATCH] Fixup guard on Float16 Complex divide tests. --- Tests/ComplexTests/ArithmeticTests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/ComplexTests/ArithmeticTests.swift b/Tests/ComplexTests/ArithmeticTests.swift index e36a095..cbefc68 100644 --- a/Tests/ComplexTests/ArithmeticTests.swift +++ b/Tests/ComplexTests/ArithmeticTests.swift @@ -168,8 +168,10 @@ final class ArithmeticTests: XCTestCase { } func testPolar() { -#if (arch(arm64)) - testPolar(Float16.self) +#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64)) + if #available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) { + testPolar(Float16.self) + } #endif testPolar(Float.self) testPolar(Double.self)