Skip to content

North West | 26-ITP-Sep | Brian Yorachi | Sprint 2 | implement and rewrite tests - #1705

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

BrianY315 wants to merge 7 commits into
CodeYourFuture:mainfrom
BrianY315:coursework/sprint-3-implement-and-rewrite

Conversation

@BrianY315

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

Task code

CYF-1059

Changelist

Implemented all three sprint exercises and completed their tests using both node:test and Jest.

@BrianY315 BrianY315 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 14, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test cases are very comprehensive.
Code looks good.

Just one question.

Comment on lines +3 to +14
test.each([
[1, 2, true],
[9, 10, true],
[2, 1, false],
[3, 3, false],
[10, 2, false],
[0, 5, true],
[-1, 2, true],
[1, -2, true],
[-3, -2, false],
[0, 0, false],
[1, 0, false],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These test cases are quite comprehensive because they almost cover all possible combinations of numerator and denominator.

Could you think of one more test case to make them more complete?

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.

Thanks for the review! I've added three more test cases covering the sign combinations that were missing: [-1, -2, true] (both negative, proper), [-3, 2, false] (negative numerator, improper) and [3, -2, false] (negative denominator, improper). I added the same cases to the node-test file so the two suites stay consistent. All tests pass. Please take another look when you have time

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well done.

@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 Oct 20, 2026
@BrianY315
BrianY315 force-pushed the coursework/sprint-3-implement-and-rewrite branch from 2763c86 to 52fef2a Compare October 20, 2026 13:29
@BrianY315 BrianY315 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 Oct 20, 2026
@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 Oct 20, 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