Skip to content

solution#3330

Open
Rostyslav452 wants to merge 2 commits into
mate-academy:masterfrom
Rostyslav452:develop
Open

solution#3330
Rostyslav452 wants to merge 2 commits into
mate-academy:masterfrom
Rostyslav452:develop

Conversation

@Rostyslav452
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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

The error messages contain typos: 'Radius a' should be 'Radius', 'Width a' should be 'Width', and 'Height a' should be 'Height'. These need to be corrected to match the expected format.


✨ 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

Comment thread src/figuresClasses.ts Outdated
Comment on lines +62 to +63
if (radius <= 0) {
throw new Error('Radius a must be greater than zero');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Typo: error message says 'Radius a' but should say 'radius' since the parameter is named radius

Comment thread src/figuresClasses.ts Outdated
Comment on lines +78 to +79
if (width <= 0) {
throw new Error('Width a must be greater than zero');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Typo: error message says 'Width a' but should say 'width' since the parameter is named width

Comment thread src/figuresClasses.ts Outdated
Comment on lines +82 to +83
if (height <= 0) {
throw new Error('Height a must be greater than zero');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Typo: error message says 'Height a' but should say 'height' since the parameter is named height

Copy link
Copy Markdown

@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 implementation in src/figuresClasses.ts successfully meets all task requirements. The Figure interface is properly defined with all three shape classes (Triangle, Circle, Rectangle), each implementing correct validation logic and area calculations. The getArea methods use the this object appropriately, area results are correctly rounded using Math.floor, and the getInfo function produces the required format "A {color} {shape} - {area}". Any previous issues with error message typos have been resolved. No critical issues or blockers were identified in the review.


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

Footnotes

  1. Rate AI review example

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