CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
793 stars 104 forks source link

Tests Are Failing #275

Open Treata11 opened 10 months ago

Treata11 commented 10 months ago

Tests are failing in XCode 15 with error messages:

Test Suite 'XMLCoderTests.xctest' failed at 2023-09-29 21:06:45.391.
     Executed 330 tests, with 1 failure (0 unexpected) in 13.231 (13.339) seconds
Test Suite 'All tests' failed at 2023-09-29 21:06:45.392.
     Executed 330 tests, with 1 failure (0 unexpected) in 13.231 (13.340) seconds
Program ended with exit code: 1

URLBoxTests.swift

func testInvalidValues() {
        let values: [String] = [
            "foo\nbar",
            "",
        ]

        for string in values {
            let box = Boxed(xmlString: string)
            XCTAssertNil(box)
        }
    }

Error: XCTAssertNil failed: "foo%0Abar"

XMLStackParser.swift

        guard errorContextLength > 0 && xmlParser.lineNumber > 0 else {
            throw error
        }

Error on line 66: testIdentification(): failed: caught error: "Error Domain=NSXMLParserErrorDomain Code=111 "(null)""