London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Implement and Rewrite Tests#1381
London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Implement and Rewrite Tests#1381Yonatanteklemariam wants to merge 12 commits into
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Code looks good.
Can you revert the changes made in the 2-practice-tdd folder? I think they belong to a separate PR.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
Remove check for zero numerator in isProperFraction function.
cjyuan
left a comment
There was a problem hiding this comment.
Have you rerun the test scripts after you made changes? It's a good practice to run the test scripts before making a commit or pushing the commits to GitHub.
| if (Number.isNaN(numerator) || Number.isNaN(denominator)) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Note: A stronger check might be !Number.isFinite() (or !Number.isInteger() if you only allow integer numerator and denominator).
No change needed.
|
I don't see any new commits on this branch. Have you made any change to address this comment: #1381 (review) ? |
Added checks for finite and integer values of numerator and denominator.
|
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: 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. |
|
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: 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. |
|
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: 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. |
|
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: 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. |
|
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: 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. |
|
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: 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
|
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: 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. |
cjyuan
left a comment
There was a problem hiding this comment.
I don't see how your implementation can pass your tests. That's why I asked if you had reran your tests after you made changes to make sure everything works as expected.
| if (!Number.isFinite(numerator) || !Number.isFinite(denominator)) { | ||
| return false; | ||
| } | ||
| if (!Number.isInteger(numerator) || !Number.isInteger(denominator)) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
If a number is not finite, then the number is also not an integer. One of these checks is redundant.
|
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: 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. |
|
To pass the validation bot check, you need to rename this branch to the name specified in the issue (backlog): #6 |
Refactor isProperFraction to validate integers instead of finite numbers.
Fix syntax error in isProperFraction function.
Learners, PR Template
Self checklist
Changelist
Defined a new function based on the instruction and wrote tests to verify the output matches the expected target output.