Skip to content
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

Fix fill/pad handling in regex formatter #9

Merged
merged 3 commits into from
Sep 27, 2018

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Sep 27, 2018

My refactored parse function which uses regular expressions had a hidden bug that only showed up at random moments based on how is_one2one works. I've now added specific tests for this. The case being a width-specified format where the value doesn't fill the entire width:

parse('{:5d}', '  123')

My code was requiring 5 digits, not including fill characters.

@djhoese djhoese self-assigned this Sep 27, 2018
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 94.257% when pulling 78b387c on djhoese:feature-formatter-refactor into dba39cf on pytroll:master.

@djhoese djhoese merged commit a36aaf0 into pytroll:master Sep 27, 2018
@djhoese djhoese deleted the feature-formatter-refactor branch September 27, 2018 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants