Skip to content

Commit f361cc2

Browse files
committed
Fix build failure
1 parent 3173c28 commit f361cc2

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

Tests/FoundationInternationalizationTests/Formatting/DateFormatStyleTests.swift

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -190,32 +190,25 @@ private struct DateFormatStyleTests {
190190
@Test func leadingDotSyntax() async {
191191
let date = Date.now
192192
let locale = Locale(identifier: "es_ES")
193-
let timeZone = TimeZone.gmt
194-
var calendar = Calendar(identifier: .gregorian)
195-
calendar.timeZone = timeZone
196193
await usingCurrentInternationalizationPreferences {
197194
#expect(date.formatted(date: .long, time: .complete) == date.formatted(Date.FormatStyle(date: .long, time: .complete)))
198-
}
199-
#expect(
200-
date.formatted(
201-
.dateTime
202-
.day()
203-
.month()
204-
.year()
205-
.locale(locale)
206-
.timeZone(timeZone)
207-
.calendar(calendar)
208-
) ==
209-
date.formatted(
210-
Date.FormatStyle()
211-
.day()
212-
.month()
213-
.year()
214-
.locale(locale)
215-
.timeZone(timeZone)
216-
.calendar(calendar)
195+
#expect(
196+
date.formatted(
197+
.dateTime
198+
.day()
199+
.month()
200+
.year()
201+
.locale(locale)
202+
) ==
203+
date.formatted(
204+
Date.FormatStyle()
205+
.day()
206+
.month()
207+
.year()
208+
.locale(locale)
209+
)
217210
)
218-
)
211+
}
219212
}
220213

221214
@Test func dateFormatStyleIndividualFields() {

0 commit comments

Comments
 (0)