Skip to content

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
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
@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 <eemeli@gmail.com>

* Update test/README.md

Co-authored-by: Eemeli Aro <eemeli@gmail.com>

---------

Co-authored-by: Addison Phillips <addisonI18N@gmail.com>
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
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 <eemeli@gmail.com>

* Update test/README.md

Co-authored-by: Eemeli Aro <eemeli@gmail.com>

---------

Co-authored-by: Addison Phillips <addisonI18N@gmail.com>
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
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