Skip to content

Manchester | 26-ITP-Jan | khalidbih | Sprint 3 | coursework/sprint-3-implement-and-rewrite #1270

Open
khalidbih wants to merge 11 commits intoCodeYourFuture:mainfrom
khalidbih:sprint-3-implement-and-rewrite-clean
Open

Manchester | 26-ITP-Jan | khalidbih | Sprint 3 | coursework/sprint-3-implement-and-rewrite #1270
khalidbih wants to merge 11 commits intoCodeYourFuture:mainfrom
khalidbih:sprint-3-implement-and-rewrite-clean

Conversation

@khalidbih
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 :

I have completed the coursework/sprint-3-implement-and-rewrite.

@khalidbih khalidbih added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Mar 16, 2026
@khalidbih
Copy link
Author

Hi @cjyuan, I’ve created a new PR, and there are no merge conflicts now.
Thanks a lot for your guidance.

Comment on lines +14 to +16
test("should return true when absolute numerator is less than absolute denominator", () => {
expect(isProperFraction(-4, 7)).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.

We can use pseudo-code or notations such as abs(...) or |...|, and < in the description to make it more concise. For example,

test("should return true when abs(numerator) < abs(denominator)", () => {
  expect(isProperFraction(-4, 7)).toEqual(true);
  ... // Test all combination of positive/negative numerator and denominator.
});

Copy link
Author

Choose a reason for hiding this comment

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

I updated the test description.

@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 16, 2026
@khalidbih khalidbih 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 17, 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.

Changes look good.

Comment on lines +20 to +25
test("should return true when numerator < denominator and denominator is negative", () => {
expect(isProperFraction(4, -7)).toEqual(true);
});
test("should return true when numerator and denominator are both negative and numerator < denominator", () => {
expect(isProperFraction(-4, -7)).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 also use the absolute value notation on these descriptions.

In math, 4 is larger than -7, and -4 is larger than -7. The absolute value notation could help make the description concise.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for the suggestion, I’ll keep this in mind for future tests.

@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 17, 2026
@khalidbih
Copy link
Author

Changes look good.

Thank you for all your feedback and guidance.

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. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants