-
Notifications
You must be signed in to change notification settings - Fork 33
Check Expected Errors in Tests #126
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
Conversation
| public static void main(String[] args) { | ||
| @Refinement("InRange( _, 10)") | ||
| @Refinement("InRange(j, 10)") | ||
| int j = 15; |
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.
Here we are getting a not found error instead of an argument mismatch error.
Needs to be fixed in the future by checking if the provided arguments match the alias definition.
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.
Fixed in #127.
CatarinaGamboa
left a comment
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.
Niceee! As a follow up we should add these details in the testing section of the README.
| @@ -1,3 +1,4 @@ | |||
| // Error | |||
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.
why is this just error? we don't have a more specific type?
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.
It's the most general case, a.k.a. CustomError, but we can introduce more specific errors in the future.
| @@ -1,3 +1,4 @@ | |||
| // Error | |||
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.
Why just error?
| @@ -1,3 +1,4 @@ | |||
| // Error | |||
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.
same as below
This PR closes #105 by comparing the expected error with the actual error found for each test (it assumes each one contains exactly one error, and fails otherwise).
.expectedfile should be included with the expected error.The test suite now requires all failing tests to include the expected error (fails otherwise), providing more guarantees about the behavior of the verifier.