8 Commits
Author SHA1 Message Date
Stephen Canon 4329602833 Merge pull request #74 from ole/delete-alltests
Delete RealTests.allTests
2019-11-12 15:35:38 -05:00
Ole Begemann d875fdbd0b Delete RealTests.allTests
This broke building the tests on Linux because of a missing symbol (ComplexTests.allTests), and with `--enable-test-discovery` we don't need this anyway.
2019-11-12 21:25:42 +01:00
Stephen Canon 39f94b7c7b Merge pull request #73 from stephentyrone/empty-linuxmain
Replace LinuxMain.swift with a fatalError
2019-11-12 14:48:00 -05:00
Stephen Canon 2760aa4ba4 Replace LinuxMain.swift with a fatalError
Direct users to run with --enable-test-discovery until it becomes the default.
2019-11-12 14:45:59 -05:00
Stephen Canon a27ffc7c63 Merge pull request #57 from tachoknight/master
Added LinuxMain.swift so numerics can be used on Linux
2019-11-12 14:27:12 -05:00
Stephen Canon a301489b9a Merge pull request #72 from ole/patch-1
Remove broken link in Real module readme
2019-11-12 14:25:05 -05:00
Ole Begemann 0ed7e786b5 Remove broken link in Real module readme
The link target for `[Real]` wasn't defined. I decided toremove the link altogether because the readme would essentially link to itself.
2019-11-12 17:28:36 +01:00
Ron Olson 86e9087ab5 Added LinuxMain.swift so numerics can be used on Linux 2019-11-08 15:10:38 -06:00
4 changed files with 13 additions and 21 deletions

No files matched your search

-1
View File
@@ -1,6 +1,5 @@
.DS_Store
/*XCTestManifests.swift
/Test/LinuxMain.swift
/.build
/Packages
/*.xcodeproj
+1 -1
View File
@@ -2,7 +2,7 @@
[SE-0246] proposed an API for "basic math functions" that would make operations like sine and logarithm available in generic contexts.
It was accepted, but because of limitations in the compiler, the API could not be added to the standard library in a source-stable manner.
The `Real` [module][Real] provides that API as a separate module so that you can use it right away to get access to the improved API for these operations in your projects.
The `Real` module provides that API as a separate module so that you can use it right away to get access to the improved API for these operations in your projects.
## Protocols and Methods
+12
View File
@@ -0,0 +1,12 @@
//===--- LinuxMain.swift --------------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//
fatalError("Use --enable-test-discovery to run Swift Numerics tests on Linux.")
-19
View File
@@ -105,24 +105,5 @@ final class ElementaryFunctionTests: XCTestCase {
Float80.elementaryFunctionTests()
Float80.realFunctionTests()
}
static var allTests = [
("testFloat", testFloat),
("testDouble", testDouble),
("testFloat80", testFloat80),
]
#else
static var allTests = [
("testFloat", testFloat),
("testDouble", testDouble),
]
#endif
}
#if !(os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(ComplexTests.allTests),
]
}
#endif