From bb6dda23b43b685878cc1f8ed1ec8d701c224ff4 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Sun, 6 Oct 2019 16:08:01 +0100 Subject: [PATCH] Add QuoteDecodingTest (#137) Add a test case previously reported in #129 --- Tests/XMLCoderTests/QuoteDecodingTest.swift | 51 +++++++++++++++++++++ XMLCoder.xcodeproj/project.pbxproj | 16 ++++--- 2 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 Tests/XMLCoderTests/QuoteDecodingTest.swift diff --git a/Tests/XMLCoderTests/QuoteDecodingTest.swift b/Tests/XMLCoderTests/QuoteDecodingTest.swift new file mode 100644 index 00000000..42f266b5 --- /dev/null +++ b/Tests/XMLCoderTests/QuoteDecodingTest.swift @@ -0,0 +1,51 @@ +// +// QuoteDecodingTest.swift +// XMLCoderTests +// +// Created by Max Desiatov on 05/10/2019. +// + +import Foundation +import XCTest +@testable import XMLCoder + +private let xml = + """ + + <uesb2b:response + xmlns:uesb2b="http://services.b2b.ues.ut.uhg.com/types/plans/" + xmlns="http://services.b2b.ues.ut.uhg.com/types/plans/"> + <uesb2b:st cd="GA" /> + <uesb2b:obligId val="01" /> + <uesb2b:shrArrangementId val="00" /> + <uesb2b:busInsType val="CG" /> + <uesb2b:metalPlans typ="Array" + + + """.data(using: .utf8)! + +private let expectedResponse = + """ + \r + \r + \r + \r + \r +