Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit 96ba487

Browse files
committed
Fixed Unit Tests file layout
1 parent e60b8fd commit 96ba487

File tree

10 files changed

+55
-56
lines changed

10 files changed

+55
-56
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88

99
import XCTest
1010

11-
#if os(OSX) || os(iOS) || os(watchOS)
11+
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
1212
func XCTMain(_ testCases: [XCTestCaseEntry]) { fatalError("Not Implemented. Linux only") }
1313

1414
func testCase<T: XCTestCase>(_ allTests: [(String, (T) -> () throws -> Void)]) -> XCTestCaseEntry { fatalError("Not Implemented. Linux only") }
1515

1616
struct XCTestCaseEntry { }
17-
#endif
17+
18+
#else
1819

1920
XCTMain([testCase(DateComponentsTest.allTests),
2021
testCase(POSIXTimeTests.allTests),
@@ -25,3 +26,5 @@ XCTMain([testCase(DateComponentsTest.allTests),
2526
testCase(JSONTests.allTests),
2627
testCase(RangeTests.allTests)
2728
])
29+
30+
#endif
File renamed without changes.

Xcode/SwiftFoundation.xcodeproj/project.pbxproj

Lines changed: 50 additions & 54 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)