Skip to content

Commit bec83cd

Browse files
committed
Fixes for SwiftFoundation
1 parent 49d8ad3 commit bec83cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Tests/KeyValueDecoderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ final class KeyValueDecoderTests: XCTestCase {
273273
)
274274

275275
XCTAssertThrowsError(
276-
try KeyValueDecoder.decode(URL.self, from: "invalid url")
276+
try KeyValueDecoder.decode(URL.self, from: "")
277277
)
278278
}
279279

Tests/KeyValueEncoderTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ final class KeyValueEncodedTests: XCTestCase {
5454
}
5555

5656
func testSingleContainer_Encodes_Duration() throws {
57+
guard #available(iOS 16.0, macOS 13.0, *) else { return }
5758
XCTAssertEqual(
5859
try KeyValueEncoder.encodeSingleValue {
5960
try $0.encode(Duration.nanoseconds(1))

0 commit comments

Comments
 (0)