-
Notifications
You must be signed in to change notification settings - Fork 268
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
Enable filtering on a range of assertions #6077
Enable filtering on a range of assertions #6077
Conversation
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.
Disabling auto-merge so that you can choose to apply suggestions, otherwise looks good 👍
class LineRange(int start, int end) { | ||
public int Start { get; } = start; | ||
public int End { get; } = end; | ||
|
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.
A few GitHub warnings above
Source/DafnyDriver/CliCompilation.cs
Outdated
public int End { get; } = end; | ||
|
||
public bool Contains(int value) { | ||
return start <= value && value <= end; |
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.
I'm ok to consider end to be inclusive here.
Co-authored-by: Mikaël Mayer <[email protected]>
What was changed?
Besides
--filter-position :<line>
, also support--filter-position :<start>-<end>
,--filter-position :<start>-
and--filter-position :-<end>
How has this been tested?
Extended existing test
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.