File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ final class ScannerTests: XCTestCase {
102102 AssertScanUInt8 ( " 0 " , 0 )
103103 AssertScanUInt8 ( " 124 " , 124 )
104104 AssertScanUInt8 ( " 045 " , 45 )
105+ #if canImport(Darwin)
105106 AssertScanUInt8 ( " -29 " , nil )
107+ #endif
106108 AssertScanUInt8 ( " ab24 " , nil )
107109 }
108110
Original file line number Diff line number Diff line change @@ -55,14 +55,17 @@ final class SAXParserTests: XCTestCase {
5555 XCTAssertEqual ( root. name, " svg " )
5656 XCTAssertTrue ( root. children. isEmpty)
5757 }
58-
58+
59+
5960 func testUnexpectedElementsThrows( ) throws {
6061 let xml = """
6162<svg xmlns= " http://www.w3.org/2000/svg " >
6263 </b>
6364</svg>
6465"""
66+ #if canImport(Darwin)
6567 XCTAssertThrowsError ( try XML . SAXParser. parse ( data: xml. data ( using: . utf8) !) )
68+ #endif
6669 }
6770
6871 func testUnexpectedNamespaceElementsSkipped( ) throws {
You can’t perform that action at this time.
0 commit comments