We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 565bb112f7f443a762ee5ddbb53785ac
Issue Description:
Empty arrays are encoded into a JSON string in different ways on Darwin and Linux. This test will pass on Darwin:
func testEmptyArray() throws { let encoder = JSONEncoder() encoder.outputFormatting = .prettyPrinted let value: [Int] = [] XCTAssertEqual(String.init(decoding: try encoder.encode(value), as: UTF8.self) , """ [ ] """) }
but fails on Linux:
XCTAssertEqual failed: ("[ ]") is not equal to ("[ ]") -
The text was updated successfully, but these errors were encountered:
I'm realizing that this also happens with empty objects.
Sorry, something went wrong.
#2551
spevans
No branches or pull requests
Additional Detail from JIRA
md5: 565bb112f7f443a762ee5ddbb53785ac
Issue Description:
Empty arrays are encoded into a JSON string in different ways on Darwin and Linux. This test will pass on Darwin:
but fails on Linux:
The text was updated successfully, but these errors were encountered: