Skip to content

Remove an invalid numeric JSON test #2903

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

Merged
merged 1 commit into from
Oct 18, 2020

Conversation

tbkka
Copy link
Contributor

@tbkka tbkka commented Oct 17, 2020

The value 2.7976931348623158e+308 is a perfectly valid JSON number
and should be accepted. This test is only passing today because the Swift
standard library's Double(_ String:) initializer currently has a bug that
rejects numbers larger than the maximum Double value.

But we're getting ready to fix that bug in the Swift standard library,
(swiftlang/swift#34339) which will break this test when it lands.

(After that PR lands, we should update this again to verify that this value
parses to Double.infinity.)

The value `2.7976931348623158e+308` is a perfectly valid JSON number
and should be accepted.  This test is only passing today because the Swift
standard library's `Double(_ String:)` initializer has a bug that
rejected numbers larger than the maximum Double value.

But we're getting ready to fix that bug in the Swift standard library,
(swiftlang/swift#34339) which will break this test when it lands.
@spevans
Copy link
Contributor

spevans commented Oct 17, 2020

@swift-ci test

@spevans
Copy link
Contributor

spevans commented Oct 17, 2020

@swift-ci test and merge

@spevans
Copy link
Contributor

spevans commented Oct 18, 2020

@swift-ci test

@spevans spevans merged commit cfef71f into swiftlang:main Oct 18, 2020
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

Successfully merging this pull request may close these issues.

3 participants