Skip to content

Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 | Coursework/sprint 3 | Implement and Rewrite Test - #1598

Open
Monsur0001 wants to merge 6 commits into
CodeYourFuture:mainfrom
Monsur0001:implement-and-rewrite-test
Open

Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 | Coursework/sprint 3 | Implement and Rewrite Test#1598
Monsur0001 wants to merge 6 commits into
CodeYourFuture:mainfrom
Monsur0001:implement-and-rewrite-test

Conversation

@Monsur0001

@Monsur0001 Monsur0001 commented Aug 1, 2026

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

Briefly explain your PR.

I cherry-picked the commits to this branch because I earlier did all the task in the sprint 3 branch, instead of creating different branches for the Sprint 3

@github-actions

This comment has been minimized.

@Monsur0001 Monsur0001 added 📅 Sprint 3 Assigned during Sprint 3 of this module Module-Structuring-And-Testing-Data The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 1, 2026
@github-actions

This comment has been minimized.

1 similar comment
@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 Aug 1, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Monsur0001 Monsur0001 added NotCoursework Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 1, 2026
@Monsur0001 Monsur0001 changed the title London | 26-ITP-May | Monsur Abdulrahman | Sprint 3 |Coursework/sprint 3 Implement and Rewrite Test Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 |Coursework/sprint 3 Implement and Rewrite Test Aug 1, 2026
@Monsur0001 Monsur0001 changed the title Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 |Coursework/sprint 3 Implement and Rewrite Test Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 | Coursework/sprint 3 | Implement and Rewrite Test Aug 1, 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 Aug 1, 2026
@github-actions

This comment has been minimized.

@Monsur0001 Monsur0001 added NotCoursework 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 1, 2026
@jimoholayinka01 jimoholayinka01 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 Aug 6, 2026
@jimoholayinka01

Copy link
Copy Markdown

Nice work as you've implemented the three functions. However, there are two small, required fixes so the implementation and tests agree. I recommend fixing those before I approve.

Fix isProperFraction function in 2-is-proper-fraction.js implementation with the code below as negative numerators/denominators are treated as invalid in the current code but the Jest tests expect sign-agnostic behaviour

function isProperFraction(numerator, denominator) {
  if (denominator === 0) return false;
  if (numerator === 0) return true;
  // Normalize denominator to positive so comparison is simple
  if (denominator < 0) {
    numerator = -numerator;
    denominator = -denominator;
  }
  return Math.abs(numerator) < denominator;
}

// The line below allows us to load the isProperFraction function into tests in other files.
module.exports = isProperFraction;

Remove the incorrect example assert in getCardValue implement file

assertEquals(getCardValue("11♥"), 11);

@jimoholayinka01 jimoholayinka01 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 Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. NotCoursework 🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants