Skip to content

Commit d1ac0d3

Browse files
authored
Make test subjects XMLChoiceCodable (CoreOffice#13)
1 parent 85187c0 commit d1ac0d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tests/XMLCoderTests/CompositeChoiceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private enum IntOrStringWrapper: Equatable {
2121
case string(StringWrapper)
2222
}
2323

24-
extension IntOrStringWrapper: Codable {
24+
extension IntOrStringWrapper: XMLChoiceCodable {
2525

2626
enum CodingKeys: String, CodingKey {
2727
case int

Tests/XMLCoderTests/SimpleChoiceTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ private enum IntOrString: Equatable {
1313
case string(String)
1414
}
1515

16-
extension IntOrString: Codable {
16+
extension IntOrString: XMLChoiceCodable {
17+
1718
enum CodingKeys: String, CodingKey {
1819
case int
1920
case string

0 commit comments

Comments
 (0)