17 lines
506 B
Swift
17 lines
506 B
Swift
import Testing
|
|
@testable import TempestasDomain
|
|
|
|
@Test func example() async throws {
|
|
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
|
// Swift Testing Documentation
|
|
// https://developer.apple.com/documentation/testing
|
|
}
|
|
|
|
@Test func weatherCodeRoundTripsKnownCode() async throws {
|
|
#expect(WeatherCode.from(code: 61).code == 61)
|
|
}
|
|
|
|
@Test func weatherCodePreservesUnknownCode() async throws {
|
|
#expect(WeatherCode.unknown(code: 12345).code == 12345)
|
|
}
|