Glasgow | 26-ITP-May | Francesco Romano Monda | Sprint 3 | Complete Sprint 3 implement and rewrite tests coursework - #1556
Conversation
LonMcGregor
left a comment
There was a problem hiding this comment.
Very close to be complete, one test case left.
|
|
||
| // Example #5: -1/2 and -5/-2 are proper fractions | ||
| assertEquals(isProperFraction(-1, 2), true); | ||
| assertEquals(isProperFraction(-5, -2), true); |
There was a problem hiding this comment.
In maths, we consider than -1/2 is proper, but -5/2 is not proper (because 5 is bigger than 2). Can you take another look at this?
There was a problem hiding this comment.
I corrected the assertion for the negative numerator and denominator case. The mistake stemmed from overlooking that the definition of a proper fraction is based on the absolute values of the numerator and denominator.
|
Thanks for making the change to the test. But now, if you run the test, it fails. Did you also change the implementation as well? |
Sorry for my oversight. I have fixed the implementation now. |
Self checklist
Changelist