-
Notifications
You must be signed in to change notification settings - Fork 814
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
Solution #793
base: main
Are you sure you want to change the base?
Solution #793
Conversation
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.
Great job on implementing the splitInteger
function! 🎉 Your code meets the task requirements and constraints effectively. The function is well-structured, and the test cases cover a variety of scenarios. While there are minor issues, such as the test logic for isDifferenceValid
and the ESLint rule for 'no-proto', they do not significantly impact the functionality. Keep up the good work, and consider refining these areas for even better code quality in the future! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
'no-proto': 0, | ||
strict: 0, | ||
'max-len': 0, | ||
'no-proto': 0 |
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.
The rule 'no-proto' is set to 0, which effectively turns it off. Ensure this is intentional, as using 'proto' is generally discouraged due to potential security and performance issues.
src/splitInteger.test.js
Outdated
expect(isDifferenceValid(splitInteger(17, 4))).toEqual( | ||
isDifferenceValid(splitInteger(17, 4)) | ||
); |
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.
The test here is not effectively testing the isDifferenceValid
function. It compares the result of isDifferenceValid(splitInteger(17, 4))
with itself, which will always be true. Consider testing the function with different inputs to ensure it behaves as expected.
Have a nice day!