Skip to content

West-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 | Implement and Rewrite Tests - #1603

Open
maryam-devio wants to merge 6 commits into
CodeYourFuture:mainfrom
maryam-devio:coursework/sprint-3-implement-and-rewrite
Open

West-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 | Implement and Rewrite Tests#1603
maryam-devio wants to merge 6 commits into
CodeYourFuture:mainfrom
maryam-devio:coursework/sprint-3-implement-and-rewrite

Conversation

@maryam-devio

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

I have implement all the tasks according to the requirements, and test all the changes made.

@maryam-deviomaryam-devio 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 Aug 5, 2026
@github-actions

This comment has been minimized.

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

@maryam-deviomaryam-devio changed the title West-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 implement and rewrite testsWest-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 | Implement and Rewrite TestsAug 5, 2026
@maryam-deviomaryam-devio added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 10, 2026
Comment threadSprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js Outdated
Comment threadSprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js Outdated
@cjyuancjyuan 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 Aug 10, 2026
@maryam-deviomaryam-devio 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 Aug 12, 2026
@maryam-devio

Copy link
Copy Markdown
Author

Hello! Thank you for the comments. I’ve made all the changes you mentioned in all files and pushed the updates as well. Thank you!

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

Changes look good.

Comment on lines +15 to +21
if (denominator === 0){
return false;
}
if(Math.abs(numerator) < Math.abs(denominator)){
return true;
}
else{

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.

Why not use a formatter to keep the code consistently formatted?

Comment on lines +26 to +34
if(card=="A♠" || card=="A♥" || card=="A♦" || card == "A♣"){
return 11;
}
if(card=="J♠" || card=="J♥" || card=="J♦" || card == "J♣" ||
card=="Q♠" || card=="Q♥" || card=="Q♦" || card == "Q♣" ||
card=="K♠" || card=="K♥" || card=="K♦" || card == "K♣"
){
return 10;
}

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.

Note: Code works but could probably be simplified.

});

// Proper fractions with positive values
test("should return true when the absolute value of the numerator is less than the absolute value of the 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.

Note: We could also use pseudo-code and math notations like abs(...) or | ... | to denote "absolute value of" in the descriptions.

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

Labels

CompleteVolunteer to add when work is complete and all review comments have been addressed.Module-Structuring-And-Testing-DataThe name of the module.📅 Sprint 3Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@maryam-devio@cjyuan