+
+
+
+ 1518
+ I am answering it again.
+
+
+ 431
+ A Word About Wake Times
+
+
+
+
+ 1519
+ I am answering it again.
+
+
+
+
+ """
+ let result = try XMLDecoder().decode(Container.self, from: xml.data(using: .utf8)!)
+ let expected = Container(
+ paragraphs: [
+ Paragraph(
+ entries: [
+ .br(Break()),
+ .run(Run(id: 1518, text: "I am answering it again.")),
+ .properties(Properties(id: 431, title: "A Word About Wake Times")),
+ ]
+ ),
+ Paragraph(
+ entries: [
+ .run(Run(id: 1519, text: "I am answering it again.")),
+ .br(Break()),
+ ]
+ ),
+ ]
+ )
+ XCTAssertEqual(result, expected)
+ }
+
func testNestedEnumsRoundTrip() throws {
let original = Container(
paragraphs: [
diff --git a/XMLCoder.podspec b/XMLCoder.podspec
index 167f9db4..4fcc8404 100644
--- a/XMLCoder.podspec
+++ b/XMLCoder.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "XMLCoder"
- s.version = "0.7.0"
+ s.version = "0.8.0"
s.summary = "XMLEncoder & XMLDecoder using the Codable protocol in Swift"
s.description = "XMLCoder allows Swift Codable-conforming objects to be translated to and from XML"
s.homepage = "https://github.com/MaxDesiatov/XMLCoder"
diff --git a/XMLCoder.xcodeproj/project.pbxproj b/XMLCoder.xcodeproj/project.pbxproj
index e6c05c36..cf9b651d 100644
--- a/XMLCoder.xcodeproj/project.pbxproj
+++ b/XMLCoder.xcodeproj/project.pbxproj
@@ -21,6 +21,8 @@
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
+ 07E441BA2340F14B00890F46 /* EmptyElementEmptyStringTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07E441B92340F14B00890F46 /* EmptyElementEmptyStringTests.swift */; };
+ B5EA3BB6230F237800D8D69B /* NestedChoiceArrayTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5EA3BB4230F235C00D8D69B /* NestedChoiceArrayTest.swift */; };
OBJ_148 /* BoolBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_12 /* BoolBox.swift */; };
OBJ_149 /* Box.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_13 /* Box.swift */; };
OBJ_150 /* ChoiceBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_14 /* ChoiceBox.swift */; };
@@ -152,6 +154,8 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
+ 07E441B92340F14B00890F46 /* EmptyElementEmptyStringTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyElementEmptyStringTests.swift; sourceTree = "