Skip to content

Commit fa537b2

Browse files
committed
added tests for negative numerator/denominator cases
1 parent c099074 commit fa537b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ test(`should return false for improper fraction`, () => {
2929
expect(isProperFraction(2, 1)).toEqual(false);
3030
});
3131

32+
// testing negative cases
3233
// case: the value of the numerater is negative and its absolute value is less than the value of the denominater (roper fraction)
3334
test(`should return false for proper fraction`, () => {
3435
expect(isProperFraction(-1, 2)).toEqual(true);

0 commit comments

Comments
 (0)