-
Notifications
You must be signed in to change notification settings - Fork 1
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
27 binary to decimal converter #46
Conversation
- Implemented binary_to_decimal function to convert binary number to decimal. - Added unit tests covering standard cases, edge cases, and defensive tests for invalid input types.
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.
nice work Khusro, code implementation is clear , well formated and its strategy is self-explanatory. 👍🤩
A few tiny changes suggested as comments
Thank you, will make the suggested changes 🙌 |
Hello @Khusro-S , |
Thank you both @Mohamed-Elnageeb and @Zeinab15. I made all the suggested changes and corrections 🙌 . |
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.
Well done @Khusro-S, I approve
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.
perfectly done!
… function. - Replaced assert statements with specific error handling (TypeError and ValueError). - Updated test cases to check for the new errors: -- TypeError for non-integer inputs (string, None, float). -- ValueError for negative year inputs.
718d468
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.
Well done
name: solution review
about: A template PR for code review with a checklist
Behavior
Files
/tests/test_file_name.py
Unit Tests
Function Docstring
Raises:
The Function
Strategy
Do's
Don'ts
Implementation
when it's too restricting.