-
Notifications
You must be signed in to change notification settings - Fork 18
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
o'clock fix #13
o'clock fix #13
Conversation
Pull Request Test Coverage Report for Build 40
💛 - Coveralls |
@@ -37,6 +38,24 @@ def categorize(tokens, now): | |||
return tokens | |||
|
|||
|
|||
# TODO: add conversions for thirty, fourty-five |
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.
These conversions could actually be done by https://pypi.org/project/word2number/
Edit: adding word2number might be too much for a single PR. Just noting we don't have to build it ourselves
@alvinwan Thanks for all your help. Extra tests added, coverage increased. Hopefully, I'll get around to opening a few more PRs soon! |
@alvinwan Sorry about this, the build started failing as I think I forgot to test with pytest after my very last commit. I can open another PR but it won't be able to be automatically merged, unfortunately. |
#12
Fix parsing of "5 o'clock pm", "five o'clock pm" and "five o'clock".
Create a separate function to convert all word numbers to digit numbers.
Add 2 tests for new function and 2 extra tests to
maybe_substitute_hour_minute
function.All tests on pytest passing.