Skip to content

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
"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 Issue pertains to tests LDML46 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
@mradbourne mradbourne deleted the align-test-schema-with-error-spec branch May 31, 2024 15:31
@eemeli eemeli added this to the LDML 46 milestone Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-suite Issue pertains to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants