Skip to content

London | 26-ITP-May | Alex Jamshidi | Sprint 3 | Implement and rewrite tests#1318

Open
Alex-Jamshidi wants to merge 4 commits into
CodeYourFuture:mainfrom
Alex-Jamshidi:coursework/sprint-3-implement-and-rewrite
Open

London | 26-ITP-May | Alex Jamshidi | Sprint 3 | Implement and rewrite tests#1318
Alex-Jamshidi wants to merge 4 commits into
CodeYourFuture:mainfrom
Alex-Jamshidi:coursework/sprint-3-implement-and-rewrite

Conversation

@Alex-Jamshidi
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

Solutions for Sprint 3 - Implement and rewrite

@Alex-Jamshidi Alex-Jamshidi 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 May 11, 2026
@Alex-Jamshidi Alex-Jamshidi changed the title London | 26-ITP-May | Alex Jamshidi | Sprint 3 | Implement and rewrite London | 26-ITP-May | Alex Jamshidi | Sprint 3 | Implement and rewrite tests May 11, 2026
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

LGTM, a couple of small things to check

@@ -11,7 +11,7 @@
// execute the code to ensure all tests pass.

function isProperFraction(numerator, denominator) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about isProperFraction(10, 0)?

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.

isProperFraction(10, 0) correctly returns false
test had already been written for zero denominator input in 2-is-proper-fraction.test.js

added assertEquals test for (10, 0)

}

const value = card.slice(0, -1);
if (value == 10) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do you call this out as a separate case from 2-9?

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.

there isn't a reason to do this, it can be incorporated below to become 2-10

change made

@illicitonion illicitonion 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 May 14, 2026
@Alex-Jamshidi Alex-Jamshidi 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 May 14, 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. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants