Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pawello2222 committed May 19, 2024
1 parent 6b0687c commit 09a0392
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class DateComponentsFormatterTests: XCTestCase {
let now = Date()
let future = now.adjusting(\.minute, by: 5)
XCTAssertEqual(usFormatter.string(from: now, to: future), "5 minutes")
let past = now.adjusting(\.minute, by: -5)
XCTAssertEqual(usFormatter.string(from: now, to: past), "-5 minutes")
}

func test_shouldFormatDateComponents() throws {
Expand Down

0 comments on commit 09a0392

Please sign in to comment.