@@ -101,7 +101,7 @@ class TestDateIntervalFormatter: XCTestCase {
101
101
}
102
102
}
103
103
104
- #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
104
+ #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
105
105
func testStringFromDateToDateAcrossOneWeekWithMonthMinimization( ) {
106
106
formatter. dateTemplate = " MMMd "
107
107
formatter. boundaryStyle = . minimizeAdjacentMonths
@@ -134,7 +134,7 @@ class TestDateIntervalFormatter: XCTestCase {
134
134
" Jan 1 – Mar 2 " )
135
135
}
136
136
137
- #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
137
+ #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
138
138
func testStringFromDateToDateAcrossSixtyDaysWithMonthMinimization( ) {
139
139
formatter. dateTemplate = " MMMd "
140
140
formatter. boundaryStyle = . minimizeAdjacentMonths
@@ -189,7 +189,7 @@ class TestDateIntervalFormatter: XCTestCase {
189
189
( " testStringFromDateToDateAcrossEighteenHours " , testStringFromDateToDateAcrossEighteenHours) ,
190
190
]
191
191
192
- #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
192
+ #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
193
193
tests. append ( contentsOf: [
194
194
( " testStringFromDateToDateAcrossOneWeekWithMonthMinimization " , testStringFromDateToDateAcrossOneWeekWithMonthMinimization) ,
195
195
( " testStringFromDateToDateAcrossSixtyDaysWithMonthMinimization " , testStringFromDateToDateAcrossSixtyDaysWithMonthMinimization) ,
0 commit comments