Skip to content

Commit

Permalink
Change order
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianvarela committed Feb 20, 2024
1 parent 3a4e0d0 commit 2fc1dc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Foundation/Extensions/DateExtensions+Format.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public extension Date {
/// - europeanDateWithDashes: 2019-08-09
/// - time: 12:48
/// - day: 9
/// - shortMonth: aug
/// - dayAndMonth: 9 aug
/// - shortMonth: aug
/// - month: august
/// - monthAndYear: august 2019
/// - monthAndYearWithUnderscore: august_2019
Expand All @@ -31,8 +31,8 @@ public extension Date {
case europeanDateWithDashes = "yyyy-MM-dd"
case time = "HH:mm"
case day = "d"
case shortMonth = "MMM"
case dayAndMonth = "d MMM"
case shortMonth = "MMM"
case month = "MMMM"
case monthAndYear = "MMMM yyyy"
case monthAndYearWithUnderscore = "MMMM_yyyy"
Expand Down
2 changes: 1 addition & 1 deletion Tests/Foundation/Extensions/DateExtensionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class DateExtensionsTests: XCTestCase {
XCTAssertEqual(date.formatted(with: .europeanDateWithDashes, timeZone: .europeMadrid), "2019-08-09")
XCTAssertEqual(date.formatted(with: .time, timeZone: .europeMadrid), "12:48")
XCTAssertEqual(date.formatted(with: .day), "9")
XCTAssertEqual(date.formatted(with: .shortMonth, locale: .spanishSpain), "ago")
XCTAssertEqual(date.formatted(with: .dayAndMonth, locale: .spanishSpain), "9 ago")
XCTAssertEqual(date.formatted(with: .shortMonth, locale: .spanishSpain), "ago")
XCTAssertEqual(date.formatted(with: .month, locale: .spanishSpain), "agosto")
XCTAssertEqual(date.formatted(with: .monthAndYear, locale: .spanishSpain), "agosto 2019")
XCTAssertEqual(date.formatted(with: .monthAndYearWithUnderscore, locale: .spanishSpain), "agosto_2019")
Expand Down

0 comments on commit 2fc1dc2

Please sign in to comment.