Repository navigation
test(conformance): a case can have more than one valid output - #23
Merged
Merged
Conversation
Where the spec allows several answers, `also_valid` lists the others and an output matching `expect` or any of them passes; "rejected" in it lets an error pass. self-referential-examples/014 is the first: a and b resolve in an undefined order, so both 1, both 2 or an error are all allowed, as long as they agree. It was an open question only because one expected tree could not say that; every report gains it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CbBo1aotFTDLY2gery7qYD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #21.
Where the spec allows several answers, a case lists the others in
also_valid: an output matchingexpector any of them passes, and"rejected"in the list lets an error pass.conformance/README.mddescribes it under the sidecar.self-referential-examples/014is the first such case. HOCON.md L866–890 allows bothaandbto be 1, both 2, or an error, as long as they agree. It was an open question only because one expected tree could not say that:{"a":2,"b":2}passes, an error passes,{"a":1,"b":2}fails.include-syntax/011, until HOCON.md: the string inside url() is an absolute URL lightbend/config#887 is merged.🤖 Generated with Claude Code
https://claude.ai/code/session_01CbBo1aotFTDLY2gery7qYD