Skip to content

Fix YAML test suite case 4H7K (extra closing bracket should fail)#92

Open
bourumir-wyngs wants to merge 3 commits intosaphyr-rs:masterfrom
bourumir-wyngs:bw_parser_closing_bracket_fix
Open

Fix YAML test suite case 4H7K (extra closing bracket should fail)#92
bourumir-wyngs wants to merge 3 commits intosaphyr-rs:masterfrom
bourumir-wyngs:bw_parser_closing_bracket_fix

Conversation

@bourumir-wyngs
Copy link

This patch makes the sequence like [ a, b, c ] ] to fail with scan error. This is not valid YAML, and there is a case 4H7K in yaml test suite checking that parsing results in error. saphyr-parser 0.0.6 swallows this YAML as valid.

This patch does not cause regressions in any of 624 cases in saphyr-rs neither in 702 case tests in serde-saphyr.

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