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 behavioral tests for examples from the YAML spec #1835

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Oct 17, 2024

Changes

I took the examples from https://yaml.org/spec/1.2.2.

The required modifications to the loader are:

  • Correctly parse floating point infinities and NaN
  • Correctly parse octal numbers per the YAML 1.2 spec
  • Treat "null" keys in a map as valid

Tests

Existing and new unit tests pass.

I took the examples from https://yaml.org/spec/1.2.2.

The required modification to the loader are:
* Correctly parse floating point infinities and NaN
* Correctly parse octal numbers per the YAML 1.2 spec
* Treat "null" keys in a map as valid
@pietern
Copy link
Contributor Author

pietern commented Oct 17, 2024

This came up during the discussion of the other issue related to a time value.

I figured I'd add coverage for several examples from the spec to ensure we don't have other latent issues.

@pietern pietern added this pull request to the merge queue Oct 17, 2024
Merged via the queue into main with commit dedec58 Oct 17, 2024
5 checks passed
@pietern pietern deleted the yaml-spec-coverage branch October 17, 2024 13:19
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.

2 participants