Writed new tests#974
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Thank you for your work! Before your PR can be approved, please address the following critical issues: there are missing semicolons at the end of some lines, which can cause syntax errors, and there is a typo (an extra space) in the expected array [10, 10 ,10] in the first test. These issues may prevent your tests from running correctly or cause them to fail unexpectedly. Please fix these problems so your code is functional and meets the core requirements. You're almost there—keep up the good work! 😊
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
|
|
||
|
|
||
| const result = splitInteger(30, 3); | ||
| expect(result).toEqual([10, 10 ,10]); |
There was a problem hiding this comment.
There is an extra space in the expected array: [10, 10 ,10]. Please remove the space after the second 10 to avoid confusion and ensure the test matches the actual output.
| when splitting into 1 part`, () => { | ||
|
|
||
| const result = splitInteger(30, 1); | ||
| expect(result).toEqual([30]) |
There was a problem hiding this comment.
Missing semicolon at the end of the line. This may cause issues if you add more code after this line. Please add a semicolon.
| }); | ||
|
|
||
| test('should sort parts ascending if they are not equal', () => { | ||
| const result = splitInteger(42, 4) |
There was a problem hiding this comment.
Missing semicolon at the end of the line. Please add a semicolon to avoid potential syntax errors.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
No description provided.