Skip to content

Commit

Permalink
Swift Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Oct 24, 2024
1 parent 3b5857a commit 34f3a58
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 142 deletions.
5 changes: 3 additions & 2 deletions Tests/KeyValueEncoderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ struct KeyValueEncodedTests {
}

@Test
func testKeyedContainer_Encodes_SuperContainer() throws {
func keyedContainer_Encodes_SuperContainer() throws {
#expect(
try KeyValueEncoder.encodeKeyedValue(keyedBy: AnyCodingKey.self) {
try Int(10).encode(to: $0.superEncoder())
Expand All @@ -366,7 +366,7 @@ struct KeyValueEncodedTests {
}

@Test
func testUnkeyedContainer_Encodes_Optionals() throws {
func unkeyedContainer_Encodes_Optionals() throws {
#expect(
try KeyValueEncoder.encodeUnkeyedValue {
try $0.encode(String?.none)
Expand Down Expand Up @@ -637,6 +637,7 @@ struct KeyValueEncodedTests {
}

#if !os(WASI)
@Test
func plistCompatibleEncoder() throws {
let keyValueAny = try KeyValueEncoder.makePlistCompatible().encode([1, 2, Int?.none, 4])
#expect(
Expand Down
Loading

0 comments on commit 34f3a58

Please sign in to comment.