|
|
@ -130,10 +130,10 @@ class ClockerUnitTests: XCTestCase { |
|
|
|
// The below test might fail outside California or if DST is active! |
|
|
|
// The below test might fail outside California or if DST is active! |
|
|
|
// CI is calibrated to be on LA timezone! |
|
|
|
// CI is calibrated to be on LA timezone! |
|
|
|
func testTimeDifference() { |
|
|
|
func testTimeDifference() { |
|
|
|
XCTAssertTrue(operations.timeDifference() == ", 11 hours 30 mins ahead", "Difference was unexpectedly: \(operations.timeDifference())") |
|
|
|
XCTAssertTrue(operations.timeDifference() == ", 11h 30m ahead", "Difference was unexpectedly: \(operations.timeDifference())") |
|
|
|
XCTAssertTrue(californiaOperations.timeDifference() == ", 2 hours behind", "Difference was unexpectedly: \(californiaOperations.timeDifference())") |
|
|
|
XCTAssertTrue(californiaOperations.timeDifference() == ", 2h behind", "Difference was unexpectedly: \(californiaOperations.timeDifference())") |
|
|
|
XCTAssertTrue(floridaOperations.timeDifference() == ", an hour ahead", "Difference was unexpectedly: \(floridaOperations.timeDifference())") |
|
|
|
XCTAssertTrue(floridaOperations.timeDifference() == ", an hour ahead", "Difference was unexpectedly: \(floridaOperations.timeDifference())") |
|
|
|
XCTAssertTrue(aucklandOperations.timeDifference() == ", 19 hours ahead", "Difference was unexpectedly: \(aucklandOperations.timeDifference())") |
|
|
|
XCTAssertTrue(aucklandOperations.timeDifference() == ", 19h ahead", "Difference was unexpectedly: \(aucklandOperations.timeDifference())") |
|
|
|
XCTAssertTrue(omahaOperations.timeDifference() == "", "Difference was unexpectedly: \(omahaOperations.timeDifference())") |
|
|
|
XCTAssertTrue(omahaOperations.timeDifference() == "", "Difference was unexpectedly: \(omahaOperations.timeDifference())") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|