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

YAML: correctly serialize infinity and NaN #9780

Merged
merged 1 commit into from
Sep 30, 2020
Merged

Conversation

asterite
Copy link
Member

Fixes #9779

@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:serialization labels Sep 29, 2020
Copy link
Member

@bcardiff bcardiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there is always more yaml to learn 😅

@jkthorne
Copy link
Contributor

can we use the yaml test suite to make sure we cover most parsing cases?
https://github.com/yaml/yaml-test-suite

@asterite
Copy link
Member Author

It's a good idea, but maybe it's a bit overkill. Since we are using libyaml and that already checks against those tests, then the parsing is already covered. What's remaining is the layer on top of YAML which is how we interpret things. Languages do this in different ways (there's no clear standard), though there are recommendations.

@asterite asterite merged commit d97fe3f into master Sep 30, 2020
@asterite asterite deleted the bug/yaml-infinity branch September 30, 2020 13:31
@bcardiff bcardiff added this to the 1.0.0 milestone Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:serialization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

YAML prints Infinity not according to YAML spec
3 participants