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

Add parsing support for +/-Inf w/ tests #24

Merged
merged 1 commit into from Jul 3, 2017

Conversation

armanbilge
Copy link
Contributor

@armanbilge armanbilge commented Jun 30, 2017

Currently it is impossible to parse infinities in a YAML. I get the following error:
Exception in thread "main" net.jcazevedo.moultingyaml.package$DeserializationException: Expected Double as YamlNumber, but got YamlPositiveInf

This PR enables correct parsing of infinities and adds the appropriate test cases.

@jcazevedo
Copy link
Owner

Thanks for this!

@jcazevedo jcazevedo merged commit 9373676 into jcazevedo:master Jul 3, 2017
@jcazevedo
Copy link
Owner

I've just published 0.4.1-SNAPSHOT, which includes your changes.

@armanbilge
Copy link
Contributor Author

Perfect, thanks! That's a big help.

@armanbilge armanbilge deleted the fix-infinity branch July 3, 2017 11:42
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.

None yet

2 participants