-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from TiagoBrasN/lower-deployment-target
Lower deployment target
- Loading branch information
Showing
15 changed files
with
188 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "nodes-ios/TranslationManager" "3.1.1" | ||
github "nodes-ios/TranslationManager" "3.1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// DateFormatterTests.swift | ||
// NStackSDK | ||
// | ||
// Created by Tiago Bras on 27/01/2021. | ||
// Copyright © 2021 Nodes ApS. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
@testable import NStackSDK | ||
|
||
class DateFormatterTests: XCTestCase { | ||
|
||
func testISO8061DateFormatter() throws { | ||
let expectedDate = Date(timeIntervalSince1970: 1611749050) | ||
|
||
if #available(iOS 10.0, OSX 10.12, *) { | ||
XCTAssertEqual(DateFormatter.iso8601.date(from: "2021-01-27T12:04:10Z"), expectedDate) | ||
XCTAssertEqual(DateFormatter.iso8601.date(from: "2021-01-27T13:04:10+01:00"), expectedDate) | ||
XCTAssertNil(DateFormatter.iso8601.date(from: "2021-01T13:04:10-41:00")) | ||
} | ||
|
||
XCTAssertEqual(DateFormatter.iso8601Fallback.date(from: "2021-01-27T12:04:10Z"), expectedDate) | ||
XCTAssertEqual(DateFormatter.iso8601Fallback.date(from: "2021-01-27T13:04:10+01:00"), expectedDate) | ||
XCTAssertNil(DateFormatter.iso8601Fallback.date(from: "2021-01T13:04:10-41:00")) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters