Skip to content

Commit f7ae1c1

Browse files
committed
Negative numerator and denominator
1 parent 638dbd4 commit f7ae1c1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ test(`should return false when numerator is equal to denominator`, () => {
1919
expect(isProperFraction(2, 2)).toEqual(false);
2020
});
2121

22-
// Special case: numerator is negative is not a proper fraction.
23-
test(`should return false when numerator is negative value`, () => {
24-
expect(isProperFraction(-1, 2)).toEqual(false);
22+
// Special case: numerator is negative is a proper fraction.
23+
test(`should return true when numerator is negative but fraction is still proper`, () => {
24+
expect(isProperFraction(-1, 2)).toEqual(true);
2525
});
2626

27-
// Special case: denominator is negative is not a proper fraction.
28-
test(`should return false denominator is negative value `, () => {
29-
expect(isProperFraction(1, -2)).toEqual(false);
27+
// Special case: denominator is negative is a proper fraction.
28+
test(`should return true when denominator is negative but fraction is still proper`, () => {
29+
expect(isProperFraction(1, -2)).toEqual(true);
3030
});
3131

3232
// Special case: numerator and denominator are both negative values is a proper fraction.

0 commit comments

Comments
 (0)