Skip to content

Commit

Permalink
Make test subjects XMLChoiceCodable (CoreOffice#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbean committed Jul 15, 2019
1 parent 85187c0 commit d1ac0d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/XMLCoderTests/CompositeChoiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private enum IntOrStringWrapper: Equatable {
case string(StringWrapper)
}

extension IntOrStringWrapper: Codable {
extension IntOrStringWrapper: XMLChoiceCodable {

enum CodingKeys: String, CodingKey {
case int
Expand Down
3 changes: 2 additions & 1 deletion Tests/XMLCoderTests/SimpleChoiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ private enum IntOrString: Equatable {
case string(String)
}

extension IntOrString: Codable {
extension IntOrString: XMLChoiceCodable {

enum CodingKeys: String, CodingKey {
case int
case string
Expand Down

0 comments on commit d1ac0d3

Please sign in to comment.