XMLCoder icon indicating copy to clipboard operation
XMLCoder copied to clipboard

Tests Are Failing

Open Treata11 opened this issue 2 years ago • 0 comments

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)""

Treata11 avatar Sep 29 '23 17:09 Treata11