Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Separate data model errors from syntax errors #708

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

Merged
merged 4 commits into from
Mar 9, 2024

Conversation

catamorphism
Copy link
Collaborator

Split out data model errors into their own file and label tests according to the error name from the spec.

No new test cases are added/removed.

Split out data model errors into their own file and
label tests according to the error name from the spec.

No new test cases are added/removed.
@catamorphism catamorphism requested review from aphillips and eemeli March 6, 2024 23:48
@catamorphism
Copy link
Collaborator Author

When integrating these tests into my implementation, I was surprised to find that not all the tests in syntax-errors.json were actually syntax errors, and I thought it was also nice to label the tests according to which data model error they should trigger, since it's not immediately obvious.

Copy link
Member

@aphillips aphillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... assuming @eemeli's comment gets addressed

@aphillips aphillips added fast-track Editorial change permitted to use fast-track merge rules test-suite Issue pertains to tests labels Mar 9, 2024
Copy link
Collaborator

@eemeli eemeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, pending two small inline fixes.

aphillips and others added 2 commits March 9, 2024 07:10
@aphillips aphillips merged commit abc97d2 into unicode-org:main Mar 9, 2024
catamorphism added a commit to catamorphism/message-format-wg that referenced this pull request Mar 11, 2024
* Separate data model errors from syntax errors

Split out data model errors into their own file and
label tests according to the error name from the spec.

No new test cases are added/removed.

* Reformat data model error test file

* Update test/syntax-errors.json

Co-authored-by: Eemeli Aro <[email protected]>

* Update test/README.md

Co-authored-by: Eemeli Aro <[email protected]>

---------

Co-authored-by: Addison Phillips <[email protected]>
Co-authored-by: Eemeli Aro <[email protected]>
catamorphism added a commit to catamorphism/message-format-wg that referenced this pull request Mar 11, 2024
* Separate data model errors from syntax errors

Split out data model errors into their own file and
label tests according to the error name from the spec.

No new test cases are added/removed.

* Reformat data model error test file

* Update test/syntax-errors.json

Co-authored-by: Eemeli Aro <[email protected]>

* Update test/README.md

Co-authored-by: Eemeli Aro <[email protected]>

---------

Co-authored-by: Addison Phillips <[email protected]>
Co-authored-by: Eemeli Aro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track Editorial change permitted to use fast-track merge rules test-suite Issue pertains to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants