Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 3 | Implement and rewrite test done#1200
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Function implementations look good.
This exercise has a second part "2 Rewrite tests with Jest" ==> three more files to be updated.
|
The have been updated now. Thanks in Advance |
cjyuan
left a comment
There was a problem hiding this comment.
Changes look good. Just a few suggestions.
I will mark this as Complete first.
| test(`should return "Invalid angle" when angle < 0 or angle >= 360`, () => { | ||
| expect(getAngleType(-1)).toEqual("Invalid angle"); | ||
| expect(getAngleType(360)).toEqual("Invalid angle"); | ||
| }); |
There was a problem hiding this comment.
It's good that you tested one of the boundary cases. You could consider testing the other one.
| test(`should return true when the absolute value of the numerator is smaller than the absolute value of the denominator`, () => { | ||
| expect(isProperFraction(-1, 2)).toEqual(true); | ||
| expect(isProperFraction(1, -2)).toEqual(true); | ||
| }); |
There was a problem hiding this comment.
This category probably cover the positive case, and you can use notations like | ... | or abs(...) in the description to make it more concise.
|
Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it. |
Learners, PR Template
Self checklist
Changelist
Completed all the exercisces required.