Add instanceFormat/certificateFormat declarations to NODESET - #489
Open
Trosper3 wants to merge 4 commits into
Open
Add instanceFormat/certificateFormat declarations to NODESET#489Trosper3 wants to merge 4 commits into
Trosper3 wants to merge 4 commits into
Conversation
NODESET never adopted the self-describing instance/certificate format pattern (Interfaces/ProblemInterface.cs) and had no dedicated test file. Declares instanceFormat describing the ((N,E),K) grammar and certificateFormat describing the node-removal-set certificate, and adds a new NODESET_Tests.cs covering the format declarations. Includes a check that the certificate example quoted in the format string actually verifies true against defaultInstance.
Redux Build System — CI Report
Overall: ❌ 4 passed · 1 failed · 3 skipped |
2 tasks
Extracts the constructor's inline StringParser grammar into a named InstanceGrammar const, and adds CertificateGrammar/CertificateExample consts to NodeSetVerifier. instanceFormat/certificateFormat are now interpolated from these plus _defaultInstance, instead of hand-duplicated prose. Also merges in CSharpAPI (including #501) to pick up the dotnet-format gate this branch predates.
Superseded by the richer test file for this problem already open in PR #517 (instantiation + verifier theory + solver coverage vs. this PR's 3-test format smoke check). Keeping the instanceFormat/certificateFormat declaration changes; only dropping the file that would otherwise collide on merge.
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.
Summary
Interfaces/ProblemInterface.cs) and had no dedicated test file.instanceFormatdescribing the((N,E),K)grammar andcertificateFormatdescribing the node-removal-set certificate, onNODESET_Class.cs.NODESET_Tests.cscovering the format declarations, including a check that the certificate example quoted in the format string ({3}) actually verifies true againstdefaultInstancevia the real verifier.Closes #444
Test plan
dotnet test redux-tests/redux-tests.csproj --filter "FullyQualifiedName~NODESET"— 3/3 passing