Skip to content

Solution#160

Open
ydashko wants to merge 2 commits intomate-academy:mainfrom
ydashko:develop
Open

Solution#160
ydashko wants to merge 2 commits intomate-academy:mainfrom
ydashko:develop

Conversation

@ydashko
Copy link

@ydashko ydashko commented Jul 8, 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

Thank you for your hard work on this! 😊 Your test file is well-structured and covers a variety of scenarios, which is great. However, there is a critical issue: in the test case for reversing multiple words, the expected output does not match the intended logic of reversing each word individually. For example, for the input ['Mate', 'Academy'], the expected output should be ['etaM', 'ymedacA'], not ['ymed', 'acAetaM']. Please review the requirements and update the expected output in the affected test case(s) to ensure your tests accurately reflect the function's intended behavior. Once this is corrected, your solution will be in great shape! 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

});

it('should reverse multiple words keeping their lengths', () => {
expect(arrayReverse(['Mate', 'Academy'])).toEqual(['ymed', 'acAetaM']);

Choose a reason for hiding this comment

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

Issue: The expected output ['ymed', 'acAetaM'] does not match the logic of reversing each word individually. For input ['Mate', 'Academy'], the expected output should be ['etaM', 'ymedacA'] if each word is reversed separately. Please verify the requirements and adjust the expected output accordingly.

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

Great job! 🎉 The previously reported issue with the expected output in the multiple words test case has been resolved, and now all test cases accurately reflect the task requirements. Your test file is comprehensive, well-structured, and covers all necessary edge cases. Keep up the excellent work! If you have any questions or want to further improve your code, feel free to ask.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

});

it('should reverse multiple words keeping their lengths', () => {
expect(arrayReverse(['Mate', 'Academy'])).toEqual(['ymed', 'acAetaM']);

Choose a reason for hiding this comment

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

Issue: The expected output in this test case does not match the requirement of reversing each word individually. For input ['Mate', 'Academy'], the expected output should be ['etaM', 'ymedacA'], not ['ymed', 'acAetaM']. Please update the expected output to reflect the correct logic as described in the task requirements.

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