Skip to content

London | 26-ITP-May | Vito Moratti | Sprint 3 | Implement and rewrite#1525

Open
vmoratti wants to merge 11 commits into
CodeYourFuture:mainfrom
vmoratti:coursework/sprint-3-implement-and-rewrite
Open

London | 26-ITP-May | Vito Moratti | Sprint 3 | Implement and rewrite#1525
vmoratti wants to merge 11 commits into
CodeYourFuture:mainfrom
vmoratti:coursework/sprint-3-implement-and-rewrite

Conversation

@vmoratti

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I had to rewrite code and tests and make new PR, here it is

@vmoratti vmoratti added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 17, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 22, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good start on these tasks. Some comments for you to look at below

Comment thread Sprint-3/1-implement-and-rewrite-tests/implement/1-get-angle-type.js Outdated
return "Reflex angle";
} else if (acuteAngle) {
return "Acute angle";
} else if (angle === zeroAngle || angle != acuteAngle || angle != rightAngle || angle != obtuseAngle || angle != straightAngle || angle != reflexAngle) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm a bit confused about the if condition for this last branch. Can you explain your thinking for me please?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Well, I thought that i assign conditions to variables and then compare 'angle' parameter to my variables and if it doesn't match, then 'Invalid angle' is returned. I probably should have put this condition in the beginning as an 'if' statement

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work with my other comments, this PR is almost done.

I'm still not sure about this task. Look at what you are comparing, angle against expressions from zeroAngle or acuteAngle calculated earlier in the function. Think about the possible values that are contained in these variables. What possible outcomes could you get from this if condition? When will this branch of the if run?

Comment thread Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js Outdated
Comment thread Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js Outdated
@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 22, 2026
vmoratti added 5 commits July 22, 2026 11:29
Simplified the isProperFraction function to return the comparison directly.
Implemented the getAngleType function to classify angles.
Removed TODO comment for test coverage on invalid cards.
Removed TODO comment and added a test case for zero denominator.
@vmoratti vmoratti added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 22, 2026

@vmoratti vmoratti left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Acted upon comments

@LonMcGregor LonMcGregor removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants