Skip to content

Commit

Permalink
Fix formatting and access control in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov authored and Arjun Gupta committed Jun 26, 2020
1 parent cf843e7 commit d1af199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Tests/XMLCoderTests/AttributedEnumIntrinsicTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ private enum FooEnum: Equatable, Codable {
self = .int(value)
return
} else {
throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: decoder.codingPath,
debugDescription: "No coded value for string or int"))
throw DecodingError.dataCorrupted(DecodingError.Context(
codingPath: decoder.codingPath,
debugDescription: "No coded value for string or int"
))
}
}

Expand Down
3 changes: 2 additions & 1 deletion Tests/XMLCoderTests/SingleChildTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import XCTest
@testable import XMLCoder

struct ProudParent: Codable, Equatable {
private struct ProudParent: Codable, Equatable {
var myChildAge: [Int]
}

Expand Down Expand Up @@ -42,6 +42,7 @@ final class SingleChildTest: XCTestCase {
}

static var allTests = [
("testEncoder", testEncoder),
("testDecoder", testDecoder),
]
}

0 comments on commit d1af199

Please sign in to comment.