Skip to content

Commit 34f3a58

Browse files
committed
Swift Testing
1 parent 3b5857a commit 34f3a58

File tree

2 files changed

+125
-142
lines changed

2 files changed

+125
-142
lines changed

Tests/KeyValueEncoderTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ struct KeyValueEncodedTests {
355355
}
356356

357357
@Test
358-
func testKeyedContainer_Encodes_SuperContainer() throws {
358+
func keyedContainer_Encodes_SuperContainer() throws {
359359
#expect(
360360
try KeyValueEncoder.encodeKeyedValue(keyedBy: AnyCodingKey.self) {
361361
try Int(10).encode(to: $0.superEncoder())
@@ -366,7 +366,7 @@ struct KeyValueEncodedTests {
366366
}
367367

368368
@Test
369-
func testUnkeyedContainer_Encodes_Optionals() throws {
369+
func unkeyedContainer_Encodes_Optionals() throws {
370370
#expect(
371371
try KeyValueEncoder.encodeUnkeyedValue {
372372
try $0.encode(String?.none)
@@ -637,6 +637,7 @@ struct KeyValueEncodedTests {
637637
}
638638

639639
#if !os(WASI)
640+
@Test
640641
func plistCompatibleEncoder() throws {
641642
let keyValueAny = try KeyValueEncoder.makePlistCompatible().encode([1, 2, Int?.none, 4])
642643
#expect(

0 commit comments

Comments
 (0)