Skip to content

Solution#1047

Open
G0odvin wants to merge 1 commit intomate-academy:mainfrom
G0odvin:develop
Open

Solution#1047
G0odvin wants to merge 1 commit intomate-academy:mainfrom
G0odvin:develop

Conversation

@G0odvin
Copy link

@G0odvin G0odvin commented Dec 3, 2025

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your tests are well-structured and cover several important scenarios, which is a great start. However, changes are needed because a core requirement of the task has not been met. The task description explicitly requires tests for four specific examples, which are currently missing from your test suite.

Please add the following test cases to src/splitInteger.test.js to complete the requirements:

  • splitInteger(8, 1)
  • splitInteger(6, 2)
  • splitInteger(17, 4)
  • splitInteger(32, 6)

Once these tests are added, your solution will fully meet the task objectives. 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example


test(`should split a number into equal parts
if a value is divisible by a numberOfParts`, () => {
const value = 100;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests you've written are logical and cover different scenarios. However, the requirements specify four exact examples that must be tested. Please add test cases for splitInteger(8, 1), splitInteger(6, 2), splitInteger(17, 4), and splitInteger(32, 6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants