Skip to content

Glasgow | 26-ITP-JAN | Prakash Dcosta | Sprint 3 | Implement & Rewrite Tests Coursework#1151

Open
dcostaprakash wants to merge 2 commits intoCodeYourFuture:mainfrom
dcostaprakash:Sprint-31
Open

Glasgow | 26-ITP-JAN | Prakash Dcosta | Sprint 3 | Implement & Rewrite Tests Coursework#1151
dcostaprakash wants to merge 2 commits intoCodeYourFuture:mainfrom
dcostaprakash:Sprint-31

Conversation

@dcostaprakash
Copy link

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

Completed all the tasks as per the coursework

@github-actions

This comment has been minimized.

@dcostaprakash dcostaprakash changed the title Glasgow | 26-ITP-JAN | Prakash Dcosta | Sprint 2 | Implement & Rewrite Tests Coursework Glasgow | 26-ITP-JAN | Prakash Dcosta | Sprint 3 | Implement & Rewrite Tests Coursework Mar 4, 2026
@dcostaprakash dcostaprakash added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@cjyuan cjyuan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 11, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Implementation looks good, and code is well formatted.

});

// When numerator is greater than the denominator
test(`should return false when numerator > denominator`, () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

  • We could use notations like | ... | or abs(...) to indicate we are comparing their absolute values.

  • What about the boundary case when abs(numerator) == abs(denominator)?

Copy link
Author

Choose a reason for hiding this comment

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

Got it. I have made the change accordingly for both the points. Thank you
Further, I have also added for not an integer which i had missed earlier. Thank you.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 11, 2026
@dcostaprakash dcostaprakash added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 12, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 12, 2026

I don't see any new commits on this branch. Have you pushed your commits to GitHub?

@cjyuan cjyuan 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. labels Mar 12, 2026
@dcostaprakash dcostaprakash added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 12, 2026
@dcostaprakash
Copy link
Author

It was done, maybe did not go through. I have done it again. Thank you

Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Changes look good.

Comment on lines +32 to 38
test(`should return true when numerator < denominator`, () => {
expect(isProperFraction(2, 5)).toEqual(true);
expect(isProperFraction(1, -4)).toEqual(true);
expect(isProperFraction(-100, -214)).toEqual(true);
expect(isProperFraction(-1502, 4000)).toEqual(true);
expect(isProperFraction(18, 32)).toEqual(true);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Could have also used the | ... | notation in this description.

Copy link
Author

Choose a reason for hiding this comment

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

Sure. i will keep that in mind. Thank you!

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants