diff --git a/Tests/ComplexTests/ApproximateEqualityTests.swift b/Tests/ComplexTests/ApproximateEqualityTests.swift index 8705486..753757d 100644 --- a/Tests/ComplexTests/ApproximateEqualityTests.swift +++ b/Tests/ComplexTests/ApproximateEqualityTests.swift @@ -1,7 +1,19 @@ +//===--- ApproximateEqualityTests.swift -----------------------*- swift -*-===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2020 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + import Numerics import XCTest -final class ElementaryFunctionTests: XCTestCase { +final class ApproximateEqualityTests: XCTestCase { func testSpecials(absolute tol: T) { let zero = Complex.zero diff --git a/Tests/RealTests/ApproximateEqualityTests.swift b/Tests/RealTests/ApproximateEqualityTests.swift index ec44b37..7009b81 100644 --- a/Tests/RealTests/ApproximateEqualityTests.swift +++ b/Tests/RealTests/ApproximateEqualityTests.swift @@ -1,7 +1,19 @@ +//===--- ApproximateEqualityTests.swift -----------------------*- swift -*-===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2020 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + import RealModule import XCTest -final class ElementaryFunctionTests: XCTestCase { +final class ApproximateEqualityTests: XCTestCase { func testSpecials(absolute tol: T) { let zero = T.zero diff --git a/Tests/RealTests/CMakeLists.txt b/Tests/RealTests/CMakeLists.txt index bbdcbcf..ec989f3 100644 --- a/Tests/RealTests/CMakeLists.txt +++ b/Tests/RealTests/CMakeLists.txt @@ -9,8 +9,8 @@ See https://swift.org/LICENSE.txt for license information add_library(RealTests ApproximateEqualityTests.swift + ElementaryFunctionChecks.swift IntegerExponentTests.swift - RealTests.swift RealTestSupport.swift) target_compile_options(RealTests PRIVATE -enable-testing) diff --git a/Tests/RealTests/RealTests.swift b/Tests/RealTests/ElementaryFunctionChecks.swift similarity index 100% rename from Tests/RealTests/RealTests.swift rename to Tests/RealTests/ElementaryFunctionChecks.swift diff --git a/Tests/RealTests/IntegerExponentTests.swift b/Tests/RealTests/IntegerExponentTests.swift index 19009d3..dad7485 100644 --- a/Tests/RealTests/IntegerExponentTests.swift +++ b/Tests/RealTests/IntegerExponentTests.swift @@ -174,10 +174,7 @@ extension Double { final class IntegerExponentTests: XCTestCase { - #if swift(>=5.3) - @available(iOS 14.0, watchOS 14.0, tvOS 7.0, *) - @available(macOS, unavailable) - @available(macCatalyst, unavailable) + #if swift(>=5.3) && !os(macOS) func testFloat16() { Float16.testIntegerExponent() } diff --git a/Tests/WindowsMain.swift b/Tests/WindowsMain.swift index 010f1e9..fd04ec7 100644 --- a/Tests/WindowsMain.swift +++ b/Tests/WindowsMain.swift @@ -18,17 +18,17 @@ import RealTests @testable import ComplexTests -extension ComplexTests.ElementaryFunctionTests { +extension ComplexTests.ApproximateEqualityTests { static var all = testCase([ - ("testFloat", RealTests.ElementaryFunctionTests.testFloat), - ("testDouble", RealTests.ElementaryFunctionTests.testDouble), + ("testFloat", ComplexTests.ApproximateEqualityTests.testFloat), + ("testDouble", ComplexTests.ApproximateEqualityTests.testDouble), ]) } -extension RealTests.ElementaryFunctionTests { +extension RealTests.ApproximateEqualityTests { static var all = testCase([ - ("testFloat", RealTests.ElementaryFunctionTests.testFloat), - ("testDouble", RealTests.ElementaryFunctionTests.testDouble), + ("testFloat", RealTests.ApproximateEqualityTests.testFloat), + ("testDouble", RealTests.ApproximateEqualityTests.testDouble), ]) } @@ -83,8 +83,8 @@ extension PropertyTests { } var testCases = [ - ComplexTests.ElementaryFunctionTests.all, - RealTests.ElementaryFunctionTests.all, + ComplexTests.ApproximateEqualityTests.all, + RealTests.ApproximateEqualityTests.all, ElementaryFunctionChecks.all, IntegerExponentTests.all, ArithmeticTests.all,