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

RFC 8259 compliance tests #81

Merged
merged 2 commits into from
Feb 23, 2019
Merged

RFC 8259 compliance tests #81

merged 2 commits into from
Feb 23, 2019

Conversation

NathanReb
Copy link
Collaborator

This PR adds a test suite for RFC 8259 compliance, as suggested in #34.

It is not run as part of the main test suite yet but via dune build @compliance-tests and has a pretty verbose output.

Next step is to decide what to do with the 11 failures and to eventually include part of these test cases to the main test suite. For instance it'd be good to ensure that all Yojson modules accept all the valid JSON from this test suite.

Because changing the behaviour of the current parsers might break some users code, I'm considering adding a Yojson.Standard, which type t would be compatible with Yojson.Basic.t but that would only accept and emit compliant JSON. What to do with the other modules is still to be determined as part of the plan for 2.0.0.

@NathanReb NathanReb merged commit 898e2e6 into master Feb 23, 2019
@NathanReb NathanReb deleted the rfc-8259-compliance-tests branch February 23, 2019 18:47
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.

1 participant