Skip to content

Commit 9d248ed

Browse files
author
David Dunn
committed
Added .full cases but commented them out
1 parent 17add72 commit 9d248ed

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

TestFoundation/TestDateFormatter.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,25 +300,34 @@ class TestDateFormatter: XCTestCase {
300300
let f = DateFormatter()
301301
f.timeZone = TimeZone(abbreviation: DEFAULT_TIMEZONE)
302302

303-
//.full cases have been omitted as they're not working correctly on Linux
303+
//.full cases have been commented out as they're not working correctly on Linux
304304
let formats: [String: (DateFormatter.Style, DateFormatter.Style)] = [
305305
"": (.none, .none),
306306
"h:mm a": (.none, .short),
307307
"h:mm:ss a": (.none, .medium),
308308
"h:mm:ss a z": (.none, .long),
309+
// "h:mm:ss a zzzz": (.none, .full),
309310
"M/d/yy": (.short, .none),
310311
"M/d/yy, h:mm a": (.short, .short),
311312
"M/d/yy, h:mm:ss a": (.short, .medium),
312313
"M/d/yy, h:mm:ss a z": (.short, .long),
314+
// "M/d/yy, h:mm:ss a zzzz": (.short, .full),
313315
"MMM d, y": (.medium, .none),
314316
//These tests currently fail, there seems to be a difference in behavior in the CoreFoundation methods called to construct the format strings.
315317
// "MMM d, y 'at' h:mm a": (.medium, .short),
316318
// "MMM d, y 'at' h:mm:ss a": (.medium, .medium),
317319
// "MMM d, y 'at' h:mm:ss a z": (.medium, .long),
320+
// "MMM d, y 'at' h:mm:ss a zzzz": (.medium, .full),
318321
"MMMM d, y": (.long, .none),
319322
"MMMM d, y 'at' h:mm a": (.long, .short),
320323
"MMMM d, y 'at' h:mm:ss a": (.long, .medium),
321324
"MMMM d, y 'at' h:mm:ss a z": (.long, .long),
325+
// "MMMM d, y 'at' h:mm:ss a zzzz": (.long, .full),
326+
// "EEEE, MMMM d, y": (.full, .none),
327+
// "EEEE, MMMM d, y 'at' h:mm a": (.full, .short),
328+
// "EEEE, MMMM d, y 'at' h:mm:ss a": (.full, .medium),
329+
// "EEEE, MMMM d, y 'at' h:mm:ss a z": (.full, .long),
330+
// "EEEE, MMMM d, y 'at' h:mm:ss a zzzz": (.full, .full),
322331
]
323332

324333
for (dateFormat, styles) in formats {

0 commit comments

Comments
 (0)