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

Support for "inf" and "nan" values #180

Merged
merged 4 commits into from
Jan 7, 2023
Merged

Support for "inf" and "nan" values #180

merged 4 commits into from
Jan 7, 2023

Conversation

orchestr7
Copy link
Owner

What's done:

  • Support for decoding of Infinity and Not a number values:
  • "-nan","+nan", "nan", "-NaN", "+NaN", "NaN"
  • "+inf", "inf", "-inf"
  • tests for covering these corner cases and empty values

### What's done:
- Previously ktoml did not support special escaped characters while decoding of Char type
- Added extra tests for literal strings
- Moved logic related to the escaped characters to new utils file
### What's done:
- Support for decoding of Infinity and Not a number values:
- "-nan","+nan", "nan", "-NaN", "+NaN", "NaN"
- "+inf", "inf", "-inf"
- tests for covering these corner cases and empty values
…re/nan-inf

� Conflicts:
�	ktoml-core/src/commonTest/kotlin/com/akuleshov7/ktoml/decoders/StringsDecoderTest.kt
@orchestr7 orchestr7 linked an issue Jan 7, 2023 that may be closed by this pull request
@orchestr7 orchestr7 merged commit 60f1697 into main Jan 7, 2023
@orchestr7 orchestr7 deleted the feature/nan-inf branch January 7, 2023 22:13
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.

Followups for integer types
1 participant