Glasgow | 26-ITP-JAN | Prakash Dcosta | Sprint 3 | Implement & Rewrite Tests Coursework#1151
Glasgow | 26-ITP-JAN | Prakash Dcosta | Sprint 3 | Implement & Rewrite Tests Coursework#1151dcostaprakash wants to merge 2 commits intoCodeYourFuture:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
Implementation looks good, and code is well formatted.
| }); | ||
|
|
||
| // When numerator is greater than the denominator | ||
| test(`should return false when numerator > denominator`, () => { |
There was a problem hiding this comment.
-
We could use notations like
| ... |orabs(...)to indicate we are comparing their absolute values. -
What about the boundary case when abs(numerator) == abs(denominator)?
There was a problem hiding this comment.
Got it. I have made the change accordingly for both the points. Thank you
Further, I have also added for not an integer which i had missed earlier. Thank you.
Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/3-get-card-value.test.js
Show resolved
Hide resolved
|
I don't see any new commits on this branch. Have you pushed your commits to GitHub? |
|
It was done, maybe did not go through. I have done it again. Thank you |
| test(`should return true when numerator < denominator`, () => { | ||
| expect(isProperFraction(2, 5)).toEqual(true); | ||
| expect(isProperFraction(1, -4)).toEqual(true); | ||
| expect(isProperFraction(-100, -214)).toEqual(true); | ||
| expect(isProperFraction(-1502, 4000)).toEqual(true); | ||
| expect(isProperFraction(18, 32)).toEqual(true); | ||
| }); |
There was a problem hiding this comment.
Could have also used the | ... | notation in this description.
There was a problem hiding this comment.
Sure. i will keep that in mind. Thank you!
Self checklist
Changelist
Completed all the tasks as per the coursework