Skip to content

Commit dce40da

Browse files
committed
Add boilerplate test files to package
These are essentially the same files that are generated by Xcode when a new Swift Package is created; they shouldn’t have been deleted in the first place. Their presence (or lack thereof) does not affect the functionality of the package.
1 parent c170ce0 commit dce40da

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

Tests/LinuxMain.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import XCTest
2+
3+
import WriteFreelyTests
4+
5+
var tests = [XCTestCaseEntry]()
6+
tests += WriteFreelyTests.allTests()
7+
XCTMain(tests)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import XCTest
2+
@testable import WriteFreely
3+
4+
final class WriteFreelyTests: XCTestCase {
5+
func testExample() {
6+
// This is an example of a functional test case.
7+
// Use XCTAssert and related functions to verify your tests produce the correct
8+
// results.
9+
XCTAssertEqual(true, !false)
10+
}
11+
12+
static var allTests = [
13+
("testExample", testExample),
14+
]
15+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import XCTest
2+
3+
#if !canImport(ObjectiveC)
4+
public func allTests() -> [XCTestCaseEntry] {
5+
return [
6+
testCase(WriteFreelyTests.allTests),
7+
]
8+
}
9+
#endif

0 commit comments

Comments
 (0)