Skip to content

Commit 69a9cbf

Browse files
committed
Correct assertion for negative numerator and denominator
1 parent fedc6d6 commit 69a9cbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ test(`should return false when numerator is greater than denominator`, () => {
2727
// Case #4: numerator and/or denominator are negative numbers
2828
test(`should handle negative numbers`, () => {
2929
expect(isProperFraction(-1, 2)).toEqual(true);
30-
expect(isProperFraction(-5, -2)).toEqual(true);
30+
expect(isProperFraction(-5, -2)).toEqual(false);
3131
});

0 commit comments

Comments
 (0)