We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to get this failing test to work, but not getting anywhere.
import XCTest import XMLCoder final class CDATAEntryTest: XCTestCase { private struct DataEntry: Codable, Equatable { let value: String enum CodingKeys: String, CodingKey { case value = "" } } private struct Container: Codable, Equatable { let data: [DataEntry] } private let xml = """ <container> <data><![CDATA[lorem ipsum]]></data> <data>bla bla</data> </container> """.data(using: .utf8)! func testXMLWithCDataDataEntries() throws { let decoder = XMLDecoder() let result = try decoder.decode(Container.self, from: xml) XCTAssertEqual(result, Container(data: [.init(value: "lorem ipsum"), .init(value: "bla bla")])) // FAILS: got: ["", "bla bla"], but expected: ["lorem ipsum", "bla bla"] } }
The text was updated successfully, but these errors were encountered:
Fix mixed CDATA usage
1c269f8
Fixes CoreOffice#260
43fea89
Fix mixed CDATA usage (#261)
666227d
Fixes #260
Successfully merging a pull request may close this issue.
I am trying to get this failing test to work, but not getting anywhere.
The text was updated successfully, but these errors were encountered: