Skip to content

Tests Are Failing #275

@Treata11

Description

@Treata11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions