Skip to content

London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Implement and re-write tests#1381

Open
Yonatanteklemariam wants to merge 7 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:coursework/Sprint-3
Open

London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Implement and re-write tests#1381
Yonatanteklemariam wants to merge 7 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:coursework/Sprint-3

Conversation

@Yonatanteklemariam

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

Defined a new function based on the instruction and wrote tests to verify the output matches the expected target output.

Questions

@Yonatanteklemariam Yonatanteklemariam added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Complete Volunteer to add when work is complete and all review comments have been addressed. labels Jun 22, 2026
@Yonatanteklemariam Yonatanteklemariam added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 27, 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.

Code looks good.

Can you revert the changes made in the 2-practice-tdd folder? I think they belong to a separate PR.

Comment thread Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js Outdated
Comment on lines +39 to +43
// Special cases: non-number strings
test(`should return false for non-numeric strings`, () => {
expect(isProperFraction("a", 5)).toEqual(false);
expect(isProperFraction(3, "b")).toEqual(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.

What do you mean by "non-numeric strings"? Is "3e2" a non-numeric string?

@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 Jun 27, 2026
@github-actions

Copy link
Copy Markdown

The changed files in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the changed files tab at the top of the page, we are only expecting changes in this directory: ^Sprint-3/1-implement-and-rewrite-tests/

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

1 similar comment
@github-actions

Copy link
Copy Markdown

The changed files in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the changed files tab at the top of the page, we are only expecting changes in this directory: ^Sprint-3/1-implement-and-rewrite-tests/

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@Yonatanteklemariam

Copy link
Copy Markdown
Author

Code looks good.

Can you revert the changes made in the 2-practice-tdd folder? I think they belong to a separate PR.

yes, I've removed the tdd folder from the changed files and fixed it.

Remove check for zero numerator in isProperFraction function.
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