mirror of
https://github.com/apple/swift-numerics
synced 2026-11-28 05:14:31 +00:00
CMake support for newer tests.
This commit is contained in:
1 parent
0fff91683a
commit
79390164f5
3 files changed
+16
-1
No files matched your search
@@ -8,6 +8,7 @@ See https://swift.org/LICENSE.txt for license information
|
||||
#]]
|
||||
|
||||
add_library(_TestSupport
|
||||
BlackHole.swift
|
||||
DoubleWidth.swift
|
||||
Error.swift
|
||||
Interval.swift
|
||||
|
||||
@@ -9,8 +9,10 @@ See https://swift.org/LICENSE.txt for license information
|
||||
|
||||
add_library(RealTests
|
||||
ApproximateEqualityTests.swift
|
||||
AugmentedArithmeticTests.swift
|
||||
ElementaryFunctionChecks.swift
|
||||
IntegerExponentTests.swift)
|
||||
IntegerExponentTests.swift
|
||||
RelaxedArithmeticTests.swift)
|
||||
target_compile_options(RealTests PRIVATE
|
||||
-enable-testing)
|
||||
target_link_libraries(RealTests PUBLIC
|
||||
|
||||
@@ -67,6 +67,18 @@ extension IntegerExponentTests {
|
||||
}
|
||||
#endif
|
||||
|
||||
extension RealTests.AugmentedArithmeticTests {
|
||||
static var all = testCase([
|
||||
("testTwoSum", RealTests.AugmentedArithmeticTests.testTwoSum),
|
||||
])
|
||||
}
|
||||
|
||||
extension RealTests.RelaxedArithmeticTests {
|
||||
static var all = testCase([
|
||||
("testRelaxedArithmetic", RealTests.RelaxedArithmeticTests.testRelaxedArithmetic),
|
||||
])
|
||||
}
|
||||
|
||||
extension ArithmeticTests {
|
||||
static var all = testCase([
|
||||
("testPolar", ArithmeticTests.testPolar),
|
||||
|
||||
Reference in new issue
Block a user