Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests Are Failing #275

Open
Treata11 opened this issue Sep 29, 2023 · 0 comments
Open

Tests Are Failing #275

Treata11 opened this issue Sep 29, 2023 · 0 comments

Comments

@Treata11
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant