Skip to content
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

Align test schema with error spec #803

Merged

Conversation

mradbourne
Copy link
Collaborator

@mradbourne mradbourne commented May 29, 2024

The error spec has been recently updated. This PR brings the test schema and existing tests in-line with the latest error definitions.

@mradbourne mradbourne force-pushed the align-test-schema-with-error-spec branch from 5e504ca to 5de7d63 Compare May 29, 2024 09:58
@@ -11,7 +11,7 @@
"exp": "{:date}",
"expErrors": [
{
"type": "invalid-expression"
"type": "bad-operand"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just highlighting an assumption I've made:
This test results in bad-operand because it is effectively being passed an operand of 'undefined', which is not compatible with the :date function.

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.

Looks good, in general.

It's suspicious that we only have bad-operand tests in the PR. That suggests we lack tests.

@aphillips aphillips added test-suite LDML46 LDML46 Release (Tech Preview - October 2024) labels May 29, 2024
Copy link
Collaborator

@catamorphism catamorphism left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

@aphillips This does include a couple of bad-option errors as well. But we definitely need more tests; many of the errors will need to use :test:function to be triggered.

Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

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

For the record, the specific spec PR seems to be #774 (this PR just linked to latest)

@mradbourne mradbourne merged commit b4fd5a6 into unicode-org:main May 31, 2024
2 checks passed
@mradbourne mradbourne deleted the align-test-schema-with-error-spec branch May 31, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LDML46 LDML46 Release (Tech Preview - October 2024) test-suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants