-
Notifications
You must be signed in to change notification settings - Fork 0
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 #15 from AnatoliShmanai/tests/plus_tests
Added tests.
- Loading branch information
Showing
4 changed files
with
218 additions
and
2 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
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,33 @@ | ||
// | ||
// ViewControllerTests.swift | ||
// WeatherPlusTests | ||
// | ||
// Created by Anatoli Shmanai on 16/08/2024. | ||
// | ||
|
||
import XCTest | ||
@testable import WeatherPlus | ||
|
||
final class ViewControllerTests: XCTestCase { | ||
|
||
func test_getTimeForDate1() { | ||
let a = "AAA" | ||
let b = "AAA" | ||
|
||
XCTAssertEqual(a, b) | ||
} | ||
|
||
// func test_getTimeForDate2() { | ||
// let date = Date(timeIntervalSince1970: 1400) | ||
// let result = ViewController().getTimeForDate(date) | ||
// | ||
// XCTAssertEqual(result, "123") | ||
// } | ||
// | ||
// func test_getTimeForDate3() { | ||
// let date = Date(timeIntervalSince1970: 1500) | ||
// let result = ViewController().getTimeForDate(date) | ||
// | ||
// XCTAssertEqual(result, "123") | ||
// } | ||
} |
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,35 @@ | ||
// | ||
// WeatherPlusTests.swift | ||
// WeatherPlusTests | ||
// | ||
// Created by Anatoli Shmanai on 16/08/2024. | ||
// | ||
|
||
import XCTest | ||
|
||
final class WeatherPlusTests: XCTestCase { | ||
|
||
override func setUpWithError() throws { | ||
// Put setup code here. This method is called before the invocation of each test method in the class. | ||
} | ||
|
||
override func tearDownWithError() throws { | ||
// Put teardown code here. This method is called after the invocation of each test method in the class. | ||
} | ||
|
||
func testExample() throws { | ||
// This is an example of a functional test case. | ||
// Use XCTAssert and related functions to verify your tests produce the correct results. | ||
// Any test you write for XCTest can be annotated as throws and async. | ||
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. | ||
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. | ||
} | ||
|
||
func testPerformanceExample() throws { | ||
// This is an example of a performance test case. | ||
measure { | ||
// Put the code you want to measure the time of here. | ||
} | ||
} | ||
|
||
} |