Skip to content

London | 26-ITP-May | Rhoda Ajiroba | Sprint 3 | Structuring and Testing Data - #1563

Open
codebyra wants to merge 5 commits into
CodeYourFuture:mainfrom
codebyra:coursework/sprint-3-clean
Open

London | 26-ITP-May | Rhoda Ajiroba | Sprint 3 | Structuring and Testing Data#1563
codebyra wants to merge 5 commits into
CodeYourFuture:mainfrom
codebyra:coursework/sprint-3-clean

Conversation

@codebyra

Copy link
Copy Markdown

Learners, PR Template

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 the Sprint 3 mandatory exercises for the Structuring and Testing Data module.

Implemented and tested the required Sprint 3 exercises, including rewriting tests with Jest, practice TDD, and dead code removal.

@github-actions

This comment has been minimized.

@codebyra codebyra added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 25, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 25, 2026
@codebyra codebyra added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 25, 2026
@codebyra

Copy link
Copy Markdown
Author

@LonMcGregor Please review this too


function isProperFraction(numerator, denominator) {
// TODO: Implement this function
return numerator >= 0 && denominator > 0 && numerator < denominator;

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.

What authoritative source do you base your definition of a proper fraction on?

@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 Jul 27, 2026
@cjyuan

cjyuan commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

You also missed updating Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js.

@codebyra codebyra added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 6, 2026
@codebyra

codebyra commented Aug 6, 2026

Copy link
Copy Markdown
Author

@cjyuan Please review the changes

@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.

Could you also address this comment: #1563 (comment)

assertEquals(isProperFraction(5, 2), false);
assertEquals(isProperFraction(-1, 2), false);
assertEquals(isProperFraction(1, 0), false);
assertEquals(isProperFraction(0, 5), false); No newline at end of file

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.

According to which authoritative definition -1/2 and 0/5 are not considered proper fractions?

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 6, 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