-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Added length unit conversions #5373
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
Conversion of length units were added with respective tests being implemented and passed. Available Units:- Metre,Kilometre,Feet,Inch,Centimeter,Yard,Foot,Mile,Millimeter
File was formatted to go as per repo rules
The tests have been passed :) |
@cclauss The tests have been passed. Let me know if I can do anymore changes/contribution !! |
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.
Please add one more test
Added test to evaluate whether the code handles wrong arguements passed
The tests are passing in my Pycharm with doctests().But why is it failing here in pre-commit ? It initially passed too before this change!! Any reason why ? |
conversions/length_conversions.py:106:89: E501 line too long (96 > 88 characters) |
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.
LGTM
One of the test was failing and it was fixed
@cclauss Thank you for the kind help you did. I myself have fixed the errors too which the program you wrote met with and the code have now passed all the test. @l3str4nge The code has passed the test !! :) |
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.
LGTM. Thanks for the cleanup. I was trying to fix things in Pythonista on my iPad (imperfect ;-) )and was just switching to my MacBook when I saw that you already cleaned things up.
* Added length unit conversions Conversion of length units were added with respective tests being implemented and passed. Available Units:- Metre,Kilometre,Feet,Inch,Centimeter,Yard,Foot,Mile,Millimeter * Formatted File File was formatted to go as per repo rules * Reformatted file * Reformatted code once again * Added more test Added test to evaluate whether the code handles wrong arguements passed * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Fixed Minor errors in test One of the test was failing and it was fixed Co-authored-by: Christian Clauss <[email protected]>
Conversion of length units were added with respective tests being implemented and passed.
Available Units:- Metre,Kilometre,Feet,Inch,Centimeter,Yard,Foot,Mile,Millimeter
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.