-
Notifications
You must be signed in to change notification settings - Fork 124
Added check to support a continuous run of a terminator to end a line #403
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
Codecov Report
@@ Coverage Diff @@
## master #403 +/- ##
==========================================
+ Coverage 89.48% 90.15% +0.66%
==========================================
Files 8 8
Lines 2530 2528 -2
==========================================
+ Hits 2264 2279 +15
+ Misses 266 249 -17
Continue to review full report at Codecov.
|
| try: | ||
| pos = tokens.index(test_terminator) | ||
| if pos < terminator_pos: | ||
| terminator_pos = len(tokens) + 1 |
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 ok to me
kotfu
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.
I don't think we are quite there yet. I just committed a bunch of unit tests that I think should pass, and many of them don't.
| assert statement.argv == ['has', '>', 'inside'] | ||
| assert statement.terminator == ';' | ||
|
|
||
| @pytest.mark.parametrize('line,terminator',[ |
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.
Thanks for adding lots of unit tests to cover this functionality
Possible fix for #402
This closes #402