-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Align test schema with error spec #803
Conversation
5e504ca
to
5de7d63
Compare
@@ -11,7 +11,7 @@ | |||
"exp": "{:date}", | |||
"expErrors": [ | |||
{ | |||
"type": "invalid-expression" | |||
"type": "bad-operand" |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this 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.
There was a problem hiding this 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)
The error spec has been recently updated. This PR brings the test schema and existing tests in-line with the latest error definitions.